/* Сказки - лендинг. Тёмная ночная тема, тёплый золотой акцент. */

:root {
  --bg: #0a0f24;
  --bg-2: #0f1633;
  --panel: rgba(255, 255, 255, 0.042);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #edeaf8;
  --muted: #a9a7c8;
  --gold: #e8b871;
  --gold-soft: #f6dcae;
  --danger: #f08a8a;
  --ok: #8fd6b0;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 14px; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- небо ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(120, 128, 220, 0.28), transparent 62%),
    radial-gradient(900px 560px at 8% 8%, rgba(66, 92, 180, 0.22), transparent 60%),
    linear-gradient(180deg, #0a0f24 0%, #0c1230 45%, #0a0f24 100%);
}
#stars { position: absolute; inset: 0; }
.star { position: absolute; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .18; } 50% { opacity: .85; } }
.moon {
  position: absolute; top: -70px; right: 7vw; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff6e2, #e8cf9c 52%, rgba(232, 184, 113, 0) 72%);
  filter: blur(2px); opacity: .5;
}

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
  background: rgba(10, 15, 36, 0.72); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.16rem; }
.brand em { font-style: normal; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }
.brand-mark { color: var(--gold); display: inline-flex; }
.top-nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.top-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.top-nav a:hover { color: var(--ink); }
.nav-cta { color: var(--gold) !important; border: 1px solid rgba(232, 184, 113, .45); padding: 8px 16px; border-radius: 999px; }
.nav-cta:hover { background: rgba(232, 184, 113, .12); }

/* ---------- герой ---------- */
.hero { position: relative; padding: clamp(44px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-in { max-width: 640px; }
.kicker { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.16rem); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-facts b { color: var(--ink); font-family: var(--serif); font-size: 1.12rem; margin-right: 4px; }

/* ---------- иллюстрации ---------- */
.ill { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 30px 60px -40px rgba(120, 140, 255, .65); }
.ill img { display: block; width: 100%; height: auto; }
.ill-hero { box-shadow: 0 40px 80px -50px rgba(232, 184, 113, .55); }
.ill-path { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: rgba(8, 12, 28, .5); }
.ill-story { align-self: center; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border-radius: 999px; padding: 14px 26px; font-size: 1rem; font-family: var(--sans); cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s; }
.btn-main { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2a1c07; font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(232, 184, 113, .75); }
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -14px rgba(232, 184, 113, .85); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-strong); }
.btn-wide { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- секции ---------- */
.section { padding: clamp(58px, 8vw, 108px) 0; }
.section-alt { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 68ch; margin-bottom: 34px; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.how-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 46px; }
.steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step-n { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* две дороги */
.paths { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.path { display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.path-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.path-tag { align-self: flex-start; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(232,184,113,.4); border-radius: 999px; padding: 5px 13px; background: rgba(232,184,113,.08); }
.path-tag-adult { color: #f0c7d2; border-color: rgba(240, 199, 210, .45); background: rgba(240, 199, 210, .08); }
.path-body h3 { font-size: 1.4rem; }
.path-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.path-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.path-list li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--ink); }
.path-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold); opacity: .85; }
.paths-note { color: var(--muted); font-size: .93rem; margin: 22px 0 0; text-align: center; }

.panel-sub { margin: 22px 0 0; font-size: 1.02rem; }
.chips-warm li { border-color: rgba(240, 199, 210, .4); color: #f5d7de; background: rgba(240, 199, 210, .07); }
.tag-adult { color: #f0c7d2; border-color: rgba(240, 199, 210, .45); }

.split { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.panel h3 { margin-bottom: 10px; }
.panel > p { color: var(--muted); font-size: .95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; }
.chips li { border: 1px solid rgba(232, 184, 113, .35); color: var(--gold-soft); border-radius: 999px;
  padding: 7px 15px; font-size: .9rem; background: rgba(232, 184, 113, .07); }
.params { margin: 16px 0 0; }
.params > div { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: .94rem; }
.params > div:last-child { border-bottom: 0; }
.params dt { color: var(--muted); flex: 0 0 118px; }
.params dd { margin: 0; }

/* карточки кейсов */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; justify-content: space-between; }
.who { font-family: var(--serif); font-size: 1.2rem; }
.tag { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232,184,113,.35); border-radius: 999px; padding: 4px 11px; }
.card-body { color: var(--muted); font-size: .96rem; margin: 0; flex: 1; }
.card footer { color: var(--ink); font-size: .9rem; opacity: .85; }

/* фишки */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px;
  color: var(--gold); background: rgba(232, 184, 113, .1); border: 1px solid rgba(232, 184, 113, .25); }

/* оффер + форма */
.offer-in { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1.05fr; align-items: start; }
.price { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.price-row:last-child { border-bottom: 0; }
.price-first { background: rgba(232, 184, 113, .1); }
.price-note { color: var(--muted); font-size: .88rem; background: rgba(255,255,255,.02); }
.price-val { font-family: var(--serif); font-size: 1.16rem; color: var(--gold-soft); white-space: nowrap; }
.price-first .price-val { color: var(--gold); }
.soon p { background: rgba(255,255,255,.04); border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px;
  font-size: .93rem; color: var(--muted); margin: 0; }
.soon b { color: var(--ink); }

.form { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field-small { flex: 0 0 120px !important; }
label, .label { font-size: .88rem; color: var(--muted); }
input[type="text"], select, textarea {
  width: 100%; background: rgba(8, 12, 28, .8); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: var(--sans); font-size: 1rem; padding: 12px 14px; transition: border-color .2s, background .2s;
}
input[type="text"]::placeholder, textarea::placeholder { color: rgba(169, 167, 200, .6); }
input[type="text"]:focus, select:focus, textarea:focus { outline: none; border-color: rgba(232, 184, 113, .6); background: rgba(8, 12, 28, .95); }
textarea { resize: vertical; min-height: 76px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
option { background: #101733; color: var(--ink); }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
.hint.bad { color: var(--danger); }
.chips-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-inline label { cursor: pointer; }
.chips-inline input { position: absolute; opacity: 0; pointer-events: none; }
.chips-inline span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  font-size: .88rem; color: var(--muted); transition: all .18s; }
.chips-inline input:checked + span { border-color: rgba(232,184,113,.65); color: #2a1c07; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.chips-inline input:focus-visible + span { outline: 2px solid rgba(232,184,113,.5); outline-offset: 2px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: #e8b871; }
.form-msg { display: none; border-radius: 12px; padding: 12px 15px; font-size: .92rem; }
.form-msg.show { display: block; }
.form-msg.err { background: rgba(240, 138, 138, .12); border: 1px solid rgba(240, 138, 138, .4); color: #ffd9d9; }
.form-msg.ok { background: rgba(143, 214, 176, .12); border: 1px solid rgba(143, 214, 176, .4); color: #d8f5e5; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.foot a { color: var(--gold-soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* появление при прокрутке; прячем только когда JS точно работает (html.has-js),
   иначе без JS блоки остались бы невидимыми */
html.has-js .reveal:not(.in) { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split, .offer-in, .hero-grid, .how-grid, .paths { grid-template-columns: 1fr; }
  .top-nav a:not(.nav-cta) { display: none; }
  .moon { width: 170px; height: 170px; right: -30px; }
  .ill-hero { order: -1; }
  .how-grid .ill-story { order: -1; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .field-row { flex-direction: column; }
  .field-small { flex: 1 1 auto !important; }
  .hero-facts { gap: 8px 20px; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
