/* Токены взяты из дизайна project cool af: Manrope, лаймовый акцент, мягкие плашки. */
@font-face { font-family: Manrope; src: url("assets/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #fff;
  --ink: #222;
  --sub: #686868;
  --line: #e3e3e3;
  --soft: #f5f5f5;
  --stone: #efece5;
  --stone-2: #e4e0d6;
  --accent: #d7fa52;
  --accent-ink: #222;
  --mark: #d7fa52;
  --cta: #1b1b1b;
  --plate: #fff;
  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191919; --ink: #eee; --sub: #aaa; --line: #3a3a3a; --soft: #242424;
    --stone: #222220; --stone-2: #2c2b28; --mark: #4b5a12; --cta: #262626; --plate: #f1f0ec; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191919; --ink: #eee; --sub: #aaa; --line: #3a3a3a; --soft: #242424;
  --stone: #222220; --stone-2: #2c2b28; --mark: #4b5a12; --cta: #262626; --plate: #f1f0ec; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.muted { color: var(--sub); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.logo-mark { width: 24px; height: 24px; display: block; }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 13px; color: var(--sub); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .nav { display: none; } .top-actions { margin-left: auto; } }

/* Первый экран */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; color: var(--sub); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 .06em; }
.lead { max-width: 480px; margin: 26px 0 0; font-size: 17px; color: var(--sub); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stage { position: relative; aspect-ratio: 1 / .92; border-radius: var(--radius); background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--bg) 70%, transparent), transparent 60%), var(--stone); overflow: hidden; }
.plinth { position: absolute; background: var(--stone-2); border-radius: 6px; box-shadow: 0 30px 40px -30px #0004; }
.plinth-a { left: 14%; bottom: 0; width: 46%; height: 34%; }
.plinth-b { right: 9%; bottom: 0; width: 32%; height: 22%; }
.float-card { position: absolute; width: 46%; aspect-ratio: 1.586; border-radius: 14px; padding: 6%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 40px -18px #0006; animation: bob 6s ease-in-out infinite; }
.fc-chip { width: 18%; aspect-ratio: 1.3; border-radius: 5px; background: linear-gradient(135deg, #f4e7b0, #c9b26a); }
.fc-name { font-weight: 700; font-size: clamp(12px, 1.4vw, 17px); letter-spacing: -0.02em; }
.fc-1 { left: 10%; top: 18%; background: #222; color: #fff; transform: rotate(-9deg); }
.fc-2 { left: 34%; top: 30%; background: #ef3124; color: #fff; transform: rotate(4deg); animation-delay: -2s; }
.fc-3 { right: 6%; top: 12%; width: 38%; background: var(--accent); color: #222; transform: rotate(12deg); animation-delay: -4s; }
.fc-3 .fc-chip { background: #222; opacity: .85; }
@keyframes bob { 50% { translate: 0 -10px; } }
.stage-badge { position: absolute; left: 6%; bottom: 7%; display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--bg); font-size: 12px; color: var(--sub); box-shadow: 0 10px 30px -14px #0004; }
.stage-badge b { font-size: 26px; color: var(--ink); letter-spacing: -0.04em; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 32px; }
  .hero-stage { aspect-ratio: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .float-card, .ticker-track { animation: none !important; } }

/* Бегущая строка */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Секции */
.section { padding-top: 96px; }
.section-head { margin-bottom: 36px; }
.section-head h2, .cta h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; }

/* Витрина */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; }
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { margin-left: 6px; color: var(--sub); }
.chip[aria-selected="true"] small { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.group { padding-top: 32px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: 24px; }
.group-head span { font-size: 12px; color: var(--sub); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--soft); padding: 14px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px #0005; }
.card-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.9; border-radius: 14px; background: var(--stone); overflow: hidden; }
.mini-card { width: 56%; aspect-ratio: 1.586; border-radius: 10px; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 26px -14px #0007; transform: rotate(-6deg); transition: transform .3s; }
.card:hover .mini-card { transform: rotate(-2deg) scale(1.03); }
.mini-card b { font-size: 15px; letter-spacing: -0.02em; }
.mini-card i { width: 18%; aspect-ratio: 1.3; border-radius: 4px; background: linear-gradient(135deg, #f4e7b0, #c9b26a); }
.mini-card.is-account { width: 44%; aspect-ratio: .8; transform: rotate(0); align-items: flex-start; }
.mini-card.is-account i { width: 60%; height: 4px; aspect-ratio: auto; background: currentColor; opacity: .5; border-radius: 2px; }
.card-visual.is-logo { background: var(--plate); }
.offer-logo { width: 62%; max-height: 46%; object-fit: contain; transition: transform .3s; }
.card:hover .offer-logo { transform: scale(1.04); }
.offer-card-img { width: 60%; border-radius: 10px; box-shadow: 0 16px 26px -14px #0007; transform: rotate(-6deg); transition: transform .3s; }
.card:hover .offer-card-img { transform: rotate(-2deg) scale(1.03); }
.card-visual.is-logo .card-tag { background: var(--soft); }
.card-note { margin: -8px 0 18px; font-size: 11px; line-height: 1.5; color: var(--sub); }
.card-tag { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 8px; background: var(--bg); font-size: 11px; color: var(--sub); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 6px 4px; }
.card h4 { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; }
.card ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--sub); }
.card li { display: flex; gap: 10px; }
.card li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--ink); opacity: .35; }
.card .btn { margin-top: auto; width: 100%; }
.ad-label { margin: 10px 0 0; font-size: 10px; line-height: 1.5; color: var(--sub); text-align: center; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 26px 24px 28px; border-radius: var(--radius); background: var(--soft); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.steps h3 { margin: 40px 0 10px; font-size: 21px; }
.steps p { margin: 0; color: var(--sub); font-size: 14px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps h3 { margin-top: 24px; } }

/* Блок с анкетой */
.cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 6px); background: var(--cta); color: #f2f2f2; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: .9; filter: blur(2px); }
.cta > * { position: relative; z-index: 1; }
.cta p { max-width: 520px; margin: 20px 0 0; color: #b8b8b8; font-size: 16px; }
.eyebrow-dark { color: #b8b8b8; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta-note { font-size: 12px !important; margin: 0 !important; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta-actions { align-items: stretch; } .cta::after { width: 160px; height: 160px; right: -60px; top: -60px; } }

/* Подвал */
.footer { margin-top: 96px; padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-about { max-width: 360px; margin: 14px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { text-decoration: underline; }
.advertisers { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.advertisers summary { cursor: pointer; font-weight: 600; }
.advertisers ul { margin: 16px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; color: var(--sub); }
.footer-copy { margin: 24px 0 0; }

/* Анкета */
.form-dialog { width: min(720px, calc(100vw - 24px)); height: min(860px, calc(100dvh - 40px)); padding: 0; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--ink); overflow: hidden; }
.form-dialog[open] { display: flex; flex-direction: column; }
.form-dialog::backdrop { background: #17191270; backdrop-filter: blur(7px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.form-dialog iframe { flex: 1; width: 100%; border: 0; background: #fff; }
body:has(dialog[open]) { overflow: hidden; }
