/* «Вуаль города» — лендинг теста спроса. Палитра v2 «Сумеречный город» (Ф3, одобрена владельцем 18.11.2026).
   Источник значений: design/tokens/tokens.json ветки Ф3. Цвета карты и вуали героя — assets/js/theme.js. */
:root {
  /* цвета — landing/assets/css/tokens.css (генерируется из design/tokens/tokens.json) */
  --sky: var(--r-rare); --lilac: var(--r-epic); --coral-l: var(--coral); --sun-l: var(--tx);
  --f-display: 'Unbounded', 'Nunito', sans-serif;
  --f-body: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 5vw, 56px);
  --radius: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-0); color: var(--tx); font: 600 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--sun); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sun-l); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sun); color: var(--tx-on); padding: 8px 14px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

.hero__title b, .meter__value, h2 em, .form__done h3 {
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------------------------------------------------------- Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 17px/1 var(--f-body); text-decoration: none;
  transition: transform .25s var(--ease-bounce), box-shadow .3s ease, filter .3s ease;
}
.btn--sun { color: var(--tx-on); background: var(--sunset); box-shadow: 0 10px 30px -8px rgba(255, 107, 91, .6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--sun:hover { color: var(--tx-on); transform: translateY(-2px) scale(1.02); filter: saturate(1.1); box-shadow: 0 16px 40px -10px rgba(255, 107, 91, .75); }
.btn--sun:active { transform: translateY(1px) scale(.99); }
.btn--ghost { color: var(--sun); background: transparent; box-shadow: inset 0 0 0 2px var(--sun); }
.btn--ghost:hover { color: var(--sun-l); box-shadow: inset 0 0 0 2px var(--sun-l); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(ellipse at 60% 40%, #2A2168 0%, #1E1650 60%, #140F38 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; cursor: crosshair; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,15,56,.9) 0%, rgba(20,15,56,.62) 34%, rgba(20,15,56,0) 62%),
              linear-gradient(0deg, rgba(20,15,56,.95) 0%, rgba(20,15,56,0) 24%); }
.topbar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); font: 700 17px/1 var(--f-display); letter-spacing: -.01em; }
.brandmark img { width: 40px; height: 40px; border-radius: 11px; }
.brandmark:hover { color: var(--sun-l); }
.brandmark--small { font-size: 15px; }
.brandmark--small img { width: 30px; height: 30px; border-radius: 8px; }
.topbar__cta { font: 800 14px/1 var(--f-body); color: var(--tx); text-decoration: none; padding: 12px 18px; border-radius: 999px; background: rgba(42,33,104,.75); box-shadow: inset 0 0 0 1.5px var(--bg-4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.topbar__cta:hover { color: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); }

.hero__content { position: relative; z-index: 3; align-self: center; padding: 36px var(--gutter) 120px; max-width: 660px; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-on); background: var(--mint); padding: 9px 14px; border-radius: 999px; margin: 0 0 24px; }
.hero__title { font: 700 clamp(52px, 9.5vw, 116px)/.95 var(--f-display); letter-spacing: -.04em; }
.hero__title b { font-weight: 700; display: inline-block; padding-bottom: .04em; }
.hero__title span { display: block; color: var(--tx); }
.hero__script { font: 500 clamp(17px, 2vw, 21px)/1.35 var(--f-display); color: var(--sun); margin: 18px 0 20px; letter-spacing: -.01em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; color: var(--tx); max-width: 34ch; text-shadow: 0 1px 14px rgba(20,15,56,.9); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.hero__hint { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--tx-2); transition: opacity .6s ease; }
.hero__hint.is-done { opacity: 0; }
.hint__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,107,91,.6); } 80%, 100% { box-shadow: 0 0 0 16px rgba(255,107,91,0); } }

.hero__meter { position: absolute; z-index: 3; right: var(--gutter); bottom: 36px; pointer-events: none; display: grid; justify-items: end; gap: 4px; text-align: right;
  padding: 16px 20px 14px; border-radius: 22px; background: rgba(30,22,80,.8); box-shadow: inset 0 0 0 1.5px var(--bg-3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.meter__label { font: 800 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-2); }
.meter__value { font: 700 clamp(36px, 4.6vw, 54px)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.meter__sub { font-size: 13px; font-weight: 700; color: var(--tx-2); }
.hero__down { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--tx-2); padding: 10px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.hero__kicker, .hero__title, .hero__script, .hero__lead, .hero__actions, .hero__meter { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease-bounce) forwards; }
.hero__title { animation-delay: .12s; }
.hero__script { animation-delay: .45s; }
.hero__lead { animation-delay: .6s; }
.hero__actions { animation-delay: .75s; }
.hero__meter { animation-delay: 1.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Секции */
main { position: relative; background: linear-gradient(180deg, #140F38 0%, #1E1650 14%, #1E1650 86%, #140F38 100%); }
section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-head { max-width: 1120px; margin: 0 auto clamp(40px, 6vw, 72px); }
.eyebrow { display: inline-block; font: 800 13px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-l); margin-bottom: 16px; }
h2 { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -.035em; }
h2 em { font-style: normal; }

/* Механики */
.how { padding-bottom: clamp(24px, 4vw, 48px); }
.feature { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 7vw, 110px); padding: clamp(24px, 4vw, 48px) 0; }
.feature--flip .feature__phone { order: 2; }
.feature__phone { display: flex; justify-content: center; position: relative; }
.feature__phone::before { content: ""; position: absolute; inset: 6% -6%; z-index: 0; border-radius: 50%; filter: blur(30px); opacity: .5; }
.feature--veil .feature__phone::before { background: radial-gradient(closest-side, #B880FF, transparent); }
.feature--chest .feature__phone::before { background: radial-gradient(closest-side, #3FC1FF, transparent); }
.feature--pet .feature__phone::before { background: radial-gradient(closest-side, #FF9F43, transparent); }
.phone { position: relative; z-index: 1; width: min(280px, 72vw); aspect-ratio: 220 / 440; padding: 10px; border-radius: 42px; background: #0B0826;
  box-shadow: 0 0 0 2px var(--bg-3), 0 40px 80px -30px rgba(0,0,0,.8); transform: rotate(-3deg); transition: transform .5s var(--ease-bounce); }
.feature--flip .phone { transform: rotate(3deg); }
.feature:hover .phone { transform: rotate(0deg) scale(1.02); }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; }
.feature__num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font: 700 22px/1 var(--f-display); color: var(--tx-on); margin-bottom: 20px; transform: rotate(-6deg); }
.feature--veil .feature__num { background: var(--lilac); }
.feature--chest .feature__num { background: var(--sky); }
.feature--pet .feature__num { background: var(--sun); }
.feature__text h3 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; color: var(--tx); margin-bottom: 18px; }
.feature__text p { color: var(--tx-2); max-width: 46ch; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; color: var(--tx); font-size: 16px; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231E1650' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* Кому */
.who__grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 30px 28px 32px; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--bg-3); transition: transform .4s var(--ease-bounce); }
.card:hover { transform: translateY(-4px) rotate(-.6deg); }
.card__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 30px; height: 30px; }
.card:nth-child(1) .card__icon { background: rgba(75,227,176,.18); color: var(--mint); }
.card:nth-child(2) .card__icon { background: rgba(255,107,91,.18); color: var(--coral); }
.card:nth-child(3) .card__icon { background: rgba(63,193,255,.18); color: var(--sky); }
.card h3 { font-size: 20px; letter-spacing: -.02em; color: var(--tx); margin-bottom: 12px; }
.card p { color: var(--tx-2); font-size: 16px; }

/* Принципы */
.rules { padding-top: 0; }
.rules__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rules__list li { padding: 24px 22px 26px; color: var(--tx-2); font-size: 15px; border-radius: 22px; background: rgba(42,33,104,.5); box-shadow: inset 0 0 0 1.5px var(--bg-3); }
.rules__list b { display: block; color: var(--sun); font: 700 16px/1.3 var(--f-display); letter-spacing: -.02em; margin-bottom: 8px; }

/* Лист ожидания */
.waitlist { position: relative; overflow: hidden; }
.waitlist::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 15% 30%, rgba(255,107,91,.16), transparent 70%), radial-gradient(ellipse 45% 55% at 90% 80%, rgba(184,128,255,.16), transparent 70%); }
.waitlist__inner { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.waitlist__intro p { color: var(--tx-2); margin-top: 22px; max-width: 40ch; font-size: 18px; }
.waitlist__intro .waitlist__script { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1.3 var(--f-display); color: var(--sun); margin-top: 28px; }
.waitlist__intro .waitlist__script img { width: 24px; height: 24px; }
.waitlist__pet { width: 150px; margin-top: 30px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); }

.form { position: relative; padding: clamp(24px, 4vw, 40px); border-radius: 30px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--bg-4), 0 30px 80px -40px rgba(255,107,91,.45); }
.form__body { display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field__label { font-size: 16px; color: var(--tx); font-weight: 800; line-height: 1.45; padding: 0; }
.field input { width: 100%; height: 58px; padding: 0 20px; border-radius: 18px; font: 700 17px/1 var(--f-body); color: var(--tx); background: var(--bg-1); border: 2px solid var(--bg-3); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--tx-mute); }
.field input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,210,63,.2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error, .form__error { color: var(--danger); font-size: 15px; font-weight: 700; }
.field__error:empty, .form__error:empty { display: none; }
.price { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.price__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 8px 12px; border-radius: 18px; background: var(--bg-1); box-shadow: inset 0 0 0 2px var(--bg-3); color: var(--tx); font-size: 16px; font-weight: 800; transition: transform .25s var(--ease-bounce), background .2s, box-shadow .2s, color .2s; }
.chip:hover span { box-shadow: inset 0 0 0 2px var(--bg-4); }
.chip input:checked + span { background: var(--sun); color: var(--tx-on); box-shadow: none; transform: scale(1.03); }
.chip input:focus-visible + span { outline: 3px solid var(--sun-l); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--tx-2); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 8px; border: 2px solid var(--bg-4); background: var(--bg-1); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 11px; height: 6px; border: 3px solid var(--tx-on); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--mint); border-color: var(--mint); }
.check input:checked::after { opacity: 1; }
.check--soft { color: var(--tx-mute); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 20px 0 10px; }
.form__done img { width: 140px; height: auto; animation: hop 1s var(--ease-bounce) both; }
@keyframes hop { from { transform: translateY(24px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.form__done h3 { font-size: 30px; letter-spacing: -.03em; }
.form__done p { color: var(--tx-2); max-width: 32ch; }
.form__shared { font-size: 15px; color: var(--mint); font-weight: 800; }
.form__done:focus { outline: none; }
.form__done[hidden], .form__body[hidden] { display: none; }

/* Вопросы */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq .section-head { max-width: 820px; }
details { border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--bg-3); padding: 0 24px; }
details[open] { box-shadow: inset 0 0 0 1.5px var(--bg-4); }
summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 700 clamp(15px, 1.7vw, 18px)/1.35 var(--f-display); letter-spacing: -.015em; color: var(--tx); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: var(--tx-on); font: 800 22px/1 var(--f-body); transition: transform .3s var(--ease-bounce); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--tx-2); padding: 0 0 24px; max-width: 64ch; }

/* Подвал */
.footer { padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom)); background: var(--bg-0); }
.footer__row { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; }
.footer__links a { color: var(--tx-2); text-decoration: none; }
.footer__links a:hover { color: var(--sun); }
.footer__studio { max-width: 1120px; margin: 22px auto 0; font-size: 13px; color: var(--tx-mute); }
.footer__studio a { color: var(--tx-2); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease-bounce); }
.reveal.is-in { opacity: 1; transform: none; }

/* ?still — без вступительных анимаций (скриншоты, запись роликов) */
.still .hero__kicker, .still .hero__title, .still .hero__script, .still .hero__lead, .still .hero__actions, .still .hero__meter { animation: none; opacity: 1; transform: none; }
.still .reveal { opacity: 1; transform: none; transition: none; }
@media (min-width: 641px) { .still .hero { min-height: 900px; height: 900px; } }

/* ---------------------------------------------------------------- Адаптив */
@media (max-width: 900px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .feature--flip .feature__phone { order: 0; }
  .who__grid { grid-template-columns: 1fr; }
  .rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .waitlist__inner { grid-template-columns: 1fr; }
  .waitlist__pet { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__shade { background: linear-gradient(0deg, rgba(20,15,56,.96) 0%, rgba(20,15,56,.78) 45%, rgba(20,15,56,.12) 75%, rgba(20,15,56,.4) 100%); }
  .hero__content { align-self: end; padding-bottom: 170px; }
  .hero__meter { left: var(--gutter); right: auto; bottom: 62px; justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; padding: 12px 16px; }
  .meter__label { grid-column: 1 / -1; }
  .meter__value { font-size: 32px; }
  .hero__down { display: none; }
  .topbar__cta { padding: 10px 14px; font-size: 13px; }
  .rules__list { grid-template-columns: 1fr; }
  .feature__text p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
