
      :root {
        --bg: var(--color-5);
        --bg-alt: var(--color-6);
        --surface: var(--color-7);
        --ink: var(--color-8);
        --ink-soft: var(--color-9);
        --ink-faint: var(--color-10);
        --line: var(--color-11);
        --line-strong: var(--color-12);
        --accent: var(--color-13);
        --accent-deep: var(--color-14);
        --indigo: var(--color-114);
        --on-indigo: var(--color-6);
        --gold: var(--color-15);
        --gold-soft: var(--color-18);
        --gold-text: var(--color-115);
        --on-accent: var(--color-3);
        /* тёмные панели (hero, бегущая строка) остаются тёмными в любой теме */
        --panel: var(--color-8);
        --panel-text: var(--color-5);
        --shadow: 0 1px 2px var(--color-22), 0 20px 40px -24px var(--color-23);
        --tip-shadow: 0 6px 18px -8px var(--color-116);
        --ease: cubic-bezier(0.16, 1, 0.3, 1);
        /* реальная высота sticky header (не scroll) — измерено рендером, .nav padding-block
           18px * 2 + строка бренда + border-top 1px */
        --header-h: 81px;
        --header-compact-h: 61px;
        /* Шкала кеглей/скруглений — задача 029. Снэппинг ближайших исторических значений,
           см. tasks/done/029-type-radius-scale.md. clamp()-заголовки, body{font-size:16px}
           (база rem) и относительные em намеренно вне шкалы, см. там же. */
        --fs-3xs: 0.7rem;
        --fs-2xs: 0.76rem;
        --fs-xs: 0.8rem;
        --fs-sm: 0.86rem;
        --fs-base: 0.94rem;
        --fs-md: 1rem;
        --fs-md2: 1.08rem;
        --fs-lg: 1.2rem;
        --fs-lg2: 1.3rem;
        --fs-xl: 1.4rem;
        --fs-xl2: 1.6rem;
        --fs-2xl: 2.4rem;
        --radius-sm: 2px;
        --radius-lg: 20px;
        --radius-full: 999px;
        color-scheme: light;
      }
      /* тёмная тема: атрибут ставит скрипт в <head> по выбору в шапке или по системе */
      :root[data-theme='dark'] {
        --bg: var(--color-24);
        --bg-alt: var(--color-25);
        --surface: var(--color-26);
        --ink: var(--color-6);
        --ink-soft: var(--color-27);
        --ink-faint: var(--color-28);
        --line: var(--color-29);
        --line-strong: var(--color-30);
        --accent: var(--color-31);
        --accent-deep: var(--color-32);
        --indigo: var(--color-117);
        --on-indigo: var(--color-24);
        --gold: var(--color-33);
        --gold-soft: var(--color-33);
        --gold-text: var(--color-33);
        --on-accent: var(--color-24);
        --panel: var(--color-118);
        --shadow: 0 1px 2px var(--color-40), 0 20px 40px -24px var(--color-4);
        --tip-shadow: 0 8px 20px -8px var(--color-119);
        color-scheme: dark;
      }
      * {
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
        /* Страница использует прогресс-бар, без пустого места под скрытую полосу. */
        scrollbar-gutter: auto;
      }
      body {
        margin: var(--space-8);
        background: var(--bg);
        color: var(--ink);
        font-family: var(--font-body);
        -webkit-font-smoothing: antialiased;
        font-size: var(--font-1);
        line-height: 1.5;
        overflow-x: hidden;
      }
      :root {
        accent-color: var(--accent);
        caret-color: var(--accent);
        scrollbar-color: var(--line-strong) transparent;
      }
      ::selection {
        background: var(--accent);
        color: var(--on-accent);
      }
      /* Кнопки и поля наследуют основной шрифт страницы и его системный резерв. */
      button,
      input,
      select,
      textarea {
        font-family: inherit;
      }
      body,
      button,
      a,
      input,
      textarea,
      select {
        touch-action: manipulation;
      }
      h1,
      h2,
      h3 {
        font-family: var(--font-heading);
        font-weight: 600;
        margin: var(--space-8);
        text-wrap: balance;
        letter-spacing: -0.01em;
      }
      p {
        margin: var(--space-8);
      }
      a {
        color: inherit;
      }
      img {
        max-width: 100%;
        display: block;
      }
      ul {
        margin: var(--space-8);
        padding: var(--space-8);
        list-style: none;
      }
      a:focus-visible,
      button:focus-visible,
      summary:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 3px;
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 80%, transparent);
      }
      input:focus-visible,
      textarea:focus-visible,
      select:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 2px;
      }
      [id] {
        scroll-margin-top: var(--anchor-offset, var(--header-h));
      }
      .wrap {
        max-width: 1180px;
        margin-inline: var(--space-45);
        padding-inline: var(--space-169);
      }
      section {
        padding-block: var(--space-170);
        position: relative;
      }
      .alt {
        background: var(--bg-alt);
      }
      #catalog {
        padding-bottom: var(--space-171);
      }
      #about {
        padding-block: var(--space-172);
      }
      #testimonials {
        padding-block: var(--space-173);
      }
      #faq {
        padding-top: var(--space-174);
        padding-bottom: var(--space-173);
      }
      #contact {
        padding-block: var(--space-173);
      }
      #testimonials .sec-head {
        margin-bottom: var(--space-175);
      }
      #faq .sec-head {
        margin-bottom: var(--space-176);
      }
      section + section::before {
        display: none;
      }
      section + section::after {
        display: none;
      }
      .product-ssr {
        background: var(--surface);
        border-bottom: 1px solid var(--line);
      }
      .product-ssr-inner {
        max-width: 760px;
      }
      .product-ssr h1 {
        margin: var(--space-177);
        font-size: var(--font-59);
      }
      .product-ssr-price {
        margin-top: var(--space-17);
        color: var(--accent);
        font: 700 var(--fs-lg) / 1.2 var(--font-body);
      }
      .product-ssr-back {
        color: var(--ink-soft);
        font-size: var(--fs-sm);
      }
      .seo-card-media {
        display: block;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        background: var(--bg-alt);
      }
      .seo-card-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      /* Hero уже имеет собственный нижний край; не дублируем его линиями каталога. */
      #catalog::before,
      #catalog::after {
        display: none;
      }

      /* ---------- reveal ---------- */
      .js [data-reveal] {
        opacity: 0;
        transform: translateY(26px);
        transition:
          opacity 1s var(--ease) var(--d, 0ms),
          transform 1s var(--ease) var(--d, 0ms);
      }
      .js [data-reveal].in {
        opacity: 1;
        transform: none;
      }

      .sec-head {
        max-width: 62ch;
        margin-bottom: var(--space-178);
      }
      .sec-head h2 {
        font-size: var(--font-60);
        line-height: 1.15;
      }
      .sec-head p {
        margin-top: var(--space-36);
        color: var(--ink-soft);
        font-size: var(--fs-md);
        line-height: 1.65;
        max-width: 52ch;
      }

      /* ---------- header ---------- */
      .header-slot {
        position: sticky;
        top: 0;
        z-index: 50;
        height: var(--header-h);
        pointer-events: none;
      }
      #siteHeader {
        --header-duration: 260ms;
        --header-ease: cubic-bezier(0.22, 1, 0.36, 1);
        position: absolute;
        inset: 0;
        height: var(--header-h);
        transition:
          height var(--header-duration) var(--header-ease),
          transform var(--header-duration) var(--header-ease);
      }
      #siteHeader::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--bg);
        border-top: 1px solid var(--line-strong);
      }
      #siteHeader.scrolled {
        height: var(--header-compact-h);
      }
      #siteHeader.header-hidden {
        transform: translateY(-100%);
        visibility: hidden;
        transition:
          transform var(--header-duration) var(--header-ease),
          visibility 0s var(--header-duration);
      }
      #siteHeader :is(a, button) {
        pointer-events: auto;
      }
      #siteHeader.header-hidden :is(a, button) {
        pointer-events: none;
      }
      .scroll-line {
        position: absolute;
        left: 0;
        top: calc(var(--header-h) - 2px);
        height: 2px;
        width: 100%;
        background: var(--accent);
        z-index: 2;
        transform: scaleX(0);
        transform-origin: left;
        transition: translate var(--header-duration) var(--header-ease);
      }
      header.scrolled .scroll-line {
        translate: 0 calc(var(--header-compact-h) - var(--header-h));
      }
      .nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--header-h);
        padding-block: var(--space-17);
        transition: transform var(--header-duration) var(--header-ease);
      }
      header.scrolled .nav {
        transform: translateY(calc((var(--header-compact-h) - var(--header-h)) / 2));
      }
      .brand {
        display: flex;
        align-items: center;
        flex: none;
        min-height: 44px;
        text-decoration: none;
      }
      .brand-txt {
        display: flex;
        flex-direction: column;
        line-height: 1.05;
        transition:
          opacity var(--header-duration) ease,
          transform var(--header-duration) var(--header-ease);
      }
      header.scrolled .brand-txt {
        transform: translateY(7px);
      }
      .brand-name {
        display: block;
        line-height: 0;
        color: var(--color-120);
        transform-origin: left center;
        transition: transform var(--header-duration) var(--header-ease);
      }
      .brand-wordmark {
        display: block;
        width: 124px;
        height: auto;
        aspect-ratio: 360 / 122;
        overflow: visible;
        fill: currentColor;
      }
      :root[data-theme='dark'] .brand-name {
        color: var(--ink);
      }
      header.scrolled .brand-name {
        transform: scale(0.9);
      }
      .brand-sub {
        font-family: inherit;
        font-size: var(--font-61);
        font-weight: 500;
        letter-spacing: 0.16em;
        text-align: center;
        text-transform: uppercase;
        color: var(--ink-soft);
        margin-top: var(--space-95);
        transition:
          opacity var(--header-duration) ease,
          transform var(--header-duration) var(--header-ease);
      }
      header.scrolled .brand-sub {
        opacity: 0;
        transform: translateY(-4px);
      }
      @media (max-width: 360px) {
        .brand-wordmark {
          width: 112px;
        }
      }
      @media (max-width: 340px) {
        .brand-wordmark {
          width: 100px;
        }
      }
      .nav-links {
        display: flex;
        align-items: center;
        gap: var(--space-179);
      }
      @media (prefers-reduced-motion: reduce) {
        #siteHeader,
        #siteHeader.header-hidden,
        #siteHeader::before,
        #siteHeader .nav,
        #siteHeader .brand-txt,
        #siteHeader .brand-name,
        #siteHeader .brand-sub,
        #siteHeader .nav-links,
        #siteHeader .nav-right,
        #siteHeader .scroll-line {
          transition: none;
        }
      }
      .nav-links a {
        position: relative;
        text-decoration: none;
        color: var(--ink-soft);
        font-size: var(--fs-sm);
        font-weight: 600;
        letter-spacing: 0.02em;
        padding-block: var(--space-11);
        transition: color 0.3s;
      }
      .nav-links a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s var(--ease);
      }
      .nav-links a:hover,
      .nav-links a[aria-current='true'] {
        color: var(--ink);
      }
      .nav-links a:hover::after,
      .nav-links a[aria-current='true']::after {
        transform: scaleX(1);
        transform-origin: left;
      }
      .nav-links a:not(:first-child)::before {
        content: '';
        position: absolute;
        left: -17px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 12px;
        background: var(--line-strong);
        transition: transform var(--header-duration) var(--header-ease);
      }
      .menu-btn {
        display: none;
        background: none;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--ink);
      }
      .menu-btn svg {
        width: 18px;
        height: 18px;
      }
      .social-link {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-full);
        color: var(--ink-soft);
        text-decoration: none;
        transition:
          color 0.3s,
          border-color 0.3s;
      }
      /* задача 063: при наведении значок и обводка в цвете своей соцсети (--brand из SOCIALS) */
      .social-link:hover,
      .social-link:focus-visible {
        color: var(--brand, var(--accent));
        border-color: var(--brand, var(--accent));
      }
      .social-link svg {
        width: 22px;
        height: 22px;
      }
      .social-link svg text {
        font-family: var(--font-body);
      }
      /* меню на узком экране — панель слева (задача 069, по образцу if u like): тёмная, на всю
         высоту, крупные ссылки Kurale, соцсети и © внизу. Построена на .drawer панели фильтров:
         затемнение, блокировка прокрутки, удержание фокуса, Escape */
      @media (max-width: 800px) {
        body {
          transition:
            background-color 0.25s var(--ease),
            color 0.25s var(--ease);
        }
        .nav-links {
          display: none;
        }
        .menu-btn {
          display: flex;
        }
      }
      @media (min-width: 801px) {
        .nav-links[hidden] {
          display: flex !important;
        }
        .nav-drawer {
          display: none;
        }
      }
      /* .drawer-left .drawer-panel (панель фильтров) задаёт 430px/100% и объявлен ниже — нужен
         селектор сильнее, иначе меню на весь экран и фон для закрытия не виден */
      .drawer-left.nav-drawer .drawer-panel {
        width: min(360px, 86vw);
        background: var(--panel);
        color: var(--panel-text);
        border-right-color: var(--color-92);
        overflow: hidden;
      }
      .nav-drawer-head {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* крестик на той же высоте, что бургер в шапке (1px линия сверху + padding .nav 18px), с тем же
           отступом от края, что у содержимого шапки */
        padding: var(--space-180);
      }
      .nav-drawer-brand {
        font-family: var(--font-heading);
        font-size: var(--fs-lg);
        letter-spacing: 0.08em;
        opacity: 0.8;
      }
      /* квадрат с тонкой рамкой, как кнопки шапки (тема, корзина, бургер), — только светлый под
         тёмную панель: «открыл квадратом — закрыл квадратом» */
      .nav-drawer-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--color-121);
        border-radius: var(--radius-sm);
        color: var(--panel-text);
        cursor: pointer;
        transition:
          border-color 0.3s,
          background 0.3s;
      }
      .nav-drawer-close:focus-visible {
        border-color: var(--panel-text);
        background: var(--color-122);
      }
      .nav-drawer-close svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
        transition: transform 0.45s var(--ease);
      }
      @media (hover: hover) and (pointer: fine) {
        .nav-drawer-close:hover {
          border-color: var(--panel-text);
          background: var(--color-122);
        }
        .nav-drawer-close:hover svg {
          transform: rotate(90deg);
        }
      }
      .nav-drawer-close:active {
        background: var(--color-113);
        transform: scale(0.96);
      }
      .nav-drawer-close:active svg {
        transform: rotate(90deg);
      }
      .nav-drawer-links {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding: var(--space-157);
}
.nav-drawer-links a,
.nav-drawer-links button {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-8);
  background: none;
  border: 0;
  font-family: var(--font-heading);
  font-size: var(--font-51);
  text-align: left;
  color: var(--panel-text);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.92;
  transition:
    opacity 0.2s,
    transform 0.3s var(--ease);
}
.nav-drawer-links a:hover,
.nav-drawer-links button:hover {
  opacity: 1;
  transform: translateX(4px);
} /* пол/возраст — подпункты каталога, мельче
и с отступом */
.nav-drawer-links .nav-sub {
  min-height: 40px;
  padding-left: var(--space-17);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  opacity: 0.7;
}
.nav-drawer-foot {
  flex-shrink: 0;
  padding: var(--space-158);
  border-top: 1px solid var(--color-92);
  text-align: left;
}
.nav-drawer-foot .social-link {
  color: var(--panel-text);
  border-color: var(--color-107);
}
.nav-drawer-foot .nav-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
}
.nav-drawer-foot small {
  display: block;
  margin-top: var(--space-17);
  font-size: var(--fs-xs);
  opacity: 0.55;
} /* ---------- hero ---------- */
.hero-wrap {
  padding-block: var(--space-8);
}
.hero-wrap + section {
  padding-top: var(--space-159);
}
.hero-wrap + section::before,
.hero-wrap + section::after {
  display: none;
}
.catalog-intro {
  display: flex;
  align-items: baseline;
  gap: var(--space-36);
  margin-bottom: var(--space-16);
}
.catalog-intro h2 {
  font-family: var(--font-heading);
  font-size: var(--font-52);
  line-height: 1;
}
.catalog-intro p {
  margin-top: var(--space-5);
  color: var(--ink-soft);
  font-size: var(--font-53);
  line-height: 1.55;
}
.hc-content h1 {
  font-size: var(--font-54);
  line-height: 1.12;
  max-width: 16ch;
  color: var(--color-3);
}
.hc-content h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: var(--space-160);
  margin-bottom: var(--space-161);
}
.hc-content h1 .line > span {
  display: block;
}
.hc-content h1 em {
  font-style: normal;
  color: inherit;
}
.hc-content p.lede {
  margin-top: var(--space-16);
  font-size: var(--fs-md2);
  line-height: 1.6;
  color: var(--color-108);
  max-width: 42ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-64);
}
.hc-content .btn-ghost {
  border-color: var(--color-109);
  color: var(--color-3);
}
.hc-content .btn-ghost::before {
  background: var(--color-3);
}
.hc-content .btn-ghost:hover {
  color: var(--panel);
}
.hc-content .hero-vk {
  transition:
    color 0.2s,
    border-color 0.2s;
}
.hc-content .hero-vk:hover,
.hc-content .hero-vk:focus-visible {
  color: var(--color-48);
  border-color: var(--color-48);
}
.hc-content .hero-vk::before {
  display: none;
}
.hc-content .hero-vk .hero-vk-icon {
  transform: none;
  transition: none;
} /* поэтапный вход первого экрана */
.js .hc {
  opacity: 0;
}
.js.loaded .hc {
  opacity: 1;
  transition: opacity 1s var(--ease) 0.2s;
}
.js .hc-content h1 .line > span {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease) var(--d, 0ms);
}
.js .hc-content p.lede,
.js .hc-content .hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 0.9s var(--ease) var(--d, 0ms);
}
.js.loaded .hc-content h1 .line > span {
  transform: none;
}
.js.loaded .hc-content p.lede,
.js.loaded .hc-content .hero-ctas {
  opacity: 1;
  transform: none;
}
.btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-56);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  text-decoration: none;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s,
    transform 0.15s;
}
.btn:active:where(:not(:disabled):not([aria-disabled='true'])) {
  transform: scale(0.98);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.45s var(--ease);
}
.btn:hover:where(:not(:disabled):not([aria-disabled='true'])) svg {
  transform: translateX(4px);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary::before {
  background: var(--accent-deep);
}
.btn-primary:hover:where(:not(:disabled):not([aria-disabled='true']))::before {
  transform: none;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost::before {
  background: var(--ink);
}
.btn-ghost:hover:where(:not(:disabled):not([aria-disabled='true'])) {
  color: var(--bg);
  border-color: var(--ink);
}
.btn-ghost:hover:where(:not(:disabled):not([aria-disabled='true']))::before {
  transform: none;
}
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    visibility 0.35s,
    background 0.3s;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--accent-deep);
}
.to-top svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 600px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
} /* hero: фото и текстовая панель рядом —
текст никогда не лежит на фотографии */
.hc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
}
.hc:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
@media (min-width: 900px) {
  .hc {
    /* На широких экранах баннер остаётся
компактным: контент страницы должен быть виден сразу под ним, без растягивания до высоты viewport.
*/
    min-height: 0;
  }
  .hc-slides {
    aspect-ratio: 16 / 10;
  }
  .hc-slide img {
    /* Не увеличиваем
исходник: маленькие баннеры показываются в исходном качестве. */
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: var(--panel);
  } /* на десктопе герой стал выше — масштабируем текст
по ширине и высоте вьюпорта, чтобы в правой колонке не оставалось пустого места; min(vw, vh) не даёт
тексту раздуться на низких широких окнах, верхняя граница — чтобы не было абсурдно крупно на
1920×1080 и выше */
  .hc-content h1 {
    font-size: var(--font-55);
  }
  .hc-content p.lede {
    font-size: var(--font-56);
    margin-top: var(--space-162);
  }
  .hero-ctas {
    margin-top: var(--space-163);
  }
  .hc-dots {
    left: 29.5%;
  }
}
.hc-slides {
  position: relative;
  min-height: 0;
}
.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hc-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Inline
object-position keeps the focal point saved in admin. */
  object-position: 50% 28%;
  filter: saturate(1.05) contrast(1.06) sepia(0.05);
}
@media (min-width: 900px) {
  .hc-slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: var(--panel);
  }
} /* фото из
админки (задача 059): при первом визите фото скрыто, пока ждём /api/site-settings, чтобы не
мелькнуло исходное из разметки; при повторном .hero-ready ставится сразу по кэшу (скрипт после
слайдов) */
.js .hc-slide img {
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.js .hc.hero-ready .hc-slide img {
  opacity: 1;
}
.hc-slide-tag {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 20px;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--panel-text) 78%, transparent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--panel-text);
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(20, 15, 12, 0.65);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.hc-slide-tag:hover,
.hc-slide-tag:focus-visible {
  background: var(--color-59);
  border-color: var(--panel-text);
  color: var(--panel-text);
}
.hc-slide-tag:focus-visible {
  outline: 2px solid var(--panel-text);
  outline-offset: 3px;
}
.hc-slide[aria-hidden='true'] .hc-slide-tag {
  visibility: hidden;
}
.hc-content {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center; /* точки слайдов теперь на фото (задача 062), под текстом место не
резервируется */
  padding: var(--space-165);
  color: var(--color-3);
} /* стрелки лежат поверх фото
героя (левый/правый край, по центру фото по вертикали — задача 055): .hc-slides уже
position:relative, стрелки — его прямые дети, а не дети .hc-slide, поэтому не привязаны к
конкретному слайду и не участвуют в fade-переходе */
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--color-61);
  color: var(--color-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.hc-arrow:hover {
  background: var(--color-86);
  border-color: var(--color-3);
}
.hc-arrow svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 2px var(--color-62));
}
.hc-prev {
  left: 16px;
}
.hc-next {
  right: 16px;
} /* Индикаторы остаются кнопками с большой
touch-зоной; на мобильном они становятся минималистичными полосками в нижнем потоке hero. */
.hc-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(20px, 4vw, 32px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  height: 44px;
}
.hc-dots button {
  width: 28px;
  height: 44px;
  padding: var(--space-8);
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.hc-dots .hc-dot-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: var(--space-166);
  border-radius: 9999px;
  background: currentColor;
  color: var(--color-81);
  filter: drop-shadow(0 1px 2px var(--color-112));
  transition:
    color 0.3s,
    transform 0.35s var(--ease);
}
.hc-dots .hc-dot-line {
  display: none;
}
.hc-dots button:hover .hc-dot-mark {
  color: var(--color-108);
}
.hc-dots button.is-active .hc-dot-mark {
  color: var(--color-3);
  transform: scale(1.3);
}
.hc-content .btn-primary {
  background: transparent;
  color: var(--panel-text);
  border-color: var(--panel-text);
}
.hc-content .btn-primary::before {
  background: var(--color-113);
}
@media (max-width: 899px) {
  /* На телефоне баннер следует за содержимым: кнопки
остаются в первом экране. */
  .hc {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .hc-slides {
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    width: 100%;
  }
  header.scrolled .nav {
    transform: translateY(-10px);
  }
  .hc-content {
    align-items: center;
    text-align: center;
    padding: var(--space-167);
  }
  .hc-content h1 {
    max-width: 18ch;
    font-size: var(--font-57);
  }
  .hero-ctas {
    justify-content: center;
  } /* задача 055: на телефоне подпись слайда («мужское» и т.д.) читается
хуже — крупнее */
  .hc-slide-tag {
    font-size: var(--font-58);
  }
}
.hero-vk .hero-vk-icon,
.hero-vk .hero-vk-mobile {
  display: none;
}
.hero-vk .hero-vk-desktop {
  display: inline;
}
@media (max-width: 899px) and (orientation: landscape) {
  /* телефон боком: экран низкий, фото не раздуваем */
  .hc-slides {
    max-height: 56vh;
  }
}
@media (max-width: 600px) {
  .hc-slides {
    aspect-ratio: 4 / 3; /*
Фото занимает больше первого экрана, но остаётся резким: исходник не растягивается искусственно,
меняется только высота кадра. */
    min-height: clamp(320px, 90vw, 420px);
  }
  .hc-content {
    padding-block: var(--space-168);
  }
        /* на узком фото точки по центру наезжают на плашку слайда (замер 360–390px) — к правому
           краю, на той же линии и с тем же отступом, что плашка слева */
        .hc-dots {
          left: auto;
          right: clamp(20px, 4vw, 32px);
          transform: none;
        }
        .hc-content h1 {
          max-width: 24ch;
          font-size: var(--font-43);
        }
        .hc-content p.lede {
          margin-top: var(--space-2);
          font-size: var(--fs-base);
          line-height: 1.55;
        }
        .hero-ctas {
          flex-direction: column;
          align-items: stretch;
          width: 100%;
          max-width: 360px;
          margin-top: var(--space-49);
        }
        .hero-ctas .btn {
          justify-content: center;
          min-height: 48px;
          padding: var(--space-102);
          font-size: var(--font-44);
        }
      }
      @media (max-width: 600px) and (max-height: 760px) {
        .hc-slides {
          min-height: clamp(280px, 82vw, 360px);
        }
        .hc-content {
          padding-block: var(--space-144);
        }
        .hero-ctas {
          gap: var(--space-3);
          margin-top: var(--space-17);
        }
      }

      /* ---------- вязаная фактура ---------- */
      @media (max-width: 899px) and (orientation: landscape) {
        .hc-slides {
          aspect-ratio: 16 / 9;
          min-height: 0;
          max-height: 56vh;
        }
      }
      /* ---------- welcome hero: split image and welcome panel ---------- */
      .hero-wrap {
        width: 100%;
        padding: var(--space-8);
      }
      .hc {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.95fr);
        min-height: calc(100vh - 81px);
        min-height: calc(100svh - 81px);
        min-height: calc(100dvh - 81px);
        height: auto;
        max-height: none;
      }
      .hc-slides {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 100%;
      }
      .hc-slide {
        z-index: 0;
      }
      .hc-slide img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        transform: none;
        object-fit: cover;
        object-position: 50% 38%;
        filter: saturate(1.04) contrast(1.04) brightness(0.78);
      }
      .hc-slides::after {
        content: '';
        position: absolute;
        z-index: 1;
        inset: 0;
        pointer-events: none;
        background:
          linear-gradient(180deg, var(--color-96), var(--color-97)),
          linear-gradient(90deg, var(--color-98), transparent 52%, var(--color-99));
      }
      .hc-content {
        position: relative;
        z-index: 2;
        align-items: flex-start;
        justify-content: center;
        max-width: none;
        margin: var(--space-8);
        padding: var(--space-145);
        background: var(--panel);
        text-align: left;
      }
      .hero-brand {
        display: none;
      }
      .hc-content h1 {
        max-width: 15ch;
        font-size: var(--font-45);
        line-height: 1.04;
        text-wrap: balance;
      }
      .hc-content p.lede {
        max-width: 34ch;
        margin-top: var(--space-146);
        font-size: var(--font-46);
        line-height: 1.55;
      }
      .hero-ctas {
        justify-content: flex-start;
        margin-top: var(--space-147);
      }
      .hc-slide-tag {
        display: inline-flex;
      }
      .hc-arrow,
      .hc-dots {
        z-index: 5;
      }
      /* Деликатная полировка desktop: композиция и мобильные правила остаются прежними. */
      @media (min-width: 900px) {
        .nav-links a {
          font-size: calc(var(--fs-sm) + 0.0625rem);
          color: color-mix(in srgb, var(--ink) 85%, var(--ink-soft));
        }
        .nav-links a:hover,
        .nav-links a[aria-current='true'] {
          color: var(--ink);
        }
        .hc-content h1 {
          font-size: var(--font-47);
          line-height: 1.08;
          hyphens: none;
          overflow-wrap: normal;
        }
        .hc-content p.lede {
          margin-top: var(--space-148);
        }
        .hero-ctas .btn {
          min-height: 54px;
          justify-content: center;
        }
        .hero-ctas .btn:focus-visible {
          outline: 2px solid var(--panel-text);
          outline-offset: 4px;
        }
        .hc-arrow:hover {
          background: var(--color-86);
        }
        .hc-arrow svg {
          stroke-width: 1.5;
        }
        .hc-arrow:focus:not(:focus-visible) {
          outline: none;
          box-shadow: none;
        }
        .hc-arrow:focus-visible,
        .hc-dots button:focus-visible {
          outline: 2px solid var(--color-87);
          outline-offset: 4px;
        }
        .hc-dots button {
          border-radius: var(--radius-full);
        }
        .hc-dots .hc-dot-circle {
          overflow: visible;
          color: var(--color-100);
        }
        .hc-dot-circle circle {
          stroke: var(--color-101);
          stroke-width: 0.8px;
        }
      }
      @media (min-width: 900px) and (max-height: 760px) {
        .hc-content {
          padding-block: var(--space-149);
        }
        .hc-content h1 {
          font-size: var(--font-48);
        }
        .hero-ctas {
          margin-top: var(--space-150);
        }
      }
      @media (max-width: 899px) {
        .hc {
          display: flex;
          flex-direction: column;
          /* На мобильном высота hero определяется фото и контентом, иначе
             короткий экран растягивает тёмную панель до нижнего края viewport. */
          min-height: 0;
          height: auto;
        }
        .hc-slides {
          flex: 0 0 auto;
          aspect-ratio: 16 / 10;
          min-height: 0;
        }
        .hc-content {
          align-items: center;
          flex: 0 1 auto;
          padding: var(--space-151);
          text-align: center;
        }
        .hc-content h1 {
          max-width: 18ch;
          font-size: var(--font-49);
        }
        .hc-content p.lede {
          max-width: 34ch;
          font-size: var(--font-50);
        }
        .hero-ctas {
          justify-content: center;
          width: 100%;
          max-width: 360px;
          align-items: center;
        }
      }
      @media (max-width: 899px) and (orientation: portrait) {
        /* Первый экран на телефоне занимает оставшееся место после шапки,
           а контент панели остаётся визуально собранным по центру. */
        .hc {
          min-height: calc(100vh - 81px);
          min-height: calc(100svh - 81px);
          min-height: calc(100dvh - 81px);
        }
        .hc-content {
          flex: 1 1 auto;
          justify-content: center;
        }
      }
      @media (max-width: 600px) {
        .hc-slides {
          aspect-ratio: 4 / 3;
          min-height: clamp(320px, 90vw, 420px);
        }
        .hc-content {
          padding: var(--space-16);
        }
        .hc-content h1 {
          max-width: 24ch;
          font-size: var(--font-43);
        }
        .hero-ctas .btn {
          width: min(100%, 300px);
        }
      }

      .fabric {
        position: absolute;
        inset: 0;
        transition: transform 1s var(--ease);
      }
      .fabric::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, var(--color-102), var(--color-103) 90%);
      }
      .sweater-pattern {
        background-color: var(--color-104);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cdefs%3E%3Cpattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='%238f3025'/%3E%3Cg fill='none' stroke='%23f2e7cf' stroke-width='3'%3E%3Cpath d='M40 2L78 40 40 78 2 40Z'/%3E%3Cpath d='M40 14L66 40 40 66 14 40Z'/%3E%3Cpath d='M40 26L54 40 40 54 26 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f2e7cf' stroke-width='3'%3E%3Cpath d='M2 40H18L26 32 34 40 40 34 46 40 54 32 62 40H78'/%3E%3Cpath d='M40 2V18L32 26 40 34 34 40 40 46 32 54 40 62V78'/%3E%3C/g%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='160' height='160' fill='url(%23p)'/%3E%3C/svg%3E");
        background-size: 160px 160px;
      }

      /* ---------- catalog ---------- */
      .cat-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-8);
        margin-bottom: var(--space-64);
        padding: var(--space-1);
        border: 1px solid var(--line);
        border-radius: 12px;
        background: color-mix(in srgb, var(--bg) 97%, var(--ink));
      }
      .cat-audience-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-36);
        padding-bottom: var(--space-3);
        border-bottom: 1px solid var(--line);
      }
      .cat-audience-row .aud-chips {
        flex-wrap: nowrap;
      }
      .cat-tools {
        display: flex;
        align-items: center;
        gap: var(--space-36);
        padding-top: var(--space-3);
        justify-content: space-between;
      }
      .cat-filter-row {
        display: flex;
        align-items: center;
        gap: var(--space-2);
      }
      .view-toggle {
        display: inline-flex;
        align-items: center;
        padding: var(--space-152);
        border: 1px solid var(--line);
        border-radius: 8px;
      }
      .view-toggle button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-3);
        width: 44px;
        padding: var(--space-8);
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: 600;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: var(--ink-faint);
        cursor: pointer;
        transition:
          color 0.2s var(--ease),
          background 0.2s var(--ease);
      }
      .view-toggle button:hover {
        color: var(--ink);
      }
      .view-toggle button[aria-pressed='true'] {
        background: color-mix(in srgb, var(--ink) 8%, var(--bg));
        color: var(--ink);
      }
      .view-toggle svg {
        width: 18px;
        height: 18px;
      }
      .cat-count {
        margin-left: var(--space-45);
        white-space: nowrap;
        font-size: var(--fs-sm);
        color: var(--ink-soft);
        font-variant-numeric: tabular-nums;
      }
      .sort-toggle {
        display: flex;
        align-items: center;
        gap: var(--space-11);
      }
      .sort-toggle > span {
        font-size: var(--fs-sm);
        color: var(--ink-soft);
      }
      .sort-select {
        position: relative;
        min-width: 0;
      }
      .sort-trigger {
        min-height: 44px;
        min-width: 0;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-36);
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: var(--space-153);
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
      }
      .sort-trigger svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
      }
      .sort-trigger[aria-expanded='true'] svg {
        transform: rotate(180deg);
      }
      .sort-menu {
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        z-index: 30;
        width: max-content;
        min-width: 100%;
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
        margin: var(--space-8);
        padding: var(--space-11);
        list-style: none;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--bg);
        box-shadow: 0 4px 14px var(--color-105);
        animation: sort-appear 140ms ease-out;
      }
      .sort-menu [role='option'] {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: var(--space-24);
        border-radius: 8px;
        font-size: var(--fs-sm);
        color: var(--ink);
        cursor: pointer;
      }
      .sort-menu [role='option']:hover,
      .sort-menu .is-focused {
        background: color-mix(in srgb, var(--bg) 55%, var(--bg-alt));
      }
      .sort-menu [aria-selected='true'] {
        background: var(--bg-alt);
      }
      .cat-tools .sort-trigger:focus-visible {
        outline: 2px solid var(--ink-soft);
        outline-offset: 3px;
      }
      @keyframes sort-appear {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .sort-menu {
          animation: none;
        }
      }
      .cat-toolbar .filters-btn {
        border-radius: 8px;
      }
      .cat-tools :is(button, select):focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
      }
      .pill {
        flex: none;
        padding: var(--space-154);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-full);
        background: var(--color-102);
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--ink-soft);
        cursor: pointer;
        letter-spacing: 0.01em;
        transition:
          color 0.3s,
          border-color 0.3s,
          background 0.3s;
        white-space: nowrap;
      }
      .pill:hover {
        border-color: var(--ink);
        color: var(--ink);
      }
      .pill[aria-pressed='true'] {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--bg);
      }
      .filters-btn {
        flex: none;
        display: flex;
        align-items: center;
        gap: var(--space-3);
        min-height: 44px;
        padding: var(--space-155);
        border: 1px solid var(--ink);
        border-radius: var(--radius-sm);
        background: var(--ink);
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--bg);
        cursor: pointer;
        transition:
          border-color 0.3s,
          background 0.3s;
      }
      .filters-btn:hover {
        border-color: var(--accent-deep);
        background: var(--accent-deep);
      }
      .filters-btn svg {
        width: 15px;
        height: 15px;
      }
      .filters-btn .fcount {
        min-width: 18px;
        height: 18px;
        padding: var(--space-88);
        border-radius: var(--radius-lg);
        background: var(--bg);
        color: var(--ink);
        font-size: var(--fs-3xs);
        font-weight: 700;
        display: none;
        align-items: center;
        justify-content: center;
      }
      .filters-btn .fcount.on {
        display: flex;
      }

      /* .drawer объявлен ниже и иначе перебивает выравнивание: панель оказывалась справа
         и при закрытии уезжала влево через середину экрана */
      .drawer.drawer-left {
        justify-content: flex-start;
      }
      .drawer-left .drawer-panel {
        width: min(430px, 100%);
        border-left: none;
        border-right: 1px solid var(--line-strong);
        transform: translateX(-100%);
        box-shadow: 40px 0 90px -50px var(--color-106);
      }
      .drawer-left.open .drawer-panel {
        transform: none;
      }

      .filter-group {
        margin-top: var(--space-20);
        padding-top: var(--space-16);
        border-top: 1px solid var(--line);
      }
      .filter-group:first-child {
        margin-top: var(--space-8);
        padding-top: var(--space-8);
        border-top: 0;
      }
      .filter-group h4 {
        font-size: var(--fs-3xs);
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ink-faint);
        margin-bottom: var(--space-6);
      }
      .filter-chips {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
      }
      .filter-chips .pill {
        min-height: 40px;
        padding: var(--space-156);
      }
      .swatch-chip {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--line-strong);
        padding: var(--space-8);
        cursor: pointer;
        transition: box-shadow 0.25s;
      }
      .swatch-chip:hover {
        box-shadow:
          0 0 0 3px var(--bg),
          0 0 0 4px var(--line-strong);
      }
      .swatch-chip[aria-pressed='true'] {
        box-shadow:
          0 0 0 3px var(--bg),
          0 0 0 5px var(--ink);
      }
      .filter-toggle {
        display: flex;
        align-items: center;
        gap: var(--space-6);
        min-height: 44px;
        cursor: pointer;
        font-size: var(--fs-base);
        color: var(--ink);
      }
      .filter-toggle input {
        width: 20px;
        height: 20px;
        margin: var(--space-8);
        accent-color: var(--accent);
      }
      .price-range {
        display: flex;
        align-items: center;
        gap: var(--space-6);
      }
      .price-range input {
        width: 0;
        flex: 1 1 0;
        font-family: inherit;
        font-size: var(--fs-md);
        min-height: 44px;
        padding: var(--space-62);
        color: var(--ink);
        border: 1px solid var(--line-strong);
        background: var(--surface);
        border-radius: var(--radius-sm);
      }
      .price-range input:focus {
        outline: none;
        border-color: var(--ink);
      }
      .price-range span {
        color: var(--ink-faint);
        flex: none;
      }
      .cat-chips {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
        margin: var(--space-132);
      }
      @media (max-width: 767px) {
        .cat-chips {
          flex-wrap: nowrap;
          padding-bottom: var(--space-11);
          overflow-x: auto;
          scroll-snap-type: x proximity;
        }
      }
      .cat-chips .pill {
        scroll-snap-align: start;
      }
      /* пол/возраст — в одном ряду с ценой и «Фильтрами» (задача 062) */
      .aud-chips {
        margin: var(--space-8);
        min-width: 0;
      }
      .aud-chips[hidden] {
        display: none;
      }
      @media (max-width: 767px) {
        /* на телефоне чипы — отдельной строкой во всю ширину; уже отступы, чтобы все четыре
           помещались от 375px (задача 063), уже — листаются вбок */
        .aud-chips {
          flex-basis: 100%;
          gap: var(--space-30);
        }
        .aud-chips .pill {
          flex: 1 0 auto;
          padding-inline: 12px;
          font-size: var(--fs-xs);
          min-height: 48px;
        }
        .cat-toolbar {
          padding: var(--space-3);
          margin-bottom: var(--space-49);
        }
        .cat-audience-row {
          min-width: 0;
          padding-bottom: var(--space-30);
        }
        .cat-audience-row .aud-chips {
          width: 100%;
        }
        .cat-tools {
          flex-wrap: nowrap;
          gap: var(--space-30);
          padding-top: var(--space-30);
          min-width: 0;
        }
        .cat-filter-row {
          gap: var(--space-30);
          flex: none;
        }
        .cat-tools .sort-toggle {
          flex: 1;
          min-width: 0;
        }
        #catalogSortLabel {
          position: absolute;
          width: 1px;
          height: 1px;
          overflow: hidden;
          clip-path: inset(50%);
        }
        .sort-select,
        .sort-trigger {
          width: 100%;
        }
        .sort-trigger {
          padding-inline: var(--space-3);
          gap: var(--space-30);
          font-size: var(--fs-xs);
        }
        #catalogSortValue {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .sort-menu {
          left: 0;
          right: auto;
        }
        .cat-toolbar .filters-btn {
          gap: var(--space-11);
          padding-inline: var(--space-3);
          font-size: var(--fs-xs);
        }
        .cat-toolbar .filters-btn svg {
          display: none;
        }
      }
      @media (min-width: 520px) and (max-width: 767px) {
        #catalogSortLabel {
          position: static;
          width: auto;
          height: auto;
          flex: none;
          overflow: visible;
          clip-path: none;
          white-space: nowrap;
        }
      }
      .featured {
        grid-column: 1 / -1;
        min-width: 0;
        margin-bottom: var(--space-2);
        padding-bottom: var(--space-133);
        border-bottom: 1px solid var(--line-strong);
      }
      .featured h3 {
        font-family: var(--font-heading);
        font-size: var(--font-41);
        font-weight: 600;
      }
      .featured > p {
        margin-top: var(--space-3);
        max-width: 60ch;
        color: var(--ink-soft);
      }
      .featured-grid {
        margin-top: var(--space-49);
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-20);
      }
      @media (max-width: 1023px) {
        .featured-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: var(--space-134);
        }
        .featured-grid > .card {
          scroll-snap-align: start;
        }
      }
      .catalog-grid {
        display: grid;
        overflow: clip;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-135);
      }
      @media (min-width: 1200px) {
        .catalog-grid,
        .featured-grid {
          grid-template-columns: repeat(4, minmax(0, 1fr));
        }
      }
      @media (max-width: 1023px) {
        .catalog-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: var(--space-134);
        }
      }
      .catalog-grid .card {
        min-width: 0;
      }
      .catalog-grid .swatch {
        aspect-ratio: 3 / 4;
        margin-bottom: var(--space-2);
      }
      .catalog-grid[data-view='grid'] .card-body h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
      }
      .catalog-grid[data-view='grid'] .desc {
        display: none;
      }
      .catalog-grid .card-meta {
        flex-wrap: wrap;
        gap: var(--space-136);
      }
      .catalog-grid .price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: var(--space-44);
      }
      .catalog-grid .price > :is(ins, del) {
        white-space: nowrap;
      }
      .price-amount {
        white-space: nowrap;
      }
      :root:not(.js) .catalog-photo-deferred {
        display: none;
      }
      .js .catalog-photo-deferred {
        display: block;
      }
      .catalog-grid .card-order {
        min-height: 44px;
        margin-top: var(--space-3);
      }
      .catalog-grid[data-view='list'] {
        grid-template-columns: 1fr;
        gap: var(--space-37);
      }
      .catalog-grid[data-view='list'] .featured-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        gap: var(--space-37);
        overflow: visible;
      }
      .catalog-grid[data-view='list'] .card {
        align-items: center;
        flex-direction: row;
        gap: var(--space-137);
        padding: var(--space-138);
        border-bottom: 1px solid var(--line);
      }
      .catalog-grid[data-view='list'] .swatch {
        flex: 0 0 32%;
        width: 32%;
        max-width: 320px;
        aspect-ratio: 3 / 4;
        margin-bottom: var(--space-8);
      }
      .catalog-grid[data-view='list'] .card-body {
        display: flex;
        min-width: 0;
        gap: var(--space-2);
        padding: var(--space-139);
      }
      .catalog-grid[data-view='list'] .card-body h3 {
        max-width: 48ch;
        font-size: var(--font-42);
      }
      .catalog-grid[data-view='list'] .card-body .desc {
        max-width: 52ch;
      }
      .catalog-grid[data-view='list'] .card-order {
        align-self: flex-start;
        width: 180px;
        margin-top: var(--space-11);
        padding-inline: var(--space-17);
      }
      .catalog-grid[data-view='list'] .card-meta {
        flex-wrap: wrap;
        gap: var(--space-136);
        margin-top: var(--space-8);
        padding-top: var(--space-2);
      }
      .catalog-grid[data-view='list'] .swatch img.photo {
        object-fit: cover;
      }
      @media (max-width: 767px) {
        .catalog-grid[data-view='grid'] .card-body h3 {
          font-size: var(--fs-sm);
          line-height: 1.45;
          min-height: 2.9em;
        }
        .catalog-grid[data-view='grid'] .price {
          font-size: var(--fs-md2);
        }
        .catalog-grid[data-view='grid'] .card-order {
          padding-inline: var(--space-30);
          gap: var(--space-30);
          font-size: var(--fs-xs);
        }
        .catalog-grid[data-view='grid'] .badge-tag {
          top: auto;
          bottom: 46px;
          left: 6px;
          max-width: calc(100% - 12px);
          padding: var(--space-136);
          font-size: var(--fs-3xs);
        }
        .catalog-grid[data-view='grid'] .badge-sale {
          top: 6px;
          right: 6px;
          padding: var(--space-140);
          font-size: var(--fs-sm);
        }
        .catalog-grid[data-view='grid'] .swatch.photo-failed::after {
          padding: var(--space-6);
          font-size: var(--fs-xs);
        }
        .catalog-grid[data-view='list'] {
          gap: var(--space-64);
        }
        .catalog-grid[data-view='list'] .card {
          flex-direction: column;
          align-items: stretch;
          gap: var(--space-36);
          padding-bottom: var(--space-49);
        }
        .catalog-grid[data-view='list'] .swatch {
          flex: none;
          width: 100%;
          max-width: none;
        }
        .catalog-grid[data-view='list'] .card-body {
          gap: var(--space-3);
          padding: var(--space-8);
        }
        .catalog-grid[data-view='list'] .card-body h3 {
          font-size: var(--fs-lg);
        }
        .catalog-grid[data-view='list'] .card-body .desc {
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          overflow: hidden;
        }
        .catalog-grid[data-view='list'] .card-meta {
          padding-top: var(--space-87);
        }
        .catalog-grid[data-view='list'] .price {
          font-size: var(--fs-lg);
        }
        .catalog-grid[data-view='list'] .card-order {
          min-height: 44px;
          width: 100%;
          max-width: none;
        }
      }
      .cat-state {
        grid-column: 1/-1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-5);
        text-align: center;
        padding: var(--space-141);
        border: 1px dashed var(--line-strong);
      }
      .cat-state h3 {
        font-size: var(--fs-lg2);
      }
      .cat-state p {
        color: var(--ink-soft);
        max-width: 44ch;
      }
      .cat-state .btn {
        margin-top: var(--space-30);
        cursor: pointer;
        font-family: inherit;
      }
      @media (max-width: 600px) {
        .cat-toolbar {
          margin-bottom: var(--space-51);
        }
        .sort-toggle {
          gap: var(--space-9);
        }
      }

      /* загрузка каталога (задача 066): свитер вяжется по рядам снизу вверх — пунктир выкройки
         заполняется нашей вязкой с поморским узором (фото), по краю вязки идёт нитка. Сколько грузится каталог,
         неизвестно, поэтому процентов нет: свитер довязывается, держится и вяжется заново */
      .knit-loader {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-17);
        padding: var(--space-142);
        color: var(--ink-faint);
        font-size: var(--fs-sm);
      }
      .knit-loader svg {
        width: 184px;
        height: auto;
        overflow: visible;
      }
      .knit-outline {
        fill: none;
        stroke: var(--line-strong);
        stroke-width: 1.2;
        stroke-dasharray: 3 4;
      }
      .knit-fabric {
        clip-path: inset(100% 0 0 0);
        animation: knit-rows 3.6s steps(1, end) infinite;
      }
      .knit-yarn {
        stroke: var(--color-95);
        stroke-width: 2.5;
        stroke-linecap: round;
        filter: drop-shadow(0 1px 1px var(--color-1));
        animation: knit-yarn 3.6s steps(1, end) infinite;
      }
      /* 12 рядов за 3 с, затем пауза с готовым свитером. Полотно — группа 200×200 (как viewBox),
         поэтому inset в % = y/2: ряд k открывает всё ниже y = 176 − 154·k/12 (подол 176, плечи 22);
         нитка стоит на том же y */
      @keyframes knit-rows {
        0% {
          clip-path: inset(88% 0 0 0);
        }
        7% {
          clip-path: inset(81.58% 0 0 0);
        }
        14% {
          clip-path: inset(75.17% 0 0 0);
        }
        21% {
          clip-path: inset(68.75% 0 0 0);
        }
        28% {
          clip-path: inset(62.33% 0 0 0);
        }
        35% {
          clip-path: inset(55.92% 0 0 0);
        }
        42% {
          clip-path: inset(49.5% 0 0 0);
        }
        49% {
          clip-path: inset(43.08% 0 0 0);
        }
        56% {
          clip-path: inset(36.67% 0 0 0);
        }
        63% {
          clip-path: inset(30.25% 0 0 0);
        }
        70% {
          clip-path: inset(23.83% 0 0 0);
        }
        77% {
          clip-path: inset(17.42% 0 0 0);
        }
        84%,
        100% {
          clip-path: inset(0 0 0 0);
        }
      }
      @keyframes knit-yarn {
        0% {
          transform: translateY(0px);
          opacity: 1;
        }
        7% {
          transform: translateY(-12.83px);
          opacity: 1;
        }
        14% {
          transform: translateY(-25.67px);
          opacity: 1;
        }
        21% {
          transform: translateY(-38.5px);
          opacity: 1;
        }
        28% {
          transform: translateY(-51.33px);
          opacity: 1;
        }
        35% {
          transform: translateY(-64.17px);
          opacity: 1;
        }
        42% {
          transform: translateY(-77px);
          opacity: 1;
        }
        49% {
          transform: translateY(-89.83px);
          opacity: 1;
        }
        56% {
          transform: translateY(-102.67px);
          opacity: 1;
        }
        63% {
          transform: translateY(-115.5px);
          opacity: 1;
        }
        70% {
          transform: translateY(-128.33px);
          opacity: 1;
        }
        77% {
          transform: translateY(-141.17px);
          opacity: 1;
        }
        84%,
        100% {
          transform: translateY(-154px);
          opacity: 0;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .knit-fabric {
          animation: none;
          clip-path: none;
        }
        .knit-yarn {
          display: none;
        }
      }
      .card {
        display: flex;
        flex-direction: column;
      }
      .card.on-sale .swatch {
        outline: 2px solid var(--accent);
        outline-offset: -2px;
      }
      .swatch {
        aspect-ratio: 4/5;
        position: relative;
        overflow: hidden;
        margin-bottom: var(--space-17);
      }
      .swatch.dashed {
        border: 1px dashed var(--line-strong);
      }
      .card:hover .fabric {
        transform: scale(1.055);
      }
      .swatch img.photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 30%;
        transition: transform 1s var(--ease);
      }
      .card-photo-count,
      .card-photo-dots {
        display: none;
      }
      .swatch.photo-failed::after,
      .modal-visual.photo-failed::after {
        content: 'Фото временно недоступно';
        position: absolute;
        inset: 0;
        z-index: 2;
        display: grid;
        place-items: center;
        padding: var(--space-49);
        color: var(--muted);
        background: color-mix(in srgb, var(--bg) 94%, var(--line));
        text-align: center;
      }
      .swatch.photo-failed img.photo,
      .modal-visual.photo-failed img {
        opacity: 0;
      }
      .image-retry {
        position: absolute;
        left: 50%;
        top: calc(50% + 34px);
        z-index: 4;
        translate: -50% 0;
        border: 1px solid var(--line-strong);
        padding: var(--space-18);
        color: var(--text);
        background: var(--bg);
        cursor: pointer;
      }
      /* второе фото товара проявляется при наведении (только там, где есть мышь) */
      .swatch img.photo-alt {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition:
          opacity 0.5s var(--ease),
          transform 1s var(--ease);
      }
      @media (hover: hover) and (pointer: fine) {
        .card:hover .swatch img.photo-alt {
          opacity: 1;
        }
      }
      @media (hover: none), (pointer: coarse) {
        .swatch img.photo-alt {
          display: none;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .swatch img.photo-alt {
          transition: none;
        }
      }
      .card:hover .swatch img.photo {
        transform: scale(1.055);
      }
      .swatch-mark {
        position: absolute;
        bottom: 16px;
        right: 16px;
        width: 26px;
        height: 26px;
        z-index: 2;
        color: var(--sw-pat);
        opacity: 0.9;
        transition: transform 0.7s var(--ease);
      }
      .card:hover .swatch-mark {
        transform: rotate(90deg);
      }
      /* Ярлык на фото (задача 084, вариант Д): бирка со сгибом в правом нижнем углу. Только
         «Хит»/«Новинка» или ярлык с галочкой в админке — правило в shared/badges.js. */
      .badge-tag {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 2;
        color: var(--on-accent);
        /* сгиб: срезанный уголок, под ним затемнённый треугольник-«загиб» */
        background:
          linear-gradient(135deg, var(--color-40) 50%, transparent 50%) right bottom / 8px 8px
            no-repeat,
          var(--accent);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
        padding: var(--space-143);
        font-size: var(--fs-3xs);
        line-height: 1.4;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 700;
        /* длинный текст из админки обрезаем многоточием, а не даём ему дотянуться до значка
           в противоположном углу (свободный текст в БД) */
        max-width: calc(100% - 64px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      /* справа вверху число скидки: ярлык до него не дотягивается */
      .badge-tag.with-sale {
        max-width: calc(100% - 108px);
      }
      .card-body {
        display: flex;
        flex-direction: column;
        gap: var(--space-117);
        flex: 1;
      }
      .card-body h3 {
        font-size: var(--fs-md2);
        font-weight: 600;
        color: var(--ink);
        overflow-wrap: anywhere; /* длинный токен без пробелов (артикул, вставленная ссылка) не рвёт карточку */
      }
      .card-body h3 :is(span, a) {
        color: inherit;
        text-decoration: none;
        background-image: linear-gradient(currentColor, currentColor);
        background-size: 0 1px;
        background-repeat: no-repeat;
        background-position: 0 100%;
        transition: background-size 0.6s var(--ease);
        padding-bottom: var(--space-47);
      }
      .card:hover h3 :is(span, a) {
        background-size: 100% 1px;
      }
      .card-body .desc {
        color: var(--ink-soft);
        font-size: var(--fs-sm);
        line-height: 1.55;
        overflow-wrap: anywhere;
      }
      .card-meta {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-top: var(--space-45);
        padding-top: var(--space-5);
      }
      .price {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: var(--fs-lg);
        color: var(--ink);
        font-variant-numeric: tabular-nums;
      }
      .old-price {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: var(--font-37);
        color: var(--ink-faint);
        text-decoration: line-through;
        margin-right: var(--space-117);
      }
      /* ---------- скидки и акция (задача 041) ---------- */
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: var(--space-48);
        padding: var(--space-8);
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
      }
      ins {
        text-decoration: none;
      }
      /* Скидка (задача 084): контрастная плашка на фото; в карточке товара плашка снимается. */
      .badge-sale {
        position: absolute;
        top: 10px;
        right: 14px;
        z-index: 2;
        padding: var(--space-118);
        border-radius: 2px;
        background: var(--accent);
        color: var(--on-accent);
        font-family: var(--font-heading);
        font-size: var(--fs-md2);
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0;
        font-variant-numeric: lining-nums tabular-nums;
        white-space: nowrap;
        pointer-events: none;
      }
      .badge-sale::before {
        content: none;
      }
      /* в окне товара число стоит у цены, на фоне страницы: без виньетки, цветом акцента */
      .modal-price .badge-sale {
        position: static;
        display: inline-flex;
        align-items: baseline;
        margin-left: var(--space-2);
        padding: var(--space-8);
        background: transparent;
        vertical-align: baseline;
        color: var(--accent);
        font-size: var(--fs-lg2);
        text-shadow: none;
      }
      .modal-price .badge-sale::before {
        content: none;
      }
      .badge-sale-minus {
        display: inline-block;
        margin-right: var(--space-119);
        font-family: var(--font-body);
        font-size: var(--font-38);
        font-weight: 700;
        line-height: 0;
        transform: translateY(-0.01em);
      }
      @media (prefers-reduced-motion: reduce) {
        .catalog-grid > .card,
        .catalog-grid .featured-grid > .card {
          animation: none;
        }
      }
      .sale-soon,
      .sale-note {
        font-size: var(--fs-xs);
        color: var(--ink-soft);
      }
      .sale-note {
        margin-top: var(--space-30);
        font-size: var(--fs-sm);
      }
      .ci-old {
        margin-right: var(--space-30);
        font-weight: 600;
        font-size: var(--fs-2xs);
        color: var(--ink-faint);
      }
      .foot-save {
        display: flex;
        justify-content: space-between;
        gap: var(--space-2);
        margin-bottom: var(--space-30);
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--ink);
      }
      .cart-notice {
        flex: none;
        margin: var(--space-120);
        padding: var(--space-12);
        border: 1px solid var(--line-strong);
        font-size: var(--fs-xs);
        color: var(--ink);
      }
      .cart-notice:empty {
        display: none;
      }
      .campaign-bar {
        position: relative;
        padding: var(--space-121);
        background: var(--panel);
        color: var(--panel-text);
        font-size: var(--fs-xs);
        line-height: 1.45;
        text-align: center;
      }
      .campaign-bar p {
        margin: var(--space-8);
      }
      .campaign-bar button {
        font: inherit;
        color: inherit;
        background: none;
        border: 0;
        cursor: pointer;
      }
      .campaign-terms-btn {
        padding: var(--space-8);
        margin-left: var(--space-11);
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .campaign-close {
        position: absolute;
        top: 50%;
        right: 6px;
        width: 36px;
        height: 36px;
        margin-top: var(--space-122);
        opacity: 0.75;
      }
      .campaign-close:hover {
        opacity: 1;
      }
      .campaign-terms {
        max-width: 60ch;
        margin: var(--space-123);
        text-align: left;
        white-space: pre-line;
      }
      .card-stock {
        font-size: var(--fs-xs);
        color: var(--ink-faint);
      }
      .card-order {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-99);
        min-height: 44px;
        margin-top: var(--space-36);
        padding: var(--space-124);
        border-radius: var(--radius-sm);
        border: 1px solid var(--line-strong);
        text-decoration: none;
        font-weight: 600;
        font-size: var(--fs-sm);
        color: var(--ink-soft);
        letter-spacing: 0.02em;
        transition:
          color 0.35s var(--ease),
          border-color 0.35s var(--ease),
          background 0.35s var(--ease);
      }
      .card-order svg {
        width: 14px;
        height: 14px;
        transition: transform 0.45s var(--ease);
      }
      .card:hover .card-order {
        border-color: var(--ink);
        color: var(--ink);
        background: var(--surface);
      }
      .card:hover .card-order svg {
        transform: translateX(4px);
      }

      /* ---------- marquee ---------- */
      .marquee {
        position: relative;
        isolation: isolate;
        background: var(--panel);
        color: var(--panel-text);
        overflow: hidden;
        min-height: 78px;
        border-top: 1px solid var(--color-88);
        border-bottom: 1px solid var(--color-88);
        box-shadow:
          inset 0 7px 0 var(--color-89),
          inset 0 -7px 0 var(--color-89);
      }
      .marquee::before {
        content: '';
        position: absolute;
        z-index: 0;
        inset: 8px 0;
        opacity: 0.82;
        background: var(--color-90);
        /* Орнамент остаётся почти неподвижным: так полоса читается как ткань. */
        animation: none;
      }
      .marquee::after {
        content: '';
        position: absolute;
        z-index: 1;
        inset: 8px 0;
        pointer-events: none;
        border-block: 1px solid var(--color-91);
        background: linear-gradient(
          90deg,
          var(--color-92),
          transparent 16%,
          transparent 84%,
          var(--color-92)
        );
      }
      .marquee-track {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        width: max-content;
        min-height: 78px;
        padding-block: var(--space-17);
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: var(--space-115);
        animation: marqueeScroll 140s linear infinite;
      }
      .marquee-track > span:last-child {
        display: flex;
      }
      .marquee-track > span {
        display: flex;
        align-items: center;
        white-space: nowrap;
        color: var(--color-93);
        font-family: var(--font-heading);
        font-size: var(--font-39);
        font-weight: 600;
        letter-spacing: 0.08em;
        line-height: 1;
        text-shadow: 0 1px 1px var(--color-94);
      }
      .mq-d {
        width: 9px;
        height: 9px;
        margin-inline: var(--space-49);
        opacity: 0.5;
        flex: none;
      }
      @keyframes marqueeScroll {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(-50%);
        }
      }
      @media (max-width: 700px) {
        .marquee-track {
          min-height: 58px;
          padding-block: var(--space-125);
          animation-duration: 160s;
        }
        .marquee {
          min-height: 58px;
        }
        .marquee::before,
        .marquee::after {
          inset-block: 6px;
        }
        .marquee-track > span {
          font-size: var(--font-24);
          letter-spacing: 0.06em;
        }
      }

      /* ---------- about ---------- */
      .about-grid {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: var(--space-126);
        align-items: stretch;
      }
      .about-portrait {
        position: relative;
        display: block;
        padding: var(--space-8);
        overflow: hidden;
        appearance: none;
        border: 1px solid var(--line-strong);
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: default;
      }
      .about-portrait:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 4px;
      }
      .about-portrait img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 18%;
        filter: saturate(1.04) contrast(1.02) sepia(0.04);
      }
      .about-portrait .about-photo-deferred {
        display: none;
      }
      .js .about-portrait .about-photo-deferred {
        display: block;
      }
      .about-copy p {
        color: var(--ink-soft);
        font-size: var(--fs-md);
        line-height: 1.7;
        margin-top: var(--space-36);
      }
      .about-quote {
        margin: var(--space-80);
        padding-left: var(--space-16);
        border-left: 2px solid var(--accent);
      }
      .about-quote p {
        margin-top: var(--space-8);
        font-style: italic;
        color: var(--ink-soft);
        font-size: var(--fs-md);
        line-height: 1.7;
      }
      .about-quote cite {
        display: block;
        margin-top: var(--space-6);
        font-style: normal;
        font-weight: 700;
        color: var(--ink);
        font-size: var(--fs-sm);
      }
      .about-list {
        margin-top: var(--space-37);
        display: flex;
        flex-direction: column;
        gap: var(--space-5);
      }
      .about-list li {
        display: flex;
        gap: var(--space-2);
        align-items: flex-start;
        font-size: var(--fs-base);
        color: var(--ink-soft);
      }
      .about-list svg {
        width: 16px;
        height: 16px;
        flex: none;
        margin-top: var(--space-95);
        color: var(--accent);
      }
      .about-list a {
        color: var(--ink);
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-color: var(--line-strong);
      }
      .about-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-36);
        margin: var(--space-127);
        padding-top: var(--space-49);
        border-top: 1px solid var(--line-strong);
      }
      .about-stats dt {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: var(--font-33);
        line-height: 1.1;
        font-variant-numeric: tabular-nums;
      }
      .about-stats dd {
        margin: var(--space-128);
        font-size: var(--fs-sm);
        color: var(--ink-soft);
      }
      /* место под итоговое число резервирует JS (min-width по ширине итога), чтобы при отсчёте
         центрированный блок не дрожал (задача 069) */
      .about-stats .num {
        display: inline-block;
        text-align: right;
      }
      @media (max-width: 860px) {
        .about-stats {
          text-align: center;
        }
      }
      @media (max-width: 860px) {
        .about-grid {
          grid-template-columns: 1fr;
          gap: var(--space-129);
        }
        .about-portrait {
          aspect-ratio: 4/5;
          max-width: min(100%, 320px);
          margin-inline: var(--space-45);
        }
        .about-portrait img {
          object-position: 50% 26%;
        }
      }

      /* ---------- faq, таблица размеров ---------- */
      .faq-list {
        max-width: none;
        border-top: 1px solid var(--line-strong);
      }
      .faq-list details {
        border-bottom: 1px solid var(--line-strong);
      }
      .faq-list summary,
      .size-guide summary {
        cursor: pointer;
        transition:
          color var(--interaction-duration) var(--interaction-ease),
          background-color var(--interaction-duration) var(--interaction-ease);
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-36);
      }
      .faq-list summary::-webkit-details-marker,
      .size-guide summary::-webkit-details-marker {
        display: none;
      }
      .faq-list summary:focus-visible,
      .size-guide summary:focus-visible {
        background: var(--interaction-hover-surface);
      }
      @media (hover: hover) and (pointer: fine) {
        .faq-list summary:hover,
        .size-guide summary:hover {
          color: var(--accent);
          background: var(--interaction-hover-surface);
        }
        .faq-list a:hover,
        .size-guide a:hover,
        .checkout-docs a:hover,
        .size-note a:hover {
          color: var(--accent);
          text-decoration-thickness: 2px;
        }
      }
      .faq-list summary {
        padding: var(--space-75);
        font-family: var(--font-heading);
        font-size: var(--fs-lg);
        font-weight: 600;
      }
      .faq-list summary::after,
      .size-guide summary::after {
        content: '';
        flex: none;
        width: 9px;
        height: 9px;
        border-right: 1.4px solid currentColor;
        border-bottom: 1.4px solid currentColor;
        margin-right: 4px;
        transform: rotate(45deg);
        color: var(--accent);
        transition: transform 0.3s var(--ease);
      }
      .faq-list details[open] summary::after,
      .size-guide[open] summary::after {
        transform: rotate(225deg);
      }
      /* Плавное раскрытие ответа. Где ::details-content не поддерживается, правило игнорируется
         и details открывается как раньше, рывком. content-visibility с allow-discrete нужен для
         закрытия: без него содержимое прячется сразу и анимация не видна. */
      .faq-list {
        interpolate-size: allow-keywords;
      }
      .faq-list details::details-content {
        block-size: 0;
        overflow: clip;
        opacity: 0;
        transition:
          block-size 0.35s var(--ease),
          opacity 0.35s var(--ease),
          content-visibility 0.35s allow-discrete;
      }
      .faq-list details[open]::details-content {
        block-size: auto;
        opacity: 1;
      }
      @media (prefers-reduced-motion: reduce) {
        .faq-list details::details-content {
          transition: none;
        }
      }
      .faq-list p {
        padding-bottom: var(--space-16);
        max-width: 68ch;
        color: var(--ink-soft);
        line-height: 1.7;
      }
      .faq-list p + p {
        margin-top: var(--space-105);
      }
      .faq-list ul {
        padding-bottom: var(--space-16);
        margin: var(--space-131);
        max-width: 68ch;
        color: var(--ink-soft);
        line-height: 1.7;
        list-style: disc;
      }
      .faq-list p + ul,
      .faq-list ul + p {
        margin-top: var(--space-105);
      }
      .faq-list li::marker {
        color: var(--accent);
      }
      .faq-list li + li {
        margin-top: var(--space-11);
      }
      .faq-list a,
      .size-guide a {
        color: var(--ink);
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .faq-measure {
        display: block;
        max-width: 68ch;
        padding-bottom: var(--space-16);
        margin: var(--space-8);
      }
      .faq-measure-image {
        aspect-ratio: 1.68;
        overflow: hidden;
        padding: var(--space-11);
        border: 2px solid var(--line-strong);
        border-radius: var(--radius-sm);
      }
      .faq-measure-mobile {
        display: none;
      }
      .faq-measure img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        background: var(--color-3);
      }
      .faq-measure-mobile-panel {
        position: relative;
        width: min(100%, 320px);
        overflow: hidden;
        border: 2px solid var(--line-strong);
        border-radius: var(--radius-sm);
        background: var(--color-3);
        margin-inline: var(--space-45);
      }
      .faq-measure-mobile-panel.sleeve {
        aspect-ratio: 0.73;
      }
      .faq-measure-mobile-panel.chest {
        aspect-ratio: 0.92;
      }
      .faq-measure-mobile-panel img {
        position: absolute;
        top: -6%;
        width: auto;
        height: 122%;
        max-width: none;
      }
      .faq-measure-mobile-panel.sleeve img {
        left: -8%;
      }
      .faq-measure-mobile-panel.chest img {
        left: -93%;
      }
      .faq-measure .faq-measure-mobile-label {
        margin: var(--space-110);
        padding-bottom: var(--space-8);
        font-size: var(--fs-xs);
        color: var(--ink-soft);
      }
      .faq-measure-mobile-item + .faq-measure-mobile-item {
        margin-top: var(--space-2);
      }
      @media (max-width: 600px) {
        .faq-measure {
          max-width: 100%;
          padding-bottom: var(--space-6);
        }
        .faq-measure-image {
          display: none;
        }
        .faq-measure-mobile {
          display: block;
        }
        .faq-measure > figcaption {
          display: none;
        }
      }
      .faq-measure figcaption {
        margin-top: var(--space-3);
        font-size: var(--fs-2xs);
        color: var(--ink-faint);
      }
      .size-guide {
        margin-top: var(--space-5);
        font-size: var(--fs-sm);
      }
      .size-guide summary {
        display: inline-flex;
        min-height: 32px;
        font-weight: 600;
        color: var(--ink);
      }
      .size-guide summary span {
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-color: var(--line-strong);
      }
      .size-guide table {
        margin-top: var(--space-6);
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        font-variant-numeric: tabular-nums;
      }
      .size-guide th,
      .size-guide td {
        padding: var(--space-86);
        border-bottom: 1px solid var(--line);
        text-align: left;
      }
      .size-guide th {
        font-size: var(--fs-3xs);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink-faint);
      }
      .size-guide p {
        margin-top: var(--space-6);
        color: var(--ink-soft);
        line-height: 1.6;
      }

      /* ---------- contact ---------- */
      .contact-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-111);
      }
      .contact-box > [data-reveal] {
        align-self: start;
      }
      .contact-box h2 {
        font-size: var(--font-36);
        text-align: center;
      }
      .contact-box .lede {
        margin-top: var(--space-17);
        color: var(--ink-soft);
        font-size: var(--fs-md);
        line-height: 1.68;
        max-width: 44ch;
        margin-inline: var(--space-45);
        text-align: center;
      }
      .contact-rows {
        display: flex;
        flex-direction: column;
        border-top: 1px solid var(--line-strong);
      }
      .contact-row {
        display: flex;
        align-items: center;
        gap: var(--space-36);
        padding: var(--space-75);
        border-bottom: 1px solid var(--line-strong);
        text-decoration: none;
        color: inherit;
        transition: background-color 0.25s var(--ease);
      }
      .contact-row .ico {
        width: 24px;
        height: 24px;
        flex: none;
        color: var(--accent);
        transition: transform 0.35s var(--ease);
      }
      .contact-row > div {
        transition: transform 0.35s var(--ease);
      }
      .contact-row b {
        font-size: var(--fs-base);
        font-weight: 700;
        display: block;
      }
      .contact-row span {
        font-size: var(--fs-xs);
        color: var(--ink-faint);
      }
      .contact-row .arw {
        width: 15px;
        height: 15px;
        margin-left: var(--space-45);
        color: var(--ink-faint);
        opacity: 0;
        transform: translateX(-6px);
        transition:
          opacity 0.35s var(--ease),
          transform 0.35s var(--ease);
      }
      .contact-email b {
        color: var(--accent);
        text-decoration: underline;
        text-decoration-color: transparent;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
        transition: text-decoration-color 0.25s var(--ease);
      }
      .contact-symbol,
      .contact-flap {
        transform-box: fill-box;
        transform-origin: center;
      }
      .contact-flap {
        transform-box: view-box;
        transform-origin: 50% 33.333333%;
        fill: var(--bg);
      }
      .contact-rings {
        opacity: 0;
      }
      .contact-letter { opacity: 0; }
      .contact-telegram .ico { overflow: visible; }
      a.contact-row:focus-visible {
        background-color: color-mix(in srgb, var(--accent) 6%, transparent);
        outline: 2px solid var(--accent);
        outline-offset: 4px;
        box-shadow: none;
      }
      a.contact-row:focus-visible .arw {
        opacity: 1;
        transform: none;
      }
      .contact-email:focus-visible b {
        text-decoration-color: currentColor;
      }
      a.contact-row:active {
        background-color: color-mix(in srgb, var(--accent) 10%, transparent);
      }
      @media (hover: hover) and (pointer: fine) {
        a.contact-row:hover {
          background-color: color-mix(in srgb, var(--accent) 6%, transparent);
        }
        .contact-email:hover b {
          text-decoration-color: currentColor;
        }
        a.contact-row:hover .arw {
          opacity: 1;
          transform: none;
        }
      }
      @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
        .contact-phone:hover .contact-symbol {
          animation: contact-ring 450ms ease-in-out;
        }
        .contact-phone:hover .contact-rings {
          animation: contact-ring-waves 450ms ease-in-out;
        }
        .contact-email .contact-flap {
          transition: transform 280ms ease-in-out;
        }
        .contact-email:hover .contact-flap {
          transform: rotateX(180deg);
        }
        .contact-email .contact-letter {
          transition: opacity 180ms ease-in-out, transform 280ms ease-in-out;
        }
        .contact-email:hover .contact-letter {
          opacity: 1;
          transform: translateY(-4px);
        }
        .contact-telegram:hover .contact-symbol {
          animation: contact-plane 600ms ease-in-out;
        }
        .contact-vk:hover .contact-symbol {
          animation: contact-vk-wave 520ms ease-in-out;
        }
      }
      @keyframes contact-ring {
        0%,
        100% {
          transform: rotate(0);
        }
        25% {
          transform: rotate(-6deg);
        }
        75% {
          transform: rotate(5deg);
        }
      }
      @keyframes contact-ring-waves {
        0%,
        100% {
          opacity: 0;
        }
        25%,
        65% {
          opacity: 1;
        }
      }
      @keyframes contact-plane {
        0%,
        100% {
          transform: translate(0, 0) rotate(0);
        }
        40% {
          transform: translate(5px, -5px) rotate(-8deg);
        }
        70% {
          transform: translate(1px, -1px) rotate(3deg);
        }
      }
      @keyframes contact-vk-wave {
        0%,
        100% {
          transform: translateY(0) rotate(0) scale(1);
        }
        35% {
          transform: translateY(-3px) rotate(-8deg) scale(1.12);
        }
        65% {
          transform: translateY(-1px) rotate(4deg) scale(1.06);
        }
      }
      @media (max-width: 860px) {
        #contact .contact-box {
          grid-template-columns: minmax(0, 1fr);
          gap: var(--space-64);
          padding-inline: var(--space-112);
        }
        .contact-box .lede {
          margin-top: var(--space-2);
        }
        .contact-rows {
          width: 100%;
          max-width: 520px;
          margin-inline: var(--space-45);
          border-top-color: var(--line);
        }
        .contact-row {
          min-height: 48px;
          padding-block: var(--space-36);
          border-bottom-color: var(--line);
          text-align: left;
          transition: background-color 0.25s var(--ease);
        }
        .contact-row > div {
          min-width: 0;
          overflow-wrap: anywhere;
        }
        .contact-row span {
          display: block;
          margin-top: var(--space-11);
          line-height: 1.5;
        }
        .contact-row .arw {
          flex: none;
        }
        .contact-row:has(+ .contact-delivery) {
          border-bottom: 0;
        }
        .contact-delivery {
          margin-top: var(--space-36);
          padding: var(--space-113);
          background-color: color-mix(in srgb, var(--accent) 6%, transparent);
          border-top: 1px solid var(--line-strong);
          border-bottom: 0;
        }
        .contact-delivery b {
          font-weight: 600;
        }
        .contact-delivery span {
          color: var(--ink-soft);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .contact-row,
        .contact-row .ico,
        .contact-row > div,
        .contact-row .arw {
          transition: none;
        }
      }

      /* ---------- footer ---------- */
      footer {
        border-top: 1px solid var(--line);
        padding: var(--space-114);
      }
      .foot-row {
        display: flex;
        flex-direction: column;
        gap: var(--space-5);
        color: var(--ink-faint);
        font-size: var(--fs-xs);
      }
      .foot-bottom {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: var(--space-115);
      }
      .foot-bottom {
        row-gap: var(--space-49);
      }
      @media (min-width: 601px) and (max-width: 860px) {
        .foot-bottom {
          padding-right: var(--space-8);
        }
        .foot-legal {
          justify-content: center;
          margin-left: var(--space-8);
        }
      }
      @media (max-width: 600px) {
        /* Телефон: соцсети и документы, затем копирайт. */
        .foot-bottom {
          flex-direction: column;
          align-items: center;
          gap: var(--space-6);
        }
        .foot-socials {
          width: 100%;
          justify-content: center;
        }
        .foot-legal {
          width: 100%;
          flex-direction: column;
          align-items: center;
          text-align: center;
          gap: var(--space-8);
        }
        .foot-copy {
          order: 1;
          margin-top: var(--space-5);
        }
      }
      .foot-socials {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-6);
      }
      .social-link.is-text {
        width: auto;
        padding-inline: var(--space-36);
        font-size: var(--fs-sm);
        font-weight: 600;
      }
      .social-note {
        flex-basis: 100%;
        margin: var(--space-8);
        font-size: var(--fs-xs);
        color: var(--ink-faint);
      }

      /* ---------- модалка товара ---------- */
      .card[data-open] {
        cursor: pointer;
      }
      button.card-order {
        width: 100%;
        background: none;
        font-family: inherit;
        cursor: pointer;
      }

      .modal[hidden] {
        display: none;
      }
      .modal {
        position: fixed;
        inset: 0;
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-66);
      }
      .modal-backdrop {
        position: absolute;
        inset: 0;
        background: var(--color-2);
        backdrop-filter: blur(7px);
        opacity: 0;
        transition: opacity 0.5s var(--ease);
      }
      .modal.open .modal-backdrop {
        opacity: 1;
      }
      .modal-panel {
        position: relative;
        width: 100%;
        max-width: 980px;
        /* Высота фиксирована, а не по содержимому: иначе окно меняет размер при листании товаров
           (разное число размеров, длина описания) и при раскрытии таблицы размеров. */
        height: min(92vh, 860px);
        overflow: auto;
        touch-action: pan-y;
        background: var(--bg);
        border: 1px solid var(--line-strong);
        box-shadow: 0 40px 90px -40px var(--color-85);
        opacity: 0;
        transform: translateY(26px) scale(0.985);
        transition:
          opacity 0.55s var(--ease),
          transform 0.55s var(--ease);
      }
      .modal.open .modal-panel {
        opacity: 1;
        transform: none;
      }
      .modal-close {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 5;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: color-mix(in srgb, var(--bg) 90%, transparent);
        border: 1.5px solid var(--ink-faint);
        border-radius: var(--radius-sm);
        color: var(--ink);
        transition:
          background 0.3s,
          border-color 0.3s,
          transform 0.5s var(--ease);
      }
      .modal-close svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
        transition: transform 0.5s var(--ease);
      }
      #drawer .drawer-head .modal-close {
        position: relative;
        top: auto;
        right: auto;
        flex: none;
      }
      #drawer .drawer-head .modal-close svg {
        width: 22px;
        height: 22px;
      }
      @media (hover: hover) and (pointer: fine) {
        .modal-close:hover {
          background: var(--surface);
          border-color: var(--ink);
        }
        .modal-close:hover svg {
          transform: rotate(90deg);
        }
      }
      .modal-close:active {
        background: var(--surface);
        transform: scale(0.96);
      }
      #modal .modal-close {
        background: transparent;
        border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
        box-shadow: none;
        transition:
          color 0.2s,
          border-color 0.2s;
      }
      #modal .modal-close:hover,
      #modal .modal-close:active {
        background: transparent;
        border-color: currentColor;
        transform: none;
        color: var(--accent);
      }
      #modal .modal-close svg {
        transform: none;
        transition: none;
      }
      @media (prefers-reduced-motion: reduce) {
        .modal-close,
        .modal-close svg,
        .nav-drawer-close,
        .nav-drawer-close svg {
          transition: none;
        }
      }
      .modal-grid {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
      }
      .modal-visual {
        position: relative;
        overflow: hidden;
        min-height: 320px;
      }
      .mv-stage {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: inherit;
        overflow: hidden;
        touch-action: pan-y;
      }
      .modal-visual .badge-tag {
        top: 20px;
        left: 20px;
        max-width: calc(100% - 80px);
      }
      .modal-visual .swatch-mark {
        bottom: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
      }
      /* Задача 043: фото окна товара — целиком (contain), а не обрезкой (cover), поэтому под ним
         своя же копия кадра, размытая и притемнённая, закрывает пустые поля — без лишних запросов
         (тот же URL). Точка фокуса (object-position) для окна больше не нужна: contain её не использует. */
      .modal-visual .mv-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(24px) brightness(0.8);
        transform: scale(1.1); /* прячет размытый край */
        pointer-events: none;
      }
      .modal-visual img.photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
      }
      .mv-arrow {
        position: absolute;
        top: 50%;
        z-index: 3;
        width: 44px;
        height: 44px;
        margin-top: var(--space-116);
        display: grid;
        place-items: center;
        padding: var(--space-8);
        border: 0;
        border-radius: 50%;
        background: var(--color-61);
        color: var(--color-3);
        cursor: pointer;
        transition:
          opacity 0.3s,
          background 0.3s;
      }
      .mv-arrow:hover:not(:disabled) {
        background: var(--color-86);
      }
      .mv-arrow:focus-visible {
        outline: 2px solid var(--color-87);
        outline-offset: 4px;
      }
      .mv-arrow:disabled {
        opacity: 0.35;
        cursor: default;
      }
      .mv-arrow svg {
        width: 21px;
        height: 21px;
        stroke-width: 1.5;
        filter: drop-shadow(0 1px 2px var(--color-62));
      }
      .mv-arrow[data-photo='-1'] {
        left: 14px;
      }
      .mv-arrow[data-photo='1'] {
        right: 14px;
      }
      .mv-thumbs {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 3;
        display: flex;
        justify-content: center;
        gap: var(--space-3);
      }
      /* всегда один ряд: при многих фото миниатюры сужаются, а не уходят на вторую строку */
      .mv-thumbs button {
        width: 44px;
        min-width: 0;
        aspect-ratio: 44 / 56;
        padding: var(--space-8);
        overflow: hidden;
        border: 2px solid var(--color-81);
        border-radius: var(--radius-sm);
        cursor: pointer;
        opacity: 0.75;
        transition:
          opacity 0.3s,
          border-color 0.3s;
        background: var(--bg-alt);
        flex: 0 1 44px;
      }
      .mv-thumbs button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .mv-thumbs button.active,
      .mv-thumbs button:hover {
        opacity: 1;
        border-color: var(--color-3);
      }
      .mv-count {
        position: absolute;
        right: 16px;
        bottom: 18px;
        z-index: 3;
        display: none;
        min-width: 58px;
        padding: var(--space-97);
        border: 1px solid var(--color-82);
        border-radius: 999px;
        background: var(--color-83);
        backdrop-filter: blur(8px);
        color: var(--color-3);
        font-size: var(--font-8);
        line-height: 18px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        text-align: center;
        pointer-events: none;
      }
      .mv-count-total {
        opacity: 0.72;
        font-weight: 400;
      }
      .modal-body {
        padding: var(--space-98);
        display: flex;
        flex-direction: column;
      }
      .modal-info {
        display: flex;
        flex-direction: column;
      }
      .modal-info > * {
        flex-shrink: 0;
      }
      .modal-body h3 {
        font-size: var(--font-33);
        font-weight: 600;
        margin-top: var(--space-6);
        overflow-wrap: anywhere;
      }
      .modal-eyebrow {
        font-size: var(--fs-3xs);
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--accent);
      }
      .modal-desc {
        margin-top: var(--space-5);
        color: var(--ink-soft);
        font-size: var(--fs-md);
        line-height: 1.65;
        overflow-wrap: anywhere;
      }
      .modal-price {
        margin-top: var(--space-16);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: var(--fs-xl2);
        font-variant-numeric: tabular-nums;
      }
      /* Образец поморского свитера: правила ограничены одним товаром. */
      #modal.product-example .modal-eyebrow {
        display: none;
      }
      #modal.product-example .modal-close svg {
        transition: transform 0.22s var(--ease);
      }
      @media (hover: hover) and (pointer: fine) {
        #modal.product-example .modal-close:hover svg {
          transform: rotate(90deg);
        }
      }
      #modal.product-example .modal-close:active svg {
        transform: rotate(90deg) scale(0.9);
      }
      #modal.product-example.closing .modal-panel {
        opacity: 0;
        transition:
          opacity 0.42s ease-in-out,
          transform 0.42s var(--ease);
      }
      #modal.product-example.closing .modal-backdrop {
        transition-duration: 0.42s;
      }
      #modal.product-example.closing .modal-close svg {
        transform: rotate(180deg) scale(0.85);
        transition: transform 0.28s var(--ease);
      }
      @media (min-width: 761px) {
        #modal.product-example.closing .modal-panel {
          transform: translateY(10px) scale(0.99);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        #modal.product-example .modal-close svg,
        #modal.product-example .modal-close:hover svg,
        #modal.product-example .modal-close:active svg,
        #modal.product-example.closing .modal-close svg {
          transition: none;
          transform: none;
        }
      }
      #modal.product-example .modal-summary,
      #modal.product-example .modal-terms {
        margin-top: var(--space-36);
        color: var(--ink-soft);
        font-size: var(--fs-sm);
        line-height: 1.6;
      }
      #modal.product-example .modal-summary strong {
        color: var(--ink);
      }
      #modal.product-example .modal-price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: var(--space-24);
        margin-top: var(--space-20);
        color: var(--ink);
      }
      #modal.product-example .modal-price ins {
        order: -1;
        color: var(--ink);
        text-decoration: none;
      }
      #modal.product-example .modal-price .old-price,
      #modal.product-example .modal-price .badge-sale {
        color: var(--ink-soft);
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: 400;
        background: none;
      }
      #modal.product-example .modal-price .badge-sale {
        color: var(--accent);
        font-weight: 600;
      }
      #modal.product-example .mv-thumbs {
        position: absolute;
        left: 50%;
        right: auto;
        bottom: 16px;
        width: max-content;
        max-width: calc(100% - 32px);
        transform: translateX(-50%);
        isolation: isolate;
        overflow-x: auto;
        overflow-y: hidden;
        padding: var(--space-95);
        min-height: 0;
        background: var(--color-43);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
      }
      #modal.product-example .mv-thumbs button {
        flex: 0 0 44px;
        min-width: 44px;
        border-color: var(--color-67);
      }
      #modal.product-example .mv-thumbs button.active {
        border-color: var(--color-3);
      }
      #modal.product-example .mv-thumbs button:focus-visible {
        outline: 2px solid var(--color-3);
        outline-offset: 2px;
      }
      #modal.product-example .mv-stage .mv-count {
        bottom: 90px;
      }
      @media (min-width: 761px) {
        #modal.product-example .modal-grid {
          grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }
        #modal.product-example .modal-visual {
          display: flex;
          flex-direction: column;
        }
        #modal.product-example .mv-stage {
          flex: 1;
          height: auto;
          min-height: 0;
        }
        #modal.product-example .mv-thumbs {
          flex: none;
        }
      }
      .modal-label {
        margin-top: var(--space-51);
        font-size: var(--fs-3xs);
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-faint);
      }
      .sizes {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-99);
        margin-top: var(--space-2);
      }
      .size {
        min-height: 44px;
        min-width: 44px;
        padding: var(--space-100);
        border: 1px solid var(--line-strong);
        background: none;
        cursor: pointer;
        font-family: inherit;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--ink-soft);
        border-radius: var(--radius-sm);
        transition:
          color 0.3s var(--ease),
          border-color 0.3s var(--ease),
          background 0.3s var(--ease);
      }
      .field-err {
        margin-top: var(--space-3);
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--accent);
      }
      .field-err[hidden] {
        display: none;
      }
      .size:hover {
        border-color: var(--ink);
        color: var(--ink);
      }
      .size[aria-pressed='true'] {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--bg);
      }
      .size:disabled {
        opacity: 0.4;
        text-decoration: line-through;
        cursor: not-allowed;
      }
      .size:disabled:hover {
        border-color: var(--line-strong);
        color: var(--ink-soft);
      }
      .size-note {
        margin-top: var(--space-6);
        font-size: var(--fs-sm);
        color: var(--ink-soft);
      }
      .size-note a {
        color: var(--ink);
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .size-guide tr.on td {
        background: var(--bg-alt);
        font-weight: 700;
      }
      .modal-specs {
        margin-top: var(--space-20);
        border-top: 1px solid var(--line);
      }
      .modal-specs li {
        display: flex;
        justify-content: space-between;
        gap: var(--space-17);
        padding: var(--space-101);
        border-bottom: 1px solid var(--line);
        font-size: var(--fs-sm);
        color: var(--ink-soft);
      }
      .modal-specs li b {
        color: var(--ink);
        font-weight: 600;
        text-align: right;
        overflow-wrap: anywhere;
      }
      .modal-ctas {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-top: var(--space-49);
      }
      .modal-cart-status {
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        z-index: 5;
        width: max-content;
        max-width: min(88vw, 420px);
        padding: var(--space-102);
        border-radius: var(--radius-sm);
        background: var(--ink);
        color: var(--bg);
        font-size: var(--fs-xs);
        font-weight: 600;
        text-align: center;
        transform: translateX(-50%);
        pointer-events: none;
      }
      .modal-ctas {
        position: relative;
      }
      .modal-ctas .btn {
        padding: var(--space-103);
        font-size: var(--fs-sm);
      }
      .modal-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-5);
        margin-top: var(--space-49);
        color: var(--ink-faint);
        font-size: var(--fs-xs);
      }
      .modal-nav button {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: none;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        color: var(--ink);
        transition: all 0.3s var(--ease);
      }
      .modal-nav button:hover {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--bg);
      }
      .modal-nav svg {
        width: 15px;
        height: 15px;
      }
      .modal-nav .count {
        min-width: 64px;
        text-align: center;
        letter-spacing: 0.1em;
        font-variant-numeric: tabular-nums;
      }
      /* Две колонки: фото стоит на всю высоту окна. Справа текст товара (.modal-info) и под ним
         стрелки листания — отдельной строкой, вне прокрутки: при листании кнопка не прыгает и
         остаётся под курсором. Ритм плотный, чтобы текст влезал без прокрутки; если всё же не влез
         (низкий экран, раскрытая таблица размеров) — колонка листается колесом, полосы нет,
         а про остаток подсказывает затухание снизу (класс .more ставит JS). */
      @media (min-width: 761px) {
        .modal-panel {
          overflow: hidden;
          /* Задача 043: высота окна больше не произвольная (min(92vh,860px)), а подогнана под
             рамку фото 3:4 — окно стало заметно ниже. Капы vh/dvh не дают окну вылезти за экран
             на низких мониторах, число одинаково для всех товаров на данном экране. */
          --modal-h: min(88dvh, 88vh, 620px);
          height: var(--modal-h);
        }
        .modal-grid {
          height: 100%;
          grid-template-rows: 100%; /* иначе строка растёт по тексту и прокрутка не включается */
          /* колонка фото — рамка 3:4 от высоты окна, но не шире 45% окна: на узком десктопе
             (761–1000px) тексту остаётся место. Ширина задана явно, без aspect-ratio в auto-треке
             (в старом Safari он считается с ошибками). */
          grid-template-columns: min(calc(var(--modal-h) * 3 / 4), 45%) minmax(0, 1fr);
        }
        .modal-visual {
          min-height: 0;
          height: 100%;
        }
        .modal-body {
          min-height: 0;
          padding: var(--space-104);
        }
        .modal-info {
          flex: 1;
          min-height: 0;
          overflow-y: auto;
          overscroll-behavior: contain;
          /* запас под кольцо фокуса, которое иначе срезает край прокрутки; снизу место под затухание */
          padding-inline: var(--space-3);
          margin-inline: var(--space-105);
          scroll-padding-block: 8px 56px;
        }
        .modal-info.more {
          -webkit-mask-image: linear-gradient(var(--color-84) calc(100% - 48px), transparent);
          mask-image: linear-gradient(var(--color-84) calc(100% - 48px), transparent);
        }
        .modal-body h3 {
          font-size: var(--font-34);
          margin-top: var(--space-30);
          padding-right: var(--space-73); /* не заходить под кнопку «Закрыть» */
        }
        .modal-desc {
          margin-top: var(--space-6);
          line-height: 1.55;
        }
        .modal-price {
          margin-top: var(--space-5);
        }
        .modal-label {
          margin-top: var(--space-17);
        }
        .sizes {
          gap: var(--space-3);
          margin-top: var(--space-6);
        }
        /* Кнопки заказа прилипают к низу колонки, если текст длиннее окна (низкие экраны,
           раскрытая таблица размеров): главное действие всегда видно, как на телефоне. Отступ
           сверху и снизу стал внутренним, чтобы фон плашки закрывал текст под ней. */
        .modal-ctas {
          position: sticky;
          bottom: 0;
          z-index: 2;
          margin: var(--space-106);
          padding: var(--space-107);
          background: var(--bg);
        }
        /* прилипли: затухание рисует тень цвета фона над плашкой, а не маска всей колонки */
        .modal-info.cta-stuck {
          -webkit-mask-image: none;
          mask-image: none;
        }
        .modal-info.cta-stuck .modal-ctas {
          box-shadow: 0 -22px 20px -8px var(--bg);
        }
        /* характеристики сеткой в две колонки (подпись над значением): вдвое ниже списка строк */
        .modal-specs {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: var(--space-108);
          margin-top: var(--space-3);
          padding-top: var(--space-5);
        }
        .modal-specs li {
          flex-direction: column;
          justify-content: flex-start;
          gap: var(--space-47);
          padding: var(--space-8);
          border-bottom: 0;
        }
        .modal-specs li b {
          text-align: left;
        }
        .modal-nav {
          flex: none;
          margin-top: var(--space-8);
          padding-top: var(--space-36);
        }
      }
      /* низкие экраны ноутбуков (1366×768 минус панели браузера): высота окна по-прежнему считается
         формулой выше (min(88dvh,88vh,620px)) — здесь только более плотный ритм текста */
      @media (min-width: 761px) and (max-height: 820px) {
        .modal {
          padding-block: var(--space-2);
        }
        .modal-body {
          padding-block: var(--space-109);
        }
        .modal-body h3 {
          font-size: var(--font-35);
        }
        .modal-desc {
          margin-top: var(--space-3);
          line-height: 1.5;
        }
        .modal-price {
          margin-top: var(--space-6);
        }
        .modal-label {
          margin-top: var(--space-5);
        }
        .size-note {
          margin-top: var(--space-30);
        }
        .modal-ctas {
          margin-top: var(--space-11);
        }
        .modal-specs {
          margin-top: var(--space-11);
          padding-top: var(--space-6);
        }
        .modal-nav {
          padding-top: var(--space-2);
        }
      }
      /* мышь точнее пальца: чипы размеров ниже, детская линейка из 14 размеров встаёт в 2 ряда */
      @media (min-width: 761px) and (hover: hover) and (pointer: fine) {
        .size {
          min-height: 38px;
          padding: var(--space-97);
        }
      }
      @media (max-width: 760px) {
        .modal {
          align-items: stretch;
          justify-content: stretch;
          padding: var(--space-8);
          background: var(--bg);
        }
        .modal-backdrop {
          display: none;
        }
        .modal-panel {
          width: 100%;
          max-width: none;
          height: 100vh;
          height: 100dvh;
          max-height: none;
          overflow-x: hidden;
          overflow-y: auto;
          overscroll-behavior: contain;
          -webkit-overflow-scrolling: touch;
          border: 0;
          box-shadow: none;
          /* Transform у родителя временно привязывает fixed-контролы к панели.
             На телефоне сохраняем привязку к экрану во всех кадрах открытия/закрытия. */
          transform: none;
          transition: opacity 260ms var(--ease);
        }
        .modal-close {
          position: fixed;
          top: max(12px, env(safe-area-inset-top));
          right: max(12px, env(safe-area-inset-right));
          width: 48px;
          height: 48px;
          background: color-mix(in srgb, var(--bg) 94%, transparent);
          box-shadow: 0 2px 18px var(--color-66);
        }
        #modal .modal-close {
          color: var(--color-3);
          border-color: var(--color-67);
        }
        #modal .modal-close svg {
          filter: drop-shadow(0 1px 2px var(--color-68)) drop-shadow(0 0 1px var(--color-68));
        }
        #modal .modal-close:hover,
        #modal .modal-close:active {
          color: var(--color-48);
        }
        #modal .modal-close:focus-visible {
          outline: 2px solid var(--color-3);
          outline-offset: 2px;
        }
        .modal-grid {
          display: block;
          min-height: 100%;
        }
        .modal-visual {
          min-height: 0;
          width: 100%;
          max-height: none;
          overflow: visible;
        }
        .mv-stage {
          /* Фиксируется при открытии окна: скрытие адресной панели мобильного браузера меняет dvh
             во время прокрутки и раньше заставляло фотографию заметно подпрыгивать. */
          height: var(--mobile-stage-height, clamp(280px, 52svh, 520px));
          min-height: 0;
        }
        .mv-arrow {
          width: 48px;
          height: 48px;
          margin-top: var(--space-85);
        }
        .mv-arrow[data-photo='-1'] {
          left: max(10px, env(safe-area-inset-left));
        }
        .mv-arrow[data-photo='1'] {
          right: max(10px, env(safe-area-inset-right));
        }
        .mv-thumbs {
          position: static;
          min-height: 76px;
          justify-content: flex-start;
          gap: var(--space-3);
          overflow-x: auto;
          overscroll-behavior-x: contain;
          scroll-snap-type: x proximity;
          padding: 10px max(18px, env(safe-area-inset-right)) 10px
            max(18px, env(safe-area-inset-left));
          background: var(--bg-alt);
        }
        .mv-thumbs button {
          flex: 0 0 52px;
          width: 52px;
          min-width: 52px;
          height: 56px;
          aspect-ratio: auto;
          scroll-snap-align: center;
          border-color: var(--line-strong);
          opacity: 0.68;
        }
        .mv-thumbs button.active {
          border-color: var(--accent);
          box-shadow: 0 0 0 1px var(--accent);
        }
        .mv-count {
          display: block;
          right: max(14px, env(safe-area-inset-right));
          bottom: 14px;
        }
        .modal-body {
          padding: 26px max(18px, env(safe-area-inset-right))
            calc(112px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
        }
        .modal-body h3 {
          font-size: var(--font-32);
          line-height: 1.15;
        }
        /* главное действие всегда под пальцем, даже при длинном описании */
        .modal-ctas {
          position: fixed;
          left: 0;
          right: 0;
          bottom: 0;
          z-index: 6;
          flex-wrap: nowrap;
          gap: var(--space-3);
          margin: var(--space-8);
          padding: 10px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
          background: color-mix(in srgb, var(--bg) 96%, transparent);
          backdrop-filter: blur(14px);
          border-top: 1px solid var(--line);
          box-shadow: 0 -12px 30px var(--color-69);
        }
        .modal-ctas.is-added #mAdd {
          font-size: var(--fs-2xs);
          padding-inline: var(--space-6);
        }
        .modal-ctas .btn {
          flex: 1 1 0;
          min-width: 0;
          justify-content: center;
          min-height: 52px;
          padding-inline: var(--space-6);
          white-space: nowrap;
        }
        .modal-ctas .btn svg {
          display: none;
        }
        .modal-close[data-tip]::after {
          display: none;
        }
      }
      @media (max-width: 760px) and (orientation: landscape) {
        .mv-stage {
          height: min(76dvh, 520px);
        }
      }
      @media (max-width: 360px) {
        .modal-ctas .btn {
          font-size: var(--font-11);
        }
      }
      @media (max-width: 760px) and (hover: none), (max-width: 760px) and (pointer: coarse) {
        .swatch[data-card-gallery] {
          touch-action: pan-y;
        }
        .card-photo-count {
          position: absolute;
          right: 10px;
          bottom: 10px;
          z-index: 3;
          display: block;
          min-width: 44px;
          padding: var(--space-86);
          border-radius: var(--radius-sm);
          background: var(--color-70);
          color: var(--color-3);
          font-size: var(--font-14);
          font-variant-numeric: tabular-nums;
          text-align: center;
          pointer-events: none;
        }
        .card-photo-dots {
          position: absolute;
          left: 50%;
          bottom: 12px;
          z-index: 3;
          display: flex;
          align-items: center;
          gap: var(--space-87);
          transform: translateX(-50%);
          pointer-events: none;
        }
        .card-photo-dot {
          width: 5px;
          height: 5px;
          border-radius: 50%;
          background: var(--color-71);
          box-shadow:
            0 0 0 1px var(--color-72),
            0 1px 5px var(--color-73);
          transition:
            width 0.22s var(--ease),
            background 0.22s var(--ease);
        }
        .card-photo-dot.is-active {
          width: 17px;
          border-radius: 999px;
          background: var(--accent);
          box-shadow:
            0 0 0 1px var(--color-74),
            0 2px 7px var(--color-75);
        }
      }

      /* ---------- корзина ---------- */
      .nav-right {
        display: flex;
        align-items: center;
        gap: var(--space-5);
      }
      .cart-btn,
      .theme-btn {
        position: relative;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        cursor: pointer;
        color: var(--ink);
        transition:
          border-color 0.3s,
          background 0.3s;
      }
      .cart-btn:hover,
      .theme-btn:hover {
        border-color: var(--ink);
        background: var(--surface);
      }
      .cart-btn svg,
      .theme-btn svg {
        width: 18px;
        height: 18px;
      }
      .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        min-width: 20px;
        height: 20px;
        padding: var(--space-88);
        border-radius: var(--radius-lg);
        background: var(--accent);
        color: var(--on-accent);
        font-size: var(--fs-3xs);
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: scale(0);
        transition: transform 0.45s var(--ease);
      }
      .cart-count.on {
        transform: scale(1);
      }
      .cart-btn.bump {
        animation: bump 0.55s var(--ease);
      }
      @keyframes bump {
        30% {
          transform: scale(1.14);
        }
        60% {
          transform: scale(0.96);
        }
        100% {
          transform: scale(1);
        }
      }

      .drawer[hidden] {
        display: none;
      }
      .drawer {
        position: fixed;
        inset: 0;
        z-index: 210;
        display: flex;
        justify-content: flex-end;
      }
      .drawer-backdrop {
        position: absolute;
        inset: 0;
        background: var(--color-2);
        backdrop-filter: blur(7px);
        opacity: 0;
        transition: opacity 0.5s var(--ease);
      }
      .drawer.open .drawer-backdrop {
        opacity: 1;
      }
      .drawer-panel {
        position: relative;
        width: min(470px, 100%);
        height: 100%;
        background: var(--bg);
        border-left: 1px solid var(--line-strong);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.6s var(--ease);
        box-shadow: -40px 0 90px -50px var(--color-76);
      }
      .drawer.open .drawer-panel {
        transform: none;
      }
      /* выход быстрее входа (~0.6 от длительности) и с ускорением — ощущается отзывчивее */
      .drawer:not(.open) .drawer-panel {
        transition: transform 0.38s cubic-bezier(0.4, 0, 1, 1);
      }
      .drawer:not(.open) .drawer-backdrop {
        transition: opacity 0.38s ease-in;
      }
      .drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-5);
        padding: var(--space-89);
        border-bottom: 1px solid var(--line);
        flex: none;
      }
      .drawer-head h3 {
        font-size: var(--fs-lg);
      }
      .drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: var(--space-90);
      }
      .drawer-foot {
        flex: none;
        border-top: 1px solid var(--line);
        background: var(--bg-alt);
        padding: var(--space-91);
      }
      .drawer-foot .btn {
        width: 100%;
        justify-content: center;
      }
      .filter-result {
        margin-bottom: var(--space-2);
        color: var(--ink-soft);
        font-size: var(--fs-xs);
        letter-spacing: 0.04em;
        text-align: center;
      }

      .cart-empty {
        text-align: center;
        padding: var(--space-92);
        color: var(--ink-faint);
      }
      .cart-empty svg {
        width: 42px;
        height: 42px;
        color: var(--line-strong);
        margin: var(--space-93);
      }
      .cart-empty p {
        font-size: var(--fs-base);
        margin-bottom: var(--space-16);
      }

      .ci {
        display: flex;
        gap: var(--space-5);
        padding: var(--space-94);
        border-bottom: 1px solid var(--line);
      }
      .ci-thumb {
        width: 62px;
        height: 78px;
        position: relative;
        overflow: hidden;
        flex: none;
      }
      .ci-thumb > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .ci-info {
        flex: 1;
        min-width: 0;
      }
      .ci-info h4 {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: var(--fs-base);
        margin: var(--space-8);
        overflow-wrap: anywhere;
      }
      .ci-size {
        font-size: var(--fs-2xs);
        color: var(--ink-faint);
        margin-top: var(--space-95);
      }
      .ci-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-6);
        margin-top: var(--space-6);
      }
      .ci-price {
        font-weight: 700;
        font-size: var(--fs-base);
        font-variant-numeric: tabular-nums;
      }
      .qty {
        display: flex;
        align-items: center;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
      }
      .qty button {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--ink-soft);
        font-family: inherit;
        font-size: var(--fs-md);
        transition:
          color 0.3s,
          background 0.3s;
      }
      .qty button:hover {
        background: var(--surface);
        color: var(--ink);
      }
      .qty span {
        min-width: 26px;
        text-align: center;
        font-size: var(--fs-sm);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
      }
      .ci-del {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--ink-faint);
        padding: var(--space-2);
        min-width: 44px;
        min-height: 44px;
        align-self: flex-start;
        transition: color 0.3s;
      }
      .ci-del:hover {
        color: var(--accent);
      }
      .ci-del svg {
        width: 15px;
        height: 15px;
      }

      .block-label {
        margin-top: var(--space-37);
        font-size: var(--fs-3xs);
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-faint);
      }
      .dlv {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-2);
      }
      .dlv label {
        display: flex;
        gap: var(--space-2);
        align-items: flex-start;
        padding: var(--space-5);
        cursor: pointer;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        transition:
          border-color 0.3s,
          background 0.3s;
      }
      .dlv label.sel {
        border-color: var(--ink);
        background: var(--surface);
      }
      .dlv input {
        width: 18px;
        height: 18px;
        margin: var(--space-96);
        accent-color: var(--accent);
        flex: none;
      }
      .dlv label:hover {
        border-color: var(--ink-soft);
      }
      .dlv .dlv-name {
        font-size: var(--fs-base);
        font-weight: 600;
        display: block;
      }
      .dlv .dlv-note {
        font-size: var(--fs-2xs);
        color: var(--ink-faint);
        display: block;
        margin-top: var(--space-47);
      }
      .dlv .dlv-price {
        margin-left: var(--space-45);
        font-size: var(--fs-sm);
        font-weight: 700;
        white-space: nowrap;
        padding-left: var(--space-6);
      }

      .field {
        display: flex;
        flex-direction: column;
        gap: var(--space-30);
        margin-top: var(--space-36);
      }
      .field label {
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--ink-soft);
      }
      .field label .opt {
        font-weight: 400;
        color: var(--ink-faint);
      }
      .field .field-err {
        margin-top: var(--space-8);
      }
      .field-check .check {
        display: flex;
        align-items: flex-start;
        gap: var(--space-2);
        font-size: var(--fs-sm);
        font-weight: 400;
        line-height: 1.5;
        color: var(--ink-soft);
        cursor: pointer;
      }
      .field.field-check input[type='checkbox'] {
        flex: none;
        width: 20px;
        height: 20px;
        min-height: 0;
        margin: var(--space-96);
        padding: var(--space-8);
        border: 0;
        box-shadow: none;
        accent-color: var(--accent);
      }
      .field.field-check.err .check {
        color: var(--accent);
      }
      .field-check a {
        color: var(--ink);
        text-underline-offset: 3px;
      }

      /* ---------- cookie ---------- */
      .cookie {
        position: fixed;
        left: max(24px, env(safe-area-inset-left));
        bottom: max(24px, env(safe-area-inset-bottom));
        z-index: 180;
        width: min(440px, calc(100vw - 32px));
        max-height: calc(100vh - 48px);
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: var(--space-16);
        background: var(--color-49);
        color: var(--color-47);
        border: 1px solid var(--color-77);
        border-radius: 8px;
        box-shadow: 0 14px 36px var(--color-78);
      }
      .cookie[hidden] {
        display: none;
      }
      .cookie-content {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: var(--space-2);
        padding-right: var(--space-37);
      }
      .cookie-icon {
        width: 32px;
        height: 32px;
        align-self: center;
        margin-top: var(--space-8);
        color: var(--color-47);
      }
      .cookie p {
        min-width: 0;
        font-size: var(--font-7);
        line-height: 1.5;
        color: var(--color-79);
      }
      .cookie p a {
        color: var(--color-47);
        text-underline-offset: 3px;
      }
      .cookie-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: var(--space-8);
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--color-80);
        cursor: pointer;
        transition:
          color 0.2s,
          background 0.2s,
          transform 0.15s;
      }
      .cookie-close svg {
        width: 18px;
        height: 18px;
      }
      .cookie-close:focus-visible {
        outline: 2px solid var(--color-47);
        outline-offset: 1px;
      }
      .cookie-close:active {
        transform: scale(0.94);
      }
      .cookie-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-6);
        margin-top: var(--space-17);
      }
      .cookie-actions .btn {
        isolation: isolate;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: var(--space-62);
        border-radius: 4px;
        font-size: var(--font-29);
        line-height: 1.3;
        justify-content: center;
        text-align: center;
        white-space: normal;
      }
      .cookie-actions .btn::before {
        display: block;
        z-index: -1;
        transform: translateY(101%);
        transition: transform 0.55s var(--ease);
      }
      .cookie-actions .cookie-necessary {
        border-color: var(--color-46);
        background: transparent;
        color: var(--color-47);
      }
      .cookie-actions .cookie-necessary::before {
        background: var(--color-47);
        transform: translateY(-101%);
      }
      .cookie-actions .cookie-analytics {
        border-color: var(--color-47);
        background: var(--color-48);
        color: var(--color-49);
      }
      .cookie-actions .cookie-analytics::before {
        background: var(--color-50);
      }
      @media (hover: hover) and (pointer: fine) {
        .cookie-close:hover {
          background: var(--color-51);
          color: var(--color-3);
        }
        .cookie-actions .cookie-necessary:hover {
          border-color: var(--color-47);
          color: var(--color-49);
        }
        .cookie-actions .cookie-necessary:hover::before,
        .cookie-actions .cookie-analytics:hover::before {
          transform: none;
        }
        .cookie-actions .cookie-analytics:hover {
          border-color: var(--color-3);
        }
      }
      @media (max-width: 768px) {
        .cookie {
          left: 50%;
          right: auto;
          bottom: max(16px, env(safe-area-inset-bottom));
          width: min(440px, calc(100vw - 32px));
          transform: translateX(-50%);
          max-height: calc(100vh - 32px);
          max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
        }
        .cookie-actions {
          gap: var(--space-3);
          margin-top: var(--space-6);
        }
        .cookie {
          padding: var(--space-2);
        }
        .cookie-content {
          grid-template-columns: minmax(0, 1fr);
          gap: var(--space-8);
          padding-right: var(--space-64);
        }
        .cookie-icon {
          display: none;
        }
        .cookie-close {
          width: 44px;
          height: 44px;
        }
        .cookie p {
          font-size: var(--font-29);
          line-height: 1.4;
        }
        .cookie-actions .btn {
          min-height: 44px;
          padding-block: var(--space-3);
        }
        .cookie-actions .cookie-analytics {
          order: -1;
        }
      }
      @media (max-width: 480px) {
        .cookie-actions {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .cookie-actions .btn {
          padding-inline: var(--space-30);
          font-size: var(--font-8);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .cookie-actions .btn::before {
          transition: none;
        }
      }
      .foot-legal {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-76);
        font-size: var(--fs-xs);
      }
      .foot-legal a,
      .foot-legal button {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: var(--space-8);
        background: none;
        border: 0;
        font: inherit;
        color: var(--ink-faint);
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
      }
      .foot-legal a:hover,
      .foot-legal button:hover {
        color: var(--accent);
      }
      .foot-legal [hidden] {
        display: none;
      }
      .field input,
      .field textarea {
        font-family: inherit;
        font-size: var(--fs-md);
        min-height: 46px;
        padding: var(--space-53);
        color: var(--ink);
        border: 1px solid var(--line-strong);
        background: var(--surface);
        border-radius: var(--radius-sm);
        transition: border-color 0.3s;
      }
      .field textarea {
        resize: vertical;
        min-height: 74px;
      }
      .field input:focus,
      .field textarea:focus {
        outline: none;
        border-color: var(--ink);
      }
      .field.err input,
      .field.err textarea {
        border-color: var(--accent);
        box-shadow: inset 0 0 0 1px var(--accent);
      }
      .foot-total {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: var(--space-2);
        margin-bottom: var(--space-2);
        font-size: var(--fs-base);
        color: var(--ink-soft);
      }
      .foot-total b {
        font-family: var(--font-heading);
        font-size: var(--fs-lg2);
        font-weight: 600;
        color: var(--ink);
        font-variant-numeric: tabular-nums;
      }
      .btn:disabled {
        opacity: 0.6;
        cursor: progress;
      }
      .sizes.need .size {
        border-color: var(--accent);
      }

      .totals {
        margin-top: var(--space-51);
        border-top: 1px solid var(--line-strong);
        padding-top: var(--space-5);
      }
      .t-row {
        display: flex;
        justify-content: space-between;
        gap: var(--space-5);
        padding: var(--space-32);
        font-size: var(--fs-base);
        color: var(--ink-soft);
      }
      .next-steps {
        margin-top: var(--space-20);
        padding: var(--space-77);
        background: var(--bg-alt);
        font-size: var(--fs-sm);
        color: var(--ink-soft);
      }
      .next-steps b {
        display: block;
        color: var(--ink);
        font-size: var(--fs-base);
      }
      .next-steps ol {
        margin: var(--space-43);
        padding-left: var(--space-78);
        list-style: decimal;
      }
      .next-steps li + li {
        margin-top: var(--space-11);
      }
      .t-note {
        margin-top: var(--space-6);
        font-size: var(--fs-2xs);
        color: var(--ink-faint);
        line-height: 1.5;
      }

      .done {
        text-align: center;
        padding-top: var(--space-6);
      }
      .done .done-mark {
        color: var(--accent);
        margin-bottom: var(--space-36);
      }
      .done .done-mark svg {
        width: 40px;
        height: 40px;
        margin: var(--space-79);
      }
      .done h3 {
        font-size: var(--fs-xl);
      }
      .done > p {
        margin-top: var(--space-2);
        color: var(--ink-soft);
        font-size: var(--fs-base);
        line-height: 1.6;
      }
      .order-text {
        margin: var(--space-80);
        text-align: left;
        font-family: inherit;
        white-space: pre-wrap;
        word-break: break-word;
        font-size: var(--fs-sm);
        line-height: 1.6;
        color: var(--ink-soft);
        background: var(--surface);
        border: 1px solid var(--line);
        padding: var(--space-36);
        max-height: 260px;
        overflow: auto;
      }
      .order-no {
        margin-top: var(--space-3);
        overflow-wrap: anywhere;
        font-size: var(--fs-xs);
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
      }
      .step {
        text-align: left;
        margin-top: var(--space-16);
        border: 1px solid var(--line);
        background: var(--surface);
        padding: var(--space-17);
      }
      .step-head {
        display: flex;
        align-items: baseline;
        gap: var(--space-6);
      }
      .step-no {
        font-family: var(--font-heading);
        font-style: italic;
        font-weight: 600;
        color: var(--accent);
        font-size: var(--fs-md);
      }
      .step-head b {
        font-size: var(--fs-2xs);
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-faint);
      }
      .step p {
        margin-top: var(--space-6);
        font-size: var(--fs-sm);
        line-height: 1.55;
        color: var(--ink-soft);
      }
      .step .btn {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-2);
      }
      .link-btn {
        margin-top: var(--space-36);
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: var(--fs-xs);
        color: var(--ink-faint);
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .link-btn:hover {
        color: var(--accent);
      }

      .toast {
        position: fixed;
        left: 50%;
        bottom: 28px;
        z-index: 300;
        background: var(--ink);
        color: var(--bg);
        padding: var(--space-54);
        border-radius: var(--radius-sm);
        font-size: var(--fs-sm);
        font-weight: 600;
        white-space: nowrap;
        max-width: 88vw;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0;
        transform: translate(-50%, 18px);
        pointer-events: none;
        transition:
          opacity 0.45s var(--ease),
          transform 0.45s var(--ease);
      }

      @media (max-width: 600px) {
        .wrap {
          padding-inline: var(--space-17);
        }
        section {
          padding-block: var(--space-81);
        }
        .hero-ctas .btn,
        .modal-ctas .btn,
        .drawer-foot .btn {
          min-height: 48px;
        }
        .modal-panel,
        .drawer-panel {
          max-height: 100dvh;
        }
        .modal-body,
        .drawer-body {
          padding-inline: var(--space-17);
        }
        .toast {
          bottom: max(16px, env(safe-area-inset-bottom));
          white-space: normal;
          text-align: center;
        }
      }
      @media (max-width: 399px) {
        .hc-content {
          padding: var(--space-36);
        }
        .hc-content h1 {
          max-width: 28ch;
          font-size: var(--font-30);
        }
        .hc-content p.lede {
          display: none;
        }
        .hero-ctas {
          margin-top: var(--space-5);
        }
        .hero-ctas .btn {
          min-height: 44px;
        }
      }
      /* ---------- mobile editorial hero ----------
         На телефоне фото — единый фон первого экрана, кнопки — у нижнего края.
         Desktop остаётся split-layout выше. */
      @media (max-width: 899px) {
        .hc {
          position: relative;
          display: block;
          min-height: calc(100svh - 81px);
          height: auto;
          overflow: hidden;
          background: var(--color-52);
        }
        .hc-slides {
          position: absolute;
          z-index: 0;
          inset: 0;
          width: 100%;
          height: 100%;
          min-height: 0;
          aspect-ratio: auto;
        }
        .hc-slide img {
          object-position: 50% 36%;
        }
        .hc-slide[data-audience='men'] img {
          object-position: 50% 36%;
        }
        .hc-slide[data-audience='women'] img {
          object-position: 50% 48%;
        }
        .hc-slide[data-audience='kids'] img {
          object-position: 50% 42%;
        }
        .hc-slide.is-active::after {
          content: '';
          position: absolute;
          z-index: 1;
          inset: 0;
          pointer-events: none;
          background: linear-gradient(
            180deg,
            var(--color-53) 20%,
            var(--color-54) 58%,
            var(--color-55) 84%,
            var(--color-56) 100%
          );
        }
        .hc-content {
          position: relative;
          z-index: 2;
          display: flex;
          align-items: flex-start;
          justify-content: flex-end;
          min-height: calc(100svh - 81px - 60px);
          padding: var(--space-82);
          background: transparent;
          text-align: left;
          pointer-events: none;
        }
        .hc-content a,
        .hc-content button {
          pointer-events: auto;
        }
        .hc-content h1 {
          position: absolute;
          width: 1px;
          height: 1px;
          padding: var(--space-8);
          margin: var(--space-48);
          overflow: hidden;
          clip-path: inset(50%);
          white-space: nowrap;
        }
        .hc-content p.lede {
          display: none;
        }
        .hero-ctas {
          flex-direction: column;
          align-items: center;
          justify-content: center;
          width: 100%;
          max-width: none;
          gap: var(--space-3);
          margin-top: var(--space-36);
        }
        .hero-ctas .btn-primary {
          width: 100%;
          min-width: 0;
          min-height: 48px;
          padding: var(--space-22);
          justify-content: center;
          background: transparent;
          color: var(--color-57);
          border-color: var(--color-58);
        }
        .hero-ctas .btn-primary::before {
          background: var(--color-59);
        }
        .hero-ctas .btn-primary:hover,
        .hero-ctas .btn-primary:focus-visible {
          color: var(--color-57);
        }
        .hero-ctas .btn-primary:active {
          background: var(--color-60);
        }
        .hero-ctas .btn-ghost {
          min-height: 36px;
          padding: var(--space-24);
          border-color: transparent;
          font-size: var(--font-31);
          text-decoration: underline;
          text-underline-offset: 3px;
        }
        .hero-ctas .btn-ghost::after {
          content: '→';
          margin-left: var(--space-30);
          text-decoration: none;
        }
        .hc-slide-tag {
          top: 16px;
          bottom: auto;
          left: 16px;
          font-size: var(--font-31);
        }
        .hc-slide-tag::before {
          content: none;
        }
        .hc-arrow {
          top: 42%;
          width: 44px;
          height: 44px;
          border: 0;
          border-radius: 9999px;
          background: var(--color-61);
        }
        .hc-arrow::before {
          display: none;
        }
        .hc-arrow svg {
          position: relative;
          z-index: 1;
          width: 21px;
          height: 21px;
          opacity: 0.82;
          filter: drop-shadow(0 1px 2px var(--color-62));
        }
        .hc-prev {
          left: 16px;
        }
        .hc-next {
          right: 16px;
        }
        .hc-dots {
          position: relative;
          left: auto;
          right: auto;
          bottom: auto;
          align-self: center;
          transform: none;
          margin: var(--space-83);
          gap: var(--space-3);
          height: 44px;
          width: 100%;
          justify-content: center;
          flex: 0 0 44px;
        }
        .hc-dots button {
          width: 28px;
          height: 44px;
          border-radius: 9999px;
        }
        .hc-dots .hc-dot-mark {
          width: 28px;
          height: 2px;
          margin: var(--space-84);
          border-radius: 9999px;
          color: var(--color-63);
          filter: none;
          transition:
            color 200ms ease,
            opacity 200ms ease;
          transform: none;
        }
        .hc-dots .hc-dot-circle {
          display: none;
        }
        .hc-dots .hc-dot-line {
          display: block;
          width: 28px;
          height: 2px;
          margin: var(--space-84);
          border-radius: 9999px;
          filter: none;
          transform: none;
        }
        .hc-dots button:hover .hc-dot-mark {
          color: var(--color-64);
        }
        .hc-dots button.is-active .hc-dot-mark {
          color: var(--color-57);
          opacity: 1;
          transform: none;
        }
        .hc-dots button:focus-visible {
          outline: 1px solid var(--color-65);
          outline-offset: -1px;
          box-shadow: none;
        }
        .hero-ctas .btn-ghost::after {
          content: none;
        }
        .hero-ctas .hero-vk {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          gap: var(--space-3);
          min-height: 44px;
          padding: var(--space-24);
          border: 0;
          background: transparent;
          color: var(--color-57);
          font-size: var(--font-18);
          font-weight: 400;
          text-decoration: none;
          white-space: nowrap;
        }
        .hero-vk::before {
          display: none;
        }
        .hero-ctas .hero-vk:link,
        .hero-ctas .hero-vk:visited,
        .hero-ctas .hero-vk:active {
          color: var(--color-57);
          text-decoration: none;
          border-color: transparent;
          background: transparent;
        }
        .hero-ctas .hero-vk:hover,
        .hero-ctas .hero-vk:focus-visible {
          color: var(--color-48);
        }
        .hero-ctas .hero-vk:focus-visible {
          outline: 1px solid var(--color-65);
          outline-offset: 4px;
        }
        .hero-vk .hero-vk-icon {
          display: block;
          flex: 0 0 auto;
        }
        .hero-vk .hero-vk-bubble {
          width: 18px;
          height: 18px;
          stroke-width: 1.35;
        }
        .hero-vk .hero-vk-logo {
          width: 22px;
          height: 22px;
        }
        .hero-vk .hero-vk-desktop {
          display: none;
        }
        .hero-vk .hero-vk-mobile {
          display: inline;
        }
      }
      @media (max-width: 899px) and (orientation: landscape) {
        .hc {
          min-height: min(620px, calc(100svh - 64px));
        }
        .hc-content {
          min-height: min(620px, calc(100svh - 81px - 60px));
          padding-block: var(--space-16);
        }
        .hc-dots {
          bottom: auto;
        }
      }
      @media (min-width: 900px) {
        .hc-dots {
          left: 29.35%;
        }
      }
      .toast.on {
        opacity: 1;
        transform: translate(-50%, 0);
      }
      /* не перекрывать кнопку в футере открытой корзины/фильтров */
      body:has(.drawer.open) .toast {
        bottom: 136px;
      }
      @media (min-width: 601px) {
        body:has(.drawer.open) .toast {
          left: auto;
          right: 24px;
          transform: translateY(18px);
        }
        body:has(.drawer.open) .toast.on {
          transform: none;
        }
      }

      /* ---------- пасхалка ---------- */
      .egg[hidden] {
        display: none;
      }
      .egg {
        position: fixed;
        inset: 0;
        z-index: 240;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-66);
      }
      .egg-backdrop {
        position: absolute;
        inset: 0;
        background: var(--color-42);
        backdrop-filter: blur(8px);
        opacity: 0;
        transition: opacity 0.45s var(--ease);
      }
      .egg.open .egg-backdrop {
        opacity: 1;
      }
      .egg-panel {
        position: relative;
        width: 100%;
        max-width: 460px;
        max-height: 92vh;
        overflow: auto;
        background: var(--bg-alt);
        border: 1px solid var(--gold);
        outline: 1px solid var(--gold);
        outline-offset: 6px;
        padding: var(--space-67);
        text-align: center;
        opacity: 0;
        transform: scale(0.9) rotate(-2.5deg);
        transition:
          opacity 0.55s var(--ease),
          transform 0.7s var(--ease);
      }
      .egg.open .egg-panel {
        opacity: 1;
        transform: none;
      }
      .egg-close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 5;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: none;
        border: 1.5px solid var(--ink-faint);
        border-radius: var(--radius-sm);
        color: var(--ink);
        transition:
          background 0.3s,
          border-color 0.3s,
          transform 0.5s var(--ease);
      }
      .egg-close svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
        transition: transform 0.5s var(--ease);
      }
      @media (hover: hover) and (pointer: fine) {
        .egg-close:hover {
          background: var(--surface);
          border-color: var(--ink);
        }
        .egg-close:hover svg {
          transform: rotate(90deg);
        }
      }
      .egg-close:active {
        background: var(--surface);
        transform: scale(0.96);
      }
      @media (max-width: 760px) {
        .egg-close {
          width: 48px;
          height: 48px;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .egg-close,
        .egg-close svg {
          transition: none;
        }
      }
      .egg-eyebrow {
        font-size: var(--fs-3xs);
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--gold-text);
      }
      .egg-art {
        margin: var(--space-68);
        max-width: 330px;
      }
      .egg-art img {
        width: 100%;
        height: auto;
        display: block;
      }
      .egg-title {
        font-family: var(--font-heading);
        font-size: var(--font-26);
        line-height: 1.25;
        margin-top: var(--space-5);
      }
      .egg-title em {
        font-style: italic;
        color: var(--accent);
      }
      .egg-sub {
        margin-top: var(--space-2);
        font-size: var(--fs-sm);
        color: var(--ink-soft);
        line-height: 1.55;
      }
      .egg-rule {
        height: 14px;
        margin: var(--space-69);
        max-width: 200px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='14'><path d='M9 2 L15 7 L9 12 L3 7 Z' fill='none' stroke='%23A9863F' stroke-width='1.2'/></svg>");
        background-repeat: repeat-x;
        background-position: center;
        opacity: 0.8;
      }

      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.001ms !important;
        }
        .js [data-reveal] {
          opacity: 1 !important;
          transform: none !important;
        }
        .js .hc-content h1 .line > span {
          transform: none !important;
        }
        .js .hc-content p.lede,
        .js .hc-content .hero-ctas {
          opacity: 1 !important;
          transform: none !important;
        }
        .js .hc {
          opacity: 1 !important;
        }
        .hc-slide,
        .hc-slide img {
          transition: none !important;
        }
        .modal-backdrop,
        .modal-panel {
          opacity: 1 !important;
          transform: none !important;
        }
        .drawer-backdrop {
          opacity: 1 !important;
        }
        .drawer-panel {
          transform: none !important;
        }
        .egg-backdrop {
          opacity: 1 !important;
        }
        .egg-panel {
          opacity: 1 !important;
          transform: none !important;
        }
      }
      /* ---------- типографика: Kurale — только крупные заголовки ---------- */
      .card h3,
      .faq-list summary,
      .ci-info h4 {
        font-family: var(--font-body);
        font-weight: 600;
        letter-spacing: -0.005em;
      }
      .price,
      .modal-price {
        color: var(--accent);
      }
      .price,
      .modal-price,
      .foot-total b {
        font-family: var(--font-body);
        font-weight: 700;
        font-variant-numeric: tabular-nums lining-nums;
        letter-spacing: -0.01em;
      }
      /* ---------- тултипы (задача 037) ----------
         Кнопкам-иконкам: data-tip — текст берётся из aria-label, чтобы не расходился с подписью для
         скринридера. Показ при наведении мышью (с задержкой) и при фокусе с клавиатуры; на сенсорных
         экранах наведения нет — подсказка не всплывает и не мешает. Вариант положения — значение
         атрибута: "" сверху, "top-start"/"top-end" сверху у левого/правого края кнопки, "bottom-end"
         снизу к правому краю, "left" слева, "right" справа.
         Задача 074: материал как у остальных элементов сайта — поверхность карточек, тонкая рамка
         цвета разделителей, мягкая тень в тон фону (без тёмного блока и светлого ореола). Кнопки, стоящие в
         ряд (шапка), — только "bottom-end": подсказка сбоку закрыла бы соседнюю кнопку. */
      :where([data-tip]) {
        position: relative;
      }
      [data-tip]::after {
        content: attr(aria-label);
        position: absolute;
        z-index: 400;
        left: 50%;
        bottom: calc(100% + 8px);
        padding: var(--space-4);
        /* рамка тоньше по контрасту, чем у кнопок: подсказка второстепенна, отделяет её тень */
        border: 1px solid var(--line);
        border-radius: 4px;
        background: color-mix(in srgb, var(--surface) 88%, var(--bg));
        color: var(--ink);
        font: 600 var(--fs-2xs) / 1.3 var(--font-body);
        letter-spacing: 0.02em;
        text-transform: none;
        white-space: nowrap;
        box-shadow: var(--tip-shadow);
        pointer-events: none;
        opacity: 0;
        transform: translate(-50%, 4px);
        /* уход быстрее появления */
        transition:
          opacity 0.12s ease-in,
          transform 0.12s ease-in;
      }
      [data-tip='bottom-end']::after {
        left: auto;
        right: 0;
        bottom: auto;
        top: calc(100% + 8px);
        transform: translateY(-4px);
      }
      /* над кнопкой, прижато к её краю — для кнопок у края карточки/экрана (задача 074): по центру
         подсказка вылезала за край модалки и обрезалась */
      [data-tip='top-start']::after {
        transform: translateY(4px);
        left: 0;
      }
      [data-tip='top-end']::after {
        transform: translateY(4px);
        left: auto;
        right: 0;
      }
      [data-tip='left']::after {
        left: auto;
        right: calc(100% + 8px);
        bottom: 50%;
        transform: translate(4px, 50%);
      }
      [data-tip='right']::after {
        left: calc(100% + 8px);
        bottom: 50%;
        transform: translate(-4px, 50%);
      }
      @media (hover: hover) and (pointer: fine) {
        [data-tip]:hover::after {
          opacity: 1;
          transform: translate(-50%, 0);
          transition:
            opacity 0.2s var(--ease) 0.35s,
            transform 0.2s var(--ease) 0.35s;
        }
        [data-tip='bottom-end']:hover::after,
        [data-tip='top-start']:hover::after,
        [data-tip='top-end']:hover::after {
          transform: none;
        }
        [data-tip='left']:hover::after,
        [data-tip='right']:hover::after {
          transform: translate(0, 50%);
        }
      }
      [data-tip]:focus-visible::after {
        opacity: 1;
        transform: translate(-50%, 0);
      }
      [data-tip='bottom-end']:focus-visible::after,
      [data-tip='top-start']:focus-visible::after,
      [data-tip='top-end']:focus-visible::after {
        transform: none;
      }
      [data-tip='left']:focus-visible::after,
      [data-tip='right']:focus-visible::after {
        transform: translate(0, 50%);
      }
      @media (prefers-reduced-motion: reduce) {
        [data-tip]::after {
          transition: none;
        }
      }
      /* Long material tags used to exceed the filter body's available width. */
      #filterDrawer .drawer-panel,
      #filterDrawerBody,
      .filter-group,
      .filter-chips {
        min-width: 0;
      }
      #filterDrawerBody .pill {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
      }
      #filterDrawerBody .price-range input {
        min-width: 0;
      }
      #filterDrawerBody {
        min-width: 0;
      }
      #filterDrawer .drawer-head {
        gap: var(--space-6);
      }
      #filterDrawer .drawer-head h3 {
        min-width: 0;
      }
      #filterDrawer .drawer-head .modal-close {
        position: static;
        flex: none;
      }
      #catalog {
        --motion-fast: 140ms;
        --motion-state: 260ms;
        --motion-layout: 360ms;
        --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
      }
      #filterDrawer .drawer-panel {
        transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
      }
      #filterDrawer:not(.open) .drawer-panel {
        transition-duration: 200ms;
      }
      #filterDrawer .drawer-backdrop {
        background: var(--color-43);
        backdrop-filter: none;
        transition: opacity 220ms ease;
      }
      #catalog .swatch img.photo,
      #catalog .card:hover .fabric {
        transition-duration: var(--motion-layout);
        transition-timing-function: var(--motion-ease);
      }
      #catalog .swatch img.photo-alt {
        transition: opacity var(--motion-state) var(--motion-ease);
      }
      .photo-outgoing {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
      }
      @media (prefers-reduced-motion: reduce) {
        #filterDrawer .drawer-panel {
          transform: none;
          transition: none;
        }
        #catalog .card:hover .swatch img.photo,
        #catalog .card:hover .fabric {
          transform: none;
        }
        #catalog .swatch img.photo,
        #catalog .fabric,
        #catalog .card:hover .fabric {
          transition: none;
        }
      }
      #filterDrawer .drawer-foot {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
      }
      .filter-actions {
        display: flex;
        align-items: center;
        gap: var(--space-2);
      }
      #filterDrawer .filter-actions .btn {
        flex: 1;
        min-width: 0;
        width: auto;
      }
      #filtersReset {
        flex: none;
        min-height: 44px;
        margin: var(--space-8);
        padding: var(--space-70);
        border: 0;
        background: transparent;
        color: var(--ink-soft);
        font: inherit;
        font-size: var(--fs-xs);
        cursor: pointer;
      }
      #filtersReset:hover:not(:disabled) {
        color: var(--ink);
      }
      #filtersReset:disabled {
        color: var(--ink-faint);
        cursor: default;
      }
      #filterDrawerBody [data-group='category'] {
        row-gap: var(--space-11);
      }
      #filterDrawerBody .pill {
        min-height: 44px;
      }
      @media (max-width: 1023px) {
        #filterDrawer {
          width: var(--filter-viewport-width, 100vw);
        }
        #filterDrawer .filter-result {
          display: none;
        }
      }
      @media (max-width: 399px) {
        .filter-actions {
          flex-direction: column;
          align-items: stretch;
          gap: var(--space-11);
        }
        #filterDrawer .filter-actions .btn {
          flex: none;
          width: 100%;
        }
      }
      @media (min-width: 1024px) {
        #filterDrawer {
          pointer-events: none;
        }
        #filterDrawer .drawer-panel {
          width: min(360px, 32vw);
          pointer-events: auto;
          box-shadow: 16px 0 48px -36px var(--color-44);
        }
        #filterDrawer .drawer-backdrop {
          pointer-events: none;
          background: var(--color-45);
        }
      }
      .cart-page[hidden],
      .cart-mobile-cta[hidden] {
        display: none;
      }
      body.cart-route #shopMain,
      html.cart-route #shopMain {
        display: none;
      }
      html.cart-route #cartPage[hidden] {
        display: block;
      }
      .cart-page {
        max-width: 1280px;
        margin: var(--space-45);
        padding: var(--space-71);
        min-height: 70vh;
      }
      .cart-back {
        display: inline-flex;
        align-items: center;
        gap: var(--space-3);
        min-height: 44px;
        color: var(--ink);
        font-size: var(--fs-sm);
        text-decoration: none;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
      }
      .cart-back svg {
        width: 18px;
        height: 18px;
        flex: none;
      }
      .cart-back:is(:hover, :focus-visible) span {
        text-decoration: underline;
      }
      .cart-heading {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: var(--space-16);
        margin: var(--space-72);
      }
      .cart-heading #cartTitle {
        font-size: var(--font-27);
        font-weight: 500;
        line-height: 1.2;
      }
      #cartPageCount {
        color: var(--ink-faint);
        font-size: var(--fs-sm);
      }
      .cart-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
        gap: var(--space-73);
        align-items: start;
      }
      .cart-layout > * {
        min-width: 0;
      }
      .cart-layout > section {
        padding: var(--space-8);
      }
      .cart-page:not([hidden]):has(.cart-empty-state) {
        display: flex;
        flex-direction: column;
      }
      .cart-page:has(.cart-empty-state) .cart-back {
        align-self: flex-start;
      }
      .cart-layout:has(.cart-empty-state) {
        flex: 1;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-8);
        align-items: center;
      }
      .cart-page:has(.cart-empty-state) .cart-heading {
        display: none;
      }
      .cart-empty-state {
        padding: var(--space-74);
        color: var(--ink);
      }
      .cart-empty-state :is(h1, h2) {
        font-size: var(--font-28);
        font-weight: 500;
        margin-bottom: var(--space-2);
      }
      .cart-empty-state p {
        color: var(--ink-soft);
        margin-bottom: var(--space-49);
      }
      .cart-empty-state .btn {
        min-height: 44px;
        justify-content: center;
        max-width: 100%;
      }
      .cart-summary {
        position: sticky;
        top: 110px;
        padding: var(--space-51);
        border: 1px solid var(--line-strong);
        background: var(--bg-alt);
      }
      .cart-summary:empty {
        display: none;
      }
      .cart-summary .btn {
        width: 100%;
        justify-content: center;
      }
      .cart-summary .totals {
        margin-top: var(--space-8);
        border-top: 0;
        padding-top: var(--space-8);
        margin-bottom: var(--space-17);
      }
      .cart-summary h3 {
        font-size: var(--fs-lg);
        margin-bottom: var(--space-17);
      }
      .cart-summary .foot-total {
        border-top: 1px solid var(--line-strong);
        padding-top: var(--space-17);
        flex-wrap: wrap;
      }
      .cart-summary .t-note {
        color: var(--ink-soft);
      }
      .cart-summary .btn {
        min-height: 52px;
      }
      .cart-summary .cart-agree {
        display: block;
        width: 100%;
        min-height: 44px;
        margin-top: var(--space-2);
        text-align: center;
        line-height: 1.5;
        text-decoration: underline;
        text-underline-offset: 4px;
      }
      .cart-page .ci {
        gap: var(--space-16);
        padding: var(--space-75);
      }
      .cart-page .ci-thumb {
        width: 140px;
        height: 180px;
      }
      .cart-page .ci-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .cart-page .ci-info h4 {
        font-size: var(--fs-md);
        font-weight: 500;
      }
      .cart-page .ci-bottom {
        flex-wrap: wrap;
        gap: var(--space-2);
      }
      .cart-page .ci-price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-end;
        gap: var(--space-30);
      }
      .cart-page .block-label {
        margin: var(--space-61);
        font-size: var(--fs-md);
        font-weight: 500;
        letter-spacing: normal;
        text-transform: none;
        color: var(--ink);
      }
      .cart-page .block-label:first-child {
        margin-top: var(--space-8);
      }
      .cart-size {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: fit-content;
        gap: var(--space-3);
        color: var(--ink-soft);
        font-size: var(--fs-xs);
        margin-top: var(--space-3);
      }
      .cart-size-select {
        display: inline-grid;
        position: relative;
        flex: none;
      }
      .cart-size-select::before {
        content: attr(data-value);
        grid-area: 1 / 1;
        visibility: hidden;
        white-space: nowrap;
        padding: 0 36px 0 12px;
      }
      .cart-size-select select {
        grid-area: 1 / 1;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: var(--space-3) 28px var(--space-3) var(--space-3);
        background: var(--bg);
        color: var(--ink);
        font: inherit;
        cursor: pointer;
        text-align: center;
        appearance: none;
        transition:
          border-color 240ms ease,
          background-color 240ms ease;
      }
      .cart-size-select > svg {
        position: absolute;
        inset-inline-end: 8px;
        inset-block-start: 50%;
        width: 16px;
        height: 16px;
        transform: translateY(-50%);
        color: var(--ink-soft);
        pointer-events: none;
        transition: transform 200ms ease;
      }
      .cart-size-select:has(> select:open) > svg {
        transform: translateY(-50%) rotate(180deg);
      }
      .cart-size-select select:hover {
        border-color: var(--ink-soft);
      }
      /* Native select semantics, with an animated branded picker where supported. */
      @supports (appearance: base-select) {
        .cart-size-select select,
        .cart-size-select select::picker(select) {
          appearance: base-select;
        }
        .cart-size-select select {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          gap: var(--space-3);
        }
        .cart-size-select select::picker-icon {
          display: none;
        }
        .cart-size-select select::picker(select) {
          box-sizing: border-box;
          width: max-content;
          min-width: anchor-size(width);
          max-width: min(280px, 100% - 16px);
          max-height: min(280px, 100% - 8px);
          position-area: block-end span-all;
          position-try-fallbacks: flip-block;
          position-try-order: most-height;
          margin-block: 4px;
          margin-inline: 0;
          justify-self: start;
          inset-inline: 8px;
          justify-self: anchor-center;
          overflow-y: auto;
          scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
          scrollbar-width: thin;
          border: 1px solid var(--line);
          border-radius: 8px;
          background: var(--bg);
          color: var(--ink);
          padding: var(--space-11);
          opacity: 0;
          transition:
            opacity 200ms ease,
            display 200ms allow-discrete,
            overlay 200ms allow-discrete;
        }
        .cart-size-select select::picker(select):popover-open {
          opacity: 1;
        }
        @starting-style {
          .cart-size-select select::picker(select):popover-open {
            opacity: 0;
          }
        }
        .cart-size-select select option {
          min-height: 44px;
          padding: var(--space-3);
          border-radius: 6px;
          display: flex;
          justify-content: space-between;
          text-align: start;
          white-space: normal;
          overflow-wrap: anywhere;
          cursor: pointer;
          transition: background-color 160ms ease;
        }
        .cart-size-select select::picker(select)::-webkit-scrollbar {
          width: 6px;
        }
        .cart-size-select select::picker(select)::-webkit-scrollbar-track {
          background: var(--scrollbar-track);
          border-radius: 999px;
        }
        .cart-size-select select::picker(select)::-webkit-scrollbar-thumb {
          background: var(--scrollbar-thumb);
          border-radius: 999px;
        }
        .cart-size-select select::picker(select)::-webkit-scrollbar-thumb:hover {
          background: var(--scrollbar-hover);
        }
        .cart-size-select select option:is(:hover, :focus, :checked) {
          background: var(--bg-alt);
        }
        .cart-size-select select option::checkmark {
          order: 1;
          color: var(--accent);
        }
      }
      .cart-page :is(select, button, input):focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
      }
      .cart-recipient {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-36);
      }
      .recipient-required-notice {
        margin: 12px 0 0;
        padding: 10px 14px;
        border: 1px solid var(--line);
        border-inline-start: 3px solid var(--accent);
        border-radius: 8px;
        background: var(--surface);
        color: var(--ink);
        font-family: var(--font-body);
        font-size: var(--fs-sm);
        line-height: 1.45;
        overflow-wrap: anywhere;
      }
      .recipient-required-notice > p { margin: 0; }
      .recipient-required-warning { font-weight: 600; }
      .recipient-required-warning:not([hidden]) + p { margin-top: 8px; }
      .cart-recipient .field {
        margin-top: var(--space-8);
        min-width: 0;
        scroll-margin-block: 120px;
      }
      .cart-recipient :is([data-f='addr'], [data-f='note'], .field-check, .checkout-docs) {
        grid-column: 1 / -1;
      }
      .cart-page .dlv label {
        flex-wrap: wrap;
        align-items: center;
        padding: var(--space-62);
        min-height: 60px;
        transition:
          border-color 280ms ease,
          background-color 280ms ease;
      }
      .cart-page .dlv input {
        cursor: pointer;
        margin: var(--space-8);
      }
      .cart-page .dlv label:focus-within {
        border-color: var(--accent);
      }
      .cart-page .dlv .dlv-price {
        padding-left: var(--space-8);
      }
      .cart-page .dlv label > span:not(.dlv-price) {
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
      }
      .cart-page .field input,
      .cart-page .field textarea {
        min-width: 0;
        max-width: 100%;
      }
      .cart-page .next-steps {
        padding: var(--space-63);
        background: transparent;
        border-top: 1px solid var(--line);
        line-height: 1.6;
      }
      @media (prefers-reduced-motion: reduce) {
        .cart-page :is(select, .dlv label, button, .cart-back, .cart-back svg, .cart-size-select > svg) {
          transition: none;
        }
        .cart-size-select select::picker(select),
        .cart-size-select select option {
          transition: none;
        }
      }
      @media (min-width: 1024px) and (max-height: 720px) {
        .cart-summary {
          position: static;
        }
      }
      #drawer .drawer-panel {
        width: min(390px, 100%);
      }
      #miniCartBody .ci-bottom {
        flex-wrap: wrap;
      }
      #miniCartBody .ci-info {
        overflow-wrap: anywhere;
      }
      #miniCartFoot .foot-total {
        font-size: var(--fs-sm);
      }
      .cart-mobile-cta {
        display: none;
      }
      @media (min-width: 768px) and (max-width: 1023px) {
        .cart-layout {
          grid-template-columns: minmax(0, 1fr);
          gap: var(--space-64);
        }
        .cart-summary {
          position: static;
        }
      }
      @media (max-width: 767px) {
        .cart-page {
          padding: var(--space-65);
        }
        .cart-layout {
          grid-template-columns: minmax(0, 1fr);
          gap: var(--space-64);
        }
        .cart-summary {
          position: static;
          padding: var(--space-16);
        }
        .cart-page .ci {
          display: grid;
          grid-template-columns: 80px minmax(0, 1fr) 44px;
          gap: var(--space-2);
        }
        .cart-page .ci-thumb {
          width: 80px;
          height: 104px;
          grid-row: 1 / 3;
        }
        .cart-page .ci-info {
          display: contents;
        }
        .cart-page .ci-info h4,
        .cart-page .cart-size {
          grid-column: 2;
        }
        .cart-page .ci-info h4 {
          font-size: var(--fs-base);
        }
        .cart-page .cart-size {
          margin-top: var(--space-8);
        }
        .cart-page .ci-bottom {
          grid-column: 1 / -1;
          margin-top: var(--space-8);
        }
        .cart-page .ci-del {
          grid-column: 3;
          grid-row: 1;
          padding: var(--space-6);
        }
        .cart-recipient {
          grid-template-columns: minmax(0, 1fr);
        }
        body.cart-route:has(.cart-mobile-cta:not([hidden])) footer {
          padding-bottom: var(--cart-mobile-cta-height, 140px);
        }
        body.cart-route:has(.cart-mobile-cta:not([hidden])) #checkout { display: none; }
        .cart-summary .t-row { margin-block: var(--space-2); }
        .cart-mobile-cta {
          position: fixed;
          bottom: 0;
          left: 0;
          right: 0;
          z-index: 90;
          display: grid;
          grid-template-columns: minmax(0, 1fr) auto;
          align-items: center;
          justify-content: space-between;
          gap: var(--space-3);
          padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
          background: var(--bg);
          border-top: 1px solid var(--line-strong);
        }
        .cart-mobile-cta .btn {
          grid-column: 1 / -1;
          width: 100%;
          text-align: center;
        }
        #cartMobileTotalLabel {
          font-size: var(--fs-sm);
        }
        #cartMobileTotal {
          font-size: var(--fs-lg);
          font-variant-numeric: tabular-nums;
        }
      }/* Каталог: быстрые категории, отдельные от подробных фильтров. */ .category-pages { display: flex;
flex: 1 1 auto; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; margin: 0; overflow:
hidden; } .category-pages.is-empty { display: none; } .category-pages a { display: inline-flex;
flex: none; min-height: 48px; align-items: center; padding: 8px 16px; border: 1px solid var(--line);
border-radius: var(--radius-full); background: var(--color-102); color: var(--ink-soft); font-size:
var(--fs-sm); line-height: 1.25; text-decoration: none; white-space: nowrap; transition: color 0.3s,
border-color 0.3s, background 0.3s; } .category-pages a:hover:not([aria-current='page']) {
border-color: var(--ink); color: var(--ink); } .category-pages a[aria-current='page'] {
border-color: var(--ink); background: var(--ink); color: var(--bg); } .category-pages
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.catalog-guidance-toggle:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.sort-trigger { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
border-color: var(--line-strong); border-radius: 8px; background: var(--color-102); transition:
border-color 0.3s, background 0.3s, color 0.3s; } #catalogSortValue { grid-column: 2; min-width: 0;
justify-self: center; text-align: center; max-width: 100%; position: relative; inset-inline-start: -6px; }
.sort-trigger:hover, .sort-trigger:focus-visible,
.sort-trigger[aria-expanded='true'] { border-color: var(--gold-text); color: var(--gold-text);
background: color-mix(in srgb, var(--gold-text) 9%, var(--color-102)); box-shadow: 0 0 0 2px
color-mix(in srgb, var(--gold-text) 18%, transparent); } .sort-trigger svg
{ grid-column: 3; justify-self: end; transition: transform 0.2s var(--ease); } .catalog-guidance {
display: grid; gap: 10px; margin: -2px 0 18px; color: var(--ink-soft); font-size: var(--fs-sm);
line-height: 1.45; } .catalog-guidance-head { display: flex; align-items: center; justify-content:
space-between; flex-wrap: wrap; gap: 4px 12px; } .catalog-guidance-head > span:first-child { flex: 1
1 25rem; min-width: 0; } .catalog-guidance-toggle { display: inline-flex; align-items: center; flex:
none; min-height: 40px; gap: 9px; padding: 0; border: 0; background: transparent; font: inherit;
color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
transition: color 0.2s var(--ease); } .catalog-guidance-toggle:hover { color: var(--gold-text); }
.catalog-guidance-toggle:hover .catalog-guidance-screw { border-color: var(--gold-text); color:
var(--gold-text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-text) 12%, transparent); }
.sort-menu [role='option']:hover, .sort-menu .is-focused, .sort-menu [aria-selected='true'] {
background: color-mix(in srgb, var(--gold-text) 14%, var(--bg-alt)); color: var(--gold-text);
box-shadow: inset 3px 0 var(--gold-text); }
.sort-menu [aria-selected='true'] { background: color-mix(in srgb, var(--gold-text) 23%, var(--bg-alt));
font-weight: 600; outline: 1px solid color-mix(in srgb, var(--gold-text) 38%, transparent);
outline-offset: -1px; }
.catalog-guidance-screw { display: inline-grid; width: 20px; height: 20px; place-items: center;
border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); transition:
border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.catalog-guidance-screw-head { position: relative; display: block; width: 10px; height: 10px;
font-size: 0; line-height: 0; transform: rotate(0deg); transform-origin: center; }
.catalog-guidance-screw-head::before, .catalog-guidance-screw-head::after { position: absolute; top:
50%; left: 50%; display: block; border-radius: 1px; background: currentColor; content: '';
transition: width 0.2s var(--ease), height 0.2s var(--ease); transform: translate(-50%, -50%); }
.catalog-guidance-screw-head::before { width: 10px; height: 1px; }
.catalog-guidance-screw-head::after { width: 1px; height: 10px; }
.catalog-guidance-toggle:hover .catalog-guidance-screw-head::before,
.catalog-guidance-toggle:focus-visible .catalog-guidance-screw-head::before,
.catalog-guidance-toggle[aria-expanded='true'] .catalog-guidance-screw-head::before { height: 1.8px; }
.catalog-guidance-toggle:hover .catalog-guidance-screw-head::after,
.catalog-guidance-toggle:focus-visible .catalog-guidance-screw-head::after,
.catalog-guidance-toggle[aria-expanded='true'] .catalog-guidance-screw-head::after { width: 1.8px; }
.catalog-guidance-panel
{ overflow: hidden; border-radius: 0 10px 10px 0; } .catalog-guidance-panel-inner { max-width:
760px; padding: 12px 16px; border-left: 2px solid var(--accent); background: color-mix(in srgb,
var(--bg) 94%, var(--ink)); } .catalog-guidance-panel p { max-width: 680px; margin: 0; color:
var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; }
@media (min-width: 768px) {
  .cat-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'aud aud' 'sort controls';
    align-items: center;
    gap: 12px 16px;
    padding: 12px;
  }
  .cat-audience-row {
    grid-area: aud;
    min-width: 0;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    border: 0;
  }
  .cat-audience-row .aud-chips .pill {
    min-height: 48px;
    padding-inline: 16px;
    font-size: var(--fs-base);
  }
  .cat-audience-row .aud-chips { flex: none; }
  .cat-tools { display: contents; }
  .cat-tools .sort-toggle {
    grid-area: sort;
    min-width: 0;
    justify-self: start;
    padding: 0;
  }
  .cat-filter-row {
    display: flex;
    grid-area: controls;
    align-items: center;
    justify-self: end;
    gap: 8px;
  }
  .sort-toggle { gap: 12px; }
  .sort-trigger { min-height: 48px; padding-inline: 16px; }
}
@media (min-width: 1200px) {
  .cat-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: 'aud sort view filter';
  }
  .cat-filter-row { display: contents; }
  .cat-filter-row .view-toggle { grid-area: view; justify-self: end; }
  .cat-filter-row .filters-btn { grid-area: filter; justify-self: end; }
}
@media (max-width: 767px) { .cat-audience-row .aud-chips { gap: 8px; }
.cat-audience-row .aud-chips .pill { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
.category-pages { display: none; } .catalog-guidance { margin-bottom: var(--space-30); font-size:
var(--fs-xs); } .catalog-guidance-toggle {
min-height: 36px; } .catalog-guidance-panel-inner { padding: 10px 12px; } } @media (max-width:
360px) { .cat-audience-row .aud-chips .pill { padding-inline: 8px; font-size: 12px; } } @media
(prefers-reduced-motion: reduce) { .category-pages a, .catalog-guidance-toggle,
.catalog-guidance-toggle .catalog-guidance-screw-head,
.catalog-guidance-toggle .catalog-guidance-screw-head::before,
.catalog-guidance-toggle .catalog-guidance-screw-head::after { transition: none; animation: none; } }
/* Витрина: общая палитра и типографика приходят из design-tokens.css. */
.catalog-search[hidden] {
  display: none;
}
@media (min-width: 761px) {
  #modal {
    --product-close-offset: 14px;
    --product-close-size: 44px;
  }
  #modal .modal-close {
    top: var(--product-close-offset);
    right: var(--product-close-offset);
    width: var(--product-close-size);
    height: var(--product-close-size);
  }
  #modal .modal-body {
    /* Прокручиваемая область начинается ниже фиксированной кнопки закрытия. */
    padding-top: calc(var(--product-close-offset) + var(--product-close-size) + var(--space-3));
  }
}
.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 2fr);
  align-items: center;
  column-gap: var(--space-16);
  margin-bottom: var(--space-37);
  padding: var(--space-36);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.catalog-search > label {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: var(--font-15);
}
.catalog-search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding-left: var(--space-2);
  background: var(--surface);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.catalog-search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.catalog-search-field > svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
}
.catalog-search-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: var(--space-2);
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: var(--font-1);
  appearance: none;
}
.catalog-search-field input::-webkit-search-cancel-button {
  appearance: none;
}
.catalog-search-field input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.catalog-search-field input:disabled {
  cursor: wait;
  opacity: 0.65;
}
.catalog-search-field button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: var(--space-47);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.catalog-search-field button[hidden] {
  display: none;
}
.catalog-search-field button svg {
  width: 20px;
  height: 20px;
}
.catalog-search-field button:hover {
  background: var(--bg-alt);
  color: var(--accent);
}
.catalog-search-field button:active {
  background: var(--line);
}
.catalog-search-field button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.catalog-search-field button:disabled {
  opacity: 0.5;
  cursor: default;
}
#catalogSearchHint {
  grid-column: 2;
  margin: var(--space-43);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.catalog-guidance-panel-inner {
  max-width: none;
}
.catalog-guidance-toggle {
  min-height: 44px;
}
.shopping-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: shopping-step;
}
.shopping-steps li {
  counter-increment: shopping-step;
}
.shopping-steps strong {
  display: block;
  margin-bottom: var(--space-11);
  color: var(--ink);
}
.shopping-steps strong::before {
  content: counter(shopping-step) '. ';
  color: var(--accent);
}
.cat-state [data-clear-search] {
  margin: var(--space-3);
}
:root {
  --scrollbar-thumb: var(--ink-soft);
  --scrollbar-track: var(--bg);
  --scrollbar-hover: var(--ink);
  --scrollbar-active: var(--accent);
}
* {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}
*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-active);
}
/* Only the page scrollbar is hidden; panels keep their visible scroll affordance. */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }
  html {
    scrollbar-width: auto;
    scrollbar-gutter: stable;
  }
  html::-webkit-scrollbar {
    display: revert;
    width: revert;
    height: revert;
  }
}
@media (max-width: 600px) {
  .catalog-search {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }
  #catalogSearchHint {
    grid-column: 1;
    margin: 0;
  }
  .shopping-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-search-field {
    transition: none;
  }
}
/* Story disclosure and marquee controls share the existing storefront palette. */
.about-quote .about-quote-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-style: normal;
  color: var(--ink);
  line-height: 1.45;
}
.about-quote-more {
  margin-top: var(--space-16);
}
.about-quote-more summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  padding-block: var(--space-3);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.8;
  cursor: pointer;
  list-style: none;
}
.about-quote-more summary::-webkit-details-marker {
  display: none;
}
.about-quote-more summary::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: calc(100% - 29px);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.about-quote-more summary:hover {
  color: var(--accent);
}
.about-quote-more summary:hover::after {
  transform: scaleX(1);
}
.about-quote-more summary svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.about-quote-collapse,
.about-quote-more[open] .about-quote-expand {
  display: none;
}
.about-quote-more[open] .about-quote-collapse {
  display: inline;
}
.about-quote-more[open] summary svg {
  transform: rotate(180deg);
}
.about-quote-more summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.about-quote-more p {
  padding-bottom: var(--space-3);
}
/* Native disclosure remains usable without scripts or support for this enhancement. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .about-quote-more {
    interpolate-size: allow-keywords;
  }
  .about-quote-more::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      block-size 0.6s var(--ease),
      opacity 0.4s ease,
      transform 0.5s var(--ease),
      content-visibility 0.6s allow-discrete;
  }
  .about-quote-more[open]::details-content {
    block-size: auto;
    opacity: 1;
    transform: translateY(0);
  }
}
.marquee-window {
  overflow: hidden;
}
.marquee.has-controls .marquee-window {
  margin-right: 72px;
}
.marquee-pause {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--panel-text);
  opacity: 0.8;
  cursor: pointer;
}
.marquee-pause svg {
  width: 20px;
  height: 20px;
}
.marquee-pause:hover:not(:disabled) {
  opacity: 1;
  background: color-mix(in srgb, var(--panel-text) 8%, transparent);
}
.marquee-pause:focus-visible {
  outline: 2px solid var(--panel-text);
  outline-offset: 3px;
}
.marquee-pause:disabled {
  cursor: default;
  opacity: 0.45;
}
html:not(.js) .marquee-track {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .about-quote-more summary::after,
  .about-quote-more summary svg,
  .about-quote-more::details-content {
    transition: none;
  }
  .marquee-track {
    animation: none !important;
  }
}
@media (forced-colors: active) {
  .marquee-pause {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}
      /* Отзывы: одна страница карточек, без горизонтальной полосы прокрутки. */
      #testimonials .sec-head {
        display: grid;
        max-width: none;
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: end;
        gap: 2rem;
        margin-bottom: 2.5rem;
      }
      #testimonials .sec-head h2 { max-width: 25ch; }
      #testimonials .sec-head p { margin: 0; max-width: 35ch; }
      .test-stage {
        position: relative;
        perspective: 1600px;
        touch-action: pan-y pinch-zoom;
        overflow: clip;
      }
      .test-grid {
        --test-columns: 1;
        display: grid;
        grid-template-columns: repeat(var(--test-columns), minmax(0, 1fr));
        gap: 1.25rem;
      }
      .test-card {
        grid-row: 1;
        min-width: 0;
        margin: 0;
        padding: clamp(1.25rem, 2.5vw, 2rem);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        background: var(--bg);
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        overflow-wrap: anywhere;
      }
      /* Скрытые карточки резервируют высоту самого длинного отзыва.
         Текст остаётся доступным при увеличении шрифта, без скачков при смене страницы. */
      .test-card[aria-hidden='true'] { visibility: hidden; pointer-events: none; }
      .test-quote {
        font: italic 2.4rem / 0.8 var(--font-heading);
        color: var(--accent);
      }
      .test-text { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; flex: 1; }
      .test-who { border-top: 1px solid var(--line); padding-top: 1rem; }
      .test-who b { display: block; color: var(--ink); font-size: 0.94rem; }
      .test-who span { color: var(--ink-faint); font-size: 0.86rem; }
      .test-read {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: var(--accent);
        font-size: 0.94rem;
        text-underline-offset: 5px;
      }
      .test-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.75rem; }
      .test-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 0.75rem; width: 16rem; max-width: 100%; }
      .test-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
      .test-arrow {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid var(--accent);
        border-radius: 50%;
        background: transparent;
        color: var(--accent);
        cursor: pointer;
      }
      .test-arrow svg { width: 20px; height: 20px; }
      .test-arrow:disabled { opacity: 0.35; cursor: default; }
      .test-arrow { transition: background-color 180ms, color 180ms; }
      .test-all::before { background: var(--accent-deep); }
      .test-all:focus-visible::before { transform: none; }
      @media (hover: hover) {
        .test-all:hover::before { transform: none; }
        .test-arrow:hover { background: var(--accent); color: var(--on-accent); }
        .test-read:hover { color: var(--ink); }
      }
      @media (prefers-reduced-motion: reduce) {
        .test-arrow, .test-all, .test-all::before { transition: none; }
      }
      .test-count { text-align: center; color: var(--ink-soft); font-size: 0.94rem; font-variant-numeric: tabular-nums; }
      .test-progress { grid-column: 1 / -1; display: flex; gap: 5px; }
      .test-progress span { height: 2px; flex: 1; background: var(--line-strong); }
      .test-progress .is-current { background: var(--accent); }
      .test-all { justify-content: center; min-height: 48px; background: var(--accent); color: var(--on-accent); white-space: normal; text-align: center; }
      .test-outgoing { position: absolute; inset: 0; pointer-events: none; }
      @media (min-width: 700px) { .test-grid { --test-columns: 2; } }
      @media (min-width: 1024px) { .test-grid { --test-columns: 3; } }
      @media (max-width: 699px) {
        #testimonials { padding-bottom: calc(var(--space-173) + 32px); }
        #testimonials .sec-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
        .test-footer { flex-direction: column; align-items: stretch; gap: 40px; }
        .test-navigation { align-self: center; }
        .test-all { width: 100%; }
      }
/* The icon shows the current sky. The accessible name describes the next theme. */
.theme-sky {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  overflow: hidden;
  pointer-events: none;
}
.theme-btn .theme-sky svg {
  position: absolute;
  top: 3px;
  left: 3px;
  transform-origin: 50% 30px;
}
.theme-sky .i-sun {
  transform: rotate(0deg);
  opacity: 1;
}
.theme-sky .i-moon {
  transform: rotate(100deg);
  opacity: 0;
}
.theme-btn[data-theme-icon='dark'] .i-sun,
:root[data-theme='dark'] .theme-btn:not([data-theme-icon]) .i-sun {
  transform: rotate(-100deg);
  opacity: 0;
}
.theme-btn[data-theme-icon='dark'] .i-moon,
:root[data-theme='dark'] .theme-btn:not([data-theme-icon]) .i-moon {
  transform: rotate(0deg);
  opacity: 1;
}
/* Initial/system preference is rendered without an entrance animation. */
.theme-btn.theme-motion .theme-sky svg {
  transition:
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 250ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .theme-btn.theme-motion .theme-sky svg {
    transition: none !important;
  }
}
