/* Страницы сайта для браузера и поисковиков: главная (index.html вне мессенджера) и страницы, которые
   собирает сервер (backend/aromaspy/seo.py: /p/…, /b/…, /brands, /skidki, 404).
   Дизайн-система по ТЗ (analysis/aromaspy-site-design-tz.md): светлые поверхности, фиолетовый — ссылки
   и действия, голубой — Telegram, фиолетовый Макс, зелёный — только выгодная цена. Тема: «Авто» как
   в системе, выбор на сайте — data-theme на <html>. Классы с префиксом s-, переменные --s-: на главной
   рядом грузятся стили Mini App, и имена не должны пересекаться. */

:root {
  --s-bg: #f0eef5;
  --s-card: #fbfafd;
  --s-card2: #f5f1fc;
  --s-text: #202027;
  --s-text2: #3a3944;
  --s-muted: #6b6977;
  --s-line: #e7e3ed;
  --s-violet: #7950e8;
  --s-violet-ink: #6a3fe0;
  --s-violet-bg: #eee5fc;
  --s-violet-bg2: #e4d8fa;
  --s-green: #0f7f5d;
  --s-green-bg: #e2f4ec;
  --s-tg: #1d8fd8;
  --s-pink: #e52b96;
  --s-ic1: #7950e8;
  --s-ic2: #e52b96;
  --s-glass: rgba(255, 255, 255, 0.7);
  --s-max: #6738f5;
  --s-shadow: 0 1px 2px rgba(40, 30, 80, 0.04), 0 6px 20px rgba(60, 40, 120, 0.06);
  --s-chart: #7950e8;
  --s-r: 22px;
  --s-r-sm: 12px;
  --s-pad: 24px;
  color-scheme: light;
}

/* тёмная тема: выбор «Тёмная» на сайте или «Авто» при тёмной теме системы */
:root[data-theme="dark"] {
  --s-bg: #100f16;
  --s-card: #171521;
  --s-card2: #1e1b2b;
  --s-text: #f5f2fa;
  --s-text2: #d4cfe0;
  --s-muted: #b7b0c8;
  --s-line: #2a2638;
  --s-ic1: #a98af7;
  --s-ic2: #ee4ba8;
  --s-glass: rgba(255, 255, 255, 0.035);
  --s-violet: #8f6cf0;
  --s-violet-ink: #c4b0f8;
  --s-violet-bg: rgba(180, 156, 246, 0.14);
  --s-violet-bg2: rgba(180, 156, 246, 0.22);
  --s-green: #4fd1a5;
  --s-green-bg: rgba(79, 209, 165, 0.14);
  --s-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --s-chart: #b49cf6;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s-bg: #100f16;
    --s-card: #171521;
    --s-card2: #1e1b2b;
    --s-text: #f5f2fa;
    --s-text2: #d4cfe0;
    --s-muted: #b7b0c8;
    --s-line: #2a2638;
    --s-ic1: #a98af7;
    --s-ic2: #e52b96;
    --s-glass: rgba(255, 255, 255, 0.035);
    --s-violet: #8f6cf0;
    --s-violet-ink: #c4b0f8;
    --s-violet-bg: rgba(180, 156, 246, 0.14);
    --s-violet-bg2: rgba(180, 156, 246, 0.22);
    --s-green: #4fd1a5;
    --s-green-bg: rgba(79, 209, 165, 0.14);
    --s-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --s-chart: #b49cf6;
    color-scheme: dark;
  }
}

/* ---------- основа ---------- */
html:not(.in-app) body.s-site {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--s-bg);
  color: var(--s-text2);
  font-family: Inter, Manrope, Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: auto;
  transition: background-color 0.2s, color 0.2s;
}
.s-site *, .s-site *::before, .s-site *::after { box-sizing: border-box; }
.s-site a { color: var(--s-violet-ink); text-decoration: none; }
.s-site a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-site :focus-visible { outline: 3px solid var(--s-violet); outline-offset: 2px; border-radius: 6px; }
.s-site h1, .s-site h2, .s-site h3 { color: var(--s-text); line-height: 1.22; margin: 0; letter-spacing: -0.01em; }
.s-site h1 { font-size: clamp(26px, 2.2vw + 16px, 34px); font-weight: 700; }
.s-site h1 span { display: block; margin-top: 6px; font-size: 18px; font-weight: 500; color: var(--s-muted); letter-spacing: 0; }
.s-site h2 { font-size: clamp(20px, 0.8vw + 16px, 24px); font-weight: 700; margin-bottom: 14px; }
.s-site h3 { font-size: 17px; font-weight: 600; }
.s-site p { margin: 0; }
.s-site ul { list-style: none; margin: 0; padding: 0; }
.s-muted { color: var(--s-muted); font-size: 14px; }
.s-empty { color: var(--s-muted); }

/* ---------- контейнер, шапка, подвал ---------- */
.s-top, .s-main, .s-foot { width: 100%; max-width: 1000px; margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }
.s-landing .s-top, .s-landing .s-main, .s-landing .s-foot { max-width: 1160px; }
.s-top { padding-top: 16px; padding-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.s-logo { display: block; flex: none; }
.s-logo img { display: block; width: 168px; height: auto; }
.s-logo .s-logo-d { display: none; }
:root[data-theme="dark"] .s-logo .s-logo-l { display: none; }
:root[data-theme="dark"] .s-logo .s-logo-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-logo .s-logo-l { display: none; }
  :root:not([data-theme="light"]) .s-logo .s-logo-d { display: block; }
}
.s-nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.s-nav > a:not(.s-nav-app) { padding: 9px 12px; border-radius: var(--s-r-sm); color: var(--s-text); }
.s-nav > a:not(.s-nav-app):hover { background: var(--s-violet-bg); text-decoration: none; }
.s-nav-app { margin-left: 6px; padding: 10px 16px; border-radius: var(--s-r-sm); background: var(--s-tg); color: #fff !important; }
.s-nav-app:hover { text-decoration: none !important; background: #1a82c6; }
/* переключатель темы: Авто → Светлая → Тёмная */
.s-theme { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px; border-radius: var(--s-r-sm);
  border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.s-theme:hover { border-color: var(--s-violet); }

.s-main { padding-top: 10px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
/* подвал с юридической информацией прижат к низу экрана, даже если страница короткая */
.s-landing { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
.s-foot { margin-top: auto; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid var(--s-line); font-size: 14px; color: var(--s-muted); display: flex; flex-direction: column; gap: 10px; }
.s-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 500; }
.s-foot nav a { color: var(--s-text2); }
.s-foot p a { color: var(--s-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- поверхности ---------- */
.s-hero, .s-prices, .s-follow, .s-history, .s-notes, .s-similar, .s-faq, .s-brand-more, .s-intro, .s-group, .s-letter, .s-drops, .s-find {
  background: var(--s-card);
  border: 1px solid var(--s-line);
  box-shadow: var(--s-shadow);
  border-radius: var(--s-r);
  padding: var(--s-pad);
}
.s-crumbs { font-size: 14px; color: var(--s-muted); padding: 2px 4px 0; }
.s-crumbs a { color: var(--s-muted); text-decoration: underline; text-decoration-color: var(--s-line); text-underline-offset: 3px; }
.s-crumbs a:hover { color: var(--s-violet-ink); }

/* ---------- кнопки ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 14px;
  background: var(--s-violet-bg); color: var(--s-violet-ink) !important; font-weight: 600; font-size: 16px; text-align: center;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.s-btn:hover { text-decoration: none !important; background: var(--s-violet-bg2); }
.s-btn:active { transform: translateY(1px); }
.s-btn-tg { background: var(--s-tg); color: #fff !important; }
.s-btn-tg:hover { background: #1a82c6; box-shadow: 0 6px 18px rgba(36, 168, 232, 0.3); }
.s-btn-max { background: var(--s-max); color: #fff !important; }
.s-btn-max:hover { background: #5a2ee6; box-shadow: 0 6px 18px rgba(103, 56, 245, 0.3); }
.s-btn-main { background: var(--s-violet); color: #fff !important; }
.s-btn-main:hover { background: #6a3fe0; }

/* ---------- QR-коды (раскладка главной — ниже, «главная-витрина») ---------- */
.s-lead { font-size: 17px; color: var(--s-text2); max-width: 600px; margin: 0 auto !important; }
.s-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--s-muted); }
.s-qr img { display: block; width: 168px; height: 168px; border-radius: 18px; box-shadow: 0 0 0 1px var(--s-line); background: #fff; }


/* ---------- аромат ---------- */
.s-hero { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; }
.s-bottle { width: 160px; height: 200px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(60, 40, 120, 0.16)); }
.s-hero-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.s-sub { color: var(--s-muted); font-size: 15px; }
.s-sub:empty { display: none; }
.s-best { font-size: 17px; color: var(--s-text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.s-best b { color: var(--s-green); font-size: 30px; line-height: 1.1; }
.s-best span { flex-basis: 100%; font-size: 14px; color: var(--s-muted); }
.s-none { font-size: 16px; color: var(--s-muted); }

.s-prices { display: flex; flex-direction: column; gap: 18px; }
.s-prices h2 { margin-bottom: 0; }
.s-pos h3 { margin-bottom: 4px; font-size: 15px; color: var(--s-muted); font-weight: 600; }
.s-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--s-line); }
.s-offer:last-child { border-bottom: none; }
.s-store { color: var(--s-text); font-weight: 500; overflow-wrap: anywhere; }
.s-ad { display: block; font-size: 12px; font-weight: 400; color: var(--s-muted); }
.s-price-cell { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.s-price { color: var(--s-text); font-size: 18px; white-space: nowrap; }
.s-cheapest .s-price { color: var(--s-green); }
.s-tag { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--s-green); background: var(--s-green-bg); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.s-buy { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: var(--s-r-sm); background: var(--s-violet); color: #fff !important; font-weight: 600; font-size: 15px; }
.s-buy:hover { text-decoration: none !important; background: #6a3fe0; }

.s-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: linear-gradient(135deg, var(--s-card2), var(--s-card)); }
.s-follow > p { grid-column: 1 / -1; color: var(--s-text); font-size: 17px; }
.s-follow-btns, .s-follow-qr { display: contents; }
.s-follow-qr > div { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--s-muted); text-align: left; }
.s-follow-qr img { width: 112px; height: 112px; flex: none; border-radius: 14px; box-shadow: 0 0 0 1px var(--s-line); background: #fff; }
.s-follow-qr span { max-width: 150px; }

.s-history { display: flex; flex-direction: column; gap: 8px; }
.s-history h2 { margin-bottom: 0; }
.s-chart-box { position: relative; }
.s-chart { display: block; width: 100%; height: auto; margin-top: 6px; touch-action: pan-y; }
.s-chart-line { fill: none; stroke: var(--s-chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.s-chart-area { fill: var(--s-chart); opacity: 0.08; }
.s-chart-dot { fill: var(--s-green); }
.s-chart-lo { fill: var(--s-green); font-size: 13px; font-weight: 600; }
.s-chart-axis { fill: var(--s-muted); font-size: 12px; }
.s-chart-cur { stroke: var(--s-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.s-chart-pin { fill: var(--s-card); stroke: var(--s-chart); stroke-width: 2.5; }
.s-chart-tip { position: absolute; top: -4px; padding: 4px 10px; border-radius: 10px; background: var(--s-text); color: var(--s-card); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.s-more { font-size: 14px; color: var(--s-muted); }

.s-notes dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; align-items: baseline; }
.s-notes dt { color: var(--s-muted); font-size: 14px; }
.s-notes dd { margin: 0; }
.s-note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-note-chips span { padding: 4px 11px; border-radius: 999px; background: var(--s-card2); border: 1px solid var(--s-line); color: var(--s-text); font-size: 14px; }
.s-notes .s-muted { margin-top: 14px; }

.s-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--s-line); }
.s-list li:last-child { border-bottom: none; }
.s-list a { font-weight: 600; }
.s-list span { color: var(--s-green); font-size: 14px; }
.s-list small { color: var(--s-muted); font-size: 13px; }

.s-faq details { border-bottom: 1px solid var(--s-line); }
.s-faq details:last-child { border-bottom: none; }
.s-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 12px 0; color: var(--s-text); font-weight: 600; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--s-violet); border-bottom: 2px solid var(--s-violet); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
.s-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.s-faq details p { padding: 0 0 14px; max-width: 760px; }

.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.s-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--s-violet-bg); font-size: 14px; font-weight: 500; }
.s-chips a:hover { background: var(--s-violet-bg2); text-decoration: none; }

/* ---------- бренд, все бренды, снижения ---------- */
.s-intro { display: flex; flex-direction: column; gap: 10px; }
.s-intro p { max-width: 760px; }
.s-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--s-line); }
.s-rows li:last-child { border-bottom: none; }
.s-rows a { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.s-from { color: var(--s-green); white-space: nowrap; font-size: 15px; font-weight: 600; }
.s-find { display: flex; flex-direction: column; gap: 8px; padding: 18px var(--s-pad); }
.s-find label { font-weight: 600; color: var(--s-text); }
.s-find input { width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--s-line); background: var(--s-bg); color: var(--s-text); font: inherit; }
.s-find input:focus { outline: 2px solid var(--s-violet); outline-offset: 1px; }
.s-abc { display: flex; flex-wrap: wrap; gap: 6px; }
.s-abc a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--s-r-sm); background: var(--s-card); border: 1px solid var(--s-line); font-weight: 600; }
.s-abc a:hover { border-color: var(--s-violet); text-decoration: none; }
.s-letter { scroll-margin-top: 12px; }
.s-letter[hidden], .s-site li[hidden] { display: none !important; }
.s-cols { columns: 3 220px; column-gap: 28px; }
.s-cols li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; break-inside: avoid; }
.s-cols span { color: var(--s-muted); font-size: 13px; }
.s-site .s-drops { padding: 6px var(--s-pad); }
.s-drops .s-dcard { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.s-dcard img, .s-noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--s-card2); }
.s-noimg { display: block; }
.s-dtext { display: flex; flex-direction: column; min-width: 0; }
.s-dtext a { font-weight: 600; overflow-wrap: anywhere; }
.s-dmeta { color: var(--s-muted); font-size: 14px; }
.s-drop { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.s-drop s { color: var(--s-muted); font-size: 13px; }
.s-drop b { color: var(--s-green); font-size: 17px; }
.s-drop em { font-style: normal; color: var(--s-green); background: var(--s-green-bg); border-radius: 999px; padding: 1px 8px; font-size: 13px; font-weight: 600; }

.s-404 { text-align: center; align-items: center; padding: 40px 24px; }
.s-404 .s-big { font-size: 56px; line-height: 1; }
.s-404-apps { font-size: 14px; color: var(--s-muted); display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.s-404-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- адаптивность ---------- */
@media (max-width: 640px) {
  :root { --s-pad: 18px; --s-r: 20px; }
  .s-top, .s-main, .s-foot { padding-left: 16px; padding-right: 16px; }
  .s-top { gap: 10px; }
  .s-logo img { width: 140px; }
  .s-nav { width: 100%; font-size: 15px; }
  .s-nav > a:not(.s-nav-app) { padding: 9px 10px; }
  .s-nav-app { margin-left: auto; padding: 9px 14px; }
  .s-site h1 span { font-size: 16px; }
  .s-lead { margin: 0 !important; }
  .s-hero { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
  .s-bottle { width: 96px; height: 124px; }
  .s-best b { font-size: 26px; }
  /* строки цен на телефоне: магазин над ценой, «Купить» справа */
  .s-offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "store buy" "price buy"; gap: 2px 12px; }
  .s-store { grid-area: store; }
  .s-price-cell { grid-area: price; justify-content: flex-end; flex-direction: row-reverse; }
  .s-buy { grid-area: buy; min-height: 44px; }
  .s-follow { grid-template-columns: 1fr; }
  .s-follow-qr > div { display: none; }
  .s-notes dl { grid-template-columns: 1fr; gap: 4px; }
  .s-notes dd { margin-bottom: 10px; }
  .s-drops .s-dcard { grid-template-columns: 48px minmax(0, 1fr); }
  .s-dcard img, .s-noimg { width: 48px; height: 48px; }
  .s-drop { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-site *, .s-site *::before, .s-site *::after { transition: none !important; }
}

/* ---------- главная-витрина: продукт на экранах телефона ---------- */
.s-th-d { display: none !important; }
:root[data-theme="dark"] .s-th-l { display: none !important; }
:root[data-theme="dark"] .s-th-d { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-th-l { display: none !important; }
  :root:not([data-theme="light"]) .s-th-d { display: block !important; }
}

/* свечение: едва заметное, только для глубины. В тёмной теме чуть сильнее, чем в светлой */
.s-landing { --s-glow-v: rgba(121, 80, 232, 0.10); --s-glow-p: rgba(229, 43, 150, 0.05); --s-glow-t: rgba(36, 168, 232, 0.07);
  --s-halo-core: rgba(229, 43, 150, 0.22); --s-halo-mid: rgba(140, 100, 240, 0.22); --s-cta-t: rgba(36, 168, 232, 0.16); --s-cta-v: rgba(121, 80, 232, 0.16);
  background: radial-gradient(900px 560px at 78% 8%, var(--s-glow-v), transparent 70%), radial-gradient(700px 500px at 8% 40%, var(--s-glow-p), transparent 70%); }
:root[data-theme="dark"] .s-landing { --s-glow-v: rgba(121, 80, 232, 0.13); --s-glow-p: rgba(229, 43, 150, 0.06); --s-glow-t: rgba(36, 168, 232, 0.08);
  --s-halo-core: rgba(229, 43, 150, 0.42); --s-halo-mid: rgba(121, 80, 232, 0.34); --s-cta-t: rgba(36, 168, 232, 0.24); --s-cta-v: rgba(121, 80, 232, 0.28); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-landing { --s-glow-v: rgba(121, 80, 232, 0.13); --s-glow-p: rgba(229, 43, 150, 0.06); --s-glow-t: rgba(36, 168, 232, 0.08);
  --s-halo-core: rgba(229, 43, 150, 0.42); --s-halo-mid: rgba(121, 80, 232, 0.34); --s-cta-t: rgba(36, 168, 232, 0.24); --s-cta-v: rgba(121, 80, 232, 0.28); }
}

/* шапка: логотип и подпись, справа навигация, тема и вход в Telegram */
.s-brand-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.s-tagline { font-size: 15px; color: var(--s-muted); white-space: nowrap; }
.s-landing .s-nav .s-nav-app { order: 2; }
.s-landing .s-nav .s-theme { order: 1; margin-left: 4px; }

.s-home { gap: 30px; }
.s-lhero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; padding: 30px 0 8px; }
.s-lhero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.s-eyebrow { align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--s-violet-ink); background: var(--s-violet-bg); border: 1px solid color-mix(in srgb, var(--s-violet) 35%, transparent); }
.s-home h1 { font-size: clamp(34px, 3vw + 4px, 46px); line-height: 1.06; letter-spacing: -0.025em; white-space: nowrap; }
.s-home .s-lead { margin: 0 !important; font-size: clamp(17px, 0.4vw + 15px, 19px); max-width: 560px; }

/* галочки: в первом экране и в списках возможностей */
.s-checks, .s-feat-list { display: flex; flex-direction: column; gap: 8px; }
.s-checks li, .s-feat-list li { position: relative; padding-left: 30px; color: var(--s-text2); font-size: 16px; line-height: 1.45; }
.s-checks li::before, .s-feat-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--s-violet-bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%237950e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
:root[data-theme="dark"] .s-checks li::before, :root[data-theme="dark"] .s-feat-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%23c4b0f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-checks li::before, :root:not([data-theme="light"]) .s-feat-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%23c4b0f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* вход в приложение: две карточки «QR + кнопка» и подсказка под ними */
.s-cta { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, minmax(0, 236px)); gap: 16px; margin-top: 6px; width: fit-content; max-width: 100%; }
.s-cta::before { content: ""; position: absolute; inset: -60px -50px; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 58% at 25% 52%, var(--s-cta-t), transparent 72%), radial-gradient(48% 58% at 75% 52%, var(--s-cta-v), transparent 72%); filter: blur(8px); }
.s-cta-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; border-radius: 22px;
  background: var(--s-glass); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.s-cta-card b { font-size: 18px; font-weight: 700; color: var(--s-text); }
.s-cta-qr { display: block; width: 132px; height: 132px; padding: 8px; border-radius: 18px; background: #fff; box-sizing: content-box; }
.s-cta-card .s-btn { width: 100%; min-height: 48px; padding: 12px 10px; font-size: 16px; white-space: nowrap; }
.s-cta-hint { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--s-muted); }
.s-btn-tg { background: linear-gradient(180deg, #2aaaf0, #1d8fd8); }
.s-btn-max { background: linear-gradient(180deg, #7d55f0, #6738f5); }
.s-cta-tg .s-btn { box-shadow: 0 8px 22px rgba(36, 168, 232, 0.22); }
.s-cta-max .s-btn { box-shadow: 0 8px 22px rgba(103, 56, 245, 0.22); }

/* телефон: рамка, «чёлка», экран */
.s-phone { position: relative; aspect-ratio: 390 / 844; border-radius: 15% / 7%; padding: 3.2%; background: #0d0c12;
  box-shadow: 0 0 0 1.5px #3a3846 inset, 0 30px 60px rgba(40, 20, 90, 0.24), 0 8px 18px rgba(40, 20, 90, 0.14); }
.s-phone::after { content: ""; position: absolute; top: 4.6%; left: 50%; width: 28%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #0d0c12; z-index: 3; }
.s-phone { --s-appbg: #ebe8f3; }
:root[data-theme="dark"] .s-phone { --s-appbg: #16131f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-phone { --s-appbg: #16131f; } }
/* экран: сверху полоса статуса под «чёлкой», ниже настоящий снимок приложения */
.s-phone > img, .s-reel { display: block; width: 100%; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; object-fit: cover; object-position: top; background: var(--s-appbg); padding-top: 13%; box-sizing: border-box; }

/* сцена: телефоны, под ними подписи. Подписи стоят в потоке и на телефон не заезжают */
.s-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.s-stage-phones { position: relative; isolation: isolate; width: 100%; height: 600px; display: flex; justify-content: center; align-items: center; }
.s-stage-phones::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1000px; height: 900px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--s-halo-core) 0%, var(--s-halo-core) 36%, var(--s-halo-mid) 64%, transparent 100%); filter: blur(24px); }
.s-phone-main { width: 278px; z-index: 2; }
.s-phone-back { position: absolute; width: 220px; top: 70px; opacity: 0.9; }
.s-phone-l { left: calc(50% - 240px); transform: rotate(-8deg); }
.s-phone-r { right: calc(50% - 240px); transform: rotate(8deg); }

/* лента экранов (шесть разделов): каждые 3,5 с следующий экран, подпись под телефоном в такт */
.s-reel { position: relative; }
.s-reel figure { position: absolute; inset: 13% 0 0; margin: 0; opacity: 0; animation: s-reel 21s infinite; }
.s-reel figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.s-reel figure:nth-child(2), .s-reel-tags li:nth-child(2) { animation-delay: 3.5s; }
.s-reel figure:nth-child(3), .s-reel-tags li:nth-child(3) { animation-delay: 7s; }
.s-reel figure:nth-child(4), .s-reel-tags li:nth-child(4) { animation-delay: 10.5s; }
.s-reel figure:nth-child(5), .s-reel-tags li:nth-child(5) { animation-delay: 14s; }
.s-reel figure:nth-child(6), .s-reel-tags li:nth-child(6) { animation-delay: 17.5s; }
@keyframes s-reel {
  0% { opacity: 0; transform: translateY(14px) scale(0.985); }
  3.5%, 15.5% { opacity: 1; transform: none; }
  19%, 100% { opacity: 0; transform: translateY(-10px); }
}
.s-reel-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s-reel-tags li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--s-muted); background: var(--s-card); border: 1px solid var(--s-line); animation: s-tag 21s infinite; }
@keyframes s-tag {
  0%, 17.5%, 100% { color: var(--s-muted); background: var(--s-card); border-color: var(--s-line); box-shadow: none; }
  2%, 16% { color: var(--s-text); background: var(--s-violet-bg); border-color: var(--s-violet); box-shadow: 0 0 0 3px var(--s-violet-bg); }
}

/* иконки разделов: градиент фиолетовый → розовый, «стеклянная» плитка */
.s-ic { display: block; width: 46px; height: 46px; }
.s-ic-fill { fill: url(#s-ic-g); fill-opacity: 0.16; }
.s-ic-dot { fill: var(--s-ic2); stroke: var(--s-ic2); }
.s-ic-hole { fill: var(--s-card); }
.s-ic-tile { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; flex: none;
  background: linear-gradient(160deg, #ffffff, #f6eefc); border: 1px solid rgba(121, 80, 232, 0.18);
  box-shadow: 0 8px 22px rgba(121, 80, 232, 0.12), inset 0 1px 0 #fff; }
:root[data-theme="dark"] .s-ic-tile { background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)); border-color: rgba(229, 43, 150, 0.26);
  box-shadow: 0 0 26px rgba(229, 43, 150, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-ic-tile { background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)); border-color: rgba(229, 43, 150, 0.26);
    box-shadow: 0 0 26px rgba(229, 43, 150, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
}

/* возможности: оглавление из иконок и карточки «экран + текст + список» */
.s-feats { display: flex; flex-direction: column; gap: 22px; }
.s-feats > h2 { font-size: clamp(26px, 1.6vw + 16px, 36px); text-align: center; margin: 18px 0 4px; }
.s-feat-nav { display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; margin-bottom: 10px; }
.s-feat-nav a { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--s-text2) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.s-feat-nav .s-ic-tile { transition: transform 0.15s; }
.s-feat-nav a:hover .s-ic-tile { transform: translateY(-3px); }
.s-feat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 60px; align-items: center; height: 500px; grid-template-rows: minmax(0, 1fr); padding: 0 60px; overflow: hidden; scroll-margin-top: 20px;
  background: linear-gradient(160deg, var(--s-card2), var(--s-card) 55%); border: 1px solid var(--s-line); border-radius: 28px; box-shadow: var(--s-shadow); }
.s-feat:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 280px; }
.s-feat:nth-of-type(even) .s-phone-sm { order: 2; }
.s-phone-sm { width: 280px; align-self: start; margin-top: 44px; box-shadow: 0 0 0 1.5px #3a3846 inset, 0 30px 70px var(--s-glow-v), 0 8px 18px rgba(40, 20, 90, 0.14); }
.s-feat-text { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.s-feat-text .s-ic-tile { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 4px; }
.s-feat-text .s-ic { width: 36px; height: 36px; }
.s-feat-text h3 { font-size: clamp(26px, 1vw + 18px, 34px); letter-spacing: -0.02em; }
.s-feat-text p { font-size: 17px; }
.s-feat-list { margin-top: 4px; }
.s-feat-go { align-self: flex-start; margin-top: 6px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--s-line); font-size: 15px; font-weight: 600; background: var(--s-glass); }
.s-feat-go:hover { background: var(--s-violet-bg); border-color: var(--s-violet); text-decoration: none !important; }

/* финальный призыв */
.s-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 44px 24px 34px; border-radius: 28px; color: #fff;
  background: radial-gradient(80% 120% at 0% 0%, #8b63f0 0%, transparent 60%), radial-gradient(70% 110% at 100% 100%, #2a9de0 0%, transparent 60%), #4b2bb8; box-shadow: 0 20px 50px rgba(75, 43, 184, 0.25); }
.s-final h2 { color: #fff !important; font-size: clamp(26px, 1.6vw + 16px, 36px); margin: 0; }
.s-final > p { color: rgba(255, 255, 255, 0.86); font-size: 17px; max-width: 560px; }
.s-final-apps { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.s-final-app { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff !important; text-align: left; transition: background-color 0.15s, transform 0.15s; }
.s-final-app:hover { background: rgba(255, 255, 255, 0.22); text-decoration: none !important; transform: translateY(-2px); }
.s-final-qr { width: 132px; height: 132px; border-radius: 16px; background: #fff; }
.s-final-app span { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.s-final-app b { font-size: 22px; color: #fff; }
.s-final-links { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: 15px; }
.s-final-links a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); }

@media (max-width: 1100px) and (min-width: 961px) {
  .s-phone-main { width: 240px; }
  .s-phone-back { width: 180px; top: 90px; }
  .s-phone-l { left: calc(50% - 190px); }
  .s-phone-r { right: calc(50% - 190px); }
  .s-stage-phones { height: 540px; }
}
@media (max-width: 1100px) {
  .s-tagline { display: none; }
}
@media (max-width: 960px) {
  .s-lhero { grid-template-columns: 1fr; padding-top: 18px; }
  .s-stage-phones { height: 560px; }
  .s-feat, .s-feat:nth-of-type(even) { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding: 0 36px; height: 440px; }
  .s-cta { grid-template-columns: repeat(2, minmax(0, 240px)); }
  .s-feat:nth-of-type(even) .s-phone-sm { order: 0; }
  .s-phone-sm { width: 230px; margin-top: 36px; }
}
@media (max-width: 640px) {
  .s-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .s-brand-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .s-tagline { display: block; font-size: 13.5px; white-space: normal; }
  .s-logo img { width: 150px; }
  .s-landing .s-nav .s-nav-app { display: none; }
  .s-landing .s-nav { margin-left: -12px; }
  .s-home { gap: 24px; }
  .s-lhero { gap: 20px; padding-top: 6px; }
  .s-lhero-text { gap: 14px; }
  .s-eyebrow { font-size: 13px; }
  .s-home h1 { font-size: min(30px, 7.1vw); }
  .s-checks li { font-size: 15px; }
  /* с телефона QR не отсканировать: остаются две большие кнопки */
  .s-cta { grid-template-columns: 1fr; gap: 10px; }
  .s-cta::before, .s-cta-card b, .s-cta-qr, .s-cta-hint { display: none; }
  .s-cta-card { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .s-cta-card .s-btn { min-height: 54px; font-size: 17px; }
  .s-stage { gap: 16px; }
  .s-stage-phones { height: 460px; overflow: hidden; margin: 0 -16px; width: calc(100% + 32px); }
  .s-stage-phones::before { width: 520px; height: 560px; }
  .s-phone-main { width: 204px; }
  .s-phone-back { width: 156px; top: 60px; }
  .s-phone-l { left: calc(50% - 172px); }
  .s-phone-r { right: calc(50% - 172px); }
  .s-reel-tags { gap: 6px; max-width: 340px; }
  .s-reel-tags li { font-size: 12px; padding: 5px 9px; white-space: nowrap; }
  .s-feat-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .s-feat-nav a { font-size: 12.5px; gap: 8px; text-align: center; }
  .s-feat-nav .s-ic-tile { width: 64px; height: 64px; border-radius: 18px; }
  .s-feat-nav .s-ic { width: 36px; height: 36px; }
  .s-feat, .s-feat:nth-of-type(even) { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; max-height: 820px; padding: 26px 20px 0; gap: 22px; justify-items: center; }
  .s-feat .s-phone-sm, .s-feat:nth-of-type(even) .s-phone-sm { order: 2; width: 230px; margin: 0 0 -150px; }
  .s-feat-text { width: 100%; }
  .s-feat-text h3 { font-size: 26px; }
  .s-feat-text p { font-size: 16px; }
  .s-feat-list li { font-size: 15px; }
  .s-final-qr { display: none; }
  .s-final { padding: 32px 18px 26px; }
  .s-final-app { width: 100%; padding: 16px 20px; }
}
@media (max-width: 380px) {
  .s-reel-tags li { font-size: 11px; padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-reel figure, .s-reel-tags li { animation: none; }
  .s-reel figure:first-child { opacity: 1; }
  .s-reel-tags li:first-child { color: var(--s-text); background: var(--s-violet-bg); border-color: var(--s-violet); }
}
