@font-face { font-family: 'Lobster'; src: url('/fonts/Lobster-Regular.ttf') format('truetype'); font-display: swap; }
[hidden] { display: none !important; }
@font-face { font-family: 'Caveat'; src: url('/fonts/Caveat.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #0b1736; --bg2: #13245a; --text: #f4f6ff; --muted: #b3bfdf; --gold: #f1c75b; --gold2: #ffe7a3; --red: #c62a2a;
  --line: rgba(255, 255, 255, .14); --glass: rgba(255, 255, 255, .06); --card: rgba(13, 26, 66, .78);
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --title: 'Lobster', Georgia, serif; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--text); background: radial-gradient(1200px 600px at 70% -10%, #23408f 0, transparent 60%), linear-gradient(180deg, var(--bg) 0, #081029 100%); background-attachment: fixed; min-height: 100vh; overflow-x: hidden; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }
a { color: var(--gold2); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 26px; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
section.wrap, article.wrap { margin-top: 64px; margin-bottom: 64px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: #dfe6ff; max-width: 760px; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 16, 41, .72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 22px var(--title); }
.logo svg { width: 28px; height: 28px; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; color: var(--gold2); }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } .logo span { font-size: 18px; } }
@media (max-width: 420px) { .logo span { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 600 16px var(--sans); color: #3a1a00; background: linear-gradient(180deg, #ffe08a, #f0b53d); box-shadow: 0 8px 30px -10px rgba(241, 199, 91, .8); transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -10px rgba(241, 199, 91, .95); color: #3a1a00; }
.btn-big { padding: 17px 34px; font-size: 18px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--gold2); border-color: var(--gold); box-shadow: none; }
.btn-red { background: linear-gradient(180deg, #e04848, #b21f1f); color: #fff; box-shadow: 0 8px 30px -10px rgba(224, 72, 72, .8); }
.btn-red:hover { color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.hero { position: relative; min-height: min(760px, 92vh); display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 70%; transform: scale(1.08); animation: heroZoom 30s ease-in-out infinite alternate; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 16, 41, .88) 0, rgba(8, 16, 41, .55) 55%, rgba(8, 16, 41, .25) 100%), linear-gradient(0deg, #0b1736 0, transparent 30%); }
@keyframes heroZoom { to { transform: scale(1.16) translateX(-1.5%); } }
.hero-in { position: relative; padding: 70px 0; }
.hero h1 { max-width: 760px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero h1, .gold { background: linear-gradient(180deg, #fff6d6, #f1c75b 70%, #d99a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(198, 42, 42, .85); font-weight: 600; font-size: 14px; letter-spacing: .03em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.page-head { margin-top: 30px; }
.crumbs { margin-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 0; }
.steps li { padding: 26px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); font: 24px var(--title); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.scenes figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--glass); }
.scenes img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.2s var(--ease); }
.scenes figure:hover img { transform: scale(1.06); }
.scenes figcaption { padding: 8px 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .scenes { grid-template-columns: 1fr 1fr; } }
.demo { max-width: 860px; margin: 30px auto 0; }
.demo video, .player video { width: 100%; border-radius: 18px; border: 1px solid rgba(241, 199, 91, .5); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); background: #000; display: block; }
.card { padding: clamp(20px, 4vw, 40px); border-radius: 28px; background: var(--card); border: 1px solid rgba(241, 199, 91, .35); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.greet { display: grid; gap: 16px; margin-top: 18px; }
.greet label { display: grid; gap: 6px; font-size: 15px; color: #dfe6ff; }
.greet input:not([type=checkbox]):not([type=radio]):not([type=file]), .greet select, .greet textarea, .edit textarea, .edit input {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 12, 34, .7); color: var(--text); font: 16px var(--sans); color-scheme: dark; }
.greet textarea, .edit textarea { resize: vertical; line-height: 1.5; }
.greet input:focus, .greet select:focus, .greet textarea:focus, .edit textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(241, 199, 91, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2.tight { gap: 12px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } .row2.tight { grid-template-columns: 1.4fr 1fr; } }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg legend { font-size: 15px; color: #dfe6ff; margin-bottom: 6px; padding: 0; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 12, 34, .7); cursor: pointer; }
.seg input:checked + span { border-color: var(--gold); background: rgba(241, 199, 91, .16); color: var(--gold2); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(241, 199, 91, .4); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.kid-letter summary { cursor: pointer; color: var(--gold2); padding: 6px 0; }
.kid-letter label { margin-top: 8px; }
.photo-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; }
.photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick:focus-within .btn { box-shadow: 0 0 0 3px rgba(241, 199, 91, .5); }
.photo-prev { width: 64px; height: 76px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); }
.photo-row p { margin: 0; }
@media (max-width: 700px) { .photo-row { grid-template-columns: auto 1fr; } .photo-row p { grid-column: 1 / -1; } }
.form-status { min-height: 1.4em; margin: 0; color: #ffb4b4; }
.loader { display: flex; align-items: center; gap: 14px; padding: 26px 0; color: var(--gold2); font-size: 18px; }
.loader i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(241, 199, 91, .25); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { margin-top: 10px; }
.preview { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .preview { grid-template-columns: 1fr; } }
.poster { width: 100%; border-radius: 16px; border: 1px solid rgba(241, 199, 91, .5); display: block; }
.parchment { padding: 28px 30px; border-radius: 10px; color: #3b2410; background: radial-gradient(circle at 50% 40%, #fffaf0, #f3e2bd); box-shadow: inset 0 0 40px rgba(160, 110, 40, .35), 0 20px 50px -20px rgba(0, 0, 0, .7); font: 500 23px/1.35 'Caveat', cursive; white-space: pre-line; border: 2px solid #d8b56a; }
.parchment h3 { font-family: var(--title); color: #8c1d1d; font-size: 32px; text-align: center; margin-bottom: 10px; }
.parchment .sign { text-align: right; font-family: var(--title); color: #8c1d1d; margin-top: 10px; }
.speech { margin-top: 16px; }
.speech summary { cursor: pointer; color: var(--gold2); }
.speech ol { padding-left: 22px; color: #dfe6ff; }
.speech li { margin: 8px 0; }
.edit { display: grid; gap: 10px; margin-top: 12px; }
.edit label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.buy .btn { flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 18px; }
.buy .btn small { font-weight: 400; font-size: 13px; opacity: .85; }
@media (max-width: 560px) { .buy { grid-template-columns: 1fr; } }
.note { padding: 14px 18px; border-radius: 14px; background: rgba(241, 199, 91, .12); border: 1px solid rgba(241, 199, 91, .4); color: #ffeec2; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.letter-img { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; border-radius: 6px; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .8); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.letter-img:hover { transform: rotate(0) scale(1.02); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: '❄'; position: absolute; left: 0; color: var(--gold); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 20px; margin-top: 24px; }
.plan { position: relative; padding: 30px 26px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.plan-main { border-color: var(--gold); background: linear-gradient(160deg, rgba(241, 199, 91, .16), rgba(198, 42, 42, .12)); }
.plan .price { font: 48px var(--title); color: var(--gold2); margin: 4px 0 8px; }
.plan ul { padding-left: 20px; color: #dfe6ff; margin: 0; }
.badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--red); font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.faq details { padding: 16px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: #dfe6ff; }
.content { max-width: 860px; }
.content h2 { margin-top: 34px; }
.content p, .content li { color: #e2e8fb; }
.sample { margin: 16px 0; padding: 22px 26px; border-radius: 10px; color: #3b2410; background: radial-gradient(circle at 50% 40%, #fffaf0, #f3e2bd); font: 500 23px/1.4 'Caveat', cursive; border-left: 6px solid var(--red); }
.order { min-height: 40vh; }
.progress { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 18px 0 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f0b53d, #ffe08a); transition: width .8s var(--ease); }
.player { max-width: 900px; }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.foot { margin-top: 80px; padding: 40px 0 30px; border-top: 1px solid var(--line); background: rgba(5, 10, 28, .6); }
.foot .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.foot .cols div { display: grid; gap: 6px; align-content: start; }
.foot .cols a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot .cols a:hover { color: var(--gold2); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: #101d48; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cookie p { margin: 0; flex: 1 1 300px; }
.cookie-btns { display: flex; gap: 8px; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
