/* Kelo — лендинг для клубов настольных игр. Токены — docs/design/tokens.json («Мята и лайм»). */
:root {
  --green-50: #EEF8F1;
  --green-100: #D9F7E9;
  --green-300: #77E4B2;
  --green-500: #1F9D63;
  --green-700: #15603E;
  --green-800: #0D3B2B;
  --lime-500: #D4F25A;
  --n-0: #FFFFFF;
  --n-25: #F7F8F2;
  --n-100: #E8EEEA;
  --n-200: #D3DDD7;
  --n-500: #606E67;
  --n-600: #4D5A53;
  --n-950: #0C1612;
  --apricot-50: #FFF0DF;
  --apricot-700: #A9530F;
  --garnet-50: #FBE9E4;
  --garnet-700: #B8322A;

  --bg-canvas: var(--n-25);
  --bg-raised: var(--n-0);
  --text: var(--n-950);
  --text-2: var(--n-600);
  --text-3: var(--n-500);
  --border: var(--n-200);
  --deep: var(--green-800);
  --accent: var(--lime-500);
  --focus: var(--green-500);
  --error: var(--garnet-700);

  --shadow-card: 0 1px 3px #0D3B2B14, 0 6px 18px #0D3B2B1A;
  --shadow-raised: 0 1px 3px #0D3B2B14, 0 10px 28px #0D3B2B1F;
  --shadow-sticker: 3px 3px 0 #0D3B2B;

  --r-card: 24px;
  --r-tile: 16px;
  --gutter: 24px;
  --section-y: 48px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg-canvas); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--deep); color: #fff; padding: 8px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* Typography */
.display { font-weight: 900; font-size: 44px; line-height: 1.02; letter-spacing: -.035em; color: var(--deep); }
.display--md { font-size: 36px; }
.grad { background: linear-gradient(92deg, var(--green-500) 0%, #6CC24A 45%, #E58A2B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; color: var(--deep); }
.h2--big { font-size: 30px; }
.h2--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.h3 { font-weight: 800; font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 23px; font-weight: 700; }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.note, .muted { font-size: 14px; line-height: 20px; color: var(--text-2); }
.note--center, .center { text-align: center; }
.center { display: flex; justify-content: center; }
.muted.center { display: block; margin-top: 24px; }
.muted a { color: var(--green-700); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--n-950); color: #fff; box-shadow: 0 6px 18px #0C161226; }
.btn--primary:hover { background: var(--deep); }
.btn--accent { background: var(--accent); color: var(--deep); }
.btn--accent:hover { background: #C8E84A; }
.btn--ghost { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn--text { background: transparent; color: var(--deep); padding: 0 12px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 999px; }
.btn--block { width: 100%; }
.show-sm { display: inline; } .hide-sm { display: none; }

/* Header: floating pill */
.header { position: sticky; top: 0; z-index: 50; padding: 12px 12px 0; pointer-events: none; }
.header__pill { pointer-events: auto; max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; background: #ffffffd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 1px 2px #0D3B2B14, 0 8px 28px #0D3B2B14; transition: box-shadow .2s; }
.header.is-scrolled .header__pill { box-shadow: 0 1px 2px #0D3B2B1F, 0 12px 32px #0D3B2B24; }
.header__logo img { width: 88px; height: 27px; }
.header__nav { display: none; }

/* Sections */
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding-top: 0; }

/* Soft glow background */
.glow { position: absolute; inset: -80px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 18% 30%, #D9F7E9 0%, transparent 70%), radial-gradient(35% 30% at 85% 25%, #FFF0DF 0%, transparent 70%), radial-gradient(40% 30% at 55% 70%, #F2FBD0 0%, transparent 70%); filter: blur(10px); }
.glow--bottom { inset: auto 0 -40px; top: 0; height: 100%; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 40px 0 32px; overflow: hidden; }
.hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 760px; }
.hero__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-card); font-size: 14px; font-weight: 600; color: var(--text-2); }
.segline { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--deep); margin-top: -6px; }
.rotator { display: inline-block; color: #E58A2B; transition: opacity .25s, transform .25s; }
.rotator.is-out { opacity: 0; transform: translateY(8px); }
.hero .lead { max-width: 560px; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }

/* Poster wall (Luma-like) */
.wall { display: none; }
.poster { border-radius: 18px; background: #fff; padding: 6px; box-shadow: 0 2px 4px #0D3B2B14, 0 18px 40px #0D3B2B26; }

/* Afisha marquee */
.marquee { overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 8px 0 48px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__row { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ev { position: relative; width: 180px; flex: none; background: #fff; border-radius: 18px; padding: 6px 6px 12px; box-shadow: var(--shadow-card); }
.ev img { width: 100%; border-radius: 13px; aspect-ratio: 1; }
.ev__tag { position: absolute; top: 14px; left: 14px; padding: 3px 9px; border-radius: 999px; background: #ffffffe6; font-size: 11px; font-weight: 700; color: var(--deep); }
.ev b { display: block; margin: 10px 6px 0; font-size: 14px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev small { display: block; margin: 2px 6px 0; font-size: 12px; color: var(--text-3); }

/* Segments */
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.seg { background: #fff; border-radius: 20px; padding: 6px 6px 14px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.seg:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow-raised); }
.seg img { width: 100%; aspect-ratio: 1; border-radius: 15px; }
.seg div { padding: 12px 8px 0; }
.seg p { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.seg:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 4px; padding-bottom: 6px; }
.seg:last-child div { padding: 0 8px; }

/* Pains */
.pains { display: grid; gap: 16px; margin-top: 32px; }
.pain { text-align: center; padding: 8px 8px 0; }
.pain__art { position: relative; display: inline-flex; margin-bottom: 14px; }
.pain__dot, .pain__tile { display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.pain__dot { width: 64px; height: 64px; border-radius: 50%; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg-canvas); }
.pain__tile { width: 64px; height: 64px; border-radius: 16px; margin-left: -14px; transform: rotate(8deg); font-size: 16px; }
.pain p { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--text-2); }
.tile--lime { background: var(--accent); color: var(--deep); }
.tile--mint { background: var(--green-100); color: var(--green-700); }
.tile--apricot { background: #FFD9B0; color: var(--apricot-700); }
.tile--deep { background: var(--deep); color: var(--accent); }

/* Feature rows (alternating) */
.row { display: grid; gap: 28px; }
.row__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.panel { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 20px 0; height: 460px; display: flex; justify-content: center; }
.panel--mint { background: radial-gradient(70% 60% at 30% 20%, #F2FBD0 0%, transparent 70%), linear-gradient(160deg, #D9F7E9, #BFEFD6); }
.panel--apricot { background: radial-gradient(70% 60% at 70% 20%, #FFF4E0 0%, transparent 70%), linear-gradient(160deg, #FFE4C7, #FBD3C4); }
.panel .phone { width: 250px; }
.phone { width: 244px; margin: 0 auto; filter: drop-shadow(0 18px 36px #0D3B2B33); }
.sticker { position: absolute; z-index: 2; left: 18px; top: 22px; transform: rotate(-7deg); background: var(--accent); color: var(--deep); font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow-sticker); }
.float-card { position: absolute; z-index: 2; bottom: 36px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 16px; box-shadow: 0 2px 4px #0D3B2B14, 0 14px 30px #0D3B2B26; font-size: 14px; animation: bob 5s ease-in-out infinite; }
.float-card b { display: block; color: var(--deep); }
.float-card small { display: block; color: var(--text-3); font-size: 12px; }
.float-card--right { right: 14px; transform: rotate(3deg); }
.float-card--left { left: 14px; transform: rotate(-3deg); }
@keyframes bob { 50% { translate: 0 -6px; } }
.ava { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--deep); font-weight: 800; box-shadow: 0 0 0 3px #fff; }
.ava--sm { width: 36px; height: 36px; font-size: 14px; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 16px; }
.step__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--deep); font-weight: 900; font-size: 15px; transform: rotate(-6deg); }
.step p { margin-top: 2px; font-size: 15px; line-height: 21px; color: var(--text-2); }

/* Features: illustrated cards */
.features { display: grid; gap: 16px; margin: 32px 0 24px; }
.fcard { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.fcard__art { height: 150px; display: grid; place-items: center; }
.fcard__body { padding: 18px 20px 22px; }
.fcard__body p { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--text-2); }
.art--mint { background: linear-gradient(160deg, #EEF8F1, #D9F7E9); color: var(--green-700); }
.art--lime { background: linear-gradient(160deg, #F7FCE0, #E9F7A8); color: var(--deep); }
.art--apricot { background: linear-gradient(160deg, #FFF4E6, #FFE0C2); color: var(--apricot-700); }
.art--deep { background: var(--deep); color: var(--accent); }
.icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--xl { width: 64px; height: 64px; stroke-width: 1.4; padding: 14px; background: #ffffffb3; border-radius: 20px; box-sizing: content-box; transform: rotate(-6deg); }
.art--deep .icon--xl { background: #ffffff14; }
.art-count { font-size: 56px; font-weight: 900; letter-spacing: -.04em; color: var(--deep); }
.art-count small { font-size: 22px; color: var(--green-700); }
.art-avas { display: flex; }
.art-avas .ava { margin-left: -8px; background: #fff; }
.art-avas .ava:nth-child(2) { background: var(--accent); }
.art-avas .ava:nth-child(3) { background: var(--green-100); }
.art-avas .ava:last-child { background: var(--deep); color: #fff; font-size: 12px; }
.art-bubble { max-width: 220px; padding: 12px 16px; background: #fff; border-radius: 18px 18px 18px 4px; font-size: 14px; font-weight: 600; color: var(--deep); box-shadow: var(--shadow-card); transform: rotate(-3deg); }
.soon { background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.soon ul { display: flex; flex-direction: column; gap: 8px; }
.soon li { position: relative; padding-left: 16px; font-size: 15px; line-height: 20px; }
.soon li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }
.soon + .note { margin-top: 14px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; line-height: 17px; font-weight: 700; }
.badge--info { background: var(--green-50); color: var(--green-700); }
.badge--warn { background: var(--apricot-50); color: var(--apricot-700); }

/* Players: deep card */
.deep { position: relative; overflow: hidden; background: var(--deep); color: #fff; border-radius: 32px; padding: 36px 22px 0; display: grid; gap: 28px; }
.deep__dots { position: absolute; right: -40px; top: -20px; width: 420px; opacity: .55; pointer-events: none; }
.deep__text { position: relative; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.deep .display, .deep .lead, .deep .points { color: #fff; }
.deep .lead { opacity: .85; }
.deep__media { position: relative; display: flex; justify-content: center; height: 420px; overflow: hidden; }
.deep__media .phone { width: 270px; }
.points { display: flex; flex-direction: column; gap: 12px; }
.points li { position: relative; padding-left: 22px; font-size: 16px; line-height: 22px; }
.points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

/* Offer */
.offer-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 720px; margin: 0 auto; }
.offer { display: grid; gap: 14px; margin: 32px 0; }
.ocard { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-card); }
.ocard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; transform: rotate(-6deg); }
.ocard p { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--text-2); }

/* FAQ */
.faq { max-width: 780px; }
.faq__list { margin-top: 28px; background: #fff; border-radius: 24px; padding: 4px 22px; box-shadow: var(--shadow-card); }
details { border-bottom: 1px solid var(--n-100); }
details:last-child { border-bottom: 0; }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .icon { transition: transform .2s; color: var(--text-2); }
details[open] summary .icon { transform: rotate(180deg); }
details p { padding: 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 22px; }

/* Apply */
.section--apply { isolation: isolate; overflow: hidden; }
.apply__head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 28px; }
.apply__points { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.apply__points li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 21px; color: var(--text-2); }
.apply__points li .icon { margin-top: 1px; }
.apply__points .icon { width: 20px; height: 20px; color: var(--green-700); }
.apply__points a { color: var(--green-700); }
.section--apply .form-wrap { max-width: 600px; margin: 0 auto; }

.card { background: var(--bg-raised); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Form */
.form-wrap { position: relative; }
.doodle-spark { position: absolute; right: -10px; top: -26px; z-index: 1; width: 34px; }
.lead-form, .lead-done { padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-raised); }
.lead-form > .muted { margin-top: -12px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field[hidden], [data-role-only][hidden] { display: none; }
.field > label, legend { font-size: 14px; line-height: 20px; font-weight: 600; padding: 0; }
legend { margin-bottom: 8px; }
input[type="text"], input[type="url"], input[type="tel"] { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; font: 400 16px/1 var(--font); color: var(--text); }
input::placeholder { color: var(--text-3); }
input[type="text"]:focus, input[type="url"]:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px #1F9D6333; }
.field.is-error input[type="text"], .field.is-error input[type="url"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13px; line-height: 18px; }
.field__error:empty { display: none; }
.field__hint { color: var(--text-3); font-size: 13px; line-height: 18px; margin-top: -4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--n-100); border-radius: 999px; }
.segmented span { display: grid; place-items: center; min-height: 40px; padding: 0 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: center; }
.segmented input:checked + span { background: #fff; color: var(--deep); box-shadow: var(--shadow-card); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 400 !important; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--deep); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.banner { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--garnet-50); color: var(--text); }
.banner[hidden] { display: none; }
.banner--info { background: var(--green-50); }
.banner__icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--error); color: #fff; font-weight: 800; font-size: 13px; }
.banner--info .banner__icon { background: var(--green-500); }
.banner__text { font-size: 14px; line-height: 20px; color: var(--text-2); }
.banner a { color: var(--green-700); }

.spinner { display: none; width: 20px; height: 20px; border: 2.5px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .btn__label { display: none; }
.is-loading .spinner { display: block; }
.is-loading fieldset, .is-loading input { pointer-events: none; }
.fine { text-align: center; font-size: 13px; line-height: 18px; color: var(--text-3); }
.fine a { color: var(--green-700); }
.lead-done { align-items: flex-start; }
.lead-done[hidden] { display: none; }
.lead-done p { color: var(--text-2); }
.lead-done .btn--text { padding: 0; }

/* Consent dialog */
.consent { max-width: 560px; width: calc(100% - 32px); max-height: calc(100vh - 64px); border: 0; border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-raised); color: var(--text); }
.consent::backdrop { background: #0C161266; }
.consent__body { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 21px; color: var(--text-2); }
.consent__body a { color: var(--green-700); }

/* Footer: dark rounded box with big wordmark */
.footer { padding: 0 12px 12px; }
.footer__box { background: var(--n-950); color: #fff; border-radius: 28px; padding: 36px 24px 24px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer__cols > div { grid-column: 1 / -1; }
.footer__cols h3 { font-size: 15px; margin-bottom: 10px; }
.footer__cols p { font-size: 14px; line-height: 20px; opacity: .75; max-width: 300px; }
.footer__cols nav { display: flex; flex-direction: column; gap: 8px; }
.footer__cols a { color: #ffffffcc; font-size: 14px; text-decoration: none; }
.footer__cols a:hover { color: var(--accent); }
.footer__word { width: 100%; height: auto; margin: 44px 0 12px; }
.footer__legal { font-size: 12px; opacity: .55; }

/* Tablet ≥ 768 */
@media (min-width: 768px) {
  :root { --gutter: 48px; }
  .segments { grid-template-columns: repeat(3, 1fr); }
  .seg:last-child { grid-column: auto; display: block; padding-bottom: 14px; }
  .seg:last-child div { padding: 12px 8px 0; }
  .pains { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .features, .offer { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .panel { height: 520px; }
  .panel .phone { width: 290px; }
  .ev { width: 210px; }
  .footer__cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__cols > div { grid-column: auto; }
}

/* Desktop ≥ 1024 */
@media (min-width: 1024px) {
  :root { --gutter: 24px; --section-y: 112px; }
  .show-sm { display: none; } .hide-sm { display: inline; }
  .header { padding-top: 16px; }
  .header__nav { display: flex; gap: 28px; }
  .header__nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-2); }
  .header__nav a:hover { color: var(--deep); }

  .hero { min-height: 820px; padding: 150px 0 120px; display: flex; align-items: center; }
  .hero__text { gap: 22px; }
  .display { font-size: 76px; }
  .display--md { font-size: 56px; line-height: 1.04; }
  .segline { font-size: 30px; }
  .h2 { font-size: 34px; }
  .h2--big { font-size: 48px; letter-spacing: -.03em; }
  .h3 { font-size: 26px; }

  .wall { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .poster { position: absolute; width: var(--w, 150px); transform: rotate(var(--r, 0deg)); animation: drift 9s ease-in-out infinite; animation-delay: var(--d, 0s); }
  @keyframes drift { 50% { translate: 0 -10px; } }
  .p1  { --w: 150px; left: 5%;  top: 110px; --r: -6deg; }
  .p2  { --w: 190px; left: 11%; top: 300px; --r: 4deg;  --d: -2s; }
  .p3  { --w: 130px; left: 2%;  top: 540px; --r: -3deg; --d: -4s; }
  .p4  { --w: 140px; left: 20%; top: 600px; --r: 7deg;  --d: -1s; }
  .p5  { --w: 120px; left: 22%; top: 120px; --r: 5deg;  --d: -5s; opacity: .9; }
  .p6  { --w: 110px; left: 30%; top: 690px; --r: -8deg; --d: -3s; opacity: .85; }
  .p7  { --w: 160px; right: 6%;  top: 100px; --r: 6deg; --d: -2.5s; }
  .p8  { --w: 190px; right: 11%; top: 330px; --r: -4deg; --d: -6s; }
  .p9  { --w: 130px; right: 2%;  top: 560px; --r: 5deg; --d: -1.5s; }
  .p10 { --w: 140px; right: 21%; top: 610px; --r: -7deg; --d: -3.5s; }
  .p11 { --w: 110px; right: 23%; top: 130px; --r: -5deg; --d: -4.5s; opacity: .9; }
  .p12 { --w: 110px; right: 31%; top: 700px; --r: 8deg; --d: -.5s; opacity: .85; }

  .ev { width: 230px; }
  .segments { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
  .pains { grid-template-columns: repeat(4, 1fr); margin-top: 48px; }

  .row { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
  .row--flip .row__text { order: 2; }
  .row__text { gap: 28px; }
  .panel { height: 600px; padding-top: 56px; border-radius: 36px; }
  .panel .phone { width: 300px; }
  .float-card--right { right: 36px; bottom: 80px; }
  .float-card--left { left: 36px; bottom: 80px; }

  .features { grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 28px; }
  .fcard__art { height: 180px; }
  .soon { flex-direction: row; align-items: center; gap: 24px; padding: 20px 24px; }
  .soon ul { flex-direction: row; gap: 24px; flex: 1; }
  .soon li { flex: 1; }

  .deep { grid-template-columns: 1fr 420px; gap: 48px; padding: 72px 72px 0; border-radius: 40px; align-items: end; }
  .deep__text { padding-bottom: 72px; }
  .deep__media { height: 560px; }
  .deep__media .phone { width: 320px; }

  .offer { grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 48px 0 40px; }
  .apply__points { flex-direction: row; gap: 28px; }

  .footer { padding: 0 24px 24px; }
  .footer__box { padding: 56px 64px 32px; border-radius: 36px; }
  .footer__word { margin-top: 80px; }
}

/* Политика конфиденциальности */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 17px; line-height: 24px; font-weight: 700; margin-top: 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; line-height: 23px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Заявка через внешнюю анкету */
.apply-card { position: relative; max-width: 600px; margin: 0 auto; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-raised); }
.apply-card__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.apply-card [hidden] { display: none; }
@media (min-width: 768px) { .apply-card { padding: 40px; } }
