:root {
  color-scheme: light;

  --ink: #0b0b0b;
  --paper: #ffffff;
  --muted-bg: #f5f5f5;
  /* #767676 давал 4.17 на --muted-bg — ниже AA. #696969 держит 5.04 на сером
     фоне и 5.49 на белом, оставаясь визуально второстепенным по отношению к --ink. */
  --muted-ink: #696969;
  --line: #e5e5e5;
  /* Разделители (--line) намеренно бледные, но у полей ввода и прочих контролов
     граница — единственный признак кликабельности, а WCAG требует для неё 3:1.
     #949494 даёт 3.03 на белом; --line для декоративных линий остаётся как был. */
  --line-control: #949494;
  --line-strong: #0b0b0b;
  --accent: #c40000;

  --font-sans: var(--font-barlow), "Barlow", Arial, Helvetica, sans-serif;

  --site-width: 1440px;
  --gutter: 60px;
  --gutter-mobile: 20px;
  --header-h: 64px;

  --ls-nav: .05em;
  --ls-heading: .02em;
  --ls-btn: .075em;
  --ls-label: .08em;
}

/*
 * Measured responsive strategy
 * 1400: fourth catalog column fits; 1180: desktop navigation/card density;
 * 1023: catalog filter rail no longer fits; 989: shared shell and split grids;
 * 767: narrow content grids; 680: 404 composition; 600: tables/forms;
 * 560: long Russian headings and compact sections; 430: long CTA labels;
 * 340: final header-logo pressure case.
 *
 * Repeated conditions below are kept beside their component modules so the
 * cascade remains reviewable. Component-specific thresholds are not promoted
 * to global device aliases.
 */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  /* Русские слова длиннее английских, и на узких экранах «КОНФИДЕНЦИАЛЬНОСТИ»
     в крупном кегле раздувала документ шире вьюпорта.

     Но `break-word` рвал слова посреди букв на любой ширине:
     «ИНДИВИДУАЛЬНОСТ|Ь», «БЕСКОМПРОМИССН|ЫЙ». Поэтому переносим только то,
     что физически не помещается в строку целиком (`anywhere` вместо
     `break-word` здесь не годится — он разрывает жаднее).

     `min-width: 0` нужен отдельно: заголовок внутри grid/flex не мог стать
     уже своего содержимого, и переполнение возвращалось.

     Разрыв слова остаётся крайней мерой — включается ниже, только когда
     длинное слово реально шире контейнера. */
  overflow-wrap: normal;
  word-break: normal;
  min-width: 0;
  text-wrap: balance;
}

/* Абзацы уравновешиваем мягче: `pretty` убирает висячее последнее слово,
   не меняя ширину строк. Слова не рвём — только длинные ссылки и адреса,
   которые иначе выходят за контейнер. */
p, li, dd, figcaption {
  overflow-wrap: normal;
  text-wrap: pretty;
}

/* Предохранитель от горизонтального скролла.

   Разрыв слова допускается только там, где слово физически шире экрана:
   на 320–430 px это «КОНФИДЕНЦИАЛЬНОСТИ» и «ОРИГИНАЛЬНОСТЬ» в крупном кегле.
   На планшетах и десктопе такие слова помещаются, поэтому правило туда не
   доходит и заголовки переносятся по словам, как и должны. */
@media (max-width: 560px) {
  h1, h2, h3, h4 {
    overflow-wrap: break-word;
  }
}

/* Ссылки, адреса и почта могут не иметь пробелов вовсе — им разрыв нужен
   на любой ширине, иначе они распирают колонку. */
a[href^="mailto:"],
a[href^="http"],
.corporate-contact__email,
code, kbd, samp {
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Скрыт, пока не получит фокус с клавиатуры. z-index выше шапки (90), иначе
   всплывающая плашка ушла бы под неё. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  transform: translateY(-120%);
  transition: transform .16s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: -6px;
}

/* ===== Layout utilities ===== */
.wrapper {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--muted-bg);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section__head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section__head h2 {
  /* Нижняя граница была 28 px: на 320–390 px «БЕСКОМПРОМИССНЫЙ» и
     «ПРЕДСТАВИТЕЛЬСКИЙ» не влезали в строку и рвались посреди слова.
     22 px — минимум, при котором самое длинное слово сайта укладывается
     целиком; на планшете и десктопе кегль не меняется. */
  font-size: clamp(22px, 4vw, 48px);
  line-height: 1.04;
}

.section__head p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted-ink);
}

.section__head--left {
  max-width: 880px;
}

.display-heading {
  /* Та же причина, что и у `.section__head h2`: 28 px на 320 px рвали
     длинные русские слова посреди букв. */
  font-size: clamp(22px, 4vw, 48px);
  line-height: 1.04;
}

/* Вводный абзац правой колонки в `.split`. Раньше эти значения задавались
   инлайновым `style` прямо в JSX — стиль жил вне темы и не подчинялся
   токенам. */
.split__lead {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-ink);
}

.section--ink .section__head p {
  color: rgba(255, 255, 255, .72);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.eyebrow--accent {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.btn:hover {
  opacity: .82;
}

/* На 320–430 px боковые поля 26 px и разрядка съедали ширину: «Запросить
   условия» и «Отправить сообщение» ломались на две строки прямо внутри
   кнопки. Ужимаем поля и разрядку вместо того, чтобы уменьшать кегль. */
@media (max-width: 430px) {
  .btn {
    padding: 0 14px;
    letter-spacing: .03em;
  }
}

.btn:disabled {
  cursor: wait;
  opacity: .58;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.btn--on-ink {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--on-ink.btn--outline {
  background: transparent;
  color: var(--paper);
}

.btn--on-ink.btn--outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn-row--center {
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

@media (max-width: 989px) {
  .wrapper {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
  .section {
    padding: 52px 0;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  min-height: var(--header-h);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.site-header--transparent {
  color: var(--paper);
  background: transparent;
  border-bottom-color: transparent;
}

.site-header--transparent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.site-header--transparent.has-scrolled {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line);
}

.site-header--transparent.has-scrolled::before {
  display: none;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  /* Минус граница: на самой шапке box-sizing: border-box, но внутренний блок
     задавал 64 px содержимого, и 1 px рамки добавлялся сверху — итого 65 px.
     Из-за этого липкий тулбар с `top: var(--header-h)` вставал на 1 px выше,
     и под ним в щель просвечивал уезжающий контент. */
  min-height: calc(var(--header-h) - 1px);
}

.site-header__logo {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-header__logo > a {
  flex: none;
}

.site-header__logo img {
  height: 26px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.site-header__operator {
  padding-left: 12px;
  border-left: 1px solid currentColor;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__tag {
  padding: 3px 6px 2px;
  border: 1px solid currentColor;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header--transparent:not(.has-scrolled) .site-header__logo img {
  filter: invert(1) brightness(2);
}

.site-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  /* Как и у .site-header__inner — минус 1 px рамки, иначе ссылки распирают
     шапку до 65 px и `top: var(--header-h)` у липкого тулбара не совпадает. */
  min-height: calc(var(--header-h) - 1px);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

.site-nav__summary {
  gap: 7px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.site-nav__summary::-webkit-details-marker {
  display: none;
}

.site-nav__summary svg {
  width: 14px;
  height: 14px;
  transition: transform .18s ease;
}

.site-nav__dropdown[open] > .site-nav__summary svg {
  transform: rotate(180deg);
}

.site-nav__link[aria-current="page"]::after,
.site-nav__link[aria-current="location"]::after,
.site-nav__dropdown.has-current > .site-nav__summary::after,
.site-nav__dropdown[open] > .site-nav__summary::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 16px;
  height: 1px;
  background: currentColor;
}

.site-nav__panel {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 6;
  width: 310px;
  padding: 8px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
  transform: translateX(-50%);
}

.site-nav__panel-link {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}

.site-nav__panel-link:last-child {
  border-bottom: 0;
}

.site-nav__panel-link:hover,
.site-nav__panel-link:focus-visible,
.site-nav__panel-link[aria-current="page"] {
  background: var(--muted-bg);
}

.site-nav__panel-link strong {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
}

.site-nav__panel-link span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted-ink);
}

.site-header__actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-cta {
  min-height: 44px;
  padding: 0 16px;
  /* На 1024 px в компактном режиме шапки «Стать партнёром» ломалось на две
     строки и кнопка вырастала вдвое. Текст короткий, места хватает — держим
     его в одну строку. */
  white-space: nowrap;
}

.site-header--transparent:not(.has-scrolled) .header-mobile-cta {
  border-color: var(--paper);
  color: var(--paper);
}

.site-header--transparent:not(.has-scrolled) .header-cta {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.site-header__burger,
.header-mobile-cta {
  display: none;
}

/* Промежуточные ширины (990–1180 px): десктопное меню ещё показано, но в строку
   уже не помещается — лого + 7 пунктов + две кнопки требуют 1143 px при 904
   доступных, и `.site-header__actions` вылезала за правый край на 20 страницах.
   Ужимаем поля и пункты меню, а перекрёстную ссылку на магазин убираем: она
   продублирована в подвале и в мобильном меню, тогда как главный CTA
   «Стать партнёром» уникален для шапки. */
@media (max-width: 1180px) and (min-width: 990px) {
  .site-header__inner {
    gap: 16px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .site-nav__link {
    padding: 0 7px;
    font-size: 10px;
  }
  .site-nav__link[aria-current="page"]::after,
  .site-nav__link[aria-current="location"]::after,
  .site-nav__dropdown.has-current > .site-nav__summary::after,
  .site-nav__dropdown[open] > .site-nav__summary::after {
    left: 7px;
    right: 7px;
  }
  .site-header__actions .header-switch {
    display: none;
  }
}

@media (max-width: 989px) {
  .site-nav,
  .site-header__actions {
    display: none;
  }
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .site-header__logo {
    grid-column: 2;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }
  .site-header__logo img {
    height: 22px;
  }
  .site-header__operator {
    padding-left: 0;
    border-left: 0;
    font-size: 7px;
  }
  .site-header__tag {
    display: none;
  }
  .site-header__burger {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
  .site-header__burger svg {
    width: 26px;
    height: 26px;
  }
  .header-mobile-cta {
    grid-column: 3;
    display: inline-flex;
    min-height: 44px;
    padding: 0 14px;
  }
}

@media (max-width: 340px) {
  .site-header__inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px;
  }

  /* At 320 px the full partnership label competes with the brand mark for the
     same row. The identical CTA remains first-class in the drawer; reserving
     its 44 px column keeps the main logo centered and at its readable size. */
  .header-mobile-cta {
    display: none;
  }
}

/* ===== Mobile drawer ===== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  visibility: hidden;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  cursor: pointer;
  transition: opacity .2s ease;
}

.drawer__inner {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(86vw, 380px);
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  padding: 22px;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.drawer-open .drawer,
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

body.drawer-open .drawer__overlay,
.drawer.is-open .drawer__overlay {
  opacity: 1;
}

body.drawer-open .drawer__inner,
.drawer.is-open .drawer__inner {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drawer__head img {
  height: 24px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.drawer__close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.drawer__close svg {
  width: 24px;
  height: 24px;
}

.drawer__nav {
  display: grid;
  gap: 22px;
}

.drawer__group-label {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
}

.drawer__group-links {
  display: grid;
}

.drawer__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  transition: padding .16s ease, background .16s ease, border-color .16s ease;
}

.drawer__link[aria-current="page"],
.drawer__link[aria-current="location"] {
  padding-left: 12px;
  background: var(--muted-bg);
  border-left: 2px solid var(--ink);
}

.drawer__cta {
  margin-top: 24px;
}

.drawer__cta .btn {
  width: 100%;
}

.drawer__bottom {
  margin-top: 28px;
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 28px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 3.28fr);
  gap: clamp(48px, 5vw, 88px);
}

.footer-brand__logo img {
  height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .68);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--paper);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.footer-socials__icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.footer-socials__link--instagram:hover,
.footer-socials__link--instagram:focus-visible {
  border-color: #ff0069;
  background: linear-gradient(135deg, #833ab4, #ff0069 52%, #fcaf45);
}

.footer-socials__link--youtube:hover,
.footer-socials__link--youtube:focus-visible {
  border-color: #f00;
  background: #f00;
}

.footer-socials__link--vk:hover,
.footer-socials__link--vk:focus-visible {
  border-color: #07f;
  background: #07f;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(190px, 1.35fr);
  gap: 24px;
}

.footer-nav__group h2 {
  font-size: 12px;
  letter-spacing: var(--ls-label);
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .9);
}

.footer-nav__group a,
.footer-nav__group address span,
.footer-nav__group address a {
  display: block;
  font-size: 12px;
  /* 12 × 2 = 24 px — минимальная зона нажатия по WCAG 2.5.8 для блочных
     ссылок в списке (исключение для строчных ссылок здесь не действует).
     Расчёт верен, но при некоторых кеглях браузер округляет строку вниз и
     фактически отдаёт 23 px, поэтому минимум фиксируем явно. */
  line-height: 2;
  min-height: 24px;
  font-style: normal;
  color: rgba(255, 255, 255, .66);
}

.footer-nav__group a:hover,
.footer-nav__group address a:hover {
  color: var(--paper);
}

.footer-contacts {
  display: grid;
  gap: 14px;
}

.footer-nav__group .footer-contacts__block {
  display: grid;
  gap: 2px;
}

.footer-contacts__block strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 1.7;
  font-style: normal;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Правовые ссылки набраны 11 px — вертикальные отступы добирают зону нажатия
   до 24 px, отрицательный margin не даёт вырасти самой строке. */
.site-footer__bottom nav a {
  display: inline-block;
  margin: -6px 0;
  padding: 6px 0;
}

.site-footer__bottom a:hover {
  color: var(--paper);
}

@media (max-width: 1199px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 819px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav__group:last-child {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
}

@media (max-width: 600px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Pre-launch storefront ===== */
.prelaunch-store {
  position: relative;
  display: grid;
  min-height: max(680px, 100svh);
  align-items: center;
  overflow: clip;
  padding: calc(var(--header-h) + 72px) 0 88px;
  background:
    linear-gradient(115deg, rgba(196, 0, 0, .16), transparent 42%),
    var(--ink);
  color: var(--paper);
}

.prelaunch-store::before {
  content: "A";
  position: absolute;
  top: 50%;
  right: -4vw;
  color: rgba(255, 255, 255, .035);
  font-size: min(76vw, 980px);
  font-weight: 700;
  line-height: .68;
  transform: translateY(-50%);
  pointer-events: none;
}

.prelaunch-store__inner {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.prelaunch-store__eyebrow {
  color: rgba(255, 255, 255, .72);
}

.prelaunch-store h1 {
  max-width: 1120px;
  font-size: clamp(72px, 15vw, 216px);
  line-height: .78;
  letter-spacing: -.035em;
}

.prelaunch-store__lead {
  max-width: 620px;
  margin-top: 36px;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .prelaunch-store {
    min-height: max(620px, 100svh);
    padding: calc(var(--header-h) + 48px) 0 64px;
  }

  .prelaunch-store h1 {
    font-size: clamp(68px, 24vw, 104px);
  }

  .prelaunch-store__lead {
    margin-top: 28px;
  }
}

/* ===== Product grid + card ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 11 / 12;
  background: var(--muted-bg);
  overflow: hidden;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__media .product-card__img--hover {
  opacity: 0;
  transition: opacity .25s ease;
}

.product-card__media:hover .product-card__img--hover {
  opacity: 1;
}

.product-card__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .1em;
  color: #b5b5b5;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 14px;
}

.product-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.product-card__attrs {
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.product-card__attrs div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
}

.product-card__attrs dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.product-card__attrs dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  /* `anywhere` рвал обычные слова — «Головны|е уборы», «Лонгсли|вы».
     Категориям и цветам разрыв не нужен: это короткие значения,
     а переполнение колонки решает сама сетка карточек. */
  overflow-wrap: normal;
  min-width: 0;
}

.product-card__actions {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.product-card__actions .btn {
  min-height: 40px;
  padding: 0 8px;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--muted-bg);
  text-align: center;
  color: var(--muted-ink);
}

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

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

/* ===== Catalog hero + tools ===== */
.page--catalog {
  padding-top: var(--header-h);
}

.catalog-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
}

.catalog-hero .breadcrumbs,
.catalog-hero .breadcrumbs a {
  color: rgba(255, 255, 255, .6);
}

.catalog-hero .breadcrumbs a:hover {
  color: var(--paper);
}

.catalog-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.catalog-hero .eyebrow {
  margin-top: 18px;
  color: rgba(255, 255, 255, .7);
}

.catalog-hero__lead {
  margin-top: 16px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

.catalog-hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.catalog-hero__count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-search {
  display: flex;
  gap: 0;
  width: min(100%, 440px);
}

.catalog-search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--ink);
}

.catalog-search input::placeholder {
  color: var(--muted-ink);
}

.catalog-search .btn {
  min-height: 46px;
}

.catalog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.catalog-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}

.catalog-links a:hover,
.catalog-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.catalog-product-note {
  margin: 0 0 30px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-ink);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.catalog-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.catalog-pagination > :first-child {
  justify-self: start;
}

.catalog-pagination > :last-child {
  justify-self: end;
}

.catalog-pagination__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .catalog-hero__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-pagination {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-pagination__status {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .catalog-pagination__spacer {
    display: none;
  }
  .catalog-pagination .btn {
    width: 100%;
    padding: 0 12px;
  }
}

/* ===== Product detail (PDP) ===== */
.pdp {
  padding-top: var(--header-h);
}

.pdp__inner {
  padding-top: 40px;
  padding-bottom: 64px;
}

.pdp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, .9fr);
  gap: 48px;
  align-items: start;
}

.pdp__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.pdp__gallery figure {
  margin: 0;
  aspect-ratio: 11 / 12;
  background: var(--muted-bg);
  overflow: hidden;
}

.pdp__gallery figure:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
}

.pdp__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__gallery-note {
  display: none;
}

.pdp__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 11 / 12;
  background: var(--muted-bg);
  color: #b5b5b5;
  font-weight: 700;
  letter-spacing: .1em;
}

.pdp__info {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.pdp__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
  margin: 0 0 12px;
}

.pdp__title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: .95;
}

.pdp__article {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.pdp__specs {
  margin: 26px 0 0;
  border-top: 1px solid var(--line-strong);
}

.pdp__specs > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pdp__specs dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.pdp__specs dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.pdp__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp__sizes span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  text-transform: uppercase;
}

.pdp__cta {
  width: 100%;
  margin-top: 26px;
}

.pdp__benefits {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.pdp__benefit {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
}

.pdp__benefit strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.pdp__benefit small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-ink);
}

@media (max-width: 989px) {
  .pdp__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pdp__info {
    position: static;
  }
}

@media (max-width: 767px) {
  .pdp__gallery {
    display: flex;
    gap: 4px;
    margin-right: calc(-1 * var(--gutter-mobile));
    margin-left: calc(-1 * var(--gutter-mobile));
    padding: 0 var(--gutter-mobile) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pdp__gallery::-webkit-scrollbar {
    display: none;
  }
  .pdp__gallery figure {
    flex: 0 0 min(86vw, 390px);
    scroll-snap-align: center;
  }
  .pdp__gallery-note {
    display: block;
    margin-top: -18px;
    color: var(--muted-ink);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .pdp__info {
    display: flex;
    flex-direction: column;
  }
  .pdp__cta {
    order: 1;
    margin-top: 20px;
  }
  .pdp__specs {
    order: 2;
  }
  .pdp__benefits {
    order: 3;
  }
}

.pdp-related {
  border-top: 1px solid var(--line);
}

.pdp-related__head {
  margin-bottom: 28px;
}

.pdp-related__head h2 {
  font-size: clamp(24px, 3vw, 36px);
}

/* ===== Home: hero ===== */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

/* `picture` — обёртка над `img` (мобильный кадр отдаётся через `source`).
   Без неё в списке селекторов инлайновый элемент разрывал цепочку абсолютного
   позиционирования, и герой терял полноэкранную подложку. */
.home-hero__media,
.home-hero__media picture,
.home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__media img {
  object-fit: cover;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .2) 60%, transparent 100%);
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 64px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}

.home-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.home-hero__status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--paper);
}

.home-hero h1 {
  margin: 24px 0 0;
  max-width: 16ch;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: .98;
}

.home-hero__lead {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

.home-hero__benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.home-hero__benefit {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== Home: collection tiles ===== */
.home-collections__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.collection-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.collection-tile:hover img {
  transform: scale(1.04);
}

.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .72));
}

.collection-tile__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}

.collection-tile__body strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.collection-tile__body small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
}

/* ===== Home: card grids (status / dealers / trust) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--paper);
}

.section--muted .info-card {
  background: var(--paper);
  border-color: var(--line);
}

.info-card h3 {
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  min-height: calc(2 * 19px * 1.15);
  display: flex;
  align-items: flex-start;
}

.info-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-ink);
}

.info-card .text-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink);
}

.document-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
}

.document-card span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
}

.document-card h3 {
  font-size: 17px;
  text-transform: uppercase;
}

.document-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-ink);
}

/* ===== Home: steps ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 17px;
  line-height: 1.35;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.split--brand-intro {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(48px, 6vw, 96px);
}

.split--brand-intro > * {
  min-width: 0;
}

.split--brand-intro .display-heading {
  max-width: 100%;
  /* Кегль был 64 px при колонке 657 px: «БЕСКОМПРОМИССНЫЙ» не помещался и
     разрывался посреди слова. Нижняя граница 20 px — «БЕСКОМПРОМИССНЫЙ»
     (16 знаков в верхнем регистре) укладывается в колонку 280 px на самом
     узком экране; верхняя оставляет заголовок крупным на десктопе. */
  font-size: clamp(20px, 2.6vw, 40px);
}

/* ===== Editorial composition: brand and partner rails ===== */
.section[aria-labelledby="about-brand-title"] .section__head {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(48px, 7vw, 112px);
  max-width: none;
  margin-bottom: 0;
}

.section[aria-labelledby="about-brand-title"] .section__head > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 14px;
}

.section[aria-labelledby="about-brand-title"] .section__head > h2 {
  grid-column: 1;
  grid-row: 2;
}

.section[aria-labelledby="about-brand-title"] .section__head > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 720px;
  margin-top: 0;
}

.section[aria-labelledby="about-brand-title"] .split--brand-intro {
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  column-gap: clamp(48px, 7vw, 112px);
  margin-top: clamp(38px, 4vw, 58px);
  padding-top: clamp(38px, 4vw, 58px);
  border-top: 1px solid var(--line-strong);
}

.section[aria-labelledby="about-brand-title"] .split--brand-intro .prose {
  max-width: 720px;
}

.section[aria-labelledby="dealers-title"] .wrapper.split {
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  grid-template-rows: auto auto;
  column-gap: clamp(48px, 7vw, 112px);
  row-gap: clamp(30px, 3vw, 44px);
}

.section[aria-labelledby="dealers-title"] .wrapper.split > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.section[aria-labelledby="dealers-title"] .wrapper.split > div:last-child {
  display: contents;
}

.section[aria-labelledby="dealers-title"] .split__lead {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: 720px;
  margin: 0;
}

.section[aria-labelledby="dealers-title"] .card-grid {
  grid-column: 1 / -1;
  grid-row: 2;
}

.section[aria-labelledby="dealers-title"] .info-card {
  min-height: 190px;
}

.about-representation {
  padding-block: clamp(54px, 6vw, 76px);
}

.about-representation__inner {
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
  gap: clamp(48px, 7vw, 112px);
}

.about-representation__inner .display-heading {
  max-width: 620px;
  font-size: clamp(32px, 3.5vw, 52px);
}

.about-representation__inner .prose {
  justify-self: end;
  max-width: 610px;
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid var(--line-strong);
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
}

.final-cta__inner {
  max-width: 860px;
  margin: 0 auto;
}

.final-cta h2 {
  /* При 30 px «СОТРУДНИЧЕСТВА» было шире мобильной колонки всего на 0,33 px
     и рвалось перед последней буквой. Небольшой запас надёжнее пограничного
     округления на разных DPR и при масштабировании. */
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.02;
}

.final-cta p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .76);
}

/* ===== Home: full-bleed mosaic (mens / womens) ===== */
.home-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mosaic-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  max-height: 760px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mosaic-tile:hover img {
  transform: scale(1.04);
}

.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .72));
}

.mosaic-tile__body {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 36px;
  z-index: 2;
}

.mosaic-tile__body h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
}

.mosaic-tile__body .btn {
  margin-top: 18px;
}

/* ===== Home: full-bleed video ===== */
.home-video {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.home-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, .14) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, .3), transparent 38%);
}

.home-video__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

.home-video__inner h2 {
  max-width: min(100%, 22ch);
  /* Нижняя граница была 32 px. Замер: на экране 320 px колонка равна 280 px,
     а «БЕСКОМПРОМИССНЫЙ» в этом начертании требует 372 px — слово рвалось
     посреди букв. При 22 px оно укладывается целиком; на 390 px и выше
     работает уже `5vw`, и кегль не меняется. */
  font-size: clamp(22px, 5vw, 64px);
  line-height: 1.04;
}

@media (max-width: 560px) {
  .home-video__inner h2 {
    /* `18ch` оставлял заголовку лишь 226 px внутри контейнера 280–390 px.
       На мобильном используем всю колонку, чтобы слова не рвались. */
    max-width: 100%;
  }
}

.home-video__inner p {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

/* ===== Home: full-width banner ===== */
.home-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.home-banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .3) 50%, transparent 100%);
}

.home-banner__inner {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 56px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.home-banner__inner h2 {
  max-width: 16ch;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1;
}

.home-banner__inner p {
  margin: 16px 0 0;
  max-width: 48ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 767px) {
  .home-mosaic {
    grid-template-columns: 1fr;
  }
  .mosaic-tile {
    aspect-ratio: 4 / 5;
  }
  .mosaic-tile__body {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  .home-video {
    min-height: 70vh;
  }
  .home-video__inner {
    padding: 60px 20px;
  }
  .home-banner {
    min-height: 440px;
  }
  .home-banner::after {
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, .8));
  }
}

@media (max-width: 1180px) {
  .home-collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 989px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section[aria-labelledby="about-brand-title"] .section__head,
  .section[aria-labelledby="about-brand-title"] .split--brand-intro,
  .section[aria-labelledby="dealers-title"] .wrapper.split,
  .about-representation__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section[aria-labelledby="about-brand-title"] .section__head > .eyebrow,
  .section[aria-labelledby="about-brand-title"] .section__head > h2,
  .section[aria-labelledby="about-brand-title"] .section__head > p:last-child,
  .section[aria-labelledby="dealers-title"] .wrapper.split > div:first-child,
  .section[aria-labelledby="dealers-title"] .split__lead,
  .section[aria-labelledby="dealers-title"] .card-grid {
    grid-column: 1;
    grid-row: auto;
  }

  .section[aria-labelledby="about-brand-title"] .section__head > p:last-child {
    margin-top: 18px;
  }

  .section[aria-labelledby="about-brand-title"] .split--brand-intro {
    margin-top: 32px;
    padding-top: 32px;
  }

  .about-representation__inner .prose {
    justify-self: stretch;
    max-width: none;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .about-representation__inner .display-heading {
    font-size: clamp(22px, 7vw, 32px);
  }
  .home-hero__benefits {
    column-gap: 24px;
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 88vh;
  }
  .home-hero__inner {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }
  .home-hero .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero .btn-row .btn {
    width: 100%;
  }
  .home-hero__benefits {
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
    gap: 16px 24px;
  }
  .home-hero__benefit {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .card-grid,
  .home-collections__grid {
    grid-template-columns: 1fr;
  }
  .info-card h3 {
    min-height: 0;
  }
  .steps li {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    font-size: 15px;
  }
}

/* ===== Inner pages: shared scaffold ===== */
main.page {
  padding-top: var(--header-h);
}

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 44px;
  align-items: end;
}

.page-hero__grid--top {
  align-items: start;
}

.page-hero h1 {
  margin: 14px 0 0;
  /* На 320 px «КОНФИДЕНЦИАЛЬНОСТИ» помещается целиком только при кегле
     около 22 px. Выше 390 px шкала снова растёт плавно. */
  font-size: clamp(22px, 6.8vw, 80px);
  line-height: 1;
}

.page-hero__lead {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}

.page-hero__lead--wide {
  max-width: 980px;
}

.page-hero__copy {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-top: 24px;
}

.page-hero__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .68);
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, .7);
}

.page-hero__panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .26);
}

.page-hero__panel span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.page-hero__panel strong {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.page-hero__panel p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}

.page-hero__panel .page-hero__panel-lead {
  color: rgba(255, 255, 255, .92);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* check-list (big uppercase rows on ink) */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.check-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.section--ink .check-list li {
  border-color: rgba(255, 255, 255, .22);
}

.protection-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.protection-section {
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.protection-section h2 {
  margin-bottom: 18px;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.1;
}

.protection-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-ink);
}

.protection-section p + p {
  margin-top: 14px;
}

/* numbered process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: proc;
}

.process li {
  counter-increment: proc;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.process li:last-child {
  border-bottom: 1px solid var(--line);
}

.process li::before {
  content: counter(proc, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted-ink);
}

/* FAQ accordion */
.faq {
  display: grid;
  gap: 10px;
  max-width: 960px;
}

.faq__item {
  border: 1px solid var(--line);
  padding: 0 22px;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-ink);
}

/* inline related links */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}

.inline-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* split layout for section header + content */
.section__head--inline {
  margin-bottom: 0;
}

/* simple prose content */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 16px;
}

.prose p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-ink);
}

.prose p + p {
  margin-top: 16px;
}

@media (max-width: 989px) {
  .page-hero__grid {
    /* `1fr` = minmax(auto, 1fr): трек не мог стать уже своего содержимого, и
       длинный заголовок распирал героя до 405 px на экране 360 px.
       `minmax(0, 1fr)` разрешает колонке ужиматься. */
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ===== Forms ===== */
.form-shell {
  border: 1px solid var(--line);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-section {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 0;
  margin: 0;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.form-section > legend {
  float: left;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.field-group > legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.form-consent input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.form-consent input[aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.field-required {
  color: var(--accent);
  margin-left: 4px;
}

.field-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--accent);
}

.field-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-control);
  cursor: pointer;
}

.choice:hover {
  border-color: var(--line-strong);
}

/* Нативный чекбокс/радио внутри — обводим саму плашку, иначе фокус читается
   только по крошечному индикатору. */
.choice:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choice input {
  accent-color: var(--ink);
  flex: 0 0 auto;
}

.form-consent {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  max-width: 880px;
  font-size: 13px;
  line-height: 1.5;
}

.form-consent input {
  accent-color: var(--ink);
  flex: 0 0 auto;
  /* Размер не задавался, и браузер отдавал дефолтные 13×13 — это ниже
     минимума WCAG 2.2 AA (24×24) для обязательного поля, которое блокирует
     отправку заявки. Метка кликабельна целиком, но сам чекбокс тоже должен
     быть пригоден для пальца. */
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.form-consent a {
  text-decoration: underline;
}

.form-status {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.form-status--idle {
  background: var(--muted-bg);
}

.form-status--success {
  background: #f1f5f0;
  border-color: var(--ink);
}

.form-status--error {
  background: #fdf2f2;
  border-color: var(--accent);
}

.form-status--submitting {
  background: var(--muted-bg);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

.form-actions .btn {
  min-height: 48px;
}

.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-ink);
}

.file-drop {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 26px 16px;
  border: 1px dashed var(--line-strong);
  cursor: pointer;
  font-size: 13px;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop small {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.file-list small {
  color: var(--muted-ink);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 44px;
  align-items: start;
}

.form-layout--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
}

.form-aside {
  display: grid;
  gap: 14px;
}

.form-aside__card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
}

.form-aside__card h3 {
  font-size: 15px;
  text-transform: uppercase;
}

.form-aside__card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-ink);
}

@media (max-width: 989px) {
  .form-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .form-grid,
  .form-grid--three,
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .field--wide {
    grid-column: auto;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contacts-grid--corporate {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
}

.contact-card h2 {
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.contact-card p {
  display: grid;
  gap: 4px;
  font-size: 15px;
  line-height: 1.45;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card--corporate {
  align-content: start;
  gap: 18px;
  min-height: 290px;
  padding: clamp(24px, 3vw, 34px);
}

.contact-card--corporate h3 {
  min-height: 36px;
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.corporate-contact__email {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-card .corporate-contact__description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-ink);
}

.contact-map {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.contact-map__body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.contact-map__body h2 {
  font-size: 18px;
}

.contact-map__body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-ink);
}

.contact-map__body .text-link {
  justify-self: start;
}

@media (max-width: 989px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-grid--corporate {
    grid-template-columns: 1fr;
  }

  .contact-card--corporate {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== Documents table ===== */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.docs-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-ink);
  background: var(--muted-bg);
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.docs-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--paper);
}

.docs-note p {
  flex: 1;
  min-width: 220px;
  font-size: 14px;
  line-height: 1.45;
}

.docs-note .text-link {
  color: var(--paper);
}

@media (max-width: 600px) {
  .docs-table thead {
    display: none;
  }
  .docs-table,
  .docs-table tbody,
  .docs-table tr,
  .docs-table td {
    display: block;
    width: 100%;
  }
  .docs-table tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .docs-table td {
    border: 0;
    padding: 6px 16px;
  }
}

/* ===== Authorized sellers directory ===== */
.sellers-toolbar {
  display: grid;
  grid-template-columns: 2fr minmax(180px, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--muted-bg);
  align-items: end;
}

.sellers-assurance {
  max-width: 960px;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 3px solid var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.sellers-toolbar label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.sellers-toolbar span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sellers-toolbar input,
.sellers-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
}

.sellers-count {
  margin: 18px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sellers-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seller-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
}

.seller-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.seller-card__head h3 {
  font-size: 18px;
  text-transform: uppercase;
}

.seller-card__status {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.seller-card__status--verify {
  background: var(--ink);
  color: var(--paper);
}

.seller-card dl,
.seller-card .affliction-definition-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.seller-card dl div,
.seller-card .affliction-definition-list > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.seller-card dt,
.seller-card .affliction-definition-term {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.seller-card dd,
.seller-card .affliction-definition-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.sellers-important {
  margin-top: 42px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line-strong);
  background: var(--muted-bg);
}

.sellers-important h2 {
  margin-bottom: 12px;
  font-size: 20px;
  text-transform: uppercase;
}

.sellers-important p {
  max-width: 980px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-ink);
}

@media (max-width: 989px) {
  .sellers-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .sellers-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .protection-sections {
    grid-template-columns: 1fr;
  }

  .page-hero__copy p {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .sellers-toolbar {
    grid-template-columns: 1fr;
  }
  .seller-card dl div,
  .seller-card .affliction-definition-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* =========================================================================
   B2C — ИНТЕРНЕТ-МАГАЗИН
   -------------------------------------------------------------------------
   Всё под префиксом .shop-* (плюс элементы переключения режимов в шапке и
   подвале), поэтому B2B-страницы не затрагиваются. Язык оформления тот же:
   чёрное/белое, красный только как сигнал (скидка, ошибка, акцент), нулевые
   радиусы, глубина — из фотографии и тонких линий, тени только у оверлеев.
   ========================================================================= */

/* ===== Переключение B2B ↔ розница ===== */
.header-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px 0 16px;
  border: 1px solid currentColor;
  box-shadow: inset 3px 0 0 var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

/* Сам переключатель держим компактным в строке шапки, а невидимый внешний
   контур доводит его зону нажатия до комфортных 44 px. */
.header-switch::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.header-switch:hover,
.header-switch:focus-visible {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

.site-header--transparent:not(.has-scrolled) .header-switch {
  color: var(--paper);
  background: rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .74);
  backdrop-filter: blur(6px);
}

.site-header--transparent:not(.has-scrolled) .header-switch:hover,
.site-header--transparent:not(.has-scrolled) .header-switch:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.site-header__actions .header-switch + .header-cta {
  margin-left: 18px;
}

.drawer__mode {
  margin: -14px 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
}

.drawer__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
}

.drawer__switch em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  color: var(--muted-ink);
}

.footer-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.footer-switch__hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.footer-switch__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
}

.footer-switch__label em {
  font-style: normal;
  transition: transform .2s ease;
}

.footer-switch:hover .footer-switch__label em {
  transform: translateX(7px);
}

/* Блокировка прокрутки под оверлеями магазина. Свой класс — чтобы не спорить
   с `body.drawer-open` мобильного меню B2B (см. components/shop/shop-runtime.js). */
body.shop-locked {
  overflow: hidden;
  padding-right: var(--shop-scrollbar, 0px);
}

/* ===== Токены витрины ===== */
.shop {
  --shop-signal: #ad0a10;
  --shop-wash: #f6f5f4;
  /* #6d6d6d давал 4.75 на --shop-wash — проходило, но без запаса.
     #676767 держит 5.19 и на wash, и на белом. */
  --shop-graphite: #676767;
  --shop-line: #e2e2e2;
  --shop-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  display: block;
}

/* ===== Витрина: hero ===== */
.shop-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84vh, 760px);
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.shop-hero__media {
  position: absolute;
  inset: 0;
}

.shop-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Затемнение в два слоя.
   Прежний одиночный градиент был размечен в процентах от полной высоты hero и
   светлел до 6% ровно там, где начинается заголовок. На этом баннере в том
   месте светлая стена с афишами (средняя яркость 0.27, блики до 0.95) — белый
   текст давал 1.1:1 и пропадал.

   Нижний слой прижат к низу кадра, как и сам текстовый блок (`align-items:
   flex-end`), поэтому едет вместе с ним, а не разъезжается при смене высоты
   hero. Верхний — лёгкое общее затемнение, чтобы не тонула шапка.

   Держать 4.5:1 против пикселя яркостью 0.95 одним слоем нельзя: он стал бы
   почти непрозрачным и убил картинку. Поэтому здесь отвечаем за средний тон, а
   отдельные блики гасит `text-shadow` на самом тексте. */
.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, .58) 26%,
      rgba(0, 0, 0, .82) 60%,
      rgba(0, 0, 0, .94) 100%
    ) bottom / 100% 78% no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .16) 34%);
  pointer-events: none;
}

.shop-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 54px;
  /* Страховка от светлых пятен кадра: подложка выравнивает средний тон, а тень
     даёт локальный тёмный ореол вокруг букв там, где под ними попал блик.
     Мягкая и без смещения — читается как утолщение, а не как отбрасываемая тень. */
  text-shadow: 0 1px 18px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .6);
}


/* На кнопках тень не нужна — у них своя заливка, и она размывала бы надпись. */
.shop-hero__inner .btn {
  text-shadow: none;
}

.shop-hero__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  /* Было .84 — на фотофоне прозрачность съедала и без того небольшой запас
     контраста у мелкого текста. Кегль 11px требует 4.5:1, поэтому берём чистый
     белый: приглушённость здесь всё равно даёт градиент. */
  color: var(--paper);
}

/* Оригинал строит первый экран на одном слове во всю ширину. Берём тот же приём:
   крупнее кегль, плотнее межбуквенное и межстрочное — на больших размерах
   обычный трекинг выглядит рыхлым. */
.shop-hero h1 {
  margin-top: 14px;
  font-size: clamp(52px, 11.6vw, 168px);
  line-height: .88;
  letter-spacing: -.02em;
}

.shop-hero h1 em {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: clamp(19px, 2.8vw, 38px);
  font-weight: 500;
  /* Сбрасываем минусовой трекинг заголовка: подзаголовок набран капителью,
     где буквам нужен воздух, а не сжатие. */
  letter-spacing: var(--ls-label);
  color: rgba(255, 255, 255, .76);
}

.shop-hero__lead {
  max-width: 520px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}

.shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ===== Витрина: промо-строка ===== */
/* Границы снизу нет: ниже теперь сразу белый каталог, и полупрозрачная белая
   линия на тёмном фоне ничего не разделяла бы — стык даёт сам контраст фонов. */
.shop-marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.shop-marquee__track {
  display: flex;
  width: max-content;
  animation: shop-marquee 26s linear infinite;
}

/* Пауза при наведении: иначе прочесть строку до конца можно только успев за ней. */
.shop-marquee:hover .shop-marquee__track {
  animation-play-state: paused;
}

.shop-marquee__group {
  display: flex;
  flex-shrink: 0;
}

.shop-marquee__item {
  display: flex;
  align-items: center;
  padding: 11px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Ромб-разделитель должен стоять посередине между двумя фразами.
   Раньше `gap: 22px` на пункте складывался с `margin-left: 22px`: до своего
   текста получалось 44 px, а до следующего — ноль, и ромб выглядел приклеенным
   к чужому слову. Отступы задаём только маржином и строго симметрично. */
.shop-marquee__item::after {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin: 0 20px;
  background: var(--shop-signal);
}

/* Сдвиг на 25% — это ровно одна из четырёх копий списка в разметке. Кадр в
   конце цикла совпадает с начальным, поэтому перезапуск незаметен. Меняя число
   копий, надо править и этот процент. */
@keyframes shop-marquee {
  to {
    transform: translateX(-25%);
  }
}

/* При запросе на уменьшение анимаций строка не встаёт совсем, а замедляется
   вчетверо. Полная остановка выглядела бы обрезанной фразой у правого края —
   пользователь не понял бы, что текст продолжается. Медленный равномерный ход
   без мельканий и рывков — то, что спецификация и допускает: критична не сама
   анимация, а резкость и частота смены кадра.
   Глобальное правило выше гасит анимации через `!important`, поэтому здесь он
   тоже нужен — иначе строка застынет. */
@media (prefers-reduced-motion: reduce) {
  .shop-marquee__track {
    animation-name: shop-marquee !important;
    animation-duration: 104s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}

/* ===== Каталог: шапка ===== */
.shop-catalog {
  padding: 56px 0 84px;
}

.shop-catalog__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px 48px;
  margin-bottom: 26px;
}

.shop-catalog__head h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1;
}

.shop-catalog__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--shop-graphite);
}

/* ===== Подборки ===== */
.shop-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-presets::-webkit-scrollbar {
  display: none;
}

.shop-preset {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-control);
  border-radius: 0;
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.shop-preset:hover {
  border-color: var(--line-strong);
}

.shop-preset.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* The complete desktop preset row must fit inside the catalog wrapper. */
@media (min-width: 1200px) {
  .shop-presets {
    justify-content: space-between;
    overflow-x: visible;
  }

  .shop-preset {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 8px;
  }
}

/* ===== Панель управления каталогом ===== */
.shop-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--shop-line);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  scroll-margin-top: var(--header-h);
}

.shop-toolbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-toolbar__count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-toolbar__filters {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
}

.shop-toolbar__filters em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--shop-signal);
  color: var(--paper);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

/* ===== Поиск ===== */
.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 300px;
  max-width: 420px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-control);
  background: var(--paper);
}

.shop-search:focus-within {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.shop-search > svg {
  flex: 0 0 auto;
  color: var(--shop-graphite);
}

.shop-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.shop-search input::-webkit-search-cancel-button,
.shop-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.shop-search > button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--shop-graphite);
  cursor: pointer;
}

.shop-search > button:hover {
  color: var(--ink);
}

/* ===== Сортировка ===== */
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-sort > label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--shop-graphite);
}

.shop-sort__control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shop-sort select {
  min-height: 44px;
  padding: 0 40px 0 13px;
  border: 1px solid var(--line-control);
  border-radius: 0;
  background: var(--paper);
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.shop-sort select:hover {
  border-color: var(--line-strong);
}

.shop-sort__control svg {
  position: absolute;
  right: 13px;
  color: var(--shop-graphite);
  pointer-events: none;
}

/* ===== Чипы применённых фильтров ===== */
.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.shop-chip:hover {
  background: var(--ink);
  color: var(--paper);
}

.shop-chip svg {
  flex: 0 0 auto;
  opacity: .65;
}

.shop-chip--reset {
  border-style: dashed;
  border-color: var(--shop-graphite);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
}

/* ===== Раскладка: рельс фильтров + сетка ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 40px;
  margin-top: 26px;
}

.shop-layout__rail {
  position: sticky;
  top: calc(var(--header-h) + 78px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 100px);
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ===== Панель фильтров ===== */
.shop-filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.shop-filters__count {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.shop-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--shop-signal);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  cursor: pointer;
}

.shop-facet {
  border-bottom: 1px solid var(--shop-line);
}

.shop-facet__head {
  margin: 0;
  font-size: inherit;
}

.shop-facet__head button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.shop-facet__head button > span {
  flex: 1 1 auto;
}

.shop-facet__head em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--shop-graphite);
}

.shop-facet__head svg {
  flex: 0 0 auto;
  color: var(--shop-graphite);
  transition: transform .2s ease;
}

.shop-facet.is-open .shop-facet__head svg {
  transform: rotate(180deg);
}

.shop-facet__body {
  padding-bottom: 18px;
}

/* Списки значений: чекбоксы и радио */
.shop-checklist {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-checklist label,
.shop-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-size: 13px;
  cursor: pointer;
}

.shop-checklist input,
.shop-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shop-checklist__box {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--shop-graphite);
  background: var(--paper);
  transition: background .14s ease, border-color .14s ease;
}

.shop-checklist__box--radio {
  border-radius: 50%;
}

.shop-checklist input:checked + .shop-checklist__box,
.shop-switch input:checked + .shop-checklist__box {
  border-color: var(--ink);
  background: var(--ink);
}

.shop-checklist input:checked + .shop-checklist__box::after,
.shop-switch input:checked + .shop-checklist__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid var(--paper);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg);
}

.shop-checklist input:checked + .shop-checklist__box--radio::after {
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  transform: none;
}

.shop-checklist input:focus-visible + .shop-checklist__box,
.shop-switch input:focus-visible + .shop-checklist__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.shop-checklist__label {
  flex: 1 1 auto;
}

.shop-checklist__count {
  flex: 0 0 auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--shop-graphite);
}

/* Значение без товаров в текущей выборке остаётся кликабельным, но приглушено. */
.shop-checklist label.is-empty {
  color: #a8a8a8;
}

.shop-checklist label.is-empty .shop-checklist__box {
  border-color: #cfcfcf;
}

.shop-switch {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--shop-line);
}

.shop-switch > span:nth-of-type(2) {
  flex: 1 1 auto;
}

/* Размеры плитками */
.shop-sizes {
  display: grid;
  gap: 16px;
}

.shop-sizes__label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-sizes__values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* «Ещё N» для длинных размерных рядов: текстовая кнопка, а не ещё одна
   плитка — иначе она читалась бы как очередной размер. */
.shop-sizes__more {
  margin-top: 8px;
  padding: 4px 0;
  min-height: 24px;
  border: 0;
  background: none;
  color: var(--shop-graphite);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .16s ease;
}

.shop-sizes__more:hover {
  color: var(--ink);
}

.shop-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line-control);
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.shop-size input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shop-size:hover {
  border-color: var(--line-strong);
}

.shop-size.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.shop-size.is-empty {
  color: #b0b0b0;
  border-color: #ececec;
}

.shop-size:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Цена */
.shop-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shop-price label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-price input {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-control);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

/* Обводку заменяем на двойную рамку: контрол узкий, внешний outline на нём
   обрезался бы соседним полем. */
.shop-price input:focus-visible {
  outline: 0;
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ===== Сетка товаров ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
}

.shop-card {
  display: flex;
  flex-direction: column;
}

/* Карточки за пределами первых рядов не считаются до прокрутки.
   `auto none` вместо фиксированной высоты: в grid `0px` ломает раскладку. */
.shop-card:nth-child(n + 13) {
  content-visibility: auto;
  contain-intrinsic-size: auto none;
}

.shop-card__media {
  position: relative;
  background: var(--shop-wash);
  overflow: hidden;
}

.shop-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shop-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 12;
  object-fit: cover;
  transition: opacity .35s ease;
}

/* Второе фото — перекрёстное затухание, не зум: одежда должна читаться. */
.shop-card__img--hover {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}

.shop-card--has-hover:hover .shop-card__img--hover,
.shop-card--has-hover.is-keyboard-active .shop-card__img--hover {
  opacity: 1;
}

.shop-card__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 11 / 12;
  background: var(--shop-wash);
  color: #bcbcbc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
}

.shop-card__flags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
}

.shop-card__flag {
  padding: 4px 7px 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.shop-card__flag--sale {
  background: var(--shop-signal);
  color: var(--paper);
}

.shop-card__flag--label {
  background: var(--ink);
  color: var(--paper);
}

.shop-card__peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 11px 12px;
  background: rgba(11, 11, 11, .82);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .2s ease, transform .2s ease;
}

.shop-card__save {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.shop-card__save:hover {
  background: var(--paper);
}

.shop-card__save.is-active {
  background: var(--shop-signal);
  color: var(--paper);
}

.shop-card__save.is-active svg {
  fill: currentColor;
}

/* Быстрый заказ прямо из сетки: показывается при наведении/фокусе. */
.shop-card__sizes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid var(--shop-line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.shop-card__sizes button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 7px;
  border: 1px solid var(--line-control);
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.shop-card__sizes button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.shop-card__sizes-more {
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: lowercase;
  color: var(--shop-graphite) !important;
}

.shop-card:hover .shop-card__sizes,
.shop-card.is-keyboard-active .shop-card__sizes {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Пока открыт быстрый заказ, подпись «Быстрый просмотр» не нужна. */
.shop-card:hover .shop-card__peek,
.shop-card.is-keyboard-active .shop-card__peek {
  opacity: 0;
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
}

.shop-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.shop-card__title button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Название в одну строку даёт 19 px — добираем до минимума вертикальной зоной. */
.shop-card__title button::after {
  content: '';
  position: absolute;
  inset: -4px -4px -5px;
}

.shop-card__title button:hover {
  color: var(--shop-signal);
}

.shop-card__title button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-card__price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  font-size: 14px;
}

.shop-card__price strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop-card__price s {
  font-size: 12px;
  color: var(--shop-graphite);
}

.shop-card__add {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
}

/* Строка-ссылка высотой 17 px — ниже минимума 24×24 по WCAG 2.5.8. Подчёркивание
   должно оставаться прижатым к тексту, поэтому зону нажатия расширяем невидимым
   ::after, а не отступами. Вниз больше, чем вверх: сверху сразу цена. */
.shop-card__add::after {
  content: '';
  position: absolute;
  inset: -5px -6px -12px;
}

.shop-card__add:hover {
  color: var(--shop-signal);
  border-bottom-color: var(--shop-signal);
}

/* На тач-устройствах ховера нет — быстрый заказ показываем всегда. */
@media (hover: none) {
  .shop-card__sizes,
  .shop-card__peek {
    display: none;
  }
}

/* ===== Пустая выборка и «показать ещё» ===== */
.shop-empty {
  padding: 64px 24px;
  border: 1px solid var(--shop-line);
  text-align: center;
}

.shop-empty h3 {
  font-size: 22px;
}

.shop-empty p {
  max-width: 460px;
  margin: 12px auto 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--shop-graphite);
}

/* Пустая выдача — не тупик: рядом лежат минимальное действие (снять самый
   узкий фильтр) и полный сброс, а ниже видно, что именно сейчас применено. */
.shop-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.shop-empty__chips {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--shop-line);
}

.shop-empty__chips-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

/* Чипы внутри пустого состояния центрируем — блок выровнен по центру. */
.shop-empty__chips .shop-chips {
  justify-content: center;
}

.shop-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--shop-line);
}

.shop-more p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

/* ===== Баннер Red Label ===== */
.shop-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(60vh, 520px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

.shop-banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.shop-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, .16) 100%);
  pointer-events: none;
}

.shop-banner__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0;
}

.shop-banner__inner h2 {
  max-width: 620px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.02;
}

.shop-banner__inner p {
  max-width: 480px;
  margin: 16px 0 26px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

/* ===== Таблица размеров ===== */
.shop-sizes-section {
  padding: 72px 0;
  background: var(--shop-wash);
  scroll-margin-top: var(--header-h);
}

.shop-sizes-section__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 48px;
}

.shop-sizes-section h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.02;
}

.shop-sizes-section__lead {
  margin: 16px 0 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--shop-graphite);
}

.shop-table__scroll {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--shop-line);
}

.shop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.shop-table th,
.shop-table td {
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--shop-line);
}

.shop-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
  background: var(--paper);
}

.shop-table tbody th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--ls-nav);
}

.shop-table tbody td {
  font-variant-numeric: tabular-nums;
  color: var(--shop-graphite);
}

.shop-table tbody tr:last-child th,
.shop-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ===== Частые вопросы ===== */
.shop-faq {
  padding: 72px 0;
  scroll-margin-top: var(--header-h);
}

.shop-faq__list {
  max-width: 880px;
  border-top: 1px solid var(--line-strong);
}

.shop-faq__list details {
  border-bottom: 1px solid var(--shop-line);
}

.shop-faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.shop-faq__list summary::-webkit-details-marker {
  display: none;
}

.shop-faq__list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--shop-graphite);
}

.shop-faq__list details[open] summary::after {
  content: "−";
}

.shop-faq__list p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--shop-graphite);
}

.shop-faq__b2b {
  max-width: 880px;
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--shop-line);
  background: var(--shop-wash);
  font-size: 14px;
  line-height: 1.6;
}

/* Строчная ссылка в тексте — исключение WCAG 2.5.8, поэтому 24 px по высоте не
   обязательны. Небольшую зону всё же добавляем: это единственный переход в B2B
   из витрины, и промахнуться по нему на телефоне легко. */
.shop-faq__b2b a {
  position: relative;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.shop-faq__b2b a::after {
  content: '';
  position: absolute;
  inset: -4px -2px;
}

.shop-faq__b2b a:hover {
  color: var(--shop-signal);
}

/* ===== Плавающая панель: избранное и корзина ===== */
.shop-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  gap: 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* WooCommerce's private-store banner is fixed and otherwise covers the dock. */
body:has(#coming-soon-footer-banner) .shop-dock {
  bottom: 80px;
}

.shop-dock__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 52px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
  transition: background .16s ease, color .16s ease;
}

.shop-dock__btn--cart {
  background: var(--ink);
  color: var(--paper);
}

.shop-dock__btn:hover {
  background: var(--shop-signal);
  border-color: var(--shop-signal);
  color: var(--paper);
}

.shop-dock__label {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shop-dock__btn em {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--shop-signal);
  color: var(--paper);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

/* ===== Общая основа оверлеев ===== */
.shop-sheet,
.shop-modal,
.shop-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
}

[hidden] {
  display: none !important;
}

html.has-open-shop-overlay,
html.has-open-shop-overlay body {
  overflow: hidden;
}

.shop-sheet__scrim,
.shop-modal__scrim,
.shop-drawer__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(9, 9, 9, .58);
  cursor: pointer;
  animation: shop-fade .2s ease;
}

@keyframes shop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shop-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes shop-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes shop-pop {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Нижний шит фильтров (мобильные) ===== */
.shop-sheet {
  align-items: flex-end;
}

.shop-sheet__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 88vh;
  background: var(--paper);
  animation: shop-rise .26s ease;
}

.shop-sheet__head,
.shop-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-strong);
}

.shop-sheet__head h2,
.shop-drawer__head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: var(--ls-label);
}

.shop-sheet__head h2 em,
.shop-drawer__head h2 em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--paper);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.shop-sheet__head > button,
.shop-drawer__head > button,
.shop-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.shop-sheet__body {
  flex: 1 1 auto;
  padding: 4px 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shop-sheet__foot {
  flex: 0 0 auto;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--shop-line);
}

.shop-sheet__foot .btn {
  width: 100%;
}

/* ===== Модальное окно быстрого просмотра ===== */
.shop-modal {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shop-modal__panel {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--paper);
  box-shadow: var(--shop-shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: shop-pop .22s ease;
}

.shop-modal__panel:focus,
.shop-drawer__panel:focus,
.shop-sheet__panel:focus {
  outline: 0;
}

.shop-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  margin: 0;
  background: rgba(255, 255, 255, .88);
}

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

.shop-qv__gallery {
  background: var(--shop-wash);
  padding: 16px;
}

.shop-qv__stage {
  position: relative;
  background: var(--paper);
}

.shop-qv__stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.shop-qv__sale {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px 4px;
  background: var(--shop-signal);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
}

.shop-qv__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-qv__thumbs::-webkit-scrollbar {
  display: none;
}

.shop-qv__thumbs button {
  flex: 0 0 auto;
  width: 62px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .16s ease, opacity .16s ease;
  opacity: .7;
}

.shop-qv__thumbs button.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.shop-qv__thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.shop-qv__info {
  padding: 30px 32px 32px;
}

.shop-qv__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-qv__title {
  margin: 10px 0 0;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.1;
}

.shop-qv__sku {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: var(--ls-nav);
  color: var(--shop-graphite);
}

.shop-qv__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 0;
}

.shop-qv__price strong {
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop-qv__price s {
  font-size: 15px;
  color: var(--shop-graphite);
}

.shop-qv__row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--shop-line);
}

.shop-qv__row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.shop-qv__row-head a {
  font-weight: 600;
  color: var(--shop-graphite);
  border-bottom: 1px solid currentColor;
}

.shop-qv__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shop-qv__sizes button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-control);
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.shop-qv__sizes button:hover {
  border-color: var(--line-strong);
}

.shop-qv__sizes button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.shop-qv__sizes.has-error button {
  border-color: var(--shop-signal);
}

.shop-qv__error {
  margin: 9px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--shop-signal);
}

.shop-qv__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 22px;
}

.shop-qv__add {
  flex: 1 1 auto;
}

.shop-qv__save {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.shop-qv__save.is-active {
  border-color: var(--shop-signal);
  background: var(--shop-signal);
  color: var(--paper);
}

.shop-qv__save.is-active svg {
  fill: currentColor;
}

.shop-qv__specs {
  margin: 26px 0 0;
  border-top: 1px solid var(--shop-line);
}

.shop-qv__specs div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-qv__specs dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-qv__specs dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.shop-qv__service {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.shop-qv__service li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--shop-graphite);
}

.shop-qv__service svg {
  flex: 0 0 auto;
  color: var(--shop-signal);
}

/* ===== Счётчик количества ===== */
.shop-qty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
}

.shop-qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.shop-qty button:disabled {
  color: #bfbfbf;
  cursor: not-allowed;
}

.shop-qty input,
.shop-qty > span {
  width: 40px;
  height: 46px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-qty--sm button {
  width: 32px;
  height: 32px;
}

.shop-qty--sm input,
.shop-qty--sm > span {
  width: 30px;
  height: 32px;
  font-size: 13px;
}

/* ===== Тост «добавлено в корзину» ===== */
.shop-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shop-shadow);
  animation: shop-pop .22s ease;
}

.shop-toast__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--shop-signal);
}

.shop-toast__body {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shop-toast__body strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.shop-toast__body small {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-toast > button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
}

.shop-toast > button:hover {
  background: var(--paper);
  color: var(--ink);
}

.shop-toast__close {
  width: 32px;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(255, 255, 255, .6) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-toast__close:hover {
  background: transparent !important;
  color: var(--paper) !important;
}

/* ===== Панель корзины: корзина → оформление → подтверждение ===== */
.shop-drawer {
  justify-content: flex-end;
}

.shop-drawer__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shop-shadow);
  animation: shop-slide .26s ease;
}

.shop-drawer__body {
  flex: 1 1 auto;
  padding: 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shop-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 64px 12px;
  text-align: center;
}

.shop-drawer__empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 6px;
  border: 1px solid var(--shop-line);
  color: var(--shop-graphite);
}

.shop-drawer__empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.shop-drawer__empty-hint {
  max-width: 280px;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55;
  color: var(--shop-graphite);
}

.shop-drawer__empty .btn {
  margin-top: 14px;
}

.shop-drawer__foot {
  flex: 0 0 auto;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
}

.shop-drawer__totals,
.shop-checkout__totals {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.shop-drawer__totals p,
.shop-checkout__totals p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-size: 13px;
  color: var(--shop-graphite);
}

.shop-drawer__totals p span:last-child,
.shop-checkout__totals p span:last-child {
  font-variant-numeric: tabular-nums;
}

.shop-drawer__savings {
  color: var(--shop-signal) !important;
}

.shop-drawer__grand,
.shop-checkout__grand {
  padding-top: 9px;
  border-top: 1px solid var(--shop-line);
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.shop-drawer__grand strong,
.shop-checkout__grand strong {
  font-size: 19px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.shop-drawer__cta {
  width: 100%;
}

/* Прогресс до бесплатной доставки */
.shop-ship {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-ship p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-ship p strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.shop-ship__done {
  color: var(--ink) !important;
}

.shop-ship__done svg {
  color: var(--shop-signal);
}

.shop-ship__track {
  height: 3px;
  background: var(--shop-line);
}

.shop-ship__track span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width .3s ease;
}

/* Позиции корзины и избранного */
.shop-lines {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-line {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 32px;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-line:first-child {
  padding-top: 0;
}

.shop-line__media {
  background: var(--shop-wash);
}

.shop-line__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 12;
  object-fit: cover;
}

.shop-line__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shop-line__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.shop-line__meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-line__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.shop-line__price {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop-line__link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
}

.shop-line__remove {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--shop-graphite);
  cursor: pointer;
}

.shop-line__remove:hover {
  color: var(--shop-signal);
}

/* ===== Оформление заказа ===== */
.shop-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--shop-graphite);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
}

.shop-checkout__back:hover {
  color: var(--ink);
}

.shop-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.shop-fieldset legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.shop-fieldset__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shop-field {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.shop-field__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-field input,
.shop-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line-control);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

/* Внутренняя рамка вместо outline: поля идут вплотную в две колонки, внешняя
   обводка перекрывала бы соседа. */
.shop-field input:focus-visible,
.shop-field textarea:focus-visible {
  outline: 0;
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.shop-field.has-error input,
.shop-field.has-error textarea {
  border-color: var(--shop-signal);
}

/* На ошибочном поле фокус остаётся красным, иначе подсветка «съедала» бы
   единственный признак того, что именно здесь ошибка. */
.shop-field.has-error input:focus-visible,
.shop-field.has-error textarea:focus-visible {
  border-color: var(--shop-signal);
  box-shadow: inset 0 0 0 1px var(--shop-signal);
}

.shop-field__error {
  font-size: 12px;
  font-weight: 600;
  color: var(--shop-signal);
}

/* Способы доставки и оплаты */
.shop-options {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-options--tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-option {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid var(--line-control);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.shop-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shop-option:hover {
  border-color: var(--shop-graphite);
}

.shop-option.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.shop-option:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.shop-option__label {
  font-size: 13px;
  font-weight: 600;
}

.shop-option__hint {
  font-size: 11px;
  color: var(--shop-graphite);
}

.shop-options--tight .shop-option {
  min-height: 46px;
  align-content: center;
  text-align: center;
}

.shop-options--tight .shop-option__label {
  font-size: 12px;
}

.shop-checkout__submit {
  width: 100%;
  margin-top: 6px;
}

.shop-checkout__note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--shop-graphite);
}

.shop-checkout__note a {
  border-bottom: 1px solid currentColor;
}

/* ===== Подтверждение заказа ===== */
.shop-success {
  padding: 30px 4px;
  text-align: center;
}

.shop-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  background: var(--ink);
  color: var(--paper);
}

.shop-success h3 {
  font-size: 25px;
}

.shop-success__number {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-success__number strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.shop-success__text {
  margin: 14px 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--shop-graphite);
}

.shop-success__summary {
  margin: 0 0 26px;
  border-top: 1px solid var(--shop-line);
  text-align: left;
}

.shop-success__summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-success__summary dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--shop-graphite);
}

.shop-success__summary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop-success .btn {
  width: 100%;
}

/* =========================================================================
   Магазин: адаптив. Точки те же, что и на B2B-страницах: 1180 / 989 / 767 /
   600 / 560. Рельс фильтров прячется на 1023 px — там же, где
   `useMediaQuery('(min-width: 1024px)')` в shop-page.js переключает панель в
   нижний шит, иначе фильтры пропали бы совсем.
   ========================================================================= */
/* На широком экране влезает четвёртая колонка: 1320 − 248 рельса − 40 = 1032 px. */
@media (min-width: 1400px) {
  .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .shop-toolbar__filters {
    display: none;
  }
}

@media (max-width: 1180px) {
  .shop-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
  .shop-grid {
    gap: 28px 16px;
  }
}

@media (max-width: 1023px) {
  .shop-layout__rail {
    display: none;
  }
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 989px) {
  .shop-hero {
    min-height: min(78vh, 640px);
  }
  .shop-hero__inner {
    padding-top: 56px;
    padding-bottom: 40px;
  }
  .shop-catalog {
    padding: 40px 0 64px;
  }
  .shop-catalog__head {
    grid-template-columns: 1fr;
  }
  .shop-sizes-section__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .shop-sizes-section,
  .shop-faq {
    padding: 52px 0;
  }
  .shop-qv {
    grid-template-columns: 1fr;
  }
  .shop-modal {
    padding: 0;
    align-items: flex-end;
  }
  .shop-modal__panel {
    width: 100%;
    max-height: 92vh;
    animation: shop-rise .26s ease;
  }
  .shop-qv__info {
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .shop-dock {
    right: 16px;
    bottom: 16px;
  }
  .shop-toast {
    left: 16px;
    right: 16px;
    bottom: 84px;
    max-width: none;
  }
}

@media (max-width: 767px) {
  /* На телефоне у hero вертикальный кадр и куда меньше места, поэтому здесь
     свои правила, а не масштабированная десктопная раскладка.
     Текст выравниваем по низу: у вертикального баннера модели стоят в центре
     кадра, и блок, поднятый выше, ложился бы прямо на лица. */
  .shop-hero {
    min-height: min(88vh, 720px);
  }
  .shop-hero__inner {
    padding-top: 40px;
    padding-bottom: 36px;
  }
  /* Подводка часто не влезала в одну строку и рвалась в самом неудачном месте.
     10px + узкий трекинг дают ей уложиться, а разделитель уводим на пробел. */
  .shop-hero__kicker {
    font-size: 10px;
    letter-spacing: .1em;
  }
  .shop-hero__lead {
    margin-top: 16px;
    font-size: 14px;
  }
  /* Две кнопки по 150 и 117 px в строке на 320 px выглядели обрезками. На узком
     экране они занимают всю ширину — так их и нажимать проще большим пальцем. */
  .shop-hero__actions {
    margin-top: 22px;
    gap: 10px;
  }
  .shop-hero__actions .btn {
    flex: 1 1 100%;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .shop-toolbar {
    gap: 10px;
  }
  .shop-search {
    flex-basis: 100%;
    max-width: none;
    order: -1;
  }
  .shop-toolbar__right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  /* У flex-детей `min-width: auto`: `select` (185 px) и кнопка «Фильтры»
     (117 px) не помещались в 280 px и выносили каталог за экран на 419 px.
     Разрешаем обоим ужиматься и делим строку пополам. */
  .shop-sort,
  .shop-sort__control,
  .shop-sort select,
  .shop-toolbar__filters {
    min-width: 0;
  }
  .shop-sort,
  .shop-toolbar__filters {
    flex: 1 1 0;
  }
  .shop-sort select {
    width: 100%;
    text-overflow: ellipsis;
  }
  .shop-toolbar__filters {
    justify-content: center;
  }
  /* В узкой строке подпись «Сортировка» лишняя — select говорит сам за себя. */
  .shop-sort > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .shop-toolbar__count {
    order: -1;
    width: 100%;
  }
  .shop-fieldset__row,
  .shop-price {
    grid-template-columns: 1fr;
  }
  .shop-drawer__panel {
    width: 100%;
  }
  .shop-qv__specs div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .shop-banner {
    min-height: min(56vh, 460px);
  }
  .shop-banner::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .78) 100%);
  }
}

@media (max-width: 600px) {
  .shop-dock {
    left: 16px;
    right: 16px;
  }
  .shop-dock__btn {
    flex: 1 1 auto;
  }
  .shop-options--tight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* Крупный кегль на узком экране ломает слово переносом, поэтому здесь свой
     потолок: 62px — предел, при котором «AFFLICTION» ещё держится в строку. */
  .shop-hero h1 {
    font-size: clamp(40px, 13vw, 62px);
  }
  .shop-grid {
    gap: 22px 10px;
  }
  .shop-card__body {
    gap: 4px;
  }
  .shop-card__title {
    font-size: 13px;
  }
  .shop-line {
    grid-template-columns: 62px minmax(0, 1fr) 28px;
    gap: 10px;
  }
  .shop-line__foot {
    flex-wrap: wrap;
  }
}

/* ===== 404 ===== */
.not-found-page {
  background: var(--ink);
  color: var(--paper);
}

.not-found-hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 112px) 0;
}

.not-found-hero__inner {
  max-width: 1080px;
}

.not-found-hero__grid {
  margin-top: 18px;
  padding: clamp(28px, 4vw, 52px) 0;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .32);
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.not-found-hero__code {
  margin: 0;
  font-size: clamp(96px, 16vw, 220px);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .72);
}

.not-found-hero__copy h1 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: .98;
}

.not-found-hero__copy > p {
  max-width: 55ch;
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .76);
}

.not-found-hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 680px) {
  .not-found-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .not-found-hero__code {
    font-size: clamp(92px, 34vw, 132px);
  }
  .not-found-hero__actions {
    display: grid;
  }
  .not-found-hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-sheet__panel,
  .shop-modal__panel,
  .shop-drawer__panel,
  .shop-toast,
  .shop-sheet__scrim,
  .shop-modal__scrim,
  .shop-drawer__scrim {
    animation: none;
  }
  .shop-card__img,
  .shop-card__peek,
  .shop-card__sizes,
  .shop-ship__track span,
  .footer-switch__label em,
  .shop-facet__head svg {
    transition: none;
  }
}
