/* ABAI — общие стили макета /ru/ (mobile first).
   Токены → база → шапка → подвал → сетка и блоки страниц.
   Новые страницы подключают этот файл и используют классы ниже; свои стили страницы — отдельным файлом. */

:root {
  --c-bg: #ffffff;
  --c-text: #0a0a0a;
  --c-muted: #6b6b6b;
  --c-line: #e3e3e3;
  --c-soft: #f4f4f4;
  --c-inv-bg: #0a0a0a;
  --c-inv-text: #ffffff;
  --c-inv-muted: #a3a3a3;
  --c-focus: #0a0a0a;
  --c-sale: #c8102e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px; --fs-s: 14px; --fs-m: 16px; --fs-l: 20px;
  --fs-xl: clamp(26px, 5vw, 40px);
  --fs-hero: clamp(36px, 9vw, 88px);
  --gap: 16px;
  --gutter: 16px;
  --max: 1440px;
  --header-h: 56px;
  --promo-h: 34px;   /* верхняя полоса: 1 строка; телефон — 2 строки (ниже) */
  --radius: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --gap: 24px; --header-h: 64px; } }
/* Телефон: основной текст (--fs-s: карточки, кнопки, списки, таблицы, подвал) — 16 px (дизайнер 14.10.2026);
   --fs-xs остаётся для подписей прописными (eyebrow, метки полей) */
@media (max-width: 767.98px) { :root { --fs-s: 16px; --promo-h: 52px; } }
/* Телефон: длинное слово заголовка («КОНФИДЕНЦИАЛЬНОСТИ») переносится, а не расширяет страницу */
@media (max-width: 767.98px) {
  body { overflow-wrap: break-word; }
  h1, h2, h3 { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  .card__name, .tile__label { -webkit-hyphens: auto; hyphens: auto; }
}
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: var(--fs-m)/1.5 var(--font); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
/* На тёмном фоне рамка фокуса — белая (этап 11: чёрная на чёрном не видна) */
.site-footer, .promo-bar, .hero, .section--inv, .split--inv, .tile, .page-hero { --c-focus: #ffffff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -56px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; background: var(--c-text); color: var(--c-bg); padding: 8px 12px; }
.skip-link:focus { top: 8px; }

/* ---------- Контейнер, сетка, типографика ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Только сверху/снизу: у «wrap section» боковые поля — от .wrap (этап 66) */
.section { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section--tight { padding-top: 0; }
.section--inv { background: var(--c-inv-bg); color: var(--c-inv-text); }
.section--soft { background: var(--c-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.h-section { margin: 0; font-size: var(--fs-xl); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.eyebrow { margin: 0 0 8px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.section--inv .eyebrow, .split--inv .eyebrow { color: var(--c-inv-muted); }
.lead { margin: 0; font-size: var(--fs-l); line-height: 1.4; max-width: 34ch; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-s); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid--1-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid--1-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Горизонтальная лента (хиты/новинки на телефоне), на компьютере — сетка */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail { padding-top: 4px; margin-top: -4px; } /* место под рамку фокуса карточки в ленте с прокруткой */
@media (min-width: 600px) { .rail { grid-auto-columns: 40%; } }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border: 1px solid currentColor; background: transparent; text-decoration: none; font-size: var(--fs-s); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn--solid { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.btn--solid:hover { background: transparent; color: var(--c-text); }
.btn--light { background: var(--c-inv-text); color: var(--c-inv-bg); border-color: var(--c-inv-text); }
.btn--light:hover { background: transparent; color: var(--c-inv-text); }
.btn--ghost-light { color: var(--c-inv-text); }
.btn--ghost-light:hover { background: var(--c-inv-text); color: var(--c-inv-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
/* Заглушка до site.js — ровно полоса + шапка с рамкой (CLS): полоса высотой --promo-h при любом переносе текста
   (на телефоне — 2 строки у всех языков; на узком экране без разрядки, чтобы kk не ушёл в 3 строки). */
.site-header-placeholder { min-height: calc(var(--promo-h) + var(--header-h) + 1px); }
.promo-bar { display: flex; align-items: center; justify-content: center; min-height: var(--promo-h); background: var(--c-inv-bg); color: var(--c-inv-text); font-size: var(--fs-xs); letter-spacing: .06em; text-align: center; padding: 8px var(--gutter); }
@media (max-width: 389.98px) { .promo-bar { letter-spacing: 0; padding-left: 12px; padding-right: 12px; } }
.promo-bar a { text-decoration: underline; text-underline-offset: 3px; padding: 15px 0; }   /* зона касания ≥ 44 px, строка не выше */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-bg); border-bottom: 1px solid var(--c-line); min-height: var(--header-h); }
.site-header__bar { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
/* Знак ABAI — встроенный SVG (site.js, LOGO), высота — --logo-h, ширина — по пропорции знака 2770 × 974 */
.logo { --logo-h: 22px; display: inline-flex; align-items: flex-start; line-height: 0; text-decoration: none; margin-right: auto; padding: 11px 0; }
.logo__mark { display: block; height: var(--logo-h); width: calc(var(--logo-h) * 2770 / 974); fill: currentColor; }
@media (min-width: 700px) { .logo { --logo-h: 26px; } }
@media (min-width: 1100px) { .logo { margin-right: 32px; } }
.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; flex: 1; gap: 20px; }
  .nav a { font-size: var(--fs-s); font-weight: 600; text-decoration: none; padding: 20px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
}
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; text-decoration: none; }
.icon-btn[hidden] { display: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--c-text); color: var(--c-bg); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
.lang { display: inline-flex; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 5px; text-decoration: none; color: var(--c-muted); }
.lang .lang__sep { min-width: 0; }
.lang [aria-current="true"] { color: var(--c-text); }
.burger { }
@media (min-width: 1100px) { .burger { display: none; } }
/* Телефон (замечания дизайнера 14.10.2026): шапка выше, знак ABAI, «Меню» и языки крупнее, зона касания ≥ 44 × 44;
   разделители языков скрыты — на 360 px всё в одну строку. */
@media (max-width: 699.98px) {
  :root { --header-h: 64px; }
  .site-header__bar { gap: 4px; }
  .site-header .logo { --logo-h: 28px; padding: 18px 0; }
  .burger { width: 48px; height: 48px; margin-left: -10px; }
  .burger svg { width: 28px; height: 28px; }
  .site-header .lang { font-size: 14px; margin-right: -6px; }
  .site-header .lang__sep { display: none; }
  .site-header .lang a, .site-header .lang span { padding: 0 4px; }
}
/* Режим магазина (видна корзина): на узком телефоне знак меньше, чтобы строка шапки не шла шире экрана */
@media (max-width: 389.98px) { .site-header__bar:has([data-cart-link]:not([hidden])) .logo { --logo-h: 22px; } }

/* Поиск — выпадающая строка под шапкой */
.search-panel { border-top: 1px solid var(--c-line); padding: 12px 0; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--c-text); border-radius: 0; background: var(--c-bg); font-size: var(--fs-m); }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--c-bg); display: flex; flex-direction: column; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--c-line); }
.drawer__nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-l); font-weight: 700; text-decoration: none; text-transform: uppercase; }
.drawer__foot { margin-top: auto; padding-top: 24px; padding-bottom: 24px; font-size: var(--fs-s); color: var(--c-muted); }
body.no-scroll { overflow: hidden; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--c-inv-bg); color: var(--c-inv-text); padding: 48px 0 24px; font-size: var(--fs-s); }
.footer-cols { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { --logo-h: 34px; color: var(--c-inv-text); margin: -5px 0 7px; padding: 5px 0; }
.footer-brand p { margin: 0 0 16px; color: var(--c-inv-muted); max-width: 32ch; }
.footer-brand p.footer-tm { margin-top: -8px; font-size: 12px; }
.logo-reg { font-size: 13px; font-weight: 400; line-height: 1; margin: -3px 0 0 4px; }
.footer-col h2 { margin: 0 0 12px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-inv-muted); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (min-width: 900px) { .footer-col a { min-height: 32px; } }
.footer-col a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-inv-muted); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* Реквизиты организации (статичный HTML страницы, без JS — сам по себе; с JS — над нижней строкой подвала) */
.footer-legal { margin-top: 40px; color: var(--c-inv-muted); font-size: var(--fs-xs); line-height: 1.6; }
.footer-legal p { margin: 0 0 4px; }
.footer-legal strong { color: var(--c-inv-text); font-weight: 600; }
.footer-legal a { color: inherit; text-decoration: underline; }
#site-footer > .footer-legal { margin: 0; padding: 24px 16px; background: var(--c-inv-bg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 1px solid #2a2a2a; color: var(--c-inv-muted); font-size: var(--fs-xs); }

/* ---------- Блоки страниц ---------- */
/* Баннер: на телефоне одно фото, на компьютере — два рядом */
.hero { position: relative; background: var(--c-inv-bg); color: var(--c-inv-text); }
.hero__media { display: grid; grid-template-columns: 1fr; height: calc(100svh - var(--header-h) - var(--promo-h)); min-height: 480px; max-height: 920px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img + img { display: none; }
@media (min-width: 768px) { .hero__media { grid-template-columns: 1fr 1fr; } .hero__media img + img { display: block; } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); pointer-events: none; }
.hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 40px; }
.hero .eyebrow { color: #d6d6d6; }
.hero__title { margin: 0 0 12px; font-size: var(--fs-hero); line-height: .95; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; max-width: 12ch; }
.hero__text { margin: 0 0 24px; font-size: var(--fs-l); max-width: 30ch; }

/* Строка преимуществ (доставка, возврат…) */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--c-line); }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perks li { padding: 16px 12px; font-size: var(--fs-s); text-align: center; border-right: 1px solid var(--c-line); border-top: 1px solid var(--c-line); }
.perks li:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) { .perks li { border-top: 0; } .perks li:nth-child(2n) { border-right: 1px solid var(--c-line); } .perks li:last-child { border-right: 0; } }
.perks b { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }

/* Карточка товара (каталог, хиты, новинки) */
.card { position: relative; display: block; text-decoration: none; }
.card__img { position: relative; aspect-ratio: 4 / 5; background: var(--c-soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
/* Модель без фото (site-preview-lineup): заглушка «Фото скоро» на месте фото */
.card__soon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: var(--c-muted); font-size: var(--fs-s); letter-spacing: .08em; text-transform: uppercase; }
.card__tag { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--c-bg); color: var(--c-text); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card__name { margin: 12px 0 2px; font-size: var(--fs-s); font-weight: 600; }
.card__meta { margin: 0; font-size: var(--fs-s); color: var(--c-muted); }
.card__price { margin: 4px 0 0; font-size: var(--fs-s); font-weight: 700; }
.card__price s { color: var(--c-muted); font-weight: 400; margin-right: 6px; }

/* Акции сайта (ERP, этап 61): метка на карточке и странице товара, баннеры на главной */
.card__sale, .sale-badge { display: inline-block; padding: 4px 8px; background: var(--c-sale); color: #ffffff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card__sale { position: absolute; top: 10px; right: 10px; }
.pinfo__promo { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--c-muted); }
.pinfo__promo .sale-badge { margin-right: 6px; }
.promo-band[hidden] { display: none; }
.promo-list { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .promo-list--2 { grid-template-columns: 1fr 1fr; } }
.promo-tile { position: relative; display: block; overflow: hidden; padding: 24px; background: var(--c-inv-bg); color: var(--c-inv-text); text-decoration: none; --c-focus: #ffffff; }
.promo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Видео-баннер (обращение №25): ролик поверх обложки на ноутбуке и телефоне (на телефоне — облегчённая копия без звука,
   catalog.js); кнопка звука — в правом верхнем углу, над затемнением, только ≥ 768 px */
.promo-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-tile__sound { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #ffffff; cursor: pointer; }
.promo-tile__sound:hover { background: rgba(0, 0, 0, .75); }
.promo-tile__sound:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.promo-tile__sound[aria-pressed="true"] .promo-tile__sound-off, .promo-tile__sound[aria-pressed="false"] .promo-tile__sound-on { display: none; }
@media (max-width: 767.98px) { .promo-tile__sound { display: none; } }
.promo-tile--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%); }
.promo-tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; min-height: 132px; }
.promo-tile--img .promo-tile__body { min-height: clamp(180px, 28vw, 360px); }
.promo-tile__name { margin: 0; font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.promo-tile__dates { margin: 0; font-size: var(--fs-s); color: #e6e6e6; }

/* Плитка коллекции: фото с подписью поверх */
.tile { position: relative; display: block; overflow: hidden; color: var(--c-inv-text); text-decoration: none; background: var(--c-inv-bg); aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.tile:hover img { transform: scale(1.04); opacity: .9; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 50%); }
.tile__label { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; font-size: var(--fs-l); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.tile__label small { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; opacity: .85; }
.tiles { display: grid; gap: 4px; grid-template-columns: 1fr 1fr; }
.tiles .tile:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(5, 1fr); } .tiles .tile:first-child { grid-column: auto; aspect-ratio: 4 / 5; } }

/* Медиа + текст (шьём в Казахстане, для компаний) */
.split { display: grid; gap: 0; grid-template-columns: 1fr; }
/* Порядок как на телефоне: фото, затем текст (этап 66 — без order у split--rev) */
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; min-height: 640px; } }
.split__media { position: relative; min-height: 420px; background: var(--c-inv-bg); }
.split__media img, .split__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 40px var(--gutter); }
@media (min-width: 900px) { .split__body { padding: 64px; } }
.split__body .h-section { font-size: clamp(30px, 4.4vw, 56px); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts b { display: block; font-size: clamp(24px, 4vw, 36px); font-weight: 900; line-height: 1.1; }
.facts span { font-size: var(--fs-xs); color: var(--c-muted); }
.section--inv .facts span, .split--inv .facts span { color: var(--c-inv-muted); }
.split--inv { background: var(--c-inv-bg); color: var(--c-inv-text); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 12px 0; border-top: 1px solid var(--c-line); font-size: var(--fs-m); }
.split--inv .checklist li { border-top-color: #2a2a2a; }
.checklist li::before { content: "—"; margin-right: 10px; }

/* Логотипы партнёров */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .logos { grid-template-columns: repeat(8, 1fr); } }
.logos li { list-style: none; background: var(--c-bg); display: flex; align-items: center; justify-content: center; padding: 8px; }
.logos img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; opacity: .85; transition: opacity .2s; }
.logos img:hover { opacity: 1; }
.logos { margin: 0; padding: 0; }

/* Демо-пометка и уведомление */
.demo-note { font-size: var(--fs-xs); color: var(--c-muted); }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 80; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; background: var(--c-text); color: var(--c-bg); font-size: var(--fs-s); }
.toast[hidden] { display: none; }

/* Баннер согласия на cookies (site.js, docs/plans/site-analytics.md этап 3): телефон — нижняя плашка на всю ширину,
   кнопки в ряд; от 768px — текст слева, кнопки справа. «Настройки cookies» — кнопка-ссылка в подвале. */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--c-inv-bg); color: var(--c-inv-text); border-top: 1px solid #2a2a2a; font-size: var(--fs-s); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: grid; gap: 12px; }
.cookie-banner__text { margin: 0; line-height: 1.45; }
.cookie-banner__text a { color: inherit; text-decoration: underline; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-banner .btn { min-height: 44px; padding: 10px 12px; letter-spacing: .04em; }
@media (min-width: 768px) {
  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cookie-banner__actions { display: flex; }
  .cookie-banner .btn { padding: 10px 24px; }
}
/* Пока плашка видна (этап Б3): отступ страницы снизу на её высоту — низ страницы (формы, кнопки, подвал) прокручивается
   над плашкой; всплывающее сообщение — над плашкой. --cookie-h ставит site.js (высота плашки). */
body.has-cookie-banner { padding-bottom: var(--cookie-h, 180px); }
body.has-cookie-banner .toast { bottom: calc(var(--cookie-h, 180px) + 12px); }
.footer-cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.footer-cookies[hidden] { display: none; }

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