/* Tab Audit — страница лид-магнита. Цвета — переменные из /theme.css. */

/* ── Первый экран ── */
/* Обложка (задание 06, вместо страуса): одна для дня и ночи; заголовок — на небе, тёмными буквами (контраст —
   scripts/contrast.mjs); мягкий светлый градиент только по небу, снизу кадр уходит в цвет страницы */
.hero { position: relative; height: min(76vh, 640px); min-height: 420px; overflow: hidden; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 50% 30%; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 240, 250, .5) 0%, rgba(232, 240, 250, .22) 60%, rgba(232, 240, 250, 0) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, transparent, var(--bg-1) 94%); }
[data-theme="day"] .hero::after { background: linear-gradient(180deg, rgba(246,241,233,0), #F6F1E9 94%); }
.hero .brand { position: absolute; top: 18px; left: var(--gutter); z-index: 2; color: #1B2340; text-shadow: 0 1px 10px rgba(255,255,255,.6); }
.hero-title { position: absolute; left: var(--gutter); right: var(--gutter); top: 74px; z-index: 2; margin: 0; text-align: center; color: #1B2340; font-size: 46px; text-shadow: 0 1px 14px rgba(255,255,255,.45); }
.intro { position: relative; margin-top: -40px; padding-bottom: 8px; z-index: 2; }
.intro h1 { margin: 0 0 6px; }
.intro .question { font: 400 22px/1.25 var(--font-head); font-variation-settings: var(--soft); font-style: italic; color: var(--quote); margin: 0 0 14px; }
.intro .you-get { color: var(--ink-soft); }
.facts { font: 800 13.5px/1.3 var(--font-body); letter-spacing: .03em; color: var(--muted); margin: 14px 0 12px; }
.how { font-size: 15.5px; line-height: 1.45; color: var(--muted); margin: 0 0 18px; }
.intro .privacy { display: inline-block; margin: 16px 0 26px; font-size: 13.5px; color: var(--muted); padding: 10px 4px; }

/* ── Шаги ── */
.steps { position: relative; padding: 14px 0 40px; min-height: 100vh; min-height: 100dvh; color: var(--s-ink); }
.steps .brand { color: var(--s-ink); }
.steps-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.progress { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 16px 0 22px; }
.progress .moon { width: 24px; height: 24px; }
.progress .moon .m-dark { fill: var(--s-moon-dark); stroke: var(--s-moon-line); }
.progress .moon .m-lit { fill: var(--s-moon-lit); }
.progress .moon.now { filter: drop-shadow(0 0 7px rgba(242, 118, 93, .75)); }
.step-label { font: 800 13px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--s-accent); margin: 0 0 6px; }
.step-title { font-size: 30px; line-height: 1.1; margin: 0 0 8px; color: var(--s-ink); }
.step-caption { color: var(--s-muted); font-size: 16px; margin: 0 0 18px; }
.line { border: 1px solid var(--s-card-line); background: var(--s-card); border-radius: var(--radius); padding: 18px 16px 16px; margin: 0 0 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity var(--t-quick) ease, transform var(--t-quick) ease; }
.line legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font: 600 18.5px/1.35 var(--font-head); font-variation-settings: var(--soft); color: var(--s-ink); }
.line legend + * { clear: both; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pills.four { grid-template-columns: repeat(2, 1fr); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border-radius: 999px;
  border: 1.5px solid var(--s-pill-line); color: var(--s-pill-ink); font: 800 14.5px/1.15 var(--font-body);
  transition: background var(--t-quick) ease, color var(--t-quick) ease, border-color var(--t-quick) ease, transform var(--t-quick) ease; }
.pill input:checked + span { background: var(--s-sel-bg); color: var(--s-sel-ink); border-color: var(--s-sel-bg); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.pill input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.pill input:active + span { transform: scale(.97); }
.line.answered { opacity: .96; }
.step-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.step-nav .btn-link { color: var(--s-ink); }
.evening-intro { font: 400 21px/1.3 var(--font-head); font-variation-settings: var(--soft); color: var(--s-ink); margin: 0 0 18px; }

/* ── Результат ── */
.result { padding-top: 14px; padding-bottom: 10px; }
.result-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 12px; }
.type-name { font-size: 40px; line-height: 1.04; margin: 0 0 14px; }
.type-img { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.4; margin: 0 0 18px; box-shadow: var(--shadow); background: var(--card-solid); }
.type-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.type-line { margin: 0 0 12px; }
.mix-line { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 20px; padding-left: 14px; border-left: 3px solid var(--coral); }
.result h2 { font-size: 24px; margin: 0 0 12px; }
.result .card { padding: 22px 20px; margin-bottom: 14px; }
.scenes { list-style: none; margin: 0; padding: 0; }
.scenes li { position: relative; padding: 0 0 12px 30px; }
.scenes li:last-child { padding-bottom: 0; }
.scenes li svg { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; }
.map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 8px 0 14px; text-align: center; }
.map .moon { width: 46px; height: 46px; margin: 0 auto 8px; }
.map span { display: block; font: 800 11.5px/1.25 var(--font-body); color: var(--muted); }
.map-caption { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.catch { font-weight: 800; margin: 0; }
.numbers { font: 400 19px/1.45 var(--font-head); font-variation-settings: var(--soft); margin: 0 0 10px; }
.trio h3, .duo h3 { font: 800 12.5px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 18px 0 8px; }
.trio h3:first-child, .duo h3:first-child { margin-top: 0; }
.moments { margin: 0; padding-left: 20px; }
.moments li { margin: 0 0 6px; }
.step-card { border: 1.5px solid rgba(242, 118, 93, .55); box-shadow: 0 0 0 4px rgba(242, 118, 93, .08); }
.bridge { text-align: center; padding: 26px 22px; }
.bridge h2 { font-size: 26px; }
.bridge .price { font: 800 22px/1.2 var(--font-body); margin: 16px 0 14px; }
.bridge .btn { margin-top: 4px; }
.bridge .btn-link { margin-top: 4px; }
.small-ideas { text-align: center; font-size: 17px; margin: 6px 0 18px; }
.small-ideas a { font-weight: 800; }

/* «Забери с собой» */
.take h2 { margin-bottom: 14px; }
.walls { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.wall { flex: 0 0 150px; scroll-snap-align: start; text-align: center; }
.wall a.prev { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1290 / 2796; background: var(--card-solid); box-shadow: var(--shadow); }
.wall a.prev img { width: 100%; height: 100%; object-fit: cover; }
.for-you { position: absolute; top: 8px; left: 8px; background: var(--coral); color: var(--on-coral); font: 800 11.5px/1 var(--font-body); padding: 6px 9px; border-radius: 999px; box-shadow: 0 2px 10px var(--glow); }
.wall .btn-soft { width: 100%; min-height: 48px; margin-top: 10px; font-size: 14.5px; padding: 0 10px; }
.story { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin: 10px 0 14px; }
.story a.prev { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; box-shadow: var(--shadow); background: var(--card-solid); }
.story a.prev img { width: 100%; height: 100%; object-fit: cover; }
.take .btn-soft { width: 100%; }
.hint { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.come-back p { margin-bottom: 14px; }
.come-back .row { display: flex; gap: 10px; flex-wrap: wrap; }
.come-back .row > * { flex: 1 1 160px; }
.footnote { text-align: center; font-size: 14.5px; color: var(--muted); margin: 22px 8px 6px; font-style: italic; }

@media (min-width: 700px) {
  .hero { height: 560px; }
  /* широкий экран: обложка 16:9 — небо с месяцем сверху, крыльцо с девушкой снизу */
  .hero-art img { object-position: 50% 42%; }
  .hero-title { top: 84px; font-size: 58px; }
  .type-name { font-size: 46px; }
  .wall { flex-basis: 170px; }
}
