:root {
  --night: #071226;
  --night-soft: #10223d;
  --ink: #13203a;
  --snow: #f5f8fc;
  --paper: #ffffff;
  --gold: #dfbd6c;
  --gold-dark: #9b7129;
  --blue: #1f4f7a;
  --muted: #66738a;
  --line: #dce4ef;
  --shadow: 0 22px 70px rgba(5, 17, 37, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--snow);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
  color: white;
}

.brand, .top-link { color: inherit; text-decoration: none; }
.brand { display: flex; gap: 10px; align-items: center; font-family: Georgia, serif; font-size: 1.2rem; }
.brand-mark { color: var(--gold); }
.top-link { border-bottom: 1px solid rgba(255,255,255,.55); }

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}
.hero-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.hero-image-primary { transform: scale(1.06); animation: camera-one 18s ease-in-out infinite; }
.hero-image-secondary { opacity: 0; object-position: 74% 48%; transform: scale(1.3) translate3d(-3%, 1%, 0); animation: camera-two 18s ease-in-out infinite; }
.hero-snow { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-glow { position: absolute; z-index: 1; top: 18%; right: 8%; width: 42vw; height: 42vw; border-radius: 50%; background: radial-gradient(circle, rgba(240,195,104,.24), rgba(240,195,104,0) 66%); mix-blend-mode: screen; animation: palace-glow 4.5s ease-in-out infinite; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(2,10,26,.96) 0%, rgba(3,13,31,.75) 43%, rgba(3,13,31,.10) 72%); }
.hero-content { position: relative; z-index: 5; width: min(720px, 88vw); margin-left: clamp(20px, 8vw, 130px); padding: 120px 0 70px; animation: title-reveal 1.5s .4s both; }
.fairy-flight { position: absolute; z-index: 4; left: 0; top: 0; width: clamp(230px, 28vw, 460px); opacity: 0; pointer-events: none; filter: drop-shadow(0 0 22px rgba(203,225,255,.46)); animation: fairy-route 12s 1.3s cubic-bezier(.32,.04,.18,1) infinite; will-change: transform, opacity; }
.fairy-flight img { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.comet-tail { position: absolute; z-index: 0; top: 48%; right: 70%; width: 230%; height: 18%; border-radius: 50%; background: linear-gradient(90deg, transparent 0%, rgba(111,180,255,.05) 22%, rgba(178,217,255,.46) 72%, rgba(255,226,150,.88) 100%); filter: blur(8px); transform: rotate(-8deg); transform-origin: right center; }
.comet-tail::after { content: ""; position: absolute; inset: 30% 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8)); filter: blur(2px); }
.magic-spark { position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #ffe6a3; box-shadow: 0 0 10px #fff, 0 0 24px #d5e8ff; animation: spark-twinkle .8s ease-in-out infinite alternate; }
.spark-one { left: -18%; top: 42%; }
.spark-two { left: 6%; top: 74%; animation-delay: .2s; }
.spark-three { left: 26%; top: 22%; animation-delay: .45s; }
.cinema-cue { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.72); background: rgba(3,12,29,.42); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.cue-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); animation: cue-pulse 1.8s ease-in-out infinite; }
@keyframes camera-one {
  0%, 42% { opacity: 1; transform: scale(1.06) translate3d(-1%, .5%, 0); }
  52%, 92% { opacity: 0; transform: scale(1.2) translate3d(-4%, 2%, 0); }
  100% { opacity: 1; transform: scale(1.07) translate3d(-1%, .5%, 0); }
}
@keyframes camera-two {
  0%, 42% { opacity: 0; transform: scale(1.34) translate3d(-1%, 1%, 0); }
  54%, 90% { opacity: 1; transform: scale(1.2) translate3d(-5%, 0, 0); }
  100% { opacity: 0; transform: scale(1.15) translate3d(-6%, 0, 0); }
}
@keyframes fairy-route {
  0%, 8% { opacity: 0; transform: translate3d(-35vw, 70vh, 0) rotate(-10deg) scale(.58); }
  15% { opacity: .95; }
  50% { opacity: 1; transform: translate3d(48vw, 32vh, 0) rotate(-3deg) scale(.86); }
  76% { opacity: .92; transform: translate3d(76vw, 11vh, 0) rotate(7deg) scale(.58); }
  88%, 100% { opacity: 0; transform: translate3d(94vw, -8vh, 0) rotate(12deg) scale(.34); }
}
@keyframes spark-twinkle { from { opacity: .25; transform: scale(.55); } to { opacity: 1; transform: scale(1.3); } }
@keyframes palace-glow { 0%, 100% { opacity: .5; transform: scale(.96); } 50% { opacity: .95; transform: scale(1.05); } }
@keyframes title-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cue-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.eyebrow.dark { color: var(--gold-dark); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.06; margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.8rem, 6.2vw, 6.4rem); font-weight: 500; letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -.035em; }
.lead { max-width: 650px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #182033;
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(223,189,108,.22);
}
.primary-button:hover { background: #ebcc80; transform: translateY(-1px); }
.primary-button.full { width: 100%; }
.hero-note { margin-top: 14px; color: rgba(255,255,255,.65); font-size: .92rem; }

.story, .builder, .vip-explainer { padding: 90px clamp(20px, 7vw, 110px); }
.story { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; background: white; }
.story-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.story-steps li { min-height: 150px; padding: 24px; background: white; }
.story-steps span { color: var(--gold-dark); font-weight: 800; font-size: .78rem; letter-spacing: .1em; }
.story-steps p { margin: 30px 0 0; font-size: 1.05rem; }

.builder { color: white; background: var(--night); }
.builder-intro { max-width: 780px; }
.builder-intro p:last-child { color: #adbbcf; max-width: 620px; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .72fr); gap: 28px; align-items: start; margin-top: 48px; }
.config-panel { display: grid; gap: 18px; }
fieldset { margin: 0; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.045); }
legend { padding: 0 10px; font-family: Georgia, serif; font-size: 1.22rem; }
.option-grid { display: grid; gap: 12px; }
.tariffs { grid-template-columns: repeat(3, 1fr); }
.option-card { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; cursor: pointer; background: rgba(5,14,31,.45); }
.option-card:has(input:checked) { border-color: var(--gold); background: rgba(223,189,108,.10); box-shadow: inset 0 0 0 1px var(--gold); }
.option-card input { accent-color: var(--gold); }
.option-copy { display: grid; gap: 6px; }
.option-copy strong { font-size: 1.02rem; }
.option-copy small, .vip-toggle small { color: #9eacc0; font-size: .88rem; }
.badge { position: absolute; top: 12px; right: 12px; color: var(--gold); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.counter { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.counter button { width: 44px; height: 42px; border: 0; color: white; background: transparent; cursor: pointer; font-size: 1.4rem; }
.counter output { min-width: 34px; text-align: center; font-weight: 800; }
.check-list { display: grid; }
.check-list label { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.check-list label:last-child { border: 0; }
.check-list input { width: 18px; height: 18px; accent-color: var(--gold); }
.check-list label:has(input:disabled) { opacity: .42; cursor: not-allowed; }
.check-list span small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.fieldset-note { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.story-modules + .fieldset-note { min-height: 1.35em; margin: 12px 0 0; color: #f2d993; }
.vip-fieldset { border-color: rgba(223,189,108,.42); background: linear-gradient(135deg, rgba(223,189,108,.11), rgba(255,255,255,.035)); }
.vip-toggle { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; cursor: pointer; }
.vip-toggle > input { position: absolute; opacity: 0; }
.vip-toggle > span:nth-of-type(2) { display: grid; }
.switch { position: relative; width: 50px; height: 28px; border-radius: 999px; background: #516078; transition: .2s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: .2s; }
.vip-toggle input:checked + .switch { background: var(--gold-dark); }
.vip-toggle input:checked + .switch::after { transform: translateX(22px); }
.vip-options { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.vip-options select { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: white; background: var(--night-soft); }
.vip-options p { margin-bottom: 0; color: #9eacc0; font-size: .9rem; }

.summary-card { position: sticky; top: 24px; padding: 30px; border-radius: 24px; color: var(--ink); background: white; box-shadow: var(--shadow); }
.summary-kicker { margin: 0 0 5px; color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
.summary-card h3 { margin-bottom: 22px; font-size: 2rem; }
.summary-card ul { min-height: 132px; margin: 0 0 25px; padding-left: 20px; color: #4f5d73; }
.summary-card li { margin-bottom: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.price-row span { max-width: 120px; color: var(--muted); font-size: .88rem; }
.price-row strong { font-family: Georgia, serif; font-size: 2rem; }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }

.vip-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; color: white; background: linear-gradient(120deg, #17304d, #0a1427); }
.vip-explainer p { max-width: 560px; color: #c4cedc; font-size: 1.08rem; }
.vip-explainer .price-callout { color: var(--gold); font-family: Georgia, serif; font-size: 1.7rem; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 7vw, 110px); color: #778398; background: #050c18; font-size: .86rem; }

dialog { width: min(560px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3,10,24,.78); backdrop-filter: blur(6px); }
.dialog-card { position: relative; padding: 34px; }
.dialog-card h2 { font-size: 2.4rem; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: #edf1f7; cursor: pointer; font-size: 1.4rem; }
.dialog-summary { margin: 22px 0; padding: 16px; border-radius: 14px; background: #eef3f8; }
.order-dialog { width: min(920px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: auto; }
.order-form { padding: clamp(24px, 5vw, 54px); }
.test-banner { margin: 0 54px 28px 0; padding: 12px 14px; border: 1px solid #e9cf91; border-radius: 12px; color: #654a13; background: #fff8e4; font-size: .9rem; }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 38px; }
.form-progress span { padding: 10px 12px; border-bottom: 3px solid var(--line); color: var(--muted); font-weight: 750; font-size: .84rem; }
.form-progress span.active { border-color: var(--gold-dark); color: var(--ink); }
.order-step { animation: reveal .22s ease; }
.order-step[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.step-note { margin: -12px 0 26px; color: var(--muted); }
.field-grid { display: grid; gap: 16px; margin-bottom: 20px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.field-grid label, .wide-field { display: grid; gap: 7px; color: #39465a; font-weight: 750; font-size: .9rem; }
.field-grid input, .field-grid select, .wide-field input, .wide-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cdd7e4; border-radius: 11px; color: var(--ink); background: white; font-size: 1rem; }
.wide-field { margin-bottom: 20px; }
.wide-field textarea { min-height: 110px; resize: vertical; }
.child-card { margin: 22px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.child-card h3 { margin-bottom: 18px; font-size: 1.35rem; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-card { display: grid; gap: 8px; min-height: 130px; padding: 18px; border: 1px dashed #a9b7ca; border-radius: 15px; color: var(--ink); background: #f8fafc; font-weight: 800; cursor: pointer; }
.upload-card:focus-within { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.upload-card input { max-width: 100%; margin-top: 6px; font-weight: 500; }
.upload-card small { color: var(--muted); font-weight: 500; }
.file-feedback { min-height: 24px; margin: 14px 0; color: #8a4a21; font-size: .9rem; }
.consents { display: grid; gap: 12px; margin: 24px 0; padding: 18px; border-radius: 14px; background: #eef3f8; }
.consents label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .9rem; }
.consents input { width: 18px; height: 18px; accent-color: var(--gold-dark); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.form-actions.split { justify-content: space-between; gap: 16px; }
.secondary-button { min-height: 52px; padding: 0 22px; border: 1px solid #b8c4d3; border-radius: 999px; color: var(--ink); background: white; font-weight: 800; cursor: pointer; }
.final-review { display: grid; gap: 18px; margin: 24px 0; }
.review-block { padding: 18px; border-radius: 14px; background: #eef3f8; }
.review-block h3 { margin: 0 0 10px; font-family: inherit; font-size: 1rem; }
.review-block p { margin: 4px 0; color: #536177; }
.download-status { min-height: 24px; margin-bottom: 0; color: #277153; text-align: right; font-weight: 750; }

@media (max-width: 900px) {
  .hero { min-height: 760px; align-items: end; }
  .hero-image { object-position: 64% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(2,10,26,.98) 0%, rgba(2,10,26,.74) 55%, rgba(2,10,26,.1) 100%); }
  .hero-content { margin: 0; padding: 160px 24px 55px; width: 100%; }
  .fairy-flight { width: clamp(190px, 42vw, 320px); }
  .story, .vip-explainer { grid-template-columns: 1fr; gap: 30px; }
  .builder-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .tariffs { grid-template-columns: 1fr; }
  .option-card { min-height: 126px; }
}

@media (max-width: 560px) {
  .topbar { padding: 18px 20px; }
  .top-link { font-size: .9rem; }
  h1 { font-size: 3rem; }
  .story, .builder, .vip-explainer { padding: 65px 20px; }
  .story-steps { grid-template-columns: 1fr; }
  fieldset { padding: 18px; }
  .vip-toggle { grid-template-columns: auto 1fr; }
  .vip-toggle b { grid-column: 2; }
  footer { flex-direction: column; }
  .two-columns, .upload-grid { grid-template-columns: 1fr; }
  .form-progress span { padding: 8px 4px; font-size: .72rem; }
  .form-actions.split { flex-direction: column-reverse; }
  .form-actions.split button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image, .hero-glow, .hero-content, .cue-dot, .order-step, .fairy-flight, .magic-spark { animation: none; }
  .hero-image-secondary, .fairy-flight { display: none; }
}
