/* Все цвета, шрифты, отступы и размеры собраны в :root — ниже по файлу
   значения не задаются заново, только через переменные.
   Меняете значение здесь — меняется везде на сайте. */

:root {
  /* Home page refinements, November 2026 */
  --home-subtitle-gap: clamp(1rem, 1.8vw, 1.75rem);
  --home-badge-max: 32rem;
  --home-badge-icon: clamp(1.4rem, 2vw, 1.9rem);
  --home-cta-min-w: 13rem;
  --home-layout-gap: clamp(2.5rem, 4.2vw, 3.75rem);
  --home-step-gap: 2rem;
  --home-step-icon: 2rem;
  --home-faq-width: 64rem;
  --home-faq-pad: 1.5rem;
  --home-game-pad: clamp(1.5rem, 2.4vw, 2.5rem);
  --home-rule: 1px;

  /* ---------- Шрифты ---------- */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fw-light: 300;              /* тонкое начертание: заголовок, кнопка */
  --fw-regular: 400;            /* обычное: подзаголовок, текст */
  --fw-bold: 700;               /* жирное: акценты в тексте */

  /* Размеры шрифта тянутся за шириной экрана: clamp(минимум, желаемое, максимум) */
  --fs-title: clamp(2rem, 3.53vw, 4.5rem);
  --fs-title-mobile: clamp(1.4rem, 7.1vw, 2.6rem);
  --fs-subtitle: clamp(1rem, 1.69vw, 2.1rem);
  --fs-button: clamp(1.05rem, 1.56vw, 1.9rem);
  --fs-badge: clamp(0.8rem, 0.95vw, 1.15rem);   /* строка-бейдж под кнопкой */
  --fs-ticker: clamp(0.7rem, 0.82vw, 0.95rem);  /* бегущая строка */
  --fs-ticker-mobile: 0.75rem;                  /* та же строка на телефоне: не мельче 12 px */
  --fs-bridge: clamp(1.15rem, 1.9vw, 2.25rem);  /* эмоциональный мост */
  --fs-section-title: clamp(1.75rem, 2.8vw, 3.25rem); /* заголовки разделов: КАТАЛОГ и др. */
  --fs-lead: clamp(1rem, 1.3vw, 1.35rem);       /* подзаголовок под разделителем */
  --fs-lead-num: clamp(1.6rem, 2.4vw, 2.5rem);  /* крупные цифры 40 и 52 */
  --fs-filter: clamp(0.85rem, 0.95vw, 1rem);    /* фильтр по размеру */
  --fs-card-title: clamp(1.05rem, 1.25vw, 1.35rem); /* название товара */
  --fs-card-meta: clamp(0.8rem, 0.9vw, 0.95rem);    /* размеры и описание в карточке */
  --fs-card-price: clamp(1.25rem, 1.6vw, 1.65rem);  /* цена */
  --fs-plaque: clamp(0.9rem, 1vw, 1.1rem);      /* диапазон на плашке размера */
  --fs-plaque-note: clamp(0.65rem, 0.72vw, 0.75rem); /* «единый размер» на плашке */
  --fs-plaque-note-mobile: 0.75rem;             /* та же подпись на телефоне: не мельче 12 px */
  --fs-exclusive: clamp(1.7rem, 2vw, 2.2rem);   /* Exclusive — Italianno очень тонкий, кегль крупнее */
  --fs-tip: clamp(0.75rem, 0.85vw, 0.875rem);   /* подсказка у плашки Exclusive */
  --fs-game-title: clamp(1.35rem, 2.2vw, 2.4rem);   /* заголовок баннера игры */
  --fs-trust-value: clamp(1.5rem, 2.9vw, 3.25rem);  /* крупные цифры в блоке доверия */
  --fs-trust-value-mobile: clamp(1.1rem, 6vw, 1.5rem); /* на телефоне: «Сертификаты» влезает и в 320 px */
  --fs-trust-caption: clamp(0.85rem, 1vw, 1.05rem); /* подпись под цифрой */
  --fs-delivery-title: clamp(1rem, 1.2vw, 1.25rem); /* заголовок пункта в «Доставке и оплате» */
  --fs-cta-title: clamp(1.6rem, 2.6vw, 3rem);    /* «Готовы примерить новую роль?» */
  --fs-about-lead: clamp(0.9rem, 1vw, 1.05rem);  /* подзаголовок «О бренде» */
  --fs-about-text: clamp(1rem, 1.15vw, 1.2rem);  /* основной текст «О бренде» */
  --fs-footer-title: clamp(1.25rem, 1.8vw, 1.75rem); /* КОНТАКТЫ */
  --fs-footer-contact: clamp(1.1rem, 1.5vw, 1.5rem); /* телефон и почта */
  --fs-footer-small: clamp(0.75rem, 0.85vw, 0.875rem); /* реквизиты и ссылки */  --fs-btn: clamp(1rem, 1.1vw, 1.1rem);          /* обычные кнопки: гейт, cookie */
  --fs-gate-title: clamp(1.6rem, 2.6vw, 2.25rem); /* «Вам есть 18 лет?» */
  --fs-gate-text: clamp(0.95rem, 1.1vw, 1.1rem); /* текст гейта и cookie-баннера */
  --fs-header-label: clamp(0.95rem, 1.1vw, 1.1rem); /* надпись «Каталог» у бургера */
  --fs-menu-link: clamp(1.15rem, 1.5vw, 1.5rem);     /* пункты меню: О БРЕНДЕ, КАТАЛОГ… (по референсу) */
  --fs-breadcrumbs: clamp(0.8rem, 0.9vw, 0.95rem);  /* хлебные крошки */
  --fs-product-kind: clamp(0.8rem, 0.9vw, 0.95rem); /* подпись «РОЛЕВОЙ КОСТЮМ» */
  --fs-product-title: clamp(1.75rem, 2.6vw, 2.5rem); /* название товара, H1 */
  --fs-product-price: clamp(1.6rem, 2.2vw, 2.25rem); /* цена на странице товара */
  --fs-product-body: clamp(0.9rem, 1vw, 1rem);      /* тексты в аккордеонах и таблицах */
  --fs-variant: 0.75rem;                             /* кнопки «Единый 42–46» */
  --fs-accordion: clamp(0.9rem, 1vw, 1rem);          /* заголовки аккордеонов */
  --fs-product-note: clamp(0.8rem, 0.9vw, 0.9rem);   /* состав, чек-лист и ссылка Telegram в карточке */

  --font-script: "Italianno", "Times New Roman", serif; /* только для латиницы: Exclusive */

  --lh-title: 1.14;             /* межстрочный интервал заголовка */
  --lh-text: 1.2;               /* межстрочный интервал остального текста */
  --lh-bridge: 1.45;            /* межстрочный интервал эмоционального моста */
  --lh-card: 1.45;              /* межстрочный интервал описаний в карточке */
  --lh-plaque: 1.1;             /* плотные строки на плашках */
  --lh-about: 1.6;              /* длинный текст «О бренде» — просторнее */

  /* ---------- Цвета ---------- */

  --bg: #0b0b0c;                            /* тёмная база сайта */
  --text: #fff;                             /* основной текст */
  --text-muted: rgba(255, 255, 255, 0.62);  /* второстепенный текст: подзаголовок, бейдж, разделители */
  --line-subtle: rgba(255, 255, 255, 0.12); /* тонкие линии, полоска загрузки */
  --ticker-bg: #141415;                     /* фон бегущей строки */
  --surface-light: #fff;                    /* светлые блоки (эмоциональный мост) */
  --text-on-light: #0b0b0c;                 /* текст на светлом фоне */
  --text-on-light-muted: rgba(11, 11, 12, 0.6);  /* второстепенный текст на светлом фоне */
  --line-on-light: rgba(11, 11, 12, 0.18);       /* тонкие линии на светлом фоне: кнопки фильтра */
  --plaque-glass: rgba(255, 255, 255, 0.72);     /* светлая полупрозрачная подложка поверх фото: Exclusive */
  --tip-bg: rgba(11, 11, 12, 0.88);              /* тёмная подложка подсказки поверх фото */
  --gate-overlay: rgba(11, 11, 12, 0.86);        /* затемнение страницы под гейтом 18+ */
  --menu-overlay: rgba(11, 11, 12, 0.72);        /* затемнение страницы под открытым меню */

  /* Красный акцент: три оттенка градиента кнопки, обводка и свечение */
  --accent-deep: #4a0000;
  --accent: #6a0000;
  --accent-bright: #8d0000;
  --accent-border: #b5161d;
  --accent-glow: rgba(141, 0, 0, 0.45);
  --accent-gradient: linear-gradient(
    to right,
    var(--accent-deep) 0%,
    var(--accent) 50%,
    var(--accent-bright) 100%
  );

  /* ---------- Затемнения поверх видео ---------- */

  /* Под шапкой, чтобы логотип и иконки читались на любом кадре */
  --shade-header: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0) 100%
  );

  /* На телефоне видео кадрируется по центру, и под логотип попадает лицо модели —
     там затемнение сильнее, иначе логотип теряется на светлых кадрах. */
  --shade-header-mobile: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0) 100%
  );

  /* Слева под текстом и немного снизу */
  --shade-hero:
    linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%);

  /* На телефоне текст внизу, поэтому затемняется низ кадра */
  --shade-hero-mobile: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 35%,
    rgba(0, 0, 0, 0) 60%
  );

  /* Растворение левого края видео в фоне */
  --video-fade: linear-gradient(to right, transparent 0%, #000 22%);

  /* ---------- Тени ---------- */

  --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 18px rgba(0, 0, 0, 0.35);
  --icon-shadow: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  --button-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --button-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  --button-shadow-hover: 0 8px 30px var(--accent-glow);
  --plaque-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);   /* плашки поверх фото */

  /* ---------- Отступы и размеры ---------- */

  /* Отступ контента от левого края — как в макете (≈118px при ширине 1386px) */
  --content-x: clamp(1.5rem, 8.5vw, 10rem);
  --content-x-mobile: 1.5rem;
  --content-top: 8vh;                           /* сдвиг текста вниз, под шапку */
  --content-bottom: 12vh;                       /* поднимает группу выше середины */
  --header-clearance: 1rem;                     /* запас между шапкой и заголовком */
  --content-bottom-mobile: clamp(2.5rem, 9vh, 5rem);

  --header-h: clamp(4rem, 5.4vw, 5.5rem);       /* высота шапки */
  --header-h-compact: 3.25rem;                  /* высота шапки на телефоне ниже хиро */
  --header-transition: 0.25s;                   /* смена фона и высоты шапки */
  --header-x: clamp(1.25rem, 3.4vw, 3.5rem);    /* отступы шапки по бокам */
  --header-gap: clamp(0.75rem, 1.45vw, 1.6rem); /* между избранным и корзиной */
  --header-btn-pad: 0.375rem;                   /* запас для нажатия по иконке */
  --tap-min: 2.75rem;                           /* 44 px — минимальная цель для пальца */
  --tap-pad: 0.7rem;                            /* поля сверху и снизу у текстовых ссылок на телефоне */
  --tap-pad-icon: 0.5rem;                       /* поля вокруг иконок соцсетей на телефоне */

  --icon-size: clamp(1.9rem, 2.5vw, 2.5rem);
  --icon-size-menu: clamp(1.75rem, 2.6vw, 2.4rem);
  --icon-size-badge: clamp(1rem, 1.15vw, 1.25rem); /* 16–20 px, как в структуре */
  --icon-size-trust: clamp(2rem, 2.6vw, 2.5rem);   /* 32–40 px — иконки в блоке доверия */
  --icon-size-social: clamp(1.75rem, 2.1vw, 2.1rem); /* соцсети в подвале */
  --social-glyph-scale: 0.8;                    /* знак-картинка (MAX) заполняет всю ячейку — уменьшаем до размера соседних иконок */
  --icon-stroke: 1.5;                           /* толщина линии иконок */
  --icon-stroke-menu: 3;

  --logo-w: clamp(6.5rem, 9.4vw, 11rem);        /* ширина логотипа в шапке */

  --subtitle-gap: 0.15em;                       /* заголовок → подзаголовок */
  --button-gap: clamp(1.75rem, 3.5vw, 4.25rem); /* подзаголовок → кнопка */
  --badge-gap: clamp(1rem, 1.6vw, 2rem);        /* между пунктами бейджа */
  --badge-gap-mobile: 0.6rem;                   /* между пунктами бейджа на телефоне */
  --badge-icon-gap: 0.5em;                      /* иконка → текст в пункте бейджа */
  --badge-top: clamp(1.25rem, 2vw, 2.5rem);     /* кнопка → бейдж */
  --button-pad-y: clamp(0.9rem, 1.15vw, 1.4rem);
  --button-pad-x: clamp(2.25rem, 3.03vw, 3.75rem);

  --section-pad-x: 1.5rem;

  --ticker-h: clamp(2.25rem, 2.9vw, 2.75rem);   /* высота полосы: 36–44 px */
  --ticker-tracking: 0.18em;                    /* разрядка мелкого шрифта */
  --ticker-sep-gap: 3em;                        /* отступы вокруг разделителя «·» */
  --ticker-travel-speed: 32;                   /* pixels per second */
  --ticker-speed: 45s;                          /* полный проход ленты */
  --bridge-pad-y: clamp(4rem, 5.8vw, 5rem);     /* воздух над и под текстом моста — одинаковый (64–80 px) */
  --bridge-max-w: 46ch;                         /* ширина строки текста */

  --block-pad-y: clamp(3.5rem, 6vw, 6.5rem);    /* вертикальные отступы больших разделов */
  --title-gap: clamp(2rem, 3.5vw, 3.5rem);      /* заголовок раздела → содержимое */
  --lead-gap: clamp(1.75rem, 3vw, 3rem);        /* разделитель → подзаголовок и подзаголовок → фильтр */
  --grid-gap-x: clamp(1rem, 1.8vw, 2rem);       /* между карточками по горизонтали */
  --grid-gap-y: clamp(2.25rem, 3.5vw, 3.5rem);  /* между рядами карточек */
  --card-text-gap: 0.35rem;                     /* между строками текста карточки */
  --card-media-gap: 1rem;                       /* фото → название */
  --filter-gap: 0.4rem;                         /* между кнопками фильтра */
  --filter-btn: 2.5rem;                         /* кнопка фильтра: 40 px, удобно пальцем */
  --plaque-inset: clamp(0.6rem, 1vw, 0.9rem);   /* отступ плашек от края фото */
  --plaque-pad-y: 0.35rem;
  --plaque-pad-x: 0.6rem;
  --exclusive-pad-y: 0.05rem;
  --exclusive-pad-x: 0.65rem;
  --plaque-blur: 6px;                           /* размытие фото под полупрозрачной плашкой */
  --tip-gap: 0.4rem;                            /* плашка Exclusive → подсказка под ней */
  --tip-pad-y: 0.4rem;
  --tip-pad-x: 0.6rem;
  --tip-max-w: 12rem;                           /* ширина подсказки: две короткие строки */
  --note-gap: clamp(2rem, 3vw, 3rem);           /* сетка → строка «Exclusive — ...» */
  --photo-swap: 0.3s;                           /* смена фото при наведении */
  --ui-transition: 0.25s;                       /* реакция кнопок: фильтр и др. */
  --game-banner-ratio: 2000 / 1116;             /* пропорции баннера = пропорции картинки */
  --game-body-w: 45%;                           /* доля правой половины под текст */
  --game-body-w-tablet: 46%;                    /* на планшете текст начинается там же, где пустое поле картинки */
  --game-media-ratio: 4 / 3;                    /* кадр картинки баннера на телефоне */
  --game-pad: clamp(1.75rem, 3.5vw, 3.5rem);    /* поля внутри баннера игры */
  --game-body-gap: clamp(0.6rem, 1vw, 1rem);    /* между строками в баннере игры */
  --game-btn-top: clamp(0.5rem, 1vw, 1rem);     /* цена → кнопка в баннере игры */
  --game-text-max: 42ch;                        /* ширина текста в баннере игры */
  --trust-item-gap: 0.75rem;                    /* иконка → цифра → подпись */
  --trust-caption-max: 22ch;                    /* ширина подписи, чтобы строки были ровнее */
  --faq-max-w: 52rem;                           /* ширина колонки вопросов и ответов */
  --cta-gap: 0.5rem;                            /* заголовок → подзаголовок финального блока */
  --cta-actions-gap: clamp(0.75rem, 1.4vw, 1.25rem); /* между кнопками финального блока */
  --cta-actions-top: clamp(1rem, 2vw, 1.75rem); /* подзаголовок → кнопки */
  --delivery-item-gap: 0.75rem;                 /* иконка → заголовок → текст пункта доставки */
  --delivery-text-max: 26ch;                    /* ширина текста пункта, чтобы строки были ровнее */
  --about-pad-x: clamp(2rem, 5vw, 6.5rem);      /* отступ текста от фото и от края */
  --about-text-max: 38rem;                      /* ширина колонки текста */
  --about-lead-gap: clamp(1.5rem, 2.5vw, 2.25rem); /* подзаголовок → основной текст */
  --about-par-gap: 1em;                         /* между абзацами */
  --about-page-max-w: 52rem;                    /* ширина колонки на странице «О бренде» */
  --about-page-photo-ratio: 3 / 2;              /* пропорции фото на странице «О бренде» */
  --about-photo-max-h: 32rem;                   /* потолок высоты фото: текст блока короткий, высокое фото оставляло пустоту */
  --footer-logo-w: clamp(7.5rem, 11vw, 11rem);  /* логотип в подвале (white.png почти квадратный) */
  --footer-gap: clamp(0.75rem, 1.2vw, 1.1rem);  /* между строками контактов */
  --social-gap: clamp(1.25rem, 2.2vw, 2rem);    /* между иконками соцсетей */
  --footer-logo-gap: clamp(3rem, 6vw, 5.5rem);  /* воздух между логотипом и нижней строкой */
  --footer-row-gap: 0.6rem;                     /* между строками внизу подвала */
  --footer-sep-gap: 0.7em;                      /* отступы вокруг разделителя «·» */
  --age-mark-pad-y: 0.1em;
  --age-mark-pad-x: 0.55em;
  --to-top-size: 3rem;                          /* кнопка «Наверх», 48 px */
  --to-top-offset: clamp(1rem, 2vw, 1.75rem);   /* отступ кнопки от угла экрана */
  --btn-pad-y: 0.85rem;                         /* обычные кнопки: гейт, cookie */
  --btn-pad-x: 1.75rem;
  --gate-w: 30rem;                              /* ширина окна гейта */
  --gate-pad: clamp(2rem, 5vw, 3.25rem);        /* внутренние отступы окна */
  --gate-gap: clamp(0.75rem, 1.5vw, 1.1rem);    /* между элементами окна */
  --gate-logo-w: clamp(6.5rem, 9vw, 8rem);      /* логотип в гейте (white.png почти квадратный) */
  --gate-blur: 8px;                             /* размытие страницы под гейтом */
  --cookie-pad-y: clamp(0.85rem, 1.4vw, 1.1rem); /* внутренние отступы cookie-баннера */
  --cookie-gap: clamp(0.75rem, 2vw, 2rem);      /* текст → кнопка «Принять» */
  --cookie-text-max: 56rem;                     /* ширина текста в баннере */
  --menu-label-gap: 0.6rem;                     /* бургер → надпись «Каталог» */
  --menu-pad-y: clamp(2rem, 4vw, 3.5rem);       /* воздух в панели меню сверху и снизу */
  --menu-link-gap: clamp(1.4rem, 2.5vw, 2.25rem); /* между пунктами меню — просторно, как в референсе */
  --menu-tracking: 0.02em;                      /* разрядка заглавных в пунктах меню */
  --menu-transition: 0.3s;                      /* выезд панели меню */
  --menu-offset: var(--header-h);               /* где начинается содержимое панели; js/menu.js ставит точную высоту шапки */
  --scrollbar-w: 0px;                           /* ширина полосы прокрутки; js/menu.js замеряет при открытии меню */
  --product-max-w: 80rem;                       /* ширина содержимого страницы товара */
  --product-top-gap: clamp(1.5rem, 3vw, 3rem);  /* шапка → хлебные крошки */
  --product-gap: clamp(1.5rem, 3vw, 3.5rem);    /* галерея → информация о товаре */
  --product-stack-gap: clamp(0.75rem, 1.2vw, 1.1rem); /* между элементами правой колонки */
  --gallery-gap: clamp(0.4rem, 0.7vw, 0.75rem); /* между превью галереи */
  --gallery-max-w: 40rem;                       /* ширина галереи на планшете и телефоне */
  --thumb-mobile-w: 4.5rem;                     /* превью в ленте на узких экранах */
  --variant-pad-y: 0.35rem;                     /* кнопки размерных вариантов */
  --variant-pad-x: 0.8rem;
  --variant-photo-w: clamp(4.5rem, 6.5vw, 6rem); /* маленькие фото вариантов */
  --variant-photo-offset: 3px;                  /* рамка выбранного фото отступает от снимка */
  --fav-btn: 2.9rem;                            /* квадратная кнопка «В избранное» */
  --perks-gap: 0.4rem;                          /* между строками чек-листа в карточке */
  --perk-icon-gap: 0.55em;                      /* галочка → текст в чек-листе */
  --icon-size-perk: clamp(0.9rem, 1vw, 1rem);   /* галочка в чек-листе */
  --link-underline-offset: 0.2em;               /* подчёркивание текстовых ссылок */
  --accordion-pad-y: 1.1rem;                    /* высота строки аккордеона */
  --accordion-chevron: 0.5em;                   /* стрелка аккордеона */
  --specs-pad-y: 0.55rem;                       /* строки таблиц характеристик и замеров */
  --dialog-w: 40rem;                            /* окно «Таблица размеров» */
  --dialog-pad-mobile: 1.5rem 1.1rem;           /* поля окна на телефоне: иначе таблица не влезает */
  --dialog-cell-pad-mobile: 0.3rem;             /* отступы в ячейках таблицы на телефоне */

  --radius-button: 12px;                        /* скругление кнопок */
  --radius-icon: 8px;
  --radius-plaque: 6px;                         /* плашки на фото товара */
  --radius-panel: 16px;                         /* окна: гейт 18+ */

  --loader-h: 2px;                              /* полоска загрузки видео */

  /* ---------- Слои (что поверх чего) ---------- */

  --z-header: 10;                               /* шапка — над контентом */
  --z-to-top: 15;                               /* кнопка «Наверх» — над шапкой, под cookie */
  --z-menu: 16;                                 /* открытое меню — над кнопкой «Наверх» */
  --z-menu-header: 17;                          /* шапка поверх открытого меню: в ней крестик */
  --z-cookie: 20;                               /* cookie-баннер — над шапкой */
  --z-gate: 30;                                 /* гейт 18+ — над всем */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Шапка ---------- */

/* Шапка закреплена и видна на всей странице. Два состояния фона:
   над хиро — прозрачная, с затемнением сверху;
   ниже хиро (класс is-solid ставит js/header.js) — плотный тёмный фон,
   иначе белые логотип и иконки пропадут на светлых блоках. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--header-x);
  background-color: transparent;
  transition:
    background-color var(--header-transition) ease,
    height var(--header-transition) ease;
}

.site-header.is-solid {
  background-color: var(--ticker-bg);
}

/* Затемнение сверху: под логотипом и иконками. Уходит в прозрачность плавно,
   без видимой границы, поэтому работает поверх любого кадра и любого блока. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-h) * 2.2);
  background: var(--shade-header);
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--header-transition) ease;
}

/* На плотном фоне затемнение не нужно — иначе под шапкой ляжет тёмный градиент */
.site-header.is-solid::before {
  opacity: 0;
}

.site-header > .site-header__btn {
  justify-self: start;
}

.site-header__logo {
  position: relative;
  grid-column: 2;
  display: block;
  filter: var(--icon-shadow);
}

.site-header__logo img {
  display: block;
  width: var(--logo-w);
  height: auto;
  transition: opacity var(--header-transition) ease;
}

/* Белый логотип лежит поверх прежнего и проявляется, когда шапка становится плотной */
.site-header__logo-img--solid {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
}

.site-header.is-solid .site-header__logo-img--hero {
  opacity: 0;
}

.site-header.is-solid .site-header__logo-img--solid {
  opacity: 1;
}

.site-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--header-gap);
}

.site-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-btn-pad);
  margin: calc(-1 * var(--header-btn-pad));
  border: 0;
  border-radius: var(--radius-icon);
  background: none;
  color: var(--text);
  cursor: pointer;
  filter: var(--icon-shadow);
  transition: opacity 0.2s ease;
}

.site-header__btn:hover {
  opacity: 0.75;
}

.site-header__btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.site-header__icon {
  display: block;
  width: var(--icon-size);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__icon--menu {
  width: var(--icon-size-menu);
  stroke-width: var(--icon-stroke-menu);
}

/* ---------- Hero ---------- */

.hero {
  /* Длина прокрутки, за которую проигрывается всё видео (включая один экран,
     на котором Hero «прилипает»). Больше значение — медленнее идёт ролик.
     250vh = полтора экрана прокрутки: один занимает само хиро, полтора остаются на видео.
     Подобрано под ролик 0924 (2,8 с): примерно 16 px прокрутки на кадр. */
  --scrub-length: 250vh;

  /* Высота нижней панели мобильного браузера, когда она видна (на компьютере — 0).
     Нужна, чтобы текст и полоска загрузки не прятались под панелью. */
  --toolbar-gap: 0px;

  position: relative;
  height: var(--scrub-length);
}

@supports (height: 100lvh) {
  .hero {
    --toolbar-gap: calc(100lvh - 100svh);
  }
}

/* Высота «большого» экрана (lvh) не меняется, когда на телефоне прячется
   или появляется адресная строка, — поэтому видео не прыгает при прокрутке. */
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--bg);
}

/* Видео заполняет всю высоту экрана Hero и сдвинуто вправо, чтобы модель
   не заходила под текст.
   --video-w — ширина ролика (16:9) при заполнении экрана: по ширине экрана,
   а на «высоких» экранах — по высоте (тогда лишнее обрезается справа).
   Смещение подобрано по раскадровке: на уровне текста левый край модели
   на всех кадрах не левее 30% ширины кадра (--subject-left), и эта точка
   ставится на 46% ширины экрана (--subject-target) — правее текста. */
.hero__video {
  --video-w: max(100%, 100vh * 16 / 9);
  --subject-left: 0.3;
  --subject-target: 46%;

  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--subject-target) - var(--subject-left) * var(--video-w));
  width: var(--video-w);
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;

  /* Левый край ролика плавно растворяется в тёмном фоне — пустое место
     слева выглядит как затемнение, без видимой границы кадра. */
  -webkit-mask-image: var(--video-fade);
  mask-image: var(--video-fade);
}

@supports (height: 100lvh) {
  .hero__video {
    --video-w: max(100%, 100lvh * 16 / 9);
  }
}

/* Мягкое затемнение слева, под текстом, и немного снизу */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--shade-hero);
  pointer-events: none;
}

/* Текст и кнопка лежат в прилипшем экране, поэтому стоят на месте,
   пока под ними прокручивается видео. */
.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--toolbar-gap);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Блок центрирован по высоте со сдвигом вниз под шапку — как в макете.
     max() держит верх группы ниже шапки даже на низких окнах,
     иначе заголовок заезжает под меню и логотип. */
  padding: max(var(--content-top), calc(var(--header-h) + var(--header-clearance)))
           var(--content-x) var(--content-bottom);
  pointer-events: none;
  opacity: var(--hero-content-opacity, 1);
}

/* Посетитель вышел из Hero — текст и кнопка плавно исчезают */
.hero.is-leaving .hero__content {
  visibility: hidden;
}

.hero__title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
  color: var(--text);
  text-shadow: var(--text-shadow);
}

.hero__subtitle {
  margin: var(--subtitle-gap) 0 0;
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
  color: var(--text-muted);
  text-shadow: var(--text-shadow);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--button-gap);
  padding: var(--button-pad-y) var(--button-pad-x);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-button);
  background: var(--accent-gradient);
  box-shadow: var(--button-shadow);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-button);
  font-weight: var(--fw-light);
  line-height: var(--lh-text);
  text-decoration: none;
  text-shadow: var(--button-text-shadow);
  pointer-events: auto;
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}

.hero__cta:hover {
  filter: brightness(1.2);
  box-shadow: var(--button-shadow-hover);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Строка-бейдж под кнопкой: на компьютере в одну строку, на телефоне — в столбик.
   Пункты разделены только отступом — иконка у каждого пункта сама отделяет его. */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--badge-gap);
  margin: var(--badge-top) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-badge);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
  color: var(--text-muted);
  text-shadow: var(--text-shadow);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--badge-icon-gap);
}

.hero__badge-icon {
  flex: none;
  width: var(--icon-size-badge);
  height: var(--icon-size-badge);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Полоска загрузки видео внизу экрана Hero */
.hero__loader {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--toolbar-gap);
  height: var(--loader-h);
  background: var(--line-subtle);
  transition: opacity 0.4s ease;
}

.hero__loader-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--text);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.2s linear;
}

.hero.is-ready .hero__loader {
  opacity: 0;
}

/* Телефоны: видео кадрируется по центру (лицо модели), поэтому текст уходит вниз */
@media (max-width: 767px) {
  /* На телефоне экран прокрутки ощущается дольше, поэтому хиро короче:
     один экран прокрутки — пролистнули раз и уже в каталоге */
  .hero {
    --scrub-length: 200vh;
  }

  .site-header::before {
    background: var(--shade-header-mobile);
  }

  /* Ниже хиро шапка на телефоне ниже — экономим вертикаль */
  .site-header.is-solid {
    height: var(--header-h-compact);
  }

  .hero__video {
    left: calc((100% - var(--video-w)) / 2);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__scrim {
    background: var(--shade-hero-mobile);
  }

  .hero__content {
    --content-x: var(--content-x-mobile);
    justify-content: flex-end;
    padding-bottom: var(--content-bottom-mobile);
  }

  /* Размер подобран так, чтобы строка «ИСКУССТВО СОБЛАЗНА» помещалась в ширину экрана */
  .hero__title {
    font-size: var(--fs-title-mobile);
  }

  /* Подзаголовок переносится по смыслу: «Эротические костюмы / от 40 до 52 размера».
     В HTML это одно предложение, перенос включается только здесь. */
  .hero__subtitle-part {
    display: block;
  }

  /* Бейдж в столбик */
  .hero__badges {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--badge-gap-mobile);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero.is-leaving .hero__content {
    transform: none;
  }

  /* Лента не бежит: фраза стоит по центру один раз */
  .ticker__track {
    flex: 1;
    justify-content: center;
    animation: none;
  }

  .ticker__item {
    padding-right: 0;
  }

  .ticker__item:not(:first-child) {
    display: none;
  }

  .ticker__item::after {
    content: none;
  }
}

/* ---------- ЭКРАН 1.5. Бегущая строка ---------- */

.ticker {
  display: flex;
  align-items: center;
  height: var(--ticker-h);
  overflow: hidden;
  background: var(--ticker-bg);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  font-size: var(--fs-ticker);
  color: var(--text-muted);
  letter-spacing: var(--ticker-tracking);
  white-space: nowrap;
  /* Лента не должна растягивать страницу вбок */
  max-width: 100%;
}

.ticker__track {
  display: flex;
  flex: none;
  /* Лента прокручивается ровно на половину дорожки: вторая половина —
     точная копия первой, поэтому стык не виден. */
  animation: ticker-scroll var(--ticker-speed) linear infinite;
}

.ticker__item {
  flex: none;
  padding-right: var(--ticker-sep-gap);
}

/* Разделитель между повторами */
.ticker__item::after {
  content: "·";
  margin-left: var(--ticker-sep-gap);
  color: var(--text-muted);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- ЭКРАН 2. Эмоциональный мост ---------- */

/* Пауза между хиро и каталогом: воздух над текстом и под ним одинаковый */
.bridge {
  padding: var(--bridge-pad-y) var(--section-pad-x);
  background: var(--surface-light);
  text-align: center;
}

/* Мост и каталог оба светлые: свой верхний отступ каталогу не нужен,
   воздух до «КАТАЛОГ» — это нижний отступ моста. Иначе они складываются. */
.bridge + .catalog {
  padding-top: 0;
  /* Переход по кнопке из хиро: над «КАТАЛОГ» тот же воздух, что под текстом моста */
  scroll-margin-top: calc(var(--header-h) + var(--bridge-pad-y));
}

.bridge__text {
  max-width: var(--bridge-max-w);
  margin: 0 auto;
  font-size: var(--fs-bridge);
  font-weight: var(--fw-light);
  line-height: var(--lh-bridge);
  color: var(--text-on-light);
  text-wrap: balance;
}

.bridge__accent {
  font-weight: var(--fw-bold);
  color: var(--text-on-light);
}

/* ---------- Общие элементы разделов ---------- */

/* Внутренний контейнер: те же боковые отступы, что у текста хиро */
.container {
  padding-left: var(--content-x);
  padding-right: var(--content-x);
}

.section-title {
  margin: 0 0 var(--title-gap);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
  text-align: center;
}

/* Тёмная полоса-разделитель во всю ширину: «Ролевые костюмы», «Игры 18+».
   Высота и разрядка — как у бегущей строки, но текст статичный. */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ticker-h);
  margin: 0;
  background: var(--ticker-bg);
  color: var(--text);
  font-size: var(--fs-ticker);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ticker-tracking);
}

/* ---------- ЭКРАН 3. Каталог ---------- */

.catalog {
  padding: var(--block-pad-y) 0;
  background: var(--surface-light);
  color: var(--text-on-light);
  /* При переходе по якорю #catalog раздел останавливается под закреплённой шапкой */
  scroll-margin-top: var(--header-h);
}

.catalog .divider + .container,
.games .divider + .container {
  padding-top: var(--lead-gap);
}

.catalog__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-text);
  text-align: center;
}

.catalog__lead-main {
  font-weight: var(--fw-bold);
}

.catalog__num {
  font-size: var(--fs-lead-num);
}

.catalog__lead-note {
  font-weight: var(--fw-light);
  color: var(--text-on-light-muted);
  text-wrap: balance;   /* на узком экране — две ровные строки, без одинокого слова */
}

/* Фильтр по размеру — справа над сеткой */
.size-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--filter-gap);
  margin: var(--lead-gap) 0 var(--title-gap);
  font-size: var(--fs-filter);
}

.size-filter__label {
  margin-right: var(--filter-gap);
  color: var(--text-on-light-muted);
}

.size-filter__btn {
  min-width: var(--filter-btn);
  height: var(--filter-btn);
  padding: 0;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-icon);
  background: transparent;
  color: var(--text-on-light);
  font: inherit;
  cursor: pointer;
  transition:
    background-color var(--ui-transition) ease,
    color var(--ui-transition) ease,
    border-color var(--ui-transition) ease;
}

.size-filter__btn:hover {
  border-color: var(--text-on-light);
}

.size-filter__btn[aria-pressed="true"] {
  border-color: var(--text-on-light);
  background: var(--text-on-light);
  color: var(--surface-light);
}

.size-filter__btn:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

/* Сетка: 4 колонки на компьютере, 2 на планшете, 1 на телефоне */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap-y) var(--grid-gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card[hidden] {
  display: none;
}

.card__link {
  display: flex;
  flex-direction: column;
  gap: var(--card-text-gap);
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card__link:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 4px;
}

.card__media {
  position: relative;
  aspect-ratio: 1200 / 1614;
  margin-bottom: var(--card-media-gap);
  overflow: hidden;
  background: var(--line-on-light);
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Второе фото лежит поверх первого и проявляется при наведении.
   Грузится только на устройствах с мышью — это делает js/catalog.js. */
.card__photo-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--photo-swap) ease;
}

@media (hover: hover) and (pointer: fine) {
  .card__link:hover .card__photo-alt.is-loaded,
  .card__link:focus-visible .card__photo-alt.is-loaded {
    opacity: 1;
  }
}

/* Плашка размера: левый нижний угол фото */
.card__size-plaque {
  position: absolute;
  left: var(--plaque-inset);
  bottom: var(--plaque-inset);
  display: flex;
  flex-direction: column;
  padding: var(--plaque-pad-y) var(--plaque-pad-x);
  border-radius: var(--radius-plaque);
  background: var(--surface-light);
  box-shadow: var(--plaque-shadow);
  color: var(--text-on-light);
  line-height: var(--lh-plaque);
}

.card__size-range {
  font-size: var(--fs-plaque);
  font-weight: var(--fw-regular);
}

.card__size-note {
  font-size: var(--fs-plaque-note);
  color: var(--text-on-light-muted);
}

/* Плашка Exclusive: правый верхний угол. Тёмный Italianno (только латиница)
   на светлой полупрозрачной подложке; лёгкое размытие под ней, чтобы надпись
   читалась на любом участке фото. */
.card__exclusive {
  position: absolute;
  top: var(--plaque-inset);
  right: var(--plaque-inset);
  padding: var(--exclusive-pad-y) var(--exclusive-pad-x);
  border-radius: var(--radius-plaque);
  background: var(--plaque-glass);
  -webkit-backdrop-filter: blur(var(--plaque-blur));
  backdrop-filter: blur(var(--plaque-blur));
  color: var(--text-on-light);
  font-family: var(--font-script);
  font-size: var(--fs-exclusive);
  line-height: var(--lh-plaque);
}

/* Вариант в левом верхнем углу — для обложек, где справа вверху свой текст (игра) */
.card__exclusive--left {
  right: auto;
  left: var(--plaque-inset);
}

/* Подсказка у плашки: объясняет, что значит Exclusive, прямо на месте.
   Своя, а не системный title: тот появляется с задержкой и выглядит чужеродно.
   Появляется только при наведении мышью и при переходе по карточке с клавиатуры;
   на телефоне наведения нет — там смысл объясняет строка под сеткой. */
.card__tip {
  position: absolute;
  top: calc(100% + var(--tip-gap));
  right: 0;
  width: max-content;
  max-width: var(--tip-max-w);
  padding: var(--tip-pad-y) var(--tip-pad-x);
  border-radius: var(--radius-plaque);
  background: var(--tip-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-tip);
  font-weight: var(--fw-regular);
  line-height: var(--lh-card);
  text-align: left;
  text-wrap: balance;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--ui-transition) ease,
    visibility 0s linear var(--ui-transition);
}

.card__exclusive--left .card__tip {
  right: auto;
  left: 0;
}

@media (hover: hover) {
  .card__exclusive:hover .card__tip,
  .card__link:focus-visible .card__tip {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--ui-transition) ease;
  }
}

.card__title {
  margin: 0;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
}

.card__kind,
.card__sizes,
.card__desc {
  margin: 0;
  font-size: var(--fs-card-meta);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
}

/* Цена прижата к низу карточки — в ряду цены стоят на одной линии */
.card__price {
  margin: auto 0 0;
  padding-top: var(--card-text-gap);
  font-size: var(--fs-card-price);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
}

.catalog__note {
  margin: var(--note-gap) 0 var(--block-pad-y);
  font-size: var(--fs-card-meta);
  color: var(--text-on-light-muted);
  text-align: center;
}

/* Планшет: 2 колонки */
@media (max-width: 1023px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Телефон: 1 колонка, фильтр во всю ширину */
@media (max-width: 767px) {
  .container {
    padding-left: var(--content-x-mobile);
    padding-right: var(--content-x-mobile);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .size-filter {
    justify-content: space-between;
  }

  .size-filter__label {
    flex-basis: 100%;
    margin: 0 0 var(--filter-gap);
    text-align: center;
  }

  /* Семь кнопок в один ряд даже на 320 px: ширину не держим, держим высоту —
     палец попадает по 44 px вниз, а ширина делится поровну */
  .size-filter__btn {
    flex: 1;
    min-width: 0;
    height: var(--tap-min);
  }
}

/* ---------- Блок доверия ---------- */

.trust {
  padding: var(--block-pad-y) 0;
  background: var(--surface-light);
  color: var(--text-on-light);
}

/* Доставка и доверие идут подряд и оба светлые: не складываем два больших отступа */
.delivery + .trust {
  padding-top: 0;
}

.trust__title-line {
  display: block;
  text-wrap: balance;
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap-y) var(--grid-gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--trust-item-gap);
  text-align: center;
}

.trust__icon {
  width: var(--icon-size-trust);
  height: var(--icon-size-trust);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust__value {
  margin: 0;
  font-size: var(--fs-trust-value);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
  white-space: nowrap;
}

.trust__caption {
  max-width: var(--trust-caption-max);
  margin: 0;
  font-size: var(--fs-trust-caption);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
  text-wrap: balance;
}

/* Телефон: два ряда по два пункта */
@media (max-width: 767px) {
  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust__value {
    font-size: var(--fs-trust-value-mobile);
  }
}

/* ---------- О бренде ---------- */

/* Две колонки: фото задаёт высоту блока своими пропорциями,
   текст выравнивается по центру этой высоты. Если текст окажется выше фото,
   фото растянется на всю высоту и обрежется по бокам, без пустых полей. */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--surface-light);
  color: var(--text-on-light);
}

.about__media {
  position: relative;
  overflow: hidden;
  background: var(--line-on-light);
}

/* Распорка задаёт МИНИМАЛЬНУЮ высоту по пропорциям фото (1200×1614), но с потолком.
   Если текст выше — колонка растягивается, фото заполняет её целиком. */
.about__media::before {
  content: "";
  display: block;
  padding-top: min(calc(1614 / 1200 * 100%), var(--about-photo-max-h));
}

.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;   /* при обрезке сохраняем лицо */
}

.about__body {
  align-self: center;
  max-width: calc(var(--about-text-max) + var(--about-pad-x) * 2);
  padding: var(--block-pad-y) var(--about-pad-x);
}

.about__title {
  margin-bottom: var(--card-text-gap);
  text-align: left;
  text-wrap: balance;
}

/* Короткий текст блока на главной: полная версия — на about.html */
.about__text-short {
  margin: var(--about-lead-gap) 0 0;
  font-size: var(--fs-about-text);
  line-height: var(--lh-about);
}

/* Три факта строкой — то, что отличает бренд, без прилагательных */
.about__facts {
  margin: var(--about-lead-gap) 0 0;
  font-size: var(--fs-about-lead);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
}

.about__more {
  display: inline-block;
  margin-top: var(--about-lead-gap);
  font-size: var(--fs-about-text);
  color: var(--text-on-light);
  text-decoration: underline;
  text-underline-offset: var(--link-underline-offset);
  transition: color var(--ui-transition) ease;
}

@media (hover: hover) {
  .about__more:hover {
    color: var(--text-on-light-muted);
  }
}

.about__lead {
  margin: 0 0 var(--about-lead-gap);
  font-size: var(--fs-about-lead);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
}

.about__text {
  font-size: var(--fs-about-text);
  font-weight: var(--fw-light);
  line-height: var(--lh-about);
}

.about__text p {
  margin: 0 0 var(--about-par-gap);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text strong {
  font-weight: var(--fw-bold);
}

/* Телефон: фото сверху во всю ширину, текст под ним */
@media (max-width: 767px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__body {
    max-width: none;
    padding: var(--block-pad-y) var(--content-x-mobile);
  }
}

/* ---------- Страница «О бренде» ---------- */

.page-about {
  background: var(--surface-light);
}

.about-page {
  padding-top: calc(var(--header-h) + var(--product-top-gap));
  padding-bottom: var(--block-pad-y);
  background: var(--surface-light);
  color: var(--text-on-light);
}

/* Колонка уже страницы: длинный текст в одну широкую строку читать неудобно */
.about-page__inner {
  max-width: var(--about-page-max-w);
  margin-inline: auto;
}

.about-page__media {
  overflow: hidden;
  aspect-ratio: var(--about-page-photo-ratio);
  margin-bottom: var(--title-gap);
  background: var(--line-on-light);
}

.about-page__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-page__text {
  font-size: var(--fs-about-text);
  line-height: var(--lh-about);
}

.about-page__text p {
  margin: 0 0 var(--about-par-gap);
}

.about-page__lead {
  font-size: var(--fs-about-lead);
  color: var(--text-on-light-muted);
}

.about-page__cta {
  margin-top: var(--title-gap);
}

/* ---------- Баннер «Игры 18+» ---------- */

/* Секция с разделителем и баннером: сверху отступа нет — разделитель идёт
   сразу за каталогом, снизу обычный воздух до следующего блока */
.games {
  padding-bottom: var(--block-pad-y);
  background: var(--surface-light);
}

/* Вся плашка — одна ссылка. Картинка нарисована под баннер: слева графика,
   справа пустое поле, поэтому текст лежит поверх правой половины.
   Пропорции баннера равны пропорциям картинки — она не обрезается. */
.game-banner {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--game-banner-ratio);
  background: var(--ticker-bg);
  color: var(--text);
  text-decoration: none;
}

.game-banner__media {
  position: absolute;
  inset: 0;
}

.game-banner__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;   /* при любой обрезке графика слева остаётся целой */
}

/* Текст — в правой половине, по центру по вертикали */
.game-banner__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--game-body-gap);
  width: var(--game-body-w);
  height: 100%;
  margin-left: auto;
  padding: var(--game-pad);
}

.game-banner__title {
  margin: 0;
  font-size: var(--fs-game-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
  text-wrap: balance;
}

.game-banner__text {
  max-width: var(--game-text-max);
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-card);
  color: var(--text-muted);
}

.game-banner__price {
  margin: 0;
  font-size: var(--fs-card-price);
  font-weight: var(--fw-light);
}

.game-banner__btn {
  margin-top: var(--game-btn-top);
}

@media (hover: hover) {
  .game-banner:hover .game-banner__btn {
    filter: brightness(1.2);
    box-shadow: var(--button-shadow-hover);
  }
}

/* Планшет: текста и графики поровну */
@media (max-width: 1023px) {
  .game-banner__body {
    width: var(--game-body-w-tablet);
  }
}

/* Телефон: поверх картинки текст не помещается — картинка сверху, текст под ней.
   Кадрируем по левому краю, чтобы коробка и цифры остались в кадре. */
@media (max-width: 767px) {
  .game-banner {
    aspect-ratio: auto;
  }

  .game-banner__media {
    position: static;
    display: block;
    aspect-ratio: var(--game-media-ratio);
  }

  .game-banner__body {
    width: auto;
    height: auto;
    margin-left: 0;
  }
}

/* ---------- Доставка и оплата ---------- */

.delivery {
  padding: var(--block-pad-y) 0;
  background: var(--surface-light);
  color: var(--text-on-light);
}

.delivery__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap-y) var(--grid-gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--delivery-item-gap);
  text-align: center;
}

.delivery__icon {
  width: var(--icon-size-trust);
  height: var(--icon-size-trust);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery__subtitle {
  margin: 0;
  font-size: var(--fs-delivery-title);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
  text-wrap: balance;
}

.delivery__text {
  max-width: var(--delivery-text-max);
  margin: 0;
  font-size: var(--fs-trust-caption);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
  text-wrap: balance;
}

/* Планшет: два ряда по два пункта */
@media (max-width: 1023px) {
  .delivery__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Телефон: столбиком */
@media (max-width: 767px) {
  .delivery__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Частые вопросы ---------- */

.faq {
  padding: var(--block-pad-y) 0;
  background: var(--surface-light);
  color: var(--text-on-light);
}

/* Длинные строки читать неудобно — колонка уже, чем блок, и по центру.
   В ширину колонки входят боковые отступы контейнера, поэтому box-sizing уже учтён. */
.faq__inner {
  max-width: var(--faq-max-w);
  margin-inline: auto;
}

/* Первый вопрос уже отделён заголовком — верхний отступ аккордеона не нужен */
.faq .accordion {
  margin-top: 0;
  border-top: 1px solid var(--line-on-light);
}

/* ---------- Финальный CTA ---------- */

.cta {
  padding: var(--block-pad-y) 0;
  background: var(--ticker-bg);
  color: var(--text);
  text-align: center;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cta-gap);
}

.cta__title {
  margin: 0;
  font-size: var(--fs-cta-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
  text-wrap: balance;
}

.cta__text {
  margin: 0;
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
  color: var(--text-muted);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cta-actions-gap);
  margin-top: var(--cta-actions-top);
}

/* Телефон: кнопки друг под другом во всю ширину */
@media (max-width: 767px) {
  .cta__actions {
    flex-direction: column;
    align-self: stretch;
  }
}

/* ---------- Подвал ---------- */

.site-footer {
  padding: var(--block-pad-y) 0;
  background: var(--ticker-bg);
  color: var(--text);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--footer-gap);
  text-align: center;
}

.site-footer__title {
  margin: 0 0 var(--footer-gap);
  font-size: var(--fs-footer-title);
  font-weight: var(--fw-light);
  letter-spacing: var(--ticker-tracking);
}

.site-footer__contact {
  color: var(--text);
  font-size: var(--fs-footer-contact);
  font-weight: var(--fw-light);
  text-decoration: none;
  transition: opacity var(--ui-transition) ease;
}

.site-footer a:hover {
  opacity: 0.75;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Иконки соцсетей */
.socials {
  display: flex;
  gap: var(--social-gap);
  margin: var(--footer-gap) 0 0;
  padding: 0;
  list-style: none;
}

.socials__link {
  display: inline-flex;
  padding: var(--header-btn-pad);
  border-radius: var(--radius-icon);
  color: var(--text);
  transition: opacity var(--ui-transition) ease;
}

.socials__icon {
  display: block;
  width: var(--icon-size-social);
  height: var(--icon-size-social);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Знак-картинка без полей внутри файла: уменьшаем, место в ряду остаётся прежним */
.socials__icon--glyph {
  scale: var(--social-glyph-scale);
}

.site-footer__logo {
  display: block;
  margin-top: var(--title-gap);
}

.site-footer__logo img {
  display: block;
  width: var(--footer-logo-w);
  height: auto;
}

/* Нижняя строка — по центру, с воздухом после логотипа */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--footer-row-gap);
  margin-top: var(--footer-logo-gap);
  font-size: var(--fs-footer-small);
  line-height: var(--lh-card);
  color: var(--text-muted);
}

.site-footer__requisites,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Разделитель «·» между пунктами одной строки */
.site-footer__requisites > * + *::before,
.site-footer__links > li + li::before {
  content: "·";
  margin: 0 var(--footer-sep-gap);
}

.site-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ui-transition) ease;
}

.site-footer__links a:hover {
  color: var(--text);
  opacity: 1;
}

/* Пометка 18+ — обязательна */
.age-mark {
  display: inline-block;
  padding: var(--age-mark-pad-y) var(--age-mark-pad-x);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-plaque);
  color: var(--text);
  font-weight: var(--fw-bold);
  line-height: var(--lh-text);
}

/* Телефон: реквизиты и ссылки — в столбик, без разделителей */
@media (max-width: 767px) {
  .site-footer__requisites,
  .site-footer__links {
    flex-direction: column;
    gap: var(--card-text-gap);
  }

  .site-footer__requisites > * + *::before,
  .site-footer__links > li + li::before {
    content: none;
  }
}

/* ---------- Кнопка «Наверх» ---------- */

.to-top {
  position: fixed;
  right: var(--to-top-offset);
  /* --cookie-offset — высота cookie-баннера, пока он виден (ставит js/cookie-banner.js) */
  bottom: calc(var(--to-top-offset) + var(--cookie-offset, 0px));
  z-index: var(--z-to-top);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--to-top-size);
  height: var(--to-top-size);
  padding: 0;
  border: 1px solid var(--line-subtle);
  border-radius: 50%;
  background: var(--ticker-bg);
  box-shadow: var(--button-shadow);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity var(--ui-transition) ease,
    transform var(--ui-transition) ease,
    visibility 0s linear var(--ui-transition);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--ui-transition) ease,
    transform var(--ui-transition) ease,
    visibility 0s linear 0s;
}

.to-top:hover {
  border-color: var(--text-muted);
}

.to-top:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.to-top__icon {
  width: var(--icon-size-badge);
  height: var(--icon-size-badge);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Кнопки: гейт 18+, cookie-баннер ---------- */

/* Основная — в стиле кнопки хиро (красный градиент, скруглённые края),
   но компактнее. Кнопку хиро не трогаем. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-size: var(--fs-btn);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
  text-decoration: none;
  cursor: pointer;
  transition:
    filter var(--ui-transition) ease,
    border-color var(--ui-transition) ease,
    box-shadow var(--ui-transition) ease;
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn--primary {
  border-color: var(--accent-border);
  background: var(--accent-gradient);
  box-shadow: var(--button-shadow);
  color: var(--text);
  text-shadow: var(--button-text-shadow);
}

.btn--primary:hover {
  filter: brightness(1.2);
  box-shadow: var(--button-shadow-hover);
}

/* Второстепенная — прозрачная с тонкой рамкой */
.btn--ghost {
  border-color: var(--text-muted);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
}

/* ---------- Возрастной гейт 18+ ---------- */

/* Пока возраст не подтверждён — страница под окном не прокручивается */
html:not(.age-ok),
html:not(.age-ok) body {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--content-x-mobile);
  background: var(--gate-overlay);
  -webkit-backdrop-filter: blur(var(--gate-blur));
  backdrop-filter: blur(var(--gate-blur));
  overscroll-behavior: contain;
  touch-action: none;
}

/* Возраст уже подтверждён — окна нет (на случай, если скрипт не успел его убрать) */
html.age-ok .age-gate {
  display: none;
}

.age-gate__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gate-gap);
  width: 100%;
  max-width: var(--gate-w);
  padding: var(--gate-pad);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-panel);
  background: var(--ticker-bg);
  box-shadow: var(--button-shadow);
  color: var(--text);
  text-align: center;
}

.age-gate__logo {
  display: block;
  width: var(--gate-logo-w);
  height: auto;
  margin-bottom: var(--gate-gap);
}

.age-gate__title {
  margin: 0;
  font-size: var(--fs-gate-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
}

.age-gate__text {
  margin: 0;
  font-size: var(--fs-gate-text);
  line-height: var(--lh-card);
  color: var(--text-muted);
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--filter-gap) var(--gate-gap);
  margin-top: var(--gate-gap);
}

/* Телефон: кнопки друг под другом во всю ширину */
@media (max-width: 767px) {
  .age-gate__actions {
    flex-direction: column;
    align-self: stretch;
  }
}

/* ---------- Cookie-баннер ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--cookie-gap);
  padding: var(--cookie-pad-y) var(--content-x);
  border-top: 1px solid var(--line-subtle);
  background: var(--ticker-bg);
  box-shadow: var(--button-shadow);
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity var(--ui-transition) ease,
    transform var(--ui-transition) ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

/* display: flex выше перебивает атрибут hidden — скрываем явно,
   иначе невидимая кнопка «Принять» была бы доступна с клавиатуры во время гейта */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  max-width: var(--cookie-text-max);
  margin: 0;
  font-size: var(--fs-gate-text);
  line-height: var(--lh-card);
}

.cookie-banner__text a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

.cookie-banner__btn {
  flex: none;
}

.cookie-banner a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Телефон: текст сверху, кнопка во всю ширину под ним */
@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding-left: var(--content-x-mobile);
    padding-right: var(--content-x-mobile);
    text-align: center;
  }
}

/* ---------- Шапка: надпись «Каталог» у бургера (все страницы) ---------- */

.site-header__btn--menu {
  gap: var(--menu-label-gap);
}

.site-header__menu-label {
  font-family: var(--font);
  font-size: var(--fs-header-label);
  font-weight: var(--fw-regular);
  line-height: var(--lh-text);
}

/* ---------- Меню по кнопке «Каталог» (все страницы) ---------- */

/* Пока меню открыто, вместо бургера — крестик */
.site-header__icon--close {
  display: none;
}

.site-header__btn--menu[aria-expanded="true"] .site-header__icon--menu {
  display: none;
}

.site-header__btn--menu[aria-expanded="true"] .site-header__icon--close {
  display: block;
}

/* Шапка остаётся над панелью меню — через неё меню и закрывают */
html.is-menu-open .site-header {
  z-index: var(--z-menu-header);
  padding-right: calc(var(--header-x) + var(--scrollbar-w));
  background-color: var(--ticker-bg);
}

/* Страница под открытым меню не прокручивается. Ширину исчезнувшей полосы
   прокрутки возвращаем отступом, чтобы содержимое не сдвинулось вбок. */
html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
}

html.is-menu-open body {
  padding-right: var(--scrollbar-w);
}

/* Слой на весь экран: сверху панель, ниже — затемнение, клик по нему закрывает меню */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--menu-overlay);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity var(--menu-transition) ease,
    visibility 0s linear var(--menu-transition);
}

.site-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--menu-transition) ease;
}

/* Панель во всю ширину, выезжает сверху из-под шапки */
.site-menu__panel {
  max-height: 100%;
  overflow-y: auto;
  padding: calc(var(--menu-offset) + var(--menu-pad-y)) var(--header-x) var(--menu-pad-y);
  background: var(--ticker-bg);
  color: var(--text);
  transform: translateY(-100%);
  transition: transform var(--menu-transition) ease;
}

.site-menu.is-open .site-menu__panel {
  transform: none;
}

.site-menu__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--menu-link-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu__link {
  font-size: var(--fs-menu-link);
  font-weight: var(--fw-regular);
  line-height: var(--lh-title);
  letter-spacing: var(--menu-tracking);
  color: var(--text);
  text-decoration: none;
  transition: color var(--ui-transition) ease;
}

/* Только для мыши: на сенсорном экране после касания подсветка «залипала» бы */
@media (hover: hover) {
  .site-menu__link:hover {
    color: var(--text-muted);
  }
}

.site-menu__link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* Иконки те же, что в подвале; сдвиг влево — поле вокруг иконки для удобного нажатия */
.site-menu__socials {
  margin: var(--menu-pad-y) 0 0 calc(-1 * var(--header-btn-pad));
}

@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .site-menu.is-open,
  .site-menu__panel {
    transition: none;
  }
}

/* Блоки, к которым ведут пункты меню, останавливаются под закреплённой шапкой */
.about,
.delivery,
.faq {
  scroll-margin-top: var(--header-h);
}

/* ========== Страница товара ========== */

.page-product {
  background: var(--surface-light);
}

.product-page {
  padding-top: calc(var(--header-h) + var(--product-top-gap));
  padding-bottom: var(--block-pad-y);
  background: var(--surface-light);
  color: var(--text-on-light);
}

/* Содержимое страницы товара не растягивается шире --product-max-w */
.product-page .container {
  max-width: calc(var(--product-max-w) + var(--content-x) * 2);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Хлебные крошки ---------- */

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--filter-gap);
  margin: 0 0 var(--title-gap);
  padding: 0;
  list-style: none;
  font-size: var(--fs-breadcrumbs);
  color: var(--text-on-light-muted);
}

.breadcrumbs__list li + li::before {
  content: "›";
  margin-right: var(--filter-gap);
}

.breadcrumbs__list a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs__list a:hover {
  color: var(--text-on-light);
  text-decoration: underline;
}

.breadcrumbs__list [aria-current="page"] {
  color: var(--text-on-light);
}

/* ---------- Раскладка: галерея | информация ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: var(--product-gap);
  align-items: start;
}

/* ---------- Галерея ---------- */

/* 5 колонок: превью 1–6 — в левой колонке, крупное фото — в колонках 2–5 на высоту шести превью,
   превью 7–11 — рядом под ними (как в макете) */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gallery-gap);
}

.gallery__main {
  position: relative;
  grid-column: 2 / 6;
  grid-row: 1 / 7;
  overflow: hidden;
  background: var(--line-on-light);
}

/* Фото не влияет на высоту рядов: высоту задают превью, фото кадрируется под неё */
.gallery__main picture {
  position: absolute;
  inset: 0;
}

.gallery__main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Набор превью «растворяется» в сетке галереи: сами кнопки становятся её ячейками */
.gallery__thumbs {
  display: contents;
}

/* display: contents выше перебивает атрибут hidden — скрываем набор другого варианта явно */
.gallery__thumbs[hidden] {
  display: none;
}

.gallery__thumb {
  position: relative;
  aspect-ratio: 17 / 20;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--line-on-light);
  cursor: pointer;
}

.gallery__thumb:nth-child(-n+6) {
  grid-column: 1;
}

.gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Выбранное превью — тонкая тёмная рамка внутри кадра */
.gallery__thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--text-on-light);
  pointer-events: none;
}

.gallery__thumb:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

/* Галерея игры: кадры — это инфографика с надписями, обрезать их нельзя.
   Фото вписывается в рамку целиком, свободное место — светлое. */
.gallery--contain .gallery__main,
.gallery--contain .gallery__thumb {
  background: var(--surface-light);
}

.gallery--contain .gallery__main-img,
.gallery--contain .gallery__thumb img {
  object-fit: contain;
}

/* Параметры модели под галереей — на всю ширину галереи, мелко и приглушённо */
.gallery__model {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-card-meta);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
}

/* ---------- Информация о товаре ---------- */

.product__info {
  display: flex;
  flex-direction: column;
  gap: var(--product-stack-gap);
}

.product__kind {
  margin: 0;
  font-size: var(--fs-product-kind);
  font-weight: var(--fw-regular);
}

.product__title {
  margin: 0;
  font-size: var(--fs-product-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
}

.product__size-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--filter-gap) var(--product-stack-gap);
  font-size: var(--fs-product-body);
}

.product__size {
  margin: 0;
}

.product__size-table-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-on-light-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.product__size-table-link:hover {
  color: var(--text-on-light);
}

/* Кнопки размерных вариантов */
.variants {
  display: flex;
  flex-wrap: wrap;
  gap: var(--filter-gap);
}

.variant-btn {
  padding: var(--variant-pad-y) var(--variant-pad-x);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-icon);
  background: transparent;
  color: var(--text-on-light);
  font-family: var(--font);
  font-size: var(--fs-variant);
  line-height: var(--lh-text);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ui-transition) ease, box-shadow var(--ui-transition) ease;
}

.variant-btn:hover {
  border-color: var(--text-on-light);
}

/* Выбранный вариант — рамка толще, без сдвига соседей */
.variant-btn.is-active {
  border-color: var(--text-on-light);
  box-shadow: inset 0 0 0 1px var(--text-on-light);
}

.variant-btn:focus-visible,
.variant-photo:focus-visible,
.product__fav-btn:focus-visible,
.product__size-table-link:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

/* Цена и под ней маленькие фото вариантов (как в макете) */
.product__price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--product-stack-gap);
}

.product__price {
  margin: 0;
  font-size: var(--fs-product-price);
  font-weight: var(--fw-light);
  line-height: var(--lh-title);
}

.variant-photos {
  display: flex;
  gap: var(--product-stack-gap);
}

.variant-photo {
  width: var(--variant-photo-w);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--line-on-light);
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: var(--variant-photo-offset);
  transition: outline-color var(--ui-transition) ease;
}

.variant-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-photo.is-active {
  outline-color: var(--text-on-light);
}

/* Состав комплекта строкой над корзиной: десять предметов рядом с ценой обосновывают её */
.product__set {
  margin: 0;
  font-size: var(--fs-product-note);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
}

.product__set strong {
  font-weight: var(--fw-bold);
  color: var(--text-on-light);
}

/* Чек-лист под кнопкой корзины */
.product__perks {
  display: flex;
  flex-direction: column;
  gap: var(--perks-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-product-note);
}

.product__perk {
  display: flex;
  align-items: center;
  gap: var(--perk-icon-gap);
}

.product__perk-icon {
  flex: none;
  width: var(--icon-size-perk);
  height: var(--icon-size-perk);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Telegram — текстовая ссылка, а не кнопка: главный путь на странице это покупка */
.product__tg {
  align-self: flex-start;
  font-size: var(--fs-product-note);
  color: var(--text-on-light-muted);
  text-decoration: underline;
  text-underline-offset: var(--link-underline-offset);
  transition: color var(--ui-transition) ease;
}

.product__tg:hover {
  color: var(--text-on-light);
}

/* Кнопки покупки */
.product__buy {
  display: flex;
  gap: var(--filter-gap);
  margin-top: var(--product-stack-gap);
}

.btn--dark {
  flex: 1;
  border-color: var(--text-on-light);
  background: var(--text-on-light);
  color: var(--surface-light);
}

.btn--dark:hover {
  filter: brightness(1.6);
}

.btn--dark:focus-visible,
.btn--outline-dark:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.product__fav-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--fav-btn);
  border: 1px solid var(--text-on-light);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--text-on-light);
  cursor: pointer;
  transition: background-color var(--ui-transition) ease;
}

.product__fav-btn:hover {
  background: var(--line-on-light);
}

.product__fav-btn svg {
  width: var(--icon-size-badge);
  height: var(--icon-size-badge);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--outline-dark {
  border-color: var(--text-on-light);
  background: transparent;
  color: var(--text-on-light);
}

.btn--outline-dark:hover {
  background: var(--line-on-light);
}

.product__tg-btn {
  font-size: var(--fs-card-meta);
}

/* ---------- Аккордеоны ---------- */

.accordion {
  margin-top: var(--product-stack-gap);
}

.accordion__item {
  border-bottom: 1px solid var(--line-on-light);
}

.accordion__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--product-stack-gap);
  padding: var(--accordion-pad-y) 0;
  font-size: var(--fs-accordion);
  cursor: pointer;
  list-style: none;
}

.accordion__title::-webkit-details-marker {
  display: none;
}

/* Стрелка: вниз — закрыт, вверх — открыт */
.accordion__title::after {
  content: "";
  flex: none;
  width: var(--accordion-chevron);
  height: var(--accordion-chevron);
  border-right: calc(var(--icon-stroke) * 1px) solid currentColor;
  border-bottom: calc(var(--icon-stroke) * 1px) solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--ui-transition) ease;
}

.accordion__item[open] > .accordion__title::after {
  transform: translateY(25%) rotate(-135deg);
}

.accordion__title:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.accordion__body {
  padding-bottom: var(--accordion-pad-y);
  font-size: var(--fs-product-body);
  line-height: var(--lh-about);
}

.accordion__body p {
  margin: 0 0 var(--about-par-gap);
}

.accordion__body p:last-child {
  margin-bottom: 0;
}

.accordion__subtitle {
  margin: var(--about-par-gap) 0 0;
  font-size: inherit;
  font-weight: var(--fw-bold);
}

.accordion__subtitle:first-child {
  margin-top: 0;
}

/* Характеристики и таблица замеров */
.specs,
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-product-body);
}

.specs th,
.specs td,
.size-table th,
.size-table td {
  padding: var(--specs-pad-y) var(--filter-gap);
  border-bottom: 1px solid var(--line-on-light);
  vertical-align: top;
}

.specs th {
  width: 45%;
  padding-left: 0;
  font-weight: var(--fw-regular);
  color: var(--text-on-light-muted);
  text-align: left;
}

.specs td {
  padding-right: 0;
}

/* ---------- Разделы ниже: «С этим покупают», «Один образ — на разных фигурах» ---------- */

.product-section {
  padding-top: var(--block-pad-y);
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}

.figures figure {
  margin: 0;
}

.figures img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--line-on-light);
}

.figures figcaption {
  margin-top: var(--card-media-gap);
  font-size: var(--fs-card-meta);
  line-height: var(--lh-card);
  color: var(--text-on-light-muted);
  text-align: center;
}

/* Подпись одной строкой (размер и параметры через точку): если строка не помещается,
   переносим её на две примерно равные части, а не оставляем одно слово внизу */
.figures--line figcaption {
  text-wrap: balance;
}

/* Параметры модели — отдельной строкой под подписью размера */
.figures__model {
  display: block;
}

/* ---------- Окно «Таблица размеров» ---------- */

.size-dialog {
  width: 100%;
  max-width: min(var(--dialog-w), calc(100% - var(--content-x-mobile) * 2));
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--surface-light);
  color: var(--text-on-light);
}

.size-dialog::backdrop {
  background: var(--gate-overlay);
}

.size-dialog__panel {
  position: relative;
  padding: var(--gate-pad);
}

.size-dialog__close {
  position: absolute;
  top: var(--plaque-inset);
  right: var(--plaque-inset);
  display: inline-flex;
  padding: var(--header-btn-pad);
  border: 0;
  border-radius: var(--radius-icon);
  background: none;
  color: var(--text-on-light);
  cursor: pointer;
}

.size-dialog__close svg {
  width: var(--icon-size-social);
  height: var(--icon-size-social);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
}

.size-dialog__close:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.size-dialog__title {
  margin: 0 0 var(--product-stack-gap);
  font-size: var(--fs-footer-title);
  font-weight: var(--fw-light);
}

.size-dialog__how {
  margin: 0 0 var(--product-stack-gap);
  font-size: var(--fs-product-body);
  line-height: var(--lh-card);
}

.size-dialog__how dt {
  font-weight: var(--fw-bold);
}

.size-dialog__how dd {
  margin: 0 0 var(--card-text-gap);
  color: var(--text-on-light-muted);
}

.size-dialog__table-wrap {
  overflow-x: auto;
}

.size-table caption {
  padding-bottom: var(--card-text-gap);
  font-size: var(--fs-card-meta);
  color: var(--text-on-light-muted);
  text-align: left;
}

.size-table th,
.size-table td {
  text-align: center;
}

.size-table thead th {
  font-weight: var(--fw-regular);
  color: var(--text-on-light-muted);
}

.size-table tbody th {
  font-weight: var(--fw-bold);
  text-align: left;
}

.size-dialog__note {
  margin: var(--product-stack-gap) 0 0;
  font-size: var(--fs-product-body);
}

/* У товаров с единым размером таблицы пока нет: вместо неё — сам размер строкой */
.size-dialog__size {
  margin: var(--product-stack-gap) 0 0;
  font-size: var(--fs-product-body);
  font-weight: var(--fw-bold);
}

.size-dialog__tg {
  margin-top: var(--product-stack-gap);
}

/* ---------- Планшет: одна колонка, галерея — крупное фото и лента превью ---------- */

@media (max-width: 1023px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--gallery-max-w);
    margin: 0 auto;
  }

  .gallery__main {
    aspect-ratio: 3 / 4;
  }

  .gallery__thumbs {
    display: flex;
    gap: var(--gallery-gap);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .gallery__thumb {
    flex: 0 0 var(--thumb-mobile-w);
    scroll-snap-align: start;
  }

  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Доводка мобильной версии ---------- */

/* Пальцем удобно попадать по цели не меньше 44 px — на телефоне доводим
   до этой высоты всё, по чему нажимают: иконки, кнопки и текстовые ссылки.
   Значения считаются от размера самого элемента, поэтому задаём их полями. */
@media (max-width: 767px) {
  .site-header {
    /* запас вокруг иконок: 30 px значок + поля = 44 px по высоте */
    --header-btn-pad: 0.45rem;
  }

  .site-header__logo {
    padding-block: var(--tap-pad);
  }

  .socials__link {
    padding: var(--tap-pad-icon);
  }

  .site-menu__link {
    padding-block: var(--tap-pad);
  }

  /* Высоту этих ссылок задаёт сам текст, поэтому просто полей мало:
     задаём минимальную высоту цели и центрируем текст внутри */
  .site-footer__contact,
  .site-footer__links a,
  .site-footer__links .age-mark,
  .about__more,
  .product__tg,
  .product__size-table-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
  }

  .site-header__btn {
    min-height: var(--tap-min);
  }

  /* Хлебные крошки — тоже навигация: по ним нажимают, чтобы вернуться */
  .breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
  }

  .variant-btn {
    min-height: var(--tap-min);
  }

  /* Кнопка баннера игры — во всю ширину, как остальные кнопки на телефоне */
  .game-banner__btn {
    align-self: stretch;
  }

  /* Мельче 12 px на телефоне не опускаемся */
  .ticker__item,
  .divider {
    font-size: var(--fs-ticker-mobile);
  }

  .card__size-note {
    font-size: var(--fs-plaque-note-mobile);
  }
}

/* Узкие телефоны: в шапке «Каталог», логотип и иконки идут впритык —
   уменьшаем логотип и надпись, чтобы между ними остался воздух */
@media (max-width: 360px) {
  .site-header {
    --logo-w: 5.5rem;
    --fs-header-label: 0.9rem;
    --menu-label-gap: 0.4rem;
  }
}

/* Таблица замеров на узком экране не помещалась и требовала прокрутки вбок:
   уменьшаем поля окна и отступы в ячейках — таблица входит целиком */
@media (max-width: 480px) {
  .size-dialog__panel {
    padding: var(--dialog-pad-mobile);
  }

  .size-table th,
  .size-table td {
    padding-inline: var(--dialog-cell-pad-mobile);
  }
}

/* Category strips reuse the delivery marquee without extra borders. */
.divider.ticker { justify-content: flex-start; color: var(--text-muted); border: none; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; transform: none; width: 100%; flex: 1; }
  .ticker__item { white-space: normal; text-align: center; flex: 1; min-width: 0; }
}

/* Favorites reuse the existing product dialog, typography and spacing. */
.favorites-list { display: flex; flex-direction: column; gap: var(--product-stack-gap); }
.favorites-item { display: flex; align-items: center; justify-content: space-between; gap: var(--product-stack-gap); }
.favorites-link { display: flex; align-items: center; gap: var(--product-stack-gap); color: var(--text-on-light); font-size: var(--fs-product-body); text-decoration: none; }
.favorites-link img { width: var(--variant-photo-w); height: auto; }
.product__fav-btn[aria-pressed="true"] { color: var(--accent-bright); }
.product__fav-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Legal document scaffolds: reuse the existing Etolove design tokens. */
.legal-page__inner { max-width: var(--about-page-max-w); margin-inline: auto; }
.legal-page__title { text-align: left; overflow-wrap: anywhere; }
.legal-page__notice { color: var(--text-on-light-muted); font-size: var(--fs-about-text); line-height: var(--lh-about); margin-bottom: var(--title-gap); }
.legal-page__section { margin-top: var(--title-gap); font-size: var(--fs-about-text); line-height: var(--lh-about); }
.legal-page__section h2 { margin-bottom: var(--product-stack-gap); font-size: var(--fs-footer-title); font-weight: var(--fw-regular); line-height: var(--lh-card); }
.legal-page__section p { margin: var(--about-par-gap) 0; }

/* Home-only refinements: product pages retain their existing styles. */
.page-home .hero__subtitle { margin-top: var(--home-subtitle-gap); }
.page-home .hero__badges { flex-direction: column; align-items: flex-start; font-size: var(--fs-subtitle); max-width: var(--home-badge-max); }
.page-home .hero__badge { align-items: flex-start; line-height: var(--lh-card); }
.page-home .hero__badge-icon { width: var(--home-badge-icon); height: var(--home-badge-icon); }
.page-home .hero__cta, .page-home .game-banner__btn, .page-home .cta .btn { font-size: var(--fs-btn); font-weight: var(--fw-regular); padding: var(--btn-pad-y) var(--btn-pad-x); min-width: var(--home-cta-min-w); text-align: center; }
.page-home .game-banner__body { padding: var(--home-game-pad); }
.page-home .game-banner__title { text-transform: uppercase; font-size: var(--fs-cta-title); }
.page-home .game-banner__text { color: var(--text); font-size: var(--fs-about-text); }
.page-home .delivery > .container, .page-home .trust > .container { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--home-layout-gap); align-items: start; }
.page-home .delivery .section-title, .page-home .trust .section-title { text-align: left; margin: 0; }
.page-home .delivery__list { grid-template-columns: minmax(0, 1fr); gap: var(--home-step-gap); }
.page-home .delivery__item { display: grid; grid-template-columns: var(--home-step-icon) minmax(0, 1fr); column-gap: var(--product-stack-gap); row-gap: var(--delivery-item-gap); text-align: left; align-items: start; }
.page-home .delivery__icon { width: var(--home-step-icon); height: var(--home-step-icon); grid-row: span 2; }
.page-home .delivery__subtitle { text-wrap: initial; }
.page-home .delivery__text { max-width: none; text-wrap: initial; font-size: var(--fs-about-text); line-height: var(--lh-about); }
.page-home .delivery__note { grid-column: 2; margin: 0; color: var(--text-on-light-muted); font-size: var(--fs-product-body); line-height: var(--lh-about); }
.page-home .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--home-layout-gap) var(--grid-gap-x); }
.page-home .trust__item { align-items: flex-start; text-align: left; padding-bottom: var(--home-step-gap); border-bottom: var(--home-rule) solid var(--line-on-light); }
.page-home .trust__caption { font-size: var(--fs-about-text); }
.page-home .trust__value { font-size: var(--fs-trust-value); }
.page-home .faq__inner { max-width: var(--home-faq-width); }
.page-home .faq .section-title { margin-bottom: var(--home-layout-gap); }
.page-home .faq summary { font-size: var(--fs-card-title); padding-block: var(--home-faq-pad); }
.page-home .faq .accordion__body { font-size: var(--fs-about-text); line-height: var(--lh-about); }
@media (max-width: 1023px) {
  .page-home .delivery > .container, .page-home .trust > .container { grid-template-columns: minmax(0, 1fr); }
  .page-home .delivery__note { grid-column: 1; }
}
@media (max-width: 767px) {
  .page-home .hero__badges { max-width: 100%; }
  .page-home .trust__value { font-size: var(--fs-trust-value-mobile); }
}
