/* Gelancha — лендинг, версия 2 (ноябрь 2026).
   Цвета — тема приложения (src/constants/theme.ts): светлая белая с фиолетовым
   действием, тёмная графитовая с лаймом. Шрифты — ниже, @font-face (Onest, Unbounded). */

/* ---------- Шрифты (свои копии, OFL — fonts/OFL-*.txt) ---------- */
/* ---------- Шрифты (свои копии Google Fonts, OFL — fonts/OFL-*.txt) ---------- */
/* Onest cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-cyrillic-ext.woff2?v=8b55db3131') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2?v=c3f4223046') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Onest math */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-math.woff2?v=27a244d81d') format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* Onest symbols */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-symbols.woff2?v=5977fb8a28') format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
/* Onest latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-latin-ext.woff2?v=f72bdc7559') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Onest latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-latin.woff2?v=cc61cbd632') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded cyrillic-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/unbounded-cyrillic-ext.woff2?v=5501f71360') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Unbounded cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/unbounded-cyrillic.woff2?v=c3880f0c5a') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/unbounded-latin-ext.woff2?v=ed84482df7') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Unbounded latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/unbounded-latin.woff2?v=d7f07f8a30') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --surface: #F5F7FB;
  --text: #0D1220;
  --muted: #4A5468;
  --line: #E3E8F0;
  --action: #64298A;
  --on-action: #FFFFFF;
  --butter: #F6DE79;
  --lime: #A6E879;
  --ink: #0D1220;
  --ink-surface: #161C2B;
  --ink-line: #26304A;
  --ink-muted: #B4BDCE;
  --success: #237C47;
  --hero: #64298A;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1220;
    --surface: #161C2B;
    --text: #F2F5FA;
    --muted: #B4BDCE;
    --line: #26304A;
    --action: #A6E879;
    --on-action: #0D1220;
    --success: #39C671;
    --hero: #161C2B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.55 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 8px; }
h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.15 var(--display); letter-spacing: -.02em; max-width: 22ch; }
h3 { font: 700 20px/1.3 var(--sans); }
section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
section[id] { scroll-margin-top: 72px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: 16px; font: 700 18px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.btn ion-icon { font-size: 22px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn:hover { filter: brightness(1.06); }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--action); color: var(--on-action);
  display: grid; place-items: center; }
.brand-mark svg { width: 56%; height: 56%; }
.brand-name { font: 700 19px/1 var(--display); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Первый экран ---------- */
.hero { background: var(--hero); color: #fff; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero > * { max-width: none; margin: 0; }
.hero .hero-copy { justify-self: end; max-width: 560px; width: 100%; }
.hero .demo { justify-self: start; max-width: 480px; width: 100%; }
.hero-city { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16);
  font-weight: 700; font-size: 15px; margin-bottom: 20px; }
h1 { font: 800 clamp(34px, 5vw, 62px)/1.06 var(--display); letter-spacing: -.025em; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 34em; color: rgba(255,255,255,.9); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .hero-copy, .hero .demo { justify-self: stretch; max-width: 560px; margin: 0 auto; }
}

/* Пример заказа: всегда светлая карточка, как экран приложения */
.demo { background: #fff; color: var(--ink); border-radius: 28px; padding: 14px; box-shadow: 0 24px 60px rgba(13,18,32,.28); }
.demo-tabs { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 4px; padding: 4px; border-radius: 16px; background: #F5F7FB; }
.demo-tabs button { min-height: 44px; border: 0; border-radius: 12px; background: none; color: #4A5468;
  font: 700 15px/1.15 var(--sans); cursor: pointer; padding: 8px 10px; }
.demo-tabs button[aria-selected="true"] { background: #64298A; color: #fff; }
.demo-panel { padding: 18px 12px 10px; }
.demo-title { font-weight: 700; font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-tag { font-weight: 600; font-size: 13px; color: #4A5468; background: #F5F7FB; border-radius: 999px; padding: 4px 12px; }
.demo-foot { margin-top: 12px; font-size: 15px; color: #4A5468; }

.pick { margin-top: 14px; }
.pick li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid #E3E8F0; font-size: 16px; color: #4A5468; transition: color .25s; }
.pick li.done { color: var(--ink); }
.pick-sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.tick { width: 26px; height: 26px; border-radius: 999px; border: 2px solid #C9D1DE; position: relative; transition: background .25s, border-color .25s; }
.tick::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s; }
.done .tick { background: #237C47; border-color: #237C47; }
.done .tick::after { transform: rotate(45deg) scale(1); }
.swap.done .tick { background: #64298A; border-color: #64298A; }
.swap .pick-name { font-weight: 700; }

.total { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #F5F7FB; opacity: .45; transition: opacity .35s; }
.total.ready { opacity: 1; }
.total div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: #4A5468; padding: 3px 0;
  font-variant-numeric: tabular-nums; }
.total .total-pay { margin-top: 8px; padding-top: 10px; border-top: 1px solid #E3E8F0; font-weight: 800; font-size: 19px; color: var(--ink); }

.route { margin-top: 14px; display: grid; gap: 10px; }
.route-point { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.route-point small { display: block; font-weight: 600; font-size: 13px; color: #4A5468; }
.dot { width: 14px; height: 14px; border-radius: 999px; flex: none; }
.dot-a { background: #1A70AE; }
.dot-b { background: #3A4256; }

.say { margin-top: 14px; display: flex; gap: 14px; align-items: flex-start; }
.say-mic { width: 48px; height: 48px; border-radius: 999px; background: #64298A; color: #fff; display: grid; place-items: center; flex: none; font-size: 22px; }
.say p { background: #F5F7FB; border-radius: 4px 18px 18px 18px; padding: 12px 16px; font-size: 16px; }

/* ---------- Три способа ---------- */
.services h2 { margin-bottom: 12px; }
.service { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--butter); color: var(--ink); display: grid; place-items: center; font-size: 34px; }
.service-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 48px; }
.service-body h3 { grid-column: 1 / -1; font: 800 24px/1.2 var(--display); letter-spacing: -.01em; }
.service-body > p { color: var(--muted); max-width: 32em; }
.service-body li { position: relative; padding: 0 0 8px 22px; }
.service-body li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 999px; background: var(--action); }
@media (max-width: 760px) {
  .service { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-body { grid-template-columns: minmax(0, 1fr); }
  .service-body ul { margin-top: 8px; }
}

/* ---------- Шаги заказа из магазина ---------- */
.steps { background: var(--surface); }
.steps ol { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--action); }
.steps li::before { content: counter(step); display: block; font: 800 34px/1 var(--display); color: var(--action); margin-bottom: 14px; }
.steps li p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps ol { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Цены ---------- */
.prices-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 56px; margin-top: 32px; align-items: start; }
.price-label { font-weight: 700; color: var(--muted); }
.price-big { font: 800 clamp(56px, 9vw, 112px)/1 var(--display); letter-spacing: -.035em; margin: 6px 0 16px; }
.price-formula { font-weight: 700; font-size: 20px; max-width: 24em; }
.price-note { margin-top: 10px; color: var(--muted); max-width: 30em; }
.calc { background: var(--surface); border-radius: 24px; padding: 24px; display: grid; gap: 10px; }
.calc label { display: flex; justify-content: space-between; font-weight: 700; }
.calc output { font-variant-numeric: tabular-nums; }
/* Ползунки: своя отрисовка, чтобы на телефоне (Safari) и на компьютере выглядели одинаково.
   Заполненную часть красит app.js через --p. */
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0 0 8px;
  background: transparent; cursor: pointer; --p: 0%; --track: #D5DBE6; }
@media (prefers-color-scheme: dark) { .calc input[type=range] { --track: #3A4560; } }
.calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--action) var(--p), var(--track) var(--p)); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px;
  margin-top: -9px; border: 0; border-radius: 999px; background: var(--action); box-shadow: 0 0 0 4px var(--surface); }
.calc input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--track); }
.calc input[type=range]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--action); }
.calc input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 999px;
  background: var(--action); box-shadow: 0 0 0 4px var(--surface); }
.calc input[type=range]:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; border-radius: 8px; }
.calc-sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-sum strong { font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.calc-hint { font-size: 15px; color: var(--muted); }
.fees { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--line); }
.fees div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fees dt { font-weight: 700; }
.fees dd { color: var(--muted); }
@media (max-width: 820px) { .prices-grid, .fees { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Курьерам: всегда тёмный блок с лаймом ---------- */
.couriers { background: var(--ink); color: #F2F5FA; }
.couriers-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.couriers h2 { max-width: 20ch; }
.zero strong { display: block; font: 800 clamp(64px, 9vw, 120px)/1 var(--display); letter-spacing: -.04em; color: var(--lime); }
.zero span { display: block; margin-top: 8px; color: var(--ink-muted); font-size: 16px; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 48px; border-top: 1px solid var(--ink-line); }
.perks li { padding: 22px 0; }
.perks p { margin-top: 6px; color: var(--ink-muted); font-size: 16px; }
.start { counter-reset: s; display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 28px auto 32px; padding-top: 28px; border-top: 1px solid var(--ink-line); }
.start li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.start li::before { content: counter(s); width: 32px; height: 32px; border-radius: 999px; background: var(--lime); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; flex: none; }
@media (max-width: 900px) {
  .couriers-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .perks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Магазинам ---------- */
.shops { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 56px; align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
.shops > * { margin: 0; }
.shops p { margin-top: 14px; color: var(--muted); max-width: 34em; }
.shops-contact { display: grid; gap: 12px; }
.shops-contact a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 22px; border-radius: 18px;
  background: var(--surface); font-weight: 700; font-size: 19px; text-decoration: none; }
.shops-contact ion-icon, .shops-contact .mail { font-size: 22px; width: 22px; height: 22px; color: var(--action); flex: none; }
@media (max-width: 760px) { .shops { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Вопросы ---------- */
.faq { background: var(--surface); }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 28px/1 var(--sans); color: var(--action); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* ---------- Финал и подвал ---------- */
/* Плашки магазинов — по образцу владельца: Apple и Google Play одного размера.
   В подвале светло-серые, на первом экране жёлтые. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .stores { margin-top: 32px; }
.badge { --b-bg: #E0E0E0; --b-fg: #3A3A3A; --b-ic: #5C5C5C;
  position: relative; display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; width: 168px; height: 51px; max-width: 100%;
  padding: 0 12px; border-radius: 12px; background: var(--b-bg); color: var(--b-fg); text-align: left; text-decoration: none; }
.hero .badge { --b-bg: var(--butter); --b-fg: var(--ink); --b-ic: var(--ink); }
.badge small { display: block; font: 400 11px/1.1 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.badge-soon small { text-transform: uppercase; letter-spacing: .05em; }
.badge strong { display: block; margin-top: 1px; font: 500 18px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.badge ion-icon, .badge svg { width: 26px; height: 26px; font-size: 26px; flex: none; color: var(--b-ic); }
.badge:hover { filter: brightness(.96); }
.badge-soon { cursor: default; }
.badge-soon:hover { filter: none; }
.ribbon { position: absolute; top: -10px; right: -8px; padding: 6px 10px; border-radius: 999px; background: var(--ink);
  color: #fff; font: 800 11px/1 var(--sans); letter-spacing: .02em; }
/* Подвал — фирменный фиолетовый в обеих темах, чтобы отличался от блока с вопросами.
   Высота прежняя (170 px): кнопки магазинов стоят справа друг под другом. */
.foot { background: #64298A; color: rgba(255,255,255,.88); padding: 32px var(--gutter); font-size: 16px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px 40px; align-items: start; }
.foot-brand, .foot nav { display: grid; gap: 8px; align-content: start; }
.foot .brand-name { color: #fff; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a.badge, .foot a.badge:hover { color: var(--b-fg); text-decoration: none; }
.foot-stores { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.foot-copy { align-self: end; }
@media (max-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-copy { order: 4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Узкий телефон: вкладки примера в одну-две строки */
@media (max-width: 420px) {
  .demo-tabs button { font-size: 13.5px; padding: 6px 6px; }
  .hero .demo { padding: 10px; }
}

/* Вкладки примера: на широком экране подписи в одну строку */
@media (min-width: 421px) { .demo-tabs button { white-space: nowrap; } }
