/* ==========================================================================
   KERATIN PRO — дизайн-система
   Токены сняты с lorealprofessionnel.com (recon/DESIGN_SPEC.md):
     · монохром #000 / #fff, вторичный текст #797676, ошибка #e00700
     · заголовки 2.25rem → 4rem, line-height 1.125, weight 700, БЕЗ uppercase
     · кнопки — pill (border-radius 1.875rem), padding 1.125rem 2rem, 1rem/600
     · контейнер 120rem (1920px), узкий — 75rem (1200px)
     · ритм секций 2.5rem → 6.5rem → 10rem, главный брейкпоинт 64rem (1024px)
   Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------- шрифты */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- токены */
:root {
  /* цвет */
  --c-black: #000;
  --c-white: #fff;
  /* Цвет текста по умолчанию — тёмно-серый, а не чёрный. Токен отдельный от
     --c-black: тот красит фоны шапки, подвала и плашек. */
  --c-ink: #2b2b2b;
  --c-ink-soft: #292929;
  --c-panel-dark: #0d0d0d;  /* тёмная подложка под товарный кадр */
  --c-muted: #797676;
  --c-line: #d9d9d9;
  --c-surface: #fff;
  --c-surface-2: #f6f5f3;
  --c-accent: #e00700;
  --c-focus: #1b75bb;

  /* типографика */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --fs-10: 0.625rem;
  --fs-11: 0.6875rem;
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-36: 2.25rem;
  --fs-64: 4rem;

  /* у донора служебные надписи в верхнем регистре идут без трекинга */
  --ls-caps: normal;
  --ls-caps-wide: normal;

  --lh-body: 1.25;
  --lh-title: 1.125;
  --lh-relaxed: 1.6;

  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;

  /* сетка */
  --container: 120rem;     /* 1920px, как у донора */
  --container-narrow: 75rem; /* 1200px */
  --gutter: 1.5rem;   /* как у донора на телефоне */
  --grid-gap: 0.45rem;        /* зазор листинга, как у донора */
  --sidebar-width: 24rem;  /* сайдбар фильтров, как у донора */
  --header-h: 4rem;        /* мобильный */
  --section-y: 1.11rem;

  /* прочее */
  --radius-btn: 1.875rem;  /* 30px — кнопки донора */
  --radius-pill: 9999px;
  --shadow-2: 0 2px 8px rgb(0 0 0 / 12%);
  --shadow-3: 0 8px 32px rgb(0 0 0 / 18%);
  --ease: ease;
  --ease-out: ease-out;
  --t-fast: 0.2s;
  --t: 0.3s;
  --t-slow: 0.5s;
  --z-header: 99;
  --z-float: 95;   /* плавающее окно с видео */
  --z-drawer: 200;
  --z-toast: 400;

  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

/* от 48rem меняется только ритм секций: боковой отступ донор держит 1.5rem до 64rem */
@media (min-width: 48rem) {
  :root {
    --section-y: 2.89rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 3rem;
    --header-h: 5.5rem;   /* 88px, как у донора */
    --section-y: 4.45rem;
  }
}

/* --------------------------------------------------------------- сброс */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  font-family: var(--f-sans);
  font-size: 100%;
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--c-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

:focus-visible {
  outline: 0.125rem solid var(--c-focus);
  outline-offset: 0.125rem;
}

::selection { background: var(--c-black); color: var(--c-white); }

/* --------------------------------------------------------- типографика */
/* У донора заголовки НЕ uppercase: эффект даёт размер 4rem и weight 700. */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--w-bold);
  line-height: var(--lh-title);
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Как в базовой типографике донора: длинные слова не вылезают за контейнер.
   Для русского это критично — «Профессиональный» иначе шире мобильного экрана. */
h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, summary, figcaption {
  overflow-wrap: break-word;
}

/* .h1 и .display были объявлены, но не использовались ни разу — удалены */
.h2 {
  font-size: 2.25rem;
  line-height: var(--lh-title);
  font-weight: var(--w-bold);
}
@media (min-width: 64rem) {
  .h2 { font-size: var(--fs-64); }
}


/* Служебная надпись — единственное место с uppercase, как у донора */
.eyebrow {
  font-size: var(--fs-14);
  font-weight: var(--w-bold);
  text-transform: uppercase;
  line-height: 1.25rem;
  color: var(--c-muted);
}
@media (min-width: 64rem) {
  .eyebrow { font-size: var(--fs-16); }
}

.text-muted { color: var(--c-muted); }
.text-small { font-size: var(--fs-14); font-weight: var(--w-medium); }

.link-underline {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: opacity var(--t) var(--ease);
}
.link-underline:hover { opacity: 0.6; }

/* ------------------------------------------------------------ вёрстка */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--container); }
.container--narrow {
  max-width: var(--container-narrow);
  padding-inline: 1.5rem;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.5); }
.section--grey { background: var(--c-surface-2); --c-muted: #6e6b6b; }/* На серых поверхностях #797676 даёт 4.13:1 — для мелкого текста мало.
   Затемняем вторичный цвет там, где фон не белый. */
.summary, .info-card, .card__volume--more{ --c-muted: #6e6b6b; }
.section--black { background: var(--c-black); color: var(--c-white); }
.section--black .eyebrow,
.section--black .text-muted { color: rgb(255 255 255 / 60%); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 0.67rem;
  margin-bottom: 1.11rem;
}
@media (min-width: 64rem) {
  .section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.33rem;
    margin-bottom: 1.78rem;
  }
}

.section__head-text { max-width: 48rem; }
.section__head .eyebrow { margin-bottom: 0.75rem; }
.section__head p { color: var(--c-muted); font-weight: var(--w-medium); }
.section__head .h2 + p { margin-top: 0.75rem; }

.section__link {
  flex-shrink: 0;
  font-size: var(--fs-16);
  font-weight: var(--w-semibold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: opacity var(--t) var(--ease);
}
.section__link:hover { opacity: 0.6; }

/* --------------------------------------------------------- хлебные крошки */
.breadcrumbs {
  padding-block: 0.33rem;
  font-size: var(--fs-12);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: '>';
  margin-inline: 0.25rem;
  color: var(--c-muted);
}
.breadcrumbs a { white-space: nowrap; transition: opacity var(--t) var(--ease); }
.breadcrumbs a:hover { opacity: 0.6; }
.breadcrumbs [aria-current] { font-weight: var(--w-semibold); }

/* --------------------------------------------------------------- кнопки */
.btn {
  --btn-bg: var(--c-black);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.33rem;
  min-height: 3.5rem;
  /* 17px, а не 18px: рамка 1px сверху и снизу даёт в сумме ровно
     56px, как у кнопки донора (у неё рамки нет) */
  padding: 1.0625rem 2rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0.0625rem solid var(--btn-border);
  border-radius: var(--radius-btn);
  font-size: var(--fs-16);
  font-weight: var(--w-semibold);
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.btn:hover { opacity: 0.85; }
.btn:focus-visible { outline: 0.125rem solid var(--c-focus); outline-offset: 0.125rem; }

/* -secondary у донора: белый фон, чёрный текст, чёрный бордер */
.btn--outline {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-black);
  --btn-border: currentColor;
}
.btn--outline:hover { --btn-bg: var(--c-black); --btn-fg: var(--c-white); opacity: 1; }

.btn--light {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-black);
  --btn-border: var(--c-white);
}
.btn--light:hover { --btn-bg: transparent; --btn-fg: var(--c-white); opacity: 1; }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-border: currentColor;
}
.btn--ghost-light:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-black); opacity: 1; }

.btn--block { width: 100%; }
.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-12);
  font-weight: var(--w-medium);
}
.btn--lg { min-height: 4rem; padding: 1.25rem 2.5rem; }

.btn[disabled],
.btn[aria-disabled='true'] { opacity: 0.35; pointer-events: none; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.89rem;
}

/* На мобиле кнопки донора растягиваются на всю ширину */
/* На телефоне кнопки растягиваются на всю ширину.
   Планшет (768–1023 px) сюда не входит: там кнопка по ширине текста. */
@media (max-width: 47.99rem) {
  .btn-group .btn,
  .summary .btn,
  .form-section .btn,
  .checkout-layout .btn { width: 100%; }
}

/* ---------------------------------------------------------------- ссылки */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem;
  font-size: var(--fs-16);
  font-weight: var(--w-semibold);
}
.link-arrow::after {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transition: width var(--t) var(--ease);
}
.link-arrow:hover::after { width: 2.5rem; }

/* ----------------------------------------------------------- формы */
.field { display: flex; flex-direction: column; gap: 0.5rem; }

/* .lp-form-label донора */
.field__label {
  font-size: var(--fs-14);
  font-weight: var(--w-bold);
  line-height: 1.25rem;
  text-transform: uppercase;
}.input{
  width: 100%;
  min-height: 3rem;
  padding: 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  border-radius: 0;
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  transition: box-shadow var(--t) var(--ease);
}.input:focus{
  outline: none;
  box-shadow: inset 0 0 5px var(--c-muted);
}

.input::placeholder { color: var(--c-muted); opacity: 0.7; }

/* --------------------------------------------------------------- метки */
/* .hero-banner__ribbon у донора — инверсная чёрная плашка */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--c-black);
  color: var(--c-white);
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  line-height: 1.25;
}
.badge--sale { background: var(--c-accent); }
.badge--out { background: var(--c-muted); }
.badge--light { background: var(--c-white); color: var(--c-ink); }

/* --------------------------------------------------------------- шапка */
/* Донор: position fixed, z-index 99, прячется при скролле вниз */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  transition: transform var(--t-slow);
}
.header.scroll-down { transform: translate3d(0, -100%, 0); }
.header.scroll-up { transform: none; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: var(--header-h);
}
@media (min-width: 64rem) {
  /* Зазор подобран так, чтобы меню начиналось на 251px от края — ровно как
     у донора: 48 (отступ) + 146 (логотип) + 57 = 251. */
  .header__inner { gap: 3.5625rem; }
}

.header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -0.5rem;
  flex-shrink: 0;
}
.header__burger span {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--c-black);
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.header__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem;
  font-size: var(--fs-18);
  font-weight: var(--w-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
/* На телефоне шапка — три зоны: бургер, логотип по центру, иконки справа.
   Абсолютное центрирование не годилось: логотип (154…237) налезал на блок
   иконок, который начинался на 226. У донора боковые зоны симметричны, и
   логотип встаёт между ними — повторяем эту раскладку. */
@media (max-width: 63.99rem) {
  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.33rem;
  }
  .header__logo {
    justify-self: center;
    min-width: 0;
  }
  .header__actions { margin-left: 0; }
  /* 40px — размер иконок донора на мобиле (у нас было 44) */
  .icon-btn { width: 2.5rem; height: 2.5rem; }
}
/* Векторный логотип TONYA / STIL / PROFESSIONAL.
   Соотношение сторон 2.30:1, высота задаётся здесь. */
.header__logo-img {
  height: 2.5rem;   /* 40px — как логотип донора на мобиле */
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 64rem) {
  /* У донора логотип 146x56. У нашего вектора другая пропорция (2.30 против
     2.61), поэтому повторяем ШИРИНУ — 146px, а высота следует за ней и
     выходит ~63px. Раньше было 44px и выглядело крошечным. */
  .header__logo-img { width: 9.125rem; height: auto; }
}

.footer__logo-img {
  height: 3.5rem;
  width: auto;
  display: block;
  margin-bottom: 0.78rem;
}
@media (min-width: 64rem) {
  .footer__logo-img { height: 4.25rem; }
}

.header__nav { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.17rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  transition: opacity var(--t) var(--ease);
}
.icon-btn:hover { opacity: 0.55; }
.icon-btn svg { width: 1.375rem; height: 1.375rem; }

.icon-btn__count {
  position: absolute;
  top: 0.25rem;
  right: 0.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding-inline: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-black);
  color: var(--c-white);
  font-size: var(--fs-10);
  font-weight: var(--w-bold);
  border-radius: var(--radius-pill);
  line-height: 1;
}
.icon-btn__count[hidden] { display: none; }

@media (min-width: 64rem) {
  .header__burger { display: none; }
  .header__nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    /* русские подписи длиннее английских: лента прокручивается, а не обрезается */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav-link {
    position: relative;
    padding-block: 0.33rem;
    font-size: 0.8125rem;
    font-weight: var(--w-semibold);
    white-space: nowrap;
    transition: opacity var(--t) var(--ease);
  }
  .header__nav-link:hover { opacity: 0.6; }
  .header__nav-item[aria-current] .header__nav-link {
    text-decoration: underline;
    text-underline-offset: 0.35em;
  }
}

@media (min-width: 90rem) {
  .header__nav { gap: 2rem; }
  .header__nav-link { font-size: var(--fs-16); }
}

/* мега-меню */
.megamenu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-black);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  max-height: min(75vh, 44rem);
  overflow-y: auto;
}
.megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.megamenu__panel { position: relative; padding-block: 2.5rem 3rem; }

/* заголовок панели — как у донора: 2.25rem → 4rem, weight 700, без uppercase */
.megamenu__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.67rem;
}
.megamenu__title {
  font-size: var(--fs-36);
  font-weight: var(--w-bold);
  line-height: var(--lh-title);
}
.megamenu__controls {
  display: flex;
  align-items: center;
  gap: 0.33rem;
  flex-shrink: 0;
}
.megamenu__close,
.megamenu__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.megamenu__close:hover,
.megamenu__arrow:hover {
  background: var(--c-black);
  border-color: var(--c-black);
  color: var(--c-white);
}
.megamenu__arrow svg { width: 0.875rem; height: 0.875rem; }
.megamenu__arrow[disabled] { color: var(--c-line); pointer-events: none; }

/* лента промо-карточек: горизонтальная прокрутка со scroll-snap, как у донора */
.megamenu__cards {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.67rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 0.33rem;
}
.megamenu__cards::-webkit-scrollbar { display: none; }
.megamenu__card {
  flex: 0 0 auto;
  width: 14.25rem;
  scroll-snap-align: start;
}
.megamenu__card a { display: block; height: 9.5rem; }
.megamenu__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* слева — переключатель разделов, справа — подпункты активного: как у донора */
.megamenu__groups { display: grid; gap: 1.25rem; margin-top: 2rem; }
.megamenu__nav { display: grid; gap: 1rem; align-content: start; }
.megamenu__group-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  font-size: var(--fs-16);
  font-weight: var(--w-semibold);
  color: var(--c-muted);
  transition: color var(--t) var(--ease);
}
/* Шеврон у раздела меню — как у донора: цвет наследуется от текста,
   поэтому у неактивного раздела стрелка серая, у активного чёрная. */
.megamenu__chevron { flex-shrink: 0; }
/* активный раздел: чёрный жирный текст и чёрная стрелка */
.megamenu__group-button:hover,
.megamenu__group-button.is-active { color: var(--c-ink); }
.megamenu__group-panel { display: grid; align-content: start; }
.megamenu__group-panel[hidden] { display: none; }
.megamenu__list { display: grid; gap: 0.625rem; }
.megamenu__list a {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: var(--fs-16);
  color: var(--c-muted);
  transition: color var(--t) var(--ease);
}
.megamenu__list a:hover { color: var(--c-ink); }
.megamenu__list .count { font-size: var(--fs-14); }

/* хвостовые ссылки донора — вне групп, в две колонки */
.megamenu__tail {
  display: grid;
  gap: 0.42rem 0.45rem;
  margin-top: 0.78rem;
  padding-top: 0.78rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-14);
}
.megamenu__tail a { color: var(--c-muted); }
.megamenu__tail a:hover {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 64rem) {
  .megamenu__title { font-size: var(--fs-64); }
  .megamenu__cards { gap: 1.5rem; }
  .megamenu__card { width: 17.4375rem; }
  .megamenu__card a { height: 11.25rem; }
  /* разделы уходят в левую колонку фиксированной ширины, подпункты — в правую */
  .megamenu__groups {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: start;
    column-gap: 1.11rem;
    margin-top: 1.11rem;
  }
  .megamenu__nav { grid-column: 1; grid-row: 1 / -1; }
  .megamenu__tail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* у панели брендов подпунктов много — раскладываем их в три колонки */
  .megamenu__list--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* мобильное меню */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: min(24rem, 90vw);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--t) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}

.drawer__nav { padding: 0.5rem var(--gutter) 2rem; }
.drawer__nav-item { border-bottom: 1px solid var(--c-line); }
.drawer__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 0.55rem;
  font-size: var(--fs-20);
  font-weight: var(--w-semibold);
  text-align: left;
}
.drawer__sub { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 1.25rem; }
.drawer__sub[hidden] { display: none; }
.drawer__sub a { font-size: var(--fs-16); font-weight: var(--w-medium); color: var(--c-muted); }
.drawer__sub a:hover { color: var(--c-ink); }

.drawer__foot {
  margin-top: auto;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 0.33rem;
  font-size: var(--fs-14);
  color: var(--c-muted);
}

.chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease-out);
}
[aria-expanded='true'] > .chevron { transform: rotate(180deg); }

/* ------------------------------------------------------- поиск в шапке */
.searchbox { position: relative; flex: 1; max-width: 36rem; }

.searchbox__input {
  width: 100%;
  height: 3rem;
  padding: 0 3rem 0 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-black);
  border-radius: 0;
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
}
.searchbox__input:focus { outline: none; box-shadow: none; border-bottom-width: 2px; }
.searchbox__input::placeholder { color: var(--c-ink); opacity: 0.3; }

.searchbox__submit {
  position: absolute;
  right: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.searchbox__submit svg { width: 1.25rem; height: 1.25rem; }

.suggest {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  box-shadow: var(--shadow-2);
  max-height: 28rem;
  overflow-y: auto;
  z-index: 10;
}
.suggest[hidden] { display: none; }
.suggest__group-title {
  padding: 1rem 1rem 0.5rem;
  font-size: var(--fs-12);
  font-weight: var(--w-bold);
  text-transform: uppercase;
  color: var(--c-muted);
}
.suggest__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  transition: background-color var(--t-fast) var(--ease);
}
.suggest__item:hover,
.suggest__item.is-active { background: var(--c-surface-2); }
.suggest__thumb {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  background: var(--c-surface-2);
  flex-shrink: 0;
}
.suggest__name {
  font-size: var(--fs-14);
  font-weight: var(--w-medium);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggest__price { margin-left: auto; font-size: var(--fs-14); font-weight: var(--w-bold); white-space: nowrap; }

/* Линии сетки рисуем границами самих плиток, а не фоном контейнера:
   при неполном последнем ряду (11 категорий в 4 колонки) фон просвечивал
   сплошным чёрным прямоугольником вместо пустой ячейки. */
.tiles {
  display: grid;
  gap: 0;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  border-right: 0;
  border-bottom: 0;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Полная рамка поверх сетки: линии внутри рисуют сами плитки, но в неполном
   последнем ряду рамка обрывалась L-образно. Оверлей замыкает её, не влияя
   на раскладку и не удваивая линии. */
.tiles::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-black);
  pointer-events: none;
}
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  position: relative;
  background: var(--c-white);
  border-right: 1px solid var(--c-black);
  border-bottom: 1px solid var(--c-black);
  padding: 2rem 1.5rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.89rem;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.tile:hover { background: var(--c-black); color: var(--c-white); }
.tile__name {
  font-size: var(--fs-20);
  font-weight: var(--w-bold);
  line-height: var(--lh-title);
  overflow-wrap: break-word;
}

.tile__count { font-size: var(--fs-14); font-weight: var(--w-medium); color: var(--c-muted); margin-top: 0.5rem; }
.tile:hover .tile__count { color: rgb(255 255 255 / 70%); }
.tile__arrow {
  align-self: flex-end;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--t) var(--ease);
}
.tile:hover .tile__arrow { transform: translateX(0.375rem); }

/* ------------------------------------------------------------ слайдер */
.rail { position: relative; }

.rail__track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 0.33rem;
  /* Лента не выносится за край экрана: у донора первая карточка стоит на той
     же вертикали, что заголовок и текст (24px на телефоне), а не вплотную
     к краю. Отрицательный отступ сдвигал её на x=0. */
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { flex: 0 0 62%; scroll-snap-align: start; }
@media (min-width: 30rem) { .rail__track > * { flex-basis: 44%; } }
@media (min-width: 48rem) { .rail__track > * { flex-basis: 30%; } }
@media (min-width: 64rem) {
  .rail__track { gap: 1rem; margin-inline: 0; padding-inline: 0; }
  /* 4 карточки в ряд: у донора карточка ленты 288px, шесть давали 211px
     и рвали длинные русские названия */
  .rail__track > * { flex-basis: calc((100% - 3rem) / 4); }
}

.rail__controls {
  display: none;
  position: absolute;
  /* Первым в ленте идёт заголовок секции, поэтому стрелки ставим на его
     уровень. Было top: -6.5rem — стрелки уезжали на 104px выше заголовка. */
  top: 0;
  right: 0;
  gap: 0.33rem;
}
@media (min-width: 64rem) { .rail__controls { display: flex; } }

.rail__arrow {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-black);
  border-radius: var(--radius-pill);
  background: var(--c-black);
  color: var(--c-white);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.rail__arrow:hover:not([disabled]) { background: transparent; color: var(--c-ink); }
.rail__arrow[disabled] {
  background: var(--c-white);
  color: rgb(0 0 0 / 20%);
  border-color: rgb(0 0 0 / 20%);
  pointer-events: none;
}
.rail__arrow svg { width: 0.875rem; height: 0.875rem; }

/* -------------------------------------------------------- карточка товара */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
}

/* .card__tag донора */
.card__badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.17rem;
  z-index: 2;
}

.card__media {
  position: relative;
  display: block;
  /* is-9by13-mobile у донора */
  aspect-ratio: 9 / 13;
  background: var(--c-white);
  overflow: hidden;
}
@media (min-width: 64rem) {
  .card__media { aspect-ratio: 4 / 5; }
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform var(--t-slow) var(--ease-out);
}
.card:hover .card__img { transform: scale(1.03); }

.card__fav {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  z-index: 3;
  transition: opacity var(--t) var(--ease);
}
.card__fav:hover { opacity: 0.6; }
.card__fav svg { width: 1.25rem; height: 1.25rem; }
.card__fav.is-active svg { fill: var(--c-accent); stroke: var(--c-accent); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.33rem;
  padding: 0 0 1.5rem;
  flex: 1;
}

/* .card__range — линейка/бренд, донор выводит в квадратных скобках */
.card__brand {
  font-size: var(--fs-20);
  font-weight: var(--w-medium);
  line-height: var(--lh-title);
  color: var(--c-ink);
}
@media (min-width: 64rem) {
  .card__brand { font-size: var(--fs-24); }
}

/* .card__name — 1.25rem → 1.5rem / 700 */
.card__title {
  /* На телефоне карточка 163px при двух колонках, и русские названия вроде
     «Концентрированный» при 20px не влезают — слово рвётся посередине.
     17px даёт запас; с 48rem колонки шире и возвращается 20px. */
  /* 13px: при двух колонках на телефоне карточка 163px. При 14px самое
     длинное слово («Многофункциональный») не влезало на один символ. */
  font-size: var(--fs-13);
  font-weight: var(--w-bold);
  line-height: var(--lh-title);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}/* Описание тоже узкое: при 14px слово «мультифункциональный» не влезало.
   С 48rem колонки шире и возвращается обычный кегль. */
@media (max-width: 47.99rem) { .card__description { font-size: var(--fs-13); } }
@media (min-width: 48rem) { .card__title { font-size: var(--fs-20); } }

@media (min-width: 64rem) {
  .card__title { font-size: var(--fs-24); }
}
.card:hover .card__title { text-decoration: underline; text-underline-offset: 0.15em; }

/* .card__description — 1rem / 500, clamp 4 строки (как в спеке донора) */
.card__description {
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  line-height: var(--lh-body);   /* 1.25 — как у описания карточки донора (16/20) */
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__volumes { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.card__volume {
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--c-black);
  font-size: var(--fs-14);
  font-weight: var(--w-medium);
  line-height: 1.4;
}
.card__volume--more { border-style: dashed; color: var(--c-muted); border-color: var(--c-line); }

.card__foot {
  margin-top: auto;
  padding-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card__price { display: flex; flex-direction: column; gap: 0.125rem; }
/* .card__price донора — 1.5rem / 700 */
.card__price-current { font-size: var(--fs-24); font-weight: var(--w-bold); white-space: nowrap; }
.card__price-old {
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  color: var(--c-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.card__cart {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: opacity var(--t) var(--ease);
}
.card__cart:hover { opacity: 0.8; }
.card__cart svg { width: 1.25rem; height: 1.25rem; }
.card__cart[disabled] { background: var(--c-muted); cursor: default; opacity: 0.5; }

/* --------------------------------------------------------- сетка товаров */
/* Сетка листинга — как у донора: 12-колоночная база,
   карточка span 6 на мобиле (2 в ряд) → span 4 на десктопе (3 в ряд).
   Зазор var(--grid-gap) на всех ширинах, вертикальный ритм = зазор 1rem
   + margin-bottom 1rem у карточки = 2rem. Четвёртой ступени у донора нет. */
.product-grid {
  display: grid;
  gap: 0.89rem var(--grid-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 64rem) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------- фильтры */
.catalog-layout { display: grid; gap: 2rem; }
@media (min-width: 64rem) {
  .catalog-layout { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: 3rem; }
}

.filters { display: flex; flex-direction: column; }
@media (max-width: 63.99rem) {
  .filters {
    position: fixed;
    inset-block: 0;
    left: 0;
    width: min(24rem, 92vw);
    background: var(--c-white);
    z-index: var(--z-drawer);
    padding: 1.25rem var(--gutter) 6rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--t) var(--ease-out);
    box-shadow: var(--shadow-3);
  }
  .filters.is-open { transform: translateX(0); }
}

.filters__group { border-bottom: 1px solid var(--c-line); padding-block: 1.5rem; }
.filters__group:first-of-type { padding-top: 0; }
.filters__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  font-size: var(--fs-16);
  font-weight: var(--w-bold);
  text-align: left;
}
.filters__title + p { margin-top: 0.5rem; }
.filters__body { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; }
.filters__body[hidden] { display: none; }
.filters__scroll { max-height: 17rem; overflow-y: auto; padding-right: 0.25rem; }

.filters__price { display: flex; align-items: center; gap: 0.5rem; }
.filters__price .input { min-height: 2.75rem; padding: 0.5rem 0.75rem; font-size: var(--fs-14); }

.filters__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--c-black);
  border-radius: var(--radius-pill);
  font-size: var(--fs-14);
  font-weight: var(--w-medium);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap;
}
.chip:hover { background: var(--c-surface-2); }
.chip.is-active { background: var(--c-black); color: var(--c-white); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding-bottom: 0.67rem;
  border-bottom: 1px solid var(--c-black);
  flex-wrap: wrap;
}
.toolbar__count { font-size: var(--fs-16); font-weight: var(--w-medium); color: var(--c-muted); }
.toolbar__right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.toolbar__select {
  min-height: 3rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--c-black);
  border-radius: var(--radius-btn);
  font-size: var(--fs-14);
  font-weight: var(--w-semibold);
  background: var(--c-white);
}
.filters-toggle { display: inline-flex; }
@media (min-width: 64rem) { .filters-toggle { display: none; } }

.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 1rem; }
.active-filters__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--c-surface-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-14);
  font-weight: var(--w-medium);
}
.active-filters__item a,
.active-filters__item button { display: inline-flex; opacity: 0.6; }
.active-filters__item a:hover { opacity: 1; }

/* ---------------------------------------------------------- пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.33rem;
  flex-wrap: wrap;
  padding-block: 1.78rem;
}
.pagination__item {
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-black);
  border-radius: var(--radius-pill);
  font-size: var(--fs-16);
  font-weight: var(--w-semibold);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.pagination__item:hover { background: var(--c-surface-2); }
.pagination__item[aria-current='page'] { background: var(--c-black); color: var(--c-white); }
.pagination__item[aria-disabled='true'] { opacity: 0.25; pointer-events: none; }
.pagination__gap { padding-inline: 0.25rem; color: var(--c-muted); }

/* --------------------------------------------------------------- футер */
.footer {
  margin-top: auto;
  background: var(--c-black);
  /* Текст подвала — светло-серый, а не белый: белый остаётся только
     для наведения на ссылки, чтобы был отклик. */
  color: rgb(255 255 255 / 84%);
  border-top: 1px solid var(--c-black);
  padding-top: 1.78rem;
  padding-bottom: 1.78rem;
}
@media (min-width: 64rem) {
  /* по спеке донора: padding 7rem 1.5rem 11rem 1.5rem */
  .footer { padding-top: 7rem; padding-bottom: 11rem; }
}

.footer__top { display: grid; gap: 3rem; padding-bottom: 4rem; }
@media (min-width: 48rem) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 4rem; } }
.footer__about {
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  color: rgb(255 255 255 / 65%);
  max-width: 26rem;
  line-height: var(--lh-relaxed);
}

.footer__contacts { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; font-size: var(--fs-16); }
.footer__contacts a { font-weight: var(--w-medium); }
.footer__contacts a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__phone { font-size: var(--fs-24); font-weight: var(--w-bold); }

/* .footer__nav-title донора — font-xl (2.25rem) / 700 */
.footer__col-title {
  font-size: var(--fs-24);
  font-weight: var(--w-bold);
  line-height: var(--lh-title);
  margin-bottom: 0.67rem;
}
.footer__list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__list a {
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  color: rgb(255 255 255 / 78%);
  transition: color var(--t) var(--ease);
}
.footer__list a:hover { color: var(--c-white); }

.footer__newsletter { margin-top: 2rem; }
.footer__newsletter .footer__col-title { font-size: var(--fs-14); text-transform: uppercase; margin-bottom: 0.75rem; }
.footer__newsletter-form { display: flex; }
.footer__newsletter input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding-inline: 1rem;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
  color: var(--c-white);
  font-size: var(--fs-16);
}
.footer__newsletter input::placeholder { color: rgb(255 255 255 / 50%); }
.footer__newsletter input:focus { outline: none; border-color: var(--c-white); }
.footer__newsletter button {
  height: 3rem;
  padding-inline: 1.5rem;
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  font-size: var(--fs-16);
  font-weight: var(--w-semibold);
}
.footer__newsletter button:hover { opacity: 0.85; }

.footer__socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.footer__social {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: var(--radius-pill);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.footer__social:hover { background: var(--c-white); color: var(--c-ink); }
.footer__social svg { width: 1.25rem; height: 1.25rem; }

.footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding-top: 0.89rem;
  display: flex;
  flex-direction: column;
  gap: 0.67rem;
  font-size: var(--fs-14);
  color: rgb(255 255 255 / 60%);
}
@media (min-width: 48rem) {
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a:hover { color: var(--c-white); }
.footer__pay { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.footer__pay span {
  padding: 0.125rem 0.5rem;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: var(--radius-pill);
  font-size: var(--fs-12);
}

/* ---------------------------------------------------------- утилиты */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: var(--z-toast);
  padding: 0.75rem 1.5rem;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: var(--radius-btn);
  font-size: var(--fs-14);
}
.skip-link:focus { top: 0.5rem; }
@keyframes skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.empty-state {
  padding: 5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.67rem;
}
.empty-state svg { width: 3rem; height: 3rem; color: var(--c-line); }
.empty-state p {
  color: var(--c-muted);
  font-size: var(--fs-20);
  font-weight: var(--w-medium);
  max-width: 34rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 200%);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100vw - 2rem);
  padding: 1rem 1.5rem;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: var(--radius-btn);
  font-size: var(--fs-16);
  font-weight: var(--w-medium);
  box-shadow: var(--shadow-3);
  transition: transform var(--t) var(--ease-out);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast a { text-decoration: underline; text-underline-offset: 0.2em; font-weight: var(--w-bold); }

/* ------------------------------------------------------- анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }/* ==========================================================================
   ДОСТУПНОСТЬ — правки по отчёту recon/QA_REPORT.md
   ========================================================================== */

/* --- правила, вынесенные из inline-стилей разметки --- */
.btn-group--center { justify-content: center; }
.btn-group--tight { margin-top: 1rem; }

/* BUG-02: видимый фокус не должен пропадать у полей */
.input:focus, .searchbox__input:focus{
  outline: 0.125rem solid var(--c-focus);
  outline-offset: 0.125rem;
  box-shadow: none;
}/* BUG-01: контраст плейсхолдеров. #797676 на #fff = 4.5:1 (AA) */
.input::placeholder, .searchbox__input::placeholder, .footer__newsletter input::placeholder{
  color: var(--c-muted);
  opacity: 1;
}
.searchbox__input::placeholder { color: var(--c-ink); opacity: 0.55; }

/* BUG-05: фильтры работают без JS — чекбоксы стали ссылками */
.checkbox--link {
  min-height: 2.75rem;
  padding-block: 0.33rem;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--t) var(--ease);
}
.checkbox--link:hover { opacity: 0.65; }

.checkbox__box {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.12rem;
  border: 1px solid var(--c-black);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.checkbox--link[aria-pressed='true'] .checkbox__box { background: var(--c-black); }
.checkbox--link[aria-pressed='true'] .checkbox__box::after {
  content: '';
  width: 0.3rem;
  height: 0.6rem;
  border: solid var(--c-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* BUG-10: тач-таргеты не меньше 44×44 px */
.header__burger { width: 2.75rem; height: 2.75rem; }
.card__fav { width: 2.75rem; height: 2.75rem; }
.rail__arrow { width: 2.75rem; height: 2.75rem; }
.pagination__item { min-width: 2.75rem; height: 2.75rem; }
.btn--sm { min-height: 2.75rem; padding: 0.625rem 1.25rem; font-size: var(--fs-14); }
.chip { min-height: 2.75rem; display: inline-flex; align-items: center; padding-inline: 1rem; }
.filters__title { min-height: 2.75rem; }
.card__cart { width: 2.75rem; height: 2.75rem; }

