/* ===== Базовые переменные ===== */
:root {
  --c-red: #c8102e;
  --c-navy: #1e2a4a;
  --c-ink: #111;
  --c-muted: #6b6b6b;
  --c-line: #e6e6e6;
  --c-bg: #fff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --header-h: 72px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
/* Блокировка прокрутки под корзиной, избранным, аккаунтом, меню, быстрым просмотром.
   Полоса прокрутки при этом пропадает — отступ справа на её ширину (--sbw, считает main.js),
   чтобы страница не сдвигалась вбок. */
body.is-locked { overflow: hidden; padding-right: var(--sbw, 0px); }

/* ===== Анонс-бар ===== */
.announce {
  background: var(--c-ink);
  color: #fff;
  font-size: 13px;
}
.announce__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--gutter);
}
/* Сообщения сменяют друг друга снизу вверх */
.announce__rotator {
  display: grid;
  overflow: hidden;
  padding: 2px 0;
}
.announce__text {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.announce__text.is-active { opacity: 1; transform: none; }
.announce__text.is-leaving { opacity: 0; transform: translateY(-100%); }
.announce__text:not(.is-active) { pointer-events: none; }
.announce__text a { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.announce__side {
  position: absolute;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}
.announce__link { opacity: .8; transition: opacity .2s; }
@media (hover: hover) and (pointer: fine) {
.announce__link:hover { opacity: 1; }
}
/* Переключатель языка: выпадающий список — assets/css/wp.css */

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s, transform .45s var(--ease);
}
.header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .06); }
.header.is-hidden { transform: translateY(-100%); box-shadow: none; }

/* Появление шапки при загрузке */
.header__inner > * { animation: rise .7s var(--ease) backwards; }
.header__inner > :nth-child(2) { animation-delay: .05s; }
.header__inner > :nth-child(3) { animation-delay: .1s; }
.header__inner > :nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }
/* Логотип и сразу за ним меню — слева, иконки справа.
   На планшете и телефоне: бургер слева, логотип по центру (см. @media 1024px) */
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  gap: 32px;
}
.header__inner > .logo { grid-column: 1; grid-row: 1; justify-self: start; }
.header__inner > .nav { grid-column: 2; grid-row: 1; justify-self: start; }
.header__inner > .header__burger { grid-column: 1; grid-row: 1; justify-self: start; }
.header__inner > .header__actions { grid-column: 3; grid-row: 1; justify-self: end; }

/* Логотип */
.logo { display: inline-flex; flex-shrink: 0; }
.logo__img { display: block; height: 44px; width: auto; }
.logo__img--sm { height: 36px; }
.logo__img--lg { height: 56px; }

/* Навигация */
.nav { align-self: stretch; height: 100%; }
.nav__list { display: flex; height: 100%; gap: 4px; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right; /* уходит вправо */
  transition: transform .45s var(--ease);
}
/* Линия плавно прорисовывается слева направо */
.nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
.nav__item:hover > .nav__link::after { transform: scaleX(1); transform-origin: left; }
}
/* При наведении на меню остальные пункты приглушаются */
.nav__link { transition: opacity .25s; }
@media (hover: hover) and (pointer: fine) {
.nav__list:hover > .nav__item > .nav__link { opacity: .45; }
}
@media (hover: hover) and (pointer: fine) {
.nav__list > .nav__item:hover > .nav__link { opacity: 1; }
}
.nav__link--sale { color: var(--c-red); }

/* Мега-меню */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .08s, .08s, 0s;
}
@media (hover: hover) and (pointer: fine) {
.has-mega:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .08s, .08s, 0s;
}
}
.mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px)) 1fr;
  gap: 40px;
  padding: 36px var(--gutter) 44px;
}
.mega__col { display: flex; flex-direction: column; gap: 12px; }

/* Каскадное появление пунктов мега-меню */
.mega__col > *,
.mega__promo {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .45s var(--ease), color .2s;
}
.has-mega:focus-within .mega__col > *,
.has-mega:focus-within .mega__promo {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 28ms + 90ms), calc(var(--i, 0) * 28ms + 90ms), 0s;
}
@media (hover: hover) and (pointer: fine) {
.has-mega:hover .mega__col > *,
.has-mega:hover .mega__promo {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 28ms + 90ms), calc(var(--i, 0) * 28ms + 90ms), 0s;
}
}
.mega__promo img { transform: scale(1.1); transition: transform 1.2s var(--ease); }
.has-mega:focus-within .mega__promo img { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
.has-mega:hover .mega__promo img { transform: scale(1); }
}
@media (hover: hover) and (pointer: fine) {
.has-mega .mega__promo:hover img { transform: scale(1.04); }
}

/* Затемнение страницы под открытым мега-меню */
@media (hover: hover) and (pointer: fine) {
.header:has(.has-mega:hover) ~ .overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition-delay: .08s, 0s;
}
}
.header.is-hidden ~ .overlay { opacity: 0; visibility: hidden; }
.mega__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.mega__col a { font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
.mega__col a:hover { color: var(--c-red); }
}
.mega__all { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.mega__promo {
  position: relative;
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.mega__promo img { width: 100%; height: 100%; object-fit: cover; }
.mega__promo-text {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.mega__promo-text span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Иконки */
.header__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background .2s;
}
@media (hover: hover) and (pointer: fine) {
.icon-btn:hover { background: #f3f3f3; }
}
.icon-btn:active { transform: scale(.92); }
.icon-btn { transition: background .2s, transform .15s; }

/* Микроанимации иконок при наведении */
@media (hover: hover) and (pointer: fine) {
.icon-btn[data-anim="search"]:hover svg { animation: icon-search .5s var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
.icon-btn[data-anim="heart"]:hover svg { animation: icon-heart .6s ease; }
}
@media (hover: hover) and (pointer: fine) {
.icon-btn[data-anim="user"]:hover svg { animation: icon-user .5s var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
.icon-btn[data-anim="cart"]:hover svg { animation: icon-cart .6s ease; transform-origin: 50% 20%; }
}
@keyframes icon-search { 50% { transform: rotate(-14deg) scale(1.1); } }
@keyframes icon-heart { 25% { transform: scale(1.2); } 50% { transform: scale(.94); } 75% { transform: scale(1.08); } }
@keyframes icon-user { 50% { transform: translateY(-3px); } }
@keyframes icon-cart { 20% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-4deg); } }

/* Логотип */
.logo__img { transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.logo:hover .logo__img { transform: scale(1.04); }
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.header__burger { display: none; }

/* Поиск */
.search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding: 24px var(--gutter) 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.search.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.search__form {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 10px;
}
/* Линия под полем «прорисовывается» при открытии */
.search__form::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease) .1s;
}
.search.is-open .search__form::after { transform: scaleX(1); }
.search__hints > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.search.is-open .search__hints > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 40ms + 200ms);
}
.search__form svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
@media (max-width: 760px) { .search__form > svg { display: none; } }
.search__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 20px;
  background: none;
}
.search__close { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.search__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 820px;
  margin: 16px auto 0;
  font-size: 13px;
}
.search__hints span { color: var(--c-muted); }
/* Живая выдача под строкой поиска */
.search { max-height: calc(100svh - 100%); overflow-y: auto; overscroll-behavior: contain; }
.search__results { max-width: 820px; margin: 24px auto 0; }
/* Синий крестик очистки Chrome/Safari не в стиле сайта; закрыть — кнопкой «Закрыть» */
.search__form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__results[hidden] { display: none; }
.search__count { margin: 0 0 12px; font-size: 13px; color: var(--c-muted); }
.search__empty { margin: 0; font-size: 14px; color: var(--c-muted); }
.search__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.search__item { display: flex; flex-direction: column; gap: 6px; }
.search__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #f6f5f2; transition: filter .3s; }
@media (hover: hover) and (pointer: fine) {
.search__item:hover img { filter: brightness(.95); }
}
.search__item-title { font-size: 13px; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
.search__item:hover .search__item-title { text-decoration: underline; }
}
.search__item-price { font-size: 13px; font-weight: 700; }
.search__item-price s { margin-left: 6px; font-weight: 500; color: var(--c-muted); }
@media (max-width: 640px) {
  .search__results { margin-top: 20px; }
  .search__list { grid-template-columns: 1fr; gap: 0; }
  .search__list li + li { border-top: 1px solid var(--c-line); }
  .search__item { flex-direction: row; align-items: center; gap: 12px; padding: 10px 0; }
  .search__item img { flex: 0 0 60px; width: 60px; }
  .search__item-title { flex: 1; }
  .search__item-price { flex-shrink: 0; text-align: right; }
  .search__item-price s { display: block; margin: 0; }
}
@media (hover: hover) and (pointer: fine) {
.search__hints a:hover { text-decoration: underline; }
}

/* Затемнение */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.overlay.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ===== Мобильное меню ===== */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
}
.drawer__list > li {
  border-bottom: 1px solid var(--c-line);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .3s ease, transform .45s var(--ease);
}
.drawer.is-open .drawer__list > li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 40ms + 120ms);
}
.drawer__list > li > a,
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.acc__btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s;
}
.acc.is-open .acc__btn::after { transform: rotate(-135deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { min-height: 0; overflow: hidden; padding: 0 16px; }
.acc__panel a { display: block; padding: 0 0 14px 12px; font-size: 15px; color: #333; }
.acc__panel a:last-child { padding-bottom: 18px; }
.drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 16px 32px;
  background: #f6f6f6;
  font-size: 14px;
}
.drawer__foot p { margin: 0; color: var(--c-muted); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h) - 40px);
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  background: #ddd;
}
.hero__track, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 0s 1.4s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
/* Фото выше блока на --pmax: запас под параллакс (--py задаётся из JS) */
.hero { --pmax: 120px; background: #111; }
.hero__slide img {
  width: 100%;
  height: calc(100% + var(--pmax));
  margin-top: calc(-1 * var(--pmax));
  object-fit: cover;
  translate: 0 var(--py, 0);
  scale: 1.08;
  transition: scale 10s linear;
}
/* Ken Burns: активный слайд медленно «отъезжает» */
.hero.is-ready .hero__slide.is-active img { scale: 1; }
.hero__bg { position: absolute; left: 0; right: 0; top: 0; }

/* Сплит-слайд: половины «проявляются» снизу вверх */
.hero__slide--split { display: grid; grid-template-columns: 1fr 1fr; }
.hero__half {
  position: relative;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease);
}
.hero__half + .hero__half { transition-delay: .12s; }
.hero.is-ready .hero__slide.is-active .hero__half { clip-path: inset(0); }
.hero__half img { transition: scale 10s linear, transform 1s var(--ease), filter .5s ease; }
@media (hover: hover) and (pointer: fine) {
.hero__half:hover img { transform: scale(1.03); }
}
@media (hover: hover) and (pointer: fine) {
.hero__slide--split:has(.hero__half:hover) .hero__half:not(:hover) img { filter: brightness(.7); }
}

/* Заголовок: слова выезжают из-под маски по очереди */
.hero__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero__word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.hero.is-ready .hero__slide.is-active .hero__word > span {
  transform: none;
  transition: transform 1s var(--ease) calc(var(--i, 0) * 80ms + .35s);
}
.hero__eyebrow, .hero__text, .hero__ctas {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.hero.is-ready .hero__slide.is-active :is(.hero__eyebrow, .hero__text, .hero__ctas) {
  opacity: 1;
  transform: none;
  transition-duration: .7s, .9s;
}
.hero.is-ready .hero__slide.is-active .hero__eyebrow { transition-delay: .2s; }
.hero.is-ready .hero__slide.is-active .hero__text { transition-delay: .6s; }
.hero.is-ready .hero__slide.is-active .hero__ctas { transition-delay: .75s; }
.hero__label { display: none; }

/* Контент */
.hero__content {
  position: absolute;
  z-index: 2;
  color: #fff;
}
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%);
}
.hero__content--center {
  left: 50%;
  bottom: clamp(48px, 9vh, 96px);
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: calc(100% - 32px);
}
.hero__content--left {
  left: var(--gutter);
  bottom: clamp(56px, 10vh, 110px);
  max-width: 560px;
}
.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.hero__text { margin: 16px 0 0; font-size: 17px; line-height: 1.5; opacity: .92; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__content--center .hero__ctas { justify-content: center; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
/* Заливка «прокатывается» слева направо при наведении и уходит вправо */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sweep, var(--c-ink));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
}
.btn:disabled::before { display: none; }
.btn:active { transform: scale(.98); }

.btn--light { background: #fff; color: var(--c-ink); }
@media (hover: hover) and (pointer: fine) {
.btn--light:hover { color: #fff; }
}
.btn--ghost { --sweep: #fff; border-color: #fff; color: #fff; }
@media (hover: hover) and (pointer: fine) {
.btn--ghost:hover { color: var(--c-ink); }
}

/* Стрелки по краям, по центру высоты */
.hero__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* Только стрелка: без плашки и без тени */
  color: var(--c-ink);
  opacity: .8;
  translate: 0 -50%;
  transition: opacity .2s, scale .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.hero__arrow:hover { opacity: 1; scale: 1.12; }
}
.hero__arrow:active { scale: .94; }
.hero__arrow:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.hero__arrow--prev { left: var(--gutter); }
.hero__arrow--next { right: var(--gutter); }
.hero__arrow svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .hero__arrow { width: 36px; height: 36px; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .hero__arrow svg { width: 24px; height: 24px; }
}

/* Управление слайдером */
.hero__controls {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Точки-прогресс: активная заполняется за время показа слайда */
.hero__dot {
  position: relative;
  overflow: hidden;
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, .4);
  transition: width .4s var(--ease);
}
.hero__dot.is-active { width: 56px; }
.hero__dot-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero.is-ready .hero__dot.is-active .hero__dot-fill { animation: dot-progress 9s linear forwards; }
@keyframes dot-progress { to { transform: scaleX(1); } }

/* Режим «баннер»: готовые картинки с текстом (слайды основного сайта).
   Высота по пропорциям баннера, затемнение снизу мягче. «Отъезд» и параллакс остаются,
   но запас под параллакс меньше, чтобы края с текстом почти не обрезались. */
.hero.hero--banners {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1795 / 796;
  background: #f2f1ee;
}
.hero--banners .hero__slide { display: block; }
/* Затемнение снизу мягче, чем у фото: текст на баннерах светлый фон не теряет */
.hero--banners .hero__slide::after { background: linear-gradient(to top, rgba(0, 0, 0, .32), rgba(0, 0, 0, 0) 45%); }
.hero--banners .hero__slide picture { display: block; height: 100%; }
.hero.hero--banners { --pmax: 24px; }
/* «Отъезд» мягче, чем у фото: у баннеров текст подходит близко к краям */
.hero--banners .hero__slide img { scale: 1.04; }
.hero.is-ready.hero--banners .hero__slide.is-active img { scale: 1; }
/* Текст нарисован на баннере — управление выносим под картинку, тёмным на белом */
.hero.hero--banners { overflow: visible; margin-bottom: 44px; }
.hero--banners .hero__track { overflow: hidden; }
.hero--banners .hero__controls { right: 50%; bottom: -36px; transform: translateX(50%); }
.hero--banners .hero__dot { background: rgba(17, 17, 17, .18); }
.hero--banners .hero__dot-fill { background: var(--c-ink); }
@media (max-width: 640px) {
  .hero.hero--banners { aspect-ratio: 1328 / 2093; }
  .hero--banners [data-desktop-only] { display: none; }
}

/* Текст только для скринридеров и поисковиков */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== Заголовок секции ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 var(--gutter);
}
.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  text-transform: uppercase;
}
.section-head__side { display: flex; align-items: center; gap: 20px; }
.section-head__link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
.section-head__link:hover { color: var(--c-red); }
}
.row-nav { display: flex; gap: 8px; }
.row-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  transition: border-color .2s, background .2s, opacity .2s;
}
@media (hover: hover) and (pointer: fine) {
.row-nav__btn:hover:not(:disabled) { border-color: var(--c-ink); }
}
.row-nav__btn:disabled { opacity: .35; cursor: default; }
.row-nav__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Новинки ===== */
.products { padding: clamp(48px, 7vw, 96px) 0; }
.products__row, .cats__row, .insta__row {
  --cols: 4;
  --gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols));
  gap: var(--gap);
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.products__row::-webkit-scrollbar, .cats__row::-webkit-scrollbar, .insta__row::-webkit-scrollbar { display: none; }

/* Появление при прокрутке (класс .js ставит main.js — без JS всё видно сразу) */
.js [data-reveal] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-revealed > * { opacity: 1; transform: none; }

/* Карточка товара */
.card { scroll-snap-align: start; min-width: 0; }
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f2f1ee;
}
.card__img { position: absolute; inset: 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.card:hover .card__img img { transform: scale(1.03); }
}

/* Заглушка вместо фото */
.ph {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c4c1ba' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 18a4 4 0 1 1 4-4c0 2-1.5 3-4 4.5v2.5'/%3E%3Cpath d='M32 21 8 38c-2 1.5-1 4 1.5 4h45c2.5 0 3.5-2.5 1.5-4L32 21z'/%3E%3C/svg%3E") center 45% / 72px no-repeat,
    linear-gradient(180deg, #f4f3f0, #ebe9e4);
  transition: filter .3s;
}
@media (hover: hover) and (pointer: fine) {
.card:hover .ph { filter: brightness(.97); }
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card__badge--sale { background: var(--c-red); color: #fff; }

.card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .2s;
}
@media (hover: hover) and (pointer: fine) {
.card__fav:hover { background: rgba(255, 255, 255, .8); }
}
.card__fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s, stroke .2s, transform .2s; }
.card__fav[aria-pressed="true"] svg { fill: var(--c-red); stroke: var(--c-red); transform: scale(1.08); }
/* «Хлопок» сердца: сжатие → отскок и расходящееся кольцо */
.card__fav::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--c-red);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.card__fav.is-pop svg { animation: fav-pop .5s var(--ease); }
.card__fav.is-pop[aria-pressed="true"]::after { animation: fav-ring .55s ease-out; }
@keyframes fav-pop { 30% { scale: .7; } 60% { scale: 1.25; } }
@keyframes fav-ring { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }

/* Быстрый просмотр */
.card__quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 44px;
  background: rgba(255, 255, 255, .96);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .3s var(--ease), background .2s, color .2s;
}
.card__quick:focus-visible { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
.card:hover .card__quick { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
.card__quick:hover { background: var(--c-ink); color: #fff; }
}

.card__body { position: relative; padding: 14px 44px 0 0; }
.card--no-cart .card__body { padding-right: 0; } /* сетка каталога: без кнопки корзины */
.card__cart {
  position: absolute;
  top: 8px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.card__cart:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
}
.card__cart:active { transform: scale(.9); }
.card__cart { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.card__cart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
.card__cart:hover svg { animation: icon-cart .6s ease; transform-origin: 50% 20%; }
}

/* Стрелки ряда подталкиваются в свою сторону */
.row-nav__btn svg { transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.row-nav__btn[data-row-prev]:hover:not(:disabled) svg { transform: translateX(-3px); }
}
@media (hover: hover) and (pointer: fine) {
.row-nav__btn[data-row-next]:hover:not(:disabled) svg { transform: translateX(3px); }
}
.card__swatches { display: flex; gap: 6px; margin-bottom: 10px; }
.card__swatches span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.card__title { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
/* Подчёркивание названия рисуется слева направо, как в меню */
.card__title a {
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  transition: background-size .45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.card:hover .card__title a { background-size: 100% 1px; background-position-x: left; }
}

/* Цвета чуть увеличиваются при наведении на карточку */
.card__swatches span { transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.card:hover .card__swatches span { transform: scale(1.12); }
}
@media (hover: hover) and (pointer: fine) {
.card:hover .card__swatches span:nth-child(2) { transition-delay: .03s; }
}
@media (hover: hover) and (pointer: fine) {
.card:hover .card__swatches span:nth-child(3) { transition-delay: .06s; }
}
@media (hover: hover) and (pointer: fine) {
.card:hover .card__swatches span:nth-child(4) { transition-delay: .09s; }
}

/* Второе фото при наведении: добавьте второй <img> в .card__img */
.card__img img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease, transform .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.card:hover .card__img img + img { opacity: 1; }
}
.card__price { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.card__price--sale { color: var(--c-red); }
.card__price s { margin-left: 6px; color: var(--c-muted); font-weight: 500; white-space: nowrap; }

/* ===== Найдите свой крой ===== */
.fits {
  padding: clamp(48px, 7vw, 96px) 0;
  background: #f6f5f2;
}
.fits__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 0 var(--gutter);
}
.fits__sub { margin: 12px 0 0; max-width: 460px; font-size: 15px; line-height: 1.5; color: var(--c-muted); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid #d9d7d2; }
.tabs__btn {
  position: relative;
  padding: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-muted);
  transition: color .2s;
}
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--c-ink);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.tabs__btn:hover { color: var(--c-ink); }
}
.tabs__btn.is-active { color: var(--c-ink); }
.tabs__btn.is-active::after { transform: scaleX(1); }

.fits__panel:not([hidden]) { animation: fade .4s ease; }
.fits__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 16px;
  padding: 0 var(--gutter) 8px; /* снизу запас под подчёркивание ссылки — ряд прокручивается и обрезает края */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.fits__row::-webkit-scrollbar { display: none; }

.fit { display: flex; flex-direction: column; scroll-snap-align: start; }
.fit__media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #fff;
  transition: background .3s;
}
/* Фото посадок (белый фон, 2:3) */
.fit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.fit:hover .fit__media img { transform: scale(1.04); }
}
.fit__svg {
  height: 78%;
  overflow: visible;
  fill: none;
  stroke: var(--c-navy);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: transform .5s var(--ease);
}
.fit__body { fill: #e4eaf3; transition: fill .3s; }
@media (hover: hover) and (pointer: fine) {
.fit:hover .fit__media { background: #eceae5; }
}

.fit__name {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.fit__desc { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--c-muted); }
.fit__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
.fit:hover .fit__link { color: var(--c-red); }
}

/* ===== Категории ===== */
.cats { padding: clamp(48px, 7vw, 96px) 0; }
/* «Новинки» сразу после «Категорий»: один отступ между лентами вместо двух (было 96 + 96 px на компьютере) */
.cats:has(+ .products) { padding-bottom: clamp(40px, 4.5vw, 64px); }
.cats + .products { padding-top: 0; }
/* «Категории» сразу под слайдером: под слайдером уже 44px с точками — свой отступ сверху маленький */
.hero--banners + .cats { padding-top: clamp(16px, 2vw, 28px); }
.cats__row { --cols: 4; --gap: 16px; } /* лента — общие правила с .products__row выше; плитки квадратные */
.tile {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1;
  scroll-snap-align: start;
}

.tile__img { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
.tile:hover .tile__img { transform: scale(1.04); }
}
.tile:nth-child(2n) .tile__img.ph { filter: hue-rotate(10deg) brightness(.98); }

/* Плашка с названием, как у Levi's */
.tile__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .25s, color .25s;
}
.tile__label::after {
  content: "→";
  transition: transform .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.tile:hover .tile__label { background: var(--c-ink); color: #fff; }
}
@media (hover: hover) and (pointer: fine) {
.tile:hover .tile__label::after { transform: translateX(4px); }
}

/* Плитка Sale */
.tile--sale { background: var(--c-red); color: #fff; }
.tile__sale {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px 40px;
}
.tile__sale-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5vw, 88px);
  line-height: .9;
  text-transform: uppercase;
  transition: transform .5s var(--ease);
}
.tile__sale-text { margin-top: 8px; font-size: 15px; opacity: .9; }
@media (hover: hover) and (pointer: fine) {
.tile--sale:hover .tile__sale-title { transform: translateX(6px); }
}
.tile--sale .tile__label { color: var(--c-red); }
@media (hover: hover) and (pointer: fine) {
.tile--sale:hover .tile__label { background: var(--c-ink); color: #fff; }
}

/* ===== Instagram ===== */
.insta { padding: clamp(48px, 7vw, 96px) 0 0; }
.insta__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 var(--gutter);
}
.insta__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.insta__head .section-head__title { text-transform: none; }
.insta__follow { gap: 10px; min-width: 0; }
.insta__follow svg, .insta__hover svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
/* Лента от края до края, как у CK */
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.insta__post { position: relative; aspect-ratio: 1; overflow: hidden; }
.insta__post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.insta__post:hover img { transform: scale(1.05); }
}
.insta__post.ph { background-size: 56px, cover; }
.insta__post:nth-child(even).ph { filter: brightness(.96); }
.insta__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, .45);
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.insta__hover svg { width: 32px; height: 32px; }
.insta__post:focus-visible .insta__hover { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
.insta__post:hover .insta__hover { opacity: 1; }
}

/* ===== Блог ===== */
.blog { padding: clamp(48px, 7vw, 96px) 0; }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 var(--gutter);
}
.post { display: flex; flex-direction: column; }
.post__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: filter .3s;
}
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.post:hover .post__img img { transform: scale(1.04); }
}
@media (hover: hover) and (pointer: fine) {
.post:hover .post__img.ph { filter: brightness(.96); }
}
.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-muted);
}
.post__tag {
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-red);
}
.post__title { margin: 10px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
.post__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.post__excerpt { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #444; }
.post__more {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
.post__more:hover { color: var(--c-red); }
}

/* ===== Страница блога ===== */
/* Колонка по центру: две карточки в ряд, главная статья — на ширину обеих */
.blog-page { --blog-w: 1080px; }
.blog-page > * { box-sizing: content-box; max-width: var(--blog-w); margin-left: auto; margin-right: auto; }
.blog-page > .catalog__head { padding-left: var(--gutter); padding-right: var(--gutter); }
.blog-tags {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  padding: 0 var(--gutter) 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-tags::-webkit-scrollbar { display: none; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 32px;
  padding: 0 var(--gutter);
}
.blog-grid .post__img { aspect-ratio: 3 / 2; }
.blog-grid .post__title { font-size: 22px; }
.blog-grid .post[hidden] { display: none; }
.blog-empty { margin: 0; padding: 40px var(--gutter); color: var(--c-muted); }
.blog-empty[hidden] { display: none; }

/* ===== Страница статьи ===== */
.article__head { max-width: 860px; margin: 0 auto; padding: 28px var(--gutter) 0; text-align: center; }
.article__head .crumbs { justify-content: center; }
.article__tag { display: inline-block; margin-top: 32px; font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
.article__tag:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.article__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
}
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 13px; color: var(--c-muted); }
.article__lead { margin: 22px auto 0; max-width: 680px; font-size: 18px; line-height: 1.6; color: #333; }
.article__cover { max-width: 960px; aspect-ratio: 16 / 9; margin: clamp(32px, 4vw, 48px) auto 0; background-size: 96px, cover; }
@media (max-width: 1040px) { .article__cover { margin-left: var(--gutter); margin-right: var(--gutter); } }

.article__layout { max-width: 720px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) 0; box-sizing: content-box; }
.article__share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.article__share-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.article__share-row { display: flex; gap: 8px; }
.article__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  transition: border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.article__share-btn:hover { border-color: var(--c-ink); }
}
.article__share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.article__share-ok, .article__share-btn.is-done .article__share-link { display: none; }
.article__share-btn.is-done .article__share-ok { display: block; color: var(--c-red); }

/* Типографика текста статьи */
.article__body { font-size: 17px; line-height: 1.7; color: #222; }
.article__body > :first-child { margin-top: 0; }
.article__body h2 {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
/* Подзаголовок внутри раздела (модели в статьях про брюки) */
.article__body h3 { margin: 32px 0 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.article__body h2 + h3 { margin-top: 20px; }
.article__body p { margin: 16px 0 0; }
.article__body ul { margin: 16px 0 0; display: grid; gap: 10px; }
.article__body ul li { position: relative; padding-left: 22px; }
.article__body ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--c-red); }
.article__figure { margin: 32px 0 0; }
.article__figure-img { aspect-ratio: 3 / 2; background-size: 96px, cover; }
.article__figure figcaption { margin-top: 10px; font-size: 13px; color: var(--c-muted); }
.article__quote {
  margin: 32px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--c-red);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  color: var(--c-ink);
}
.article__note { margin: 32px 0 0; padding: 22px 24px; background: #f4f3f0; }
.article__note p { margin: 0; font-size: 15px; line-height: 1.6; }
.article__body .article__note-title { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-red); }
.article__table { width: 100%; margin: 24px 0 0; border-collapse: collapse; font-size: 15px; }
.article__table th, .article__table td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); text-align: left; }
.article__table th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }

/* Мини-карточки товаров внутри текста */
.article__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.card--inline {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--c-line);
  transition: border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.card--inline:hover { border-color: var(--c-ink); }
}
.card--inline .card__media { aspect-ratio: 3 / 4; }
.card--inline .card__img.ph { background-size: 32px, cover; }
.card--inline .card__badge { top: 4px; left: 4px; padding: 2px 5px; font-size: 9px; }
.card--inline .card__fav { display: none; }
.card--inline .card__body { padding: 0; }
.card--inline .card__swatches { margin-bottom: 6px; }
.card--inline .card__swatches span { width: 10px; height: 10px; }
.article__body .card--inline .card__title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.article__body .card--inline .card__price { margin: 4px 0 0; font-size: 14px; }
.card--inline .card__cart--text {
  position: static;
  width: auto;
  height: 32px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

/* Предыдущая / следующая */
.article__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding: 0 var(--gutter);
  box-sizing: content-box;
}
.article__nav-link { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--c-ink); }
.article__nav-link[hidden] { display: none; }
.article__nav-link--next { grid-column: 2; text-align: right; }
.article__nav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.article__nav-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
.article__nav-link:hover .article__nav-title { color: var(--c-red); }
}
.article-missing { padding: 80px var(--gutter) 120px; text-align: center; }
.article-missing .catalog__lead { margin: 12px auto 28px; }
.article-missing[hidden] { display: none; }

/* ===== Сервисные страницы («Покупателям»): delivery.html — шаблон ===== */
.svc {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(56px, 7vw, 96px);
}
.svc__nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; transition: top .45s var(--ease); }
.svc__nav ul { display: grid; gap: 2px; margin-bottom: 28px; }
.svc__nav-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.svc__nav a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--c-line);
  font-size: 14px;
  color: #555;
  transition: color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.svc__nav a:hover { color: var(--c-ink); }
}
.svc__nav a[aria-current="page"] { border-color: var(--c-red); color: var(--c-ink); font-weight: 600; }

.svc__section + .svc__section { margin-top: clamp(40px, 5vw, 56px); }
.svc__h2 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; text-transform: uppercase; }
.svc__text { margin: 16px 0 0; max-width: 720px; font-size: 15px; line-height: 1.65; color: #333; }
.svc__text a { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
.svc__text a:hover { color: var(--c-red); }
}

/* Карточки способов получения */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc-card { padding: 24px 22px; background: #f6f5f2; }
.svc-card__icon { width: 28px; height: 28px; fill: none; stroke: var(--c-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-card__title { margin: 18px 0 0; font-size: 16px; font-weight: 600; }
.svc-card__price { margin: 6px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.svc-card__text { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #555; }
.svc-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.5;
}
.svc-note svg { flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: var(--c-red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Шаги со связующей линией */
.svc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.svc-steps li { position: relative; }
.svc-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 44px;
  right: -12px;
  height: 1px;
  background: var(--c-line);
}
.svc-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.svc-steps__title { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.svc-steps__text { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #555; }

/* Способы оплаты */
.svc-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-pay li { padding: 10px 16px; border: 1px solid var(--c-line); font-size: 13px; font-weight: 700; }

/* Чек-лист */
.svc-check { display: grid; gap: 12px; }
.svc-check li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; }
.svc-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-ink);
}
.svc-check li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.svc-faq { border-top: 1px solid var(--c-line); }
.svc-faq .pdp__text a, .svc-card__text a, .svc-list a { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
.svc-faq .pdp__text a:hover,
.svc-card__text a:hover,
.svc-list a:hover { color: var(--c-red); }
}

/* Текст под заголовком секции без верхнего отступа */
.svc__text--first { margin-top: 0; }
.svc__text--first + .svc-list, .svc__text--first + .svc-check { margin-top: 16px; }

/* Простой список с красным маркером */
.svc-list { display: grid; gap: 10px; max-width: 720px; }
.svc-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: #333; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 2px; background: var(--c-red); }

/* Таблица (размеры): первая колонка закреплена при горизонтальной прокрутке */
.svc-table-wrap { overflow-x: auto; scrollbar-width: thin; }
.svc-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.svc-table th, .svc-table td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); text-align: center; }
.svc-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--c-muted); }
.svc-table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 700; text-align: left; }
.svc-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; }
@media (hover: hover) and (pointer: fine) {
.svc-table tbody tr:hover > * { background: #f6f5f2; }
}

.svc-size { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: start; }
.svc-size__img { width: 150px; height: auto; padding: 16px; background: #f6f5f2; box-sizing: content-box; mix-blend-mode: multiply; }
.svc-size__note { margin: 14px 0 0; font-size: 13px; color: #555; }

/* Уровни кешбэк-программы */
.svc-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.svc-level { padding: 22px 20px; background: #f6f5f2; }
.svc-level:last-child { background: var(--c-ink); color: #fff; }
.svc-level__name { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.svc-level__pct { margin: 14px 0 0; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--c-red); }
.svc-level__from { margin: 10px 0 0; font-size: 13px; color: #555; }
.svc-level:last-child .svc-level__from { color: rgba(255, 255, 255, .65); }

/* Юридический документ: нумерованные разделы */
.svc-doc { max-width: 760px; }
.svc-doc__item + .svc-doc__item { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--c-line); }
.svc-doc__h { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.svc-doc__h span { color: var(--c-red); }
.svc-doc p { margin: 0; font-size: 15px; line-height: 1.65; color: #333; }
.svc-doc p + p, .svc-doc .svc-list + p { margin-top: 12px; }
.svc-doc p + .svc-list { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
.svc-pay a:hover { color: var(--c-red); }
}

/* Контакты */
.svc-contact { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 36px); background: var(--c-ink); color: #fff; }
.svc-contact .svc__h2 { margin-bottom: 24px; }
.svc-contact__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc-contact__item { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .2); transition: border-color .2s; }
@media (hover: hover) and (pointer: fine) {
.svc-contact__item:hover { border-color: #fff; }
}
.svc-contact__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.svc-contact__value { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

/* ===== Футер ===== */
.footer { background: var(--c-ink); color: #fff; }

/* Преимущества */
.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f6f5f2;
  color: var(--c-ink);
  border-top: 1px solid var(--c-line);
}
.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px var(--gutter);
}
.perk + .perk { border-left: 1px solid #e3e1dc; }
.perk svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perk__title { margin: 0; font-size: 14px; font-weight: 700; }
.perk__text { margin: 2px 0 0; font-size: 13px; color: var(--c-muted); }

/* Основная часть */
.footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  gap: 64px;
  padding: 64px var(--gutter) 48px;
}

/* Слоган под логотипом */
.footer__slogan {
  max-width: 300px;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
}
.footer__slogan strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

/* Колонки */
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fcol__title {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  list-style: none;
}
.fcol__title::-webkit-details-marker { display: none; }
.fcol__list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.fcol__list a { transition: color .2s; }
@media (hover: hover) and (pointer: fine) {
.fcol__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
}
.fcol__sale { color: #ff6b7d; }
.fcol__phone { font-size: 18px; font-weight: 700; color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.socials__link:hover { background: #fff; border-color: #fff; color: var(--c-ink); }
}
.socials__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Нижняя полоса */
.footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 20px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.footer__copy { margin: 0; }
.footer__legal { display: flex; gap: 24px; }
@media (hover: hover) and (pointer: fine) {
.footer__legal a:hover { color: #fff; }
}
.payments { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
/* Логотипы на одинаковых белых плашках: у Payme прозрачный фон с тёмным текстом */
.payments li {
  display: flex;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}
.payments img { display: block; width: auto; height: 28px; }

/* ===== Боковые панели ===== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  transition: visibility 0s .5s;
}
/* Открытая панель выше закрывающейся, чтобы её затухающий фон не ложился сверху */
.sheet.is-open { z-index: 71; visibility: visible; transition-delay: 0s; }
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .4s ease;
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .5s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px 24px;
  border-bottom: 1px solid var(--c-line);
}
.sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
}
.sheet__count { color: var(--c-muted); }
.sheet__body { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
/* Содержимое въезжает следом за панелью */
.sheet__body > * {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s ease, transform .5s var(--ease);
}
.sheet.is-open .sheet__body > * { opacity: 1; transform: none; transition-delay: .15s; }
.sheet__foot { padding: 20px 24px 24px; border-top: 1px solid var(--c-line); }
.sheet__foot[hidden] { display: none; }
.sheet__foot .btn { width: 100%; height: 52px; }
.sheet__link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
.sheet__link:hover { color: var(--c-red); }
}
.sheet__note { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--c-muted); }

/* Строка товара (корзина и избранное) */
.ci-list[hidden] { display: none; }
.ci {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.ci.is-new { animation: ci-in .6s var(--ease); }
@keyframes ci-in { from { opacity: 0; transform: translateY(-10px); background: #f6f5f2; } }
.ci__img { aspect-ratio: 3 / 4; }
.ci__img.ph { background-size: 28px, cover; }
.ci__info { min-width: 0; display: flex; flex-direction: column; }
.ci__title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.ci__meta { margin: 6px 0 0; font-size: 12px; color: var(--c-muted); }
.ci__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.ci__price { margin: 0; font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.ci__price s { display: block; font-size: 12px; font-weight: 500; color: var(--c-muted); }
.ci__price--left { margin-top: 6px; text-align: left; }
.ci__price--left s { display: inline; margin-left: 6px; }
.ci__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--c-muted);
  transition: color .2s, background .2s, transform .2s;
}
@media (hover: hover) and (pointer: fine) {
.ci__remove:hover { color: var(--c-ink); background: #f3f3f3; transform: rotate(90deg); }
}
.ci__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ci__remove--fav { color: var(--c-red); }
.ci__remove--fav svg { width: 20px; height: 20px; fill: currentColor; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
.ci__remove--fav:hover { color: var(--c-red); transform: scale(1.12); }
}

.qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--c-line); }
.qty button { width: 32px; height: 100%; font-size: 16px; transition: background .2s; }
@media (hover: hover) and (pointer: fine) {
.qty button:hover:not(:disabled) { background: #f3f3f3; }
}
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; }

.fi__add {
  align-self: flex-start;
  margin-top: auto;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--c-ink);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) {
.fi__add:hover { background: var(--c-ink); color: #fff; }
}

/* Итоги корзины */
.sum-row { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; color: #444; }
.sum-row[hidden] { display: none; }
.sum-row--discount span:last-child { color: var(--c-red); }
.sum-row--total { margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--c-ink); }
.sum-cashback { margin: 0 0 16px; font-size: 13px; color: #2f7a3f; }

/* Пустое состояние */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 8px;
  text-align: center;
}
.empty[hidden] { display: none; }
.empty svg {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  fill: none;
  stroke: #c4c1ba;
  stroke-width: 1.2;
  stroke-linejoin: round;
  animation: empty-float 3s ease-in-out infinite;
}
@keyframes empty-float { 50% { transform: translateY(-6px); } }
.empty__title { margin: 0; font-size: 18px; font-weight: 700; }
.empty__text { max-width: 280px; margin: 8px 0 24px; font-size: 14px; line-height: 1.5; color: var(--c-muted); }

/* Аккаунт */
.acc-step[hidden] { display: none; }
.acc-step { padding-top: 8px; animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(20px); } }
.acc-lead { margin: 16px 0 24px; font-size: 15px; line-height: 1.5; color: #444; }
.link-btn { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; color: var(--c-ink); }
@media (hover: hover) and (pointer: fine) {
.link-btn:hover { color: var(--c-red); }
}
.field { display: block; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.phone {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  transition: border-color .2s;
}
.phone:focus-within { border-color: var(--c-ink); }
.phone.is-error { border-color: var(--c-red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.phone__prefix { margin-right: 8px; font-weight: 600; }
/* Код страны (template-parts/sms-login.php) — как префикс макета, со стрелкой выбора */
.phone__country {
  flex-shrink: 0;
  margin: 0 10px 0 -4px;
  padding: 0 18px 0 4px;
  height: 100%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center / 9px;
  border: 0;
  border-right: 1px solid var(--c-line);
  border-radius: 0;
  outline: 0;
  appearance: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
}
.phone__country:focus-visible { outline: 2px solid var(--c-ink); outline-offset: -2px; }
.phone input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; letter-spacing: .02em; }
.field__error { margin: 8px 0 0; font-size: 13px; color: var(--c-red); }
.acc-submit { width: 100%; height: 52px; margin-top: 16px; }
.acc-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  padding: 20px;
  background: #f6f5f2;
  font-size: 14px;
}
.acc-perks li { display: flex; align-items: center; gap: 12px; }
.acc-perks svg { flex-shrink: 0; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.otp { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; }
.otp input {
  height: 64px;
  border: 1px solid var(--c-line);
  outline: 0;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: border-color .2s, color .2s;
}
.otp input:focus { border-color: var(--c-ink); }
.otp input.is-filled { border-color: var(--c-ink); animation: bump .3s var(--ease); }
.otp.is-success input { border-color: #2f7a3f; color: #2f7a3f; }
.acc-resend { margin: 20px 0 0; font-size: 13px; color: var(--c-muted); }
.acc-demo { margin: 12px 0 0; font-size: 12px; color: var(--c-muted); }

.profile__hello {
  margin: 20px 0 4px;
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
}
.profile__phone { margin: 0; font-size: 14px; color: var(--c-muted); }
.bonus { margin-top: 24px; padding: 20px; background: var(--c-ink); color: #fff; }
.bonus__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.bonus__value { margin: 6px 0 4px; font-family: var(--font-display); font-size: 36px; }
.bonus__note { margin: 0; font-size: 13px; opacity: .7; }
.menu-list { margin-top: 16px; }
.menu-list a, .menu-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.menu-list a::after, .menu-list button::after { content: "→"; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.menu-list a:hover::after,
.menu-list button:hover::after { transform: translateX(4px); }
}
.menu-list .is-logout { color: var(--c-red); border-bottom: 0; }

/* Вход по SMS в панели (footer.php): 6 цифр кода, согласие, анкета нового клиента */
.sms-lead { margin: 16px 0 24px; font-size: 15px; line-height: 1.5; color: #444; }
.sms-lead b { color: var(--c-ink); white-space: nowrap; }
.sms-consent { align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.45; color: #555; }
.sms-consent .check__box { flex-shrink: 0; margin-top: 1px; }
.sms-consent a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.sms-alt { margin: 20px 0 0; font-size: 13px; color: var(--c-muted); }
.sms-alt a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.otp--6 { grid-template-columns: repeat(6, minmax(0, 52px)); gap: 8px; }
.otp--6 input { width: 100%; height: 58px; font-size: 22px; }
.otp.is-error input { border-color: var(--c-red); animation: shake .4s; }
.sms-wait { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; color: var(--c-ink); animation: sms-wait-in .25s var(--ease); }
@keyframes sms-wait-in { from { opacity: 0; transform: translateY(-4px); } }
.sms-wait[hidden] { display: none; }
.sms-wait__spin { flex-shrink: 0; width: 18px; height: 18px; border: 2px solid var(--c-line); border-top-color: var(--c-ink); border-radius: 50%; animation: spin .7s linear infinite; }
.otp input:disabled { background: #f6f5f2; color: var(--c-muted); }
.otp.is-success input:disabled { background: #fff; color: #2f7a3f; }
.acc-submit.is-loading { color: transparent; pointer-events: none; position: relative; }
.acc-submit.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.sms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sms-set { margin: 20px 0 0; padding: 0; border: 0; }
.sms-set legend { padding: 0; }
.sms-input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  color: inherit;
  transition: border-color .2s;
}
.sms-input:focus { border-color: var(--c-ink); }
.sms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sms-chip { position: relative; cursor: pointer; }
.sms-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sms-chip span { display: block; padding: 10px 14px; border: 1px solid var(--c-line); font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) {
.sms-chip:hover span { border-color: var(--c-ink); }
}
.sms-chip input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.sms-chip input:focus-visible + span { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.sms-source-custom { margin-top: 10px; }
.sms-source-custom[hidden] { display: none; }
@media (max-width: 380px) { .sms-grid { grid-template-columns: 1fr; } }

/* Точка «вы вошли» на иконке аккаунта */
.account-btn.is-auth::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2f9e4f;
  animation: bump .45s var(--ease);
}

/* Точка, летящая в корзину */
.fly { position: fixed; z-index: 100; width: 0; height: 0; pointer-events: none; }
.fly__dot {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 4px 12px rgba(200, 16, 46, .4);
}

/* ===== Каталог ===== */
.nav__link.is-current::after { transform: scaleX(1); }

.catalog__head { padding: 28px var(--gutter) 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--c-muted); }
@media (hover: hover) and (pointer: fine) {
.crumbs a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
}
.crumbs [aria-current] { color: var(--c-ink); }
.catalog__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}
.catalog__total { font-size: .45em; color: var(--c-muted); vertical-align: top; }
.catalog__lead { max-width: 560px; margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #555; }

/* Карусель кроев */
/* Фоновая полоса во всю ширину, как у секции посадок на главной */
.fit-carousel {
  margin: 32px calc(-1 * var(--gutter)) 0;
  padding: 28px var(--gutter) 32px;
  background: #f6f5f2;
}
/* Полоса сразу переходит в панель фильтров, без белой щели */
.catalog__head:has(.fit-carousel) { padding-bottom: 0; }
.catalog__head:has(.fit-carousel) + .toolbar { margin-top: 0; }
.fit-carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fit-carousel__title { margin: 0; font-size: 18px; font-weight: 600; }
.fit-carousel__row {
  --gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px; /* фото 2:3 целиком = 240×360, вся карточка ≈ 240×450 */
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.fit-carousel__row::-webkit-scrollbar { display: none; }
.fit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
  scroll-snap-align: start;
}
.fit-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f2f1ee;
  min-height: 0; /* иначе SVG растягивает блок и квадрат не держится */
  transition: background .3s;
}
/* Полоса под фото у выбранного кроя */
.fit-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.fit-card .fit__svg { height: 78%; }
/* Фото посадок (белый фон): заполняют карточку; описание — до 3 строк, чтобы карточки были одной высоты */
.fit-card__media:has(img) { overflow: hidden; aspect-ratio: 2 / 3; background: #fff; } /* как у фото (480×720): без обрезки */
.fit-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.fit-card:hover .fit-card__media:has(img) { background: #fff; }
}
@media (hover: hover) and (pointer: fine) {
.fit-card:hover .fit-card__media img { transform: scale(1.04); }
}
.fit-card__media::after, .fit-card__check { z-index: 1; }
@media (hover: hover) and (pointer: fine) {
.fit-card:hover .fit-card__media { background: #eae8e3; }
}
.fit-card.is-active .fit__body { fill: #5b7fae; }
@media (hover: hover) and (pointer: fine) {
.fit-card:hover .fit__body { fill: #5b7fae; }
}
@media (hover: hover) and (pointer: fine) {
.fit-card:hover .fit__svg { transform: translateY(-4px); }
}
.fit-card.is-active .fit-card__media::after { transform: scaleX(1); }
.fit-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-ink);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .25s, transform .35s var(--ease);
}
.fit-card__check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.fit-card.is-active .fit-card__check { opacity: 1; transform: none; }
.fit-card__name { margin-top: 7px; font-size: 16px; font-weight: 600; }
.fit-card__desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  min-height: 4.35em;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.fit-carousel .row-nav[hidden] { display: none; }
.fit-card:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }

/* Чипы (фильтр заказов, ссылки на 404) */
.chip {
  flex-shrink: 0;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
@media (hover: hover) and (pointer: fine) {
.chip:hover { border-color: var(--c-ink); }
}
.chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* Панель инструментов: прилипает под шапкой, поднимается, когда шапка уезжает */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin-top: 20px;
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  transition: top .45s var(--ease);
}
body:has(.header.is-hidden) .toolbar { top: 0; }
.toolbar__inner { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 var(--gutter); }
.toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
@media (hover: hover) and (pointer: fine) {
.toolbar__btn:hover { background: #f3f3f3; }
}
.toolbar__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.toolbar__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--c-ink);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}
.toolbar__badge[hidden] { display: none; }

.sort { position: relative; margin-left: auto; }
.sort__label { color: var(--c-muted); font-weight: 500; }
.sort__chev { width: 16px !important; height: 16px !important; transition: transform .3s var(--ease); }
.sort.is-open .sort__chev { transform: rotate(180deg); }
.sort__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 220px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.sort.is-open .sort__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sort__menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  text-align: left;
  transition: background .15s;
}
@media (hover: hover) and (pointer: fine) {
.sort__menu button:hover { background: #f6f5f2; }
}
.sort__menu button[aria-selected="true"] { font-weight: 700; }
.sort__menu button[aria-selected="true"]::after { content: "✓"; }

.density { display: flex; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--c-line); }
.density__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #b5b5b5; transition: color .2s; }
.density__btn.is-active { color: var(--c-ink); }
@media (hover: hover) and (pointer: fine) {
.density__btn:hover { color: var(--c-ink); }
}
.density__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter) 12px; }
.active-filters[hidden] { display: none; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 14px;
  background: #f2f1ee;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  animation: chip-in .3s var(--ease);
  transition: background .2s;
}
@media (hover: hover) and (pointer: fine) {
.active-chip:hover { background: #e6e4df; }
}
.active-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.active-chip--reset { background: none; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes chip-in { from { opacity: 0; transform: scale(.9); } }

/* Сетка */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 16px;
  padding: 28px var(--gutter) 0;
}
.catalog-grid.is-large { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.catalog-grid .card[hidden] { display: none; }

/* Промо-плитка */
.promo-tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.promo-tile::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  transition: transform 1s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.promo-tile:hover::before { transform: scale(1.15); }
}
.promo-tile__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.promo-tile__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}
.promo-tile__text { margin-top: 12px; max-width: 320px; font-size: 14px; line-height: 1.5; opacity: .8; }
.promo-tile__link {
  align-self: flex-start;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}
.promo-tile__link::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.promo-tile:hover .promo-tile__link::after { transform: translateX(4px); }
}

.catalog__empty { padding-top: 48px; }
.catalog__empty svg { stroke-linecap: round; }

/* Показать ещё */
.more { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px var(--gutter) 80px; }
.more[hidden] { display: none; }
.more__text { margin: 0; font-size: 14px; color: var(--c-muted); }

/* SEO-текст категории под товарами */
.catalog-seo { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 72px; font-size: 15px; line-height: 1.65; color: #555; }
.catalog-seo h2 { margin-top: 0; font-size: clamp(22px, 2vw, 28px); color: var(--c-ink); }
.catalog-seo h3 { font-size: 17px; color: var(--c-ink); }
.catalog-seo a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.more__bar { width: 220px; height: 2px; background: var(--c-line); }
.more__bar span { display: block; height: 100%; background: var(--c-ink); transition: width .6s var(--ease); }
.more__btn { margin-top: 8px; min-width: 220px; border-color: var(--c-ink); }
.more__btn[hidden] { display: none; }

/* Панель фильтров слева */
.sheet--left .sheet__panel { right: auto; left: 0; transform: translateX(-100%); box-shadow: 8px 0 32px rgba(0, 0, 0, .12); }
.sheet--left .sheet__body > * { transform: translateX(-20px); }
.filters { padding-top: 4px; }
.fgroup { border-bottom: 1px solid var(--c-line); }
.fgroup__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.fgroup__title::-webkit-details-marker { display: none; }
.fgroup__title::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg);
  transition: transform .25s;
}
.fgroup:not([open]) .fgroup__title::after { transform: rotate(45deg); }
.fgroup__body { padding-bottom: 20px; }
.fgroup__body--list { display: flex; flex-direction: column; gap: 12px; }
.fgroup__body--sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fgroup__body--colors { display: flex; flex-direction: column; gap: 12px; }

.check, .color-chip { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.check input, .color-chip input, .size-chip input, .switch input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1.5px solid #bdbdbd;
  transition: background .2s, border-color .2s;
}
.check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .2s var(--ease);
}
.check input:checked + .check__box { background: var(--c-ink); border-color: var(--c-ink); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box, .size-chip input:focus-visible + span { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.check__count { margin-left: auto; font-size: 12px; color: var(--c-muted); }

.size-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--c-line);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.size-chip span:hover { border-color: var(--c-ink); }
}
.size-chip input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.color-chip__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
  outline: 1.5px solid transparent;
  outline-offset: 3px;
  transition: outline-color .2s;
}
.color-chip input:checked + .color-chip__dot { outline-color: var(--c-ink); }
.color-chip input:focus-visible + .color-chip__dot { outline-color: var(--c-red); }

/* Двойной ползунок цены */
.price-range__value { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.price-range { position: relative; height: 24px; }
.price-range__track { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--c-line); }
.price-range__fill { position: absolute; top: 0; bottom: 0; background: var(--c-ink); }
.price-range input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.price-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: #fff;
  pointer-events: auto;
  cursor: grab;
  transition: transform .15s;
}
.price-range input::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.price-range input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: #fff;
  pointer-events: auto;
  cursor: grab;
}
.price-range input::-moz-range-track { background: none; }

/* Переключатель */
.switch { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.switch__ui {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #d5d5d5;
  transition: background .25s;
}
.switch__ui::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .3s var(--ease);
}
.switch input:checked + .switch__ui { background: var(--c-ink); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--c-ink); outline-offset: 2px; }

.filters__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.filters__foot .btn { min-width: 0; }
.filters__reset { border-color: var(--c-line); }

/* ===== Страница товара ===== */
.pdp-crumbs { padding: 20px var(--gutter) 0; }
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 48px;
  padding: 16px var(--gutter) 0;
}

/* Галерея */
.pdp__stage { position: relative; }
/* Слайдер (product.gallery = 'slider'): одно большое фото, стрелки, миниатюры снизу */
.pdp__gallery-wrap--slider .pdp__gallery {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pdp__gallery-wrap--slider .pdp__gallery::-webkit-scrollbar { display: none; }
/* На десктопе фото + миниатюры помещаются в экран без прокрутки */
@media (min-width: 641px) { .pdp:has(.pdp__gallery-wrap--slider) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pdp__gallery-wrap--slider .pdp__shot { flex: 0 0 100%; aspect-ratio: auto; height: clamp(520px, calc(100svh - 290px), 960px); scroll-snap-align: start; }
.pdp__gallery-wrap--slider .pdp__shot img { object-position: center 30%; }
.pdp__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: opacity .2s, scale .2s;
}
.pdp__arrow[hidden] { display: none; }
.pdp__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) and (pointer: fine) {
.pdp__arrow:hover { scale: 1.08; }
}
.pdp__arrow:disabled { opacity: 0; pointer-events: none; }
.pdp__arrow--prev { left: 16px; }
.pdp__arrow--next { right: 16px; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.pdp__thumbs[hidden] { display: none; }
.pdp__thumb {
  flex: 0 0 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: .55;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: opacity .2s, outline-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.pdp__thumb:hover { opacity: .85; }
}
.pdp__thumb.is-active { opacity: 1; outline-color: var(--c-ink); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp__shot {
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  overflow: hidden;
  transition: filter .3s;
}
.pdp__shot.ph { background-size: 64px, cover; }
@media (hover: hover) and (pointer: fine) {
.pdp__shot:hover { filter: brightness(.97); }
}
.pdp__shot-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
}
.pdp__counter { display: none; }
/* Реальные фото товара (2:3); при нечётном числе первое — на всю ширину */
.pdp__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.pdp__shot:hover img { transform: scale(1.02); }
}
.pdp__gallery--odd .pdp__shot:first-child { grid-column: span 2; aspect-ratio: 4 / 5; }
.pdp__gallery--odd .pdp__shot:first-child img { object-position: center 30%; }
.pdp__badge[hidden], .pdp__group[hidden] { display: none; }
.pdp__price s { margin-left: 8px; font-size: .7em; font-weight: 500; color: var(--c-muted); }
.pdp__price.card__price--sale { color: var(--c-red); }
.pdp__badge.card__badge--sale { background: var(--c-red); color: #fff; }
.lightbox__stage img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

/* Информация: прилипает, пока листается галерея */
.pdp__info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  transition: top .45s var(--ease);
}
body:has(.header.is-hidden) .pdp__info { top: 24px; }
.pdp__badge { position: static; align-self: flex-start; background: #f2f1ee; }
.pdp__title { margin: 12px 0 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.2; }
.pdp__sku { margin: 8px 0 0; font-size: 12px; color: var(--c-muted); }
.pdp__price { margin: 18px 0 0; font-size: 24px; font-weight: 700; }
.pdp__cashback { margin: 6px 0 0; font-size: 13px; color: #2f7a3f; }
.pdp__group { margin-top: 28px; }
.pdp__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.pdp__label span { font-weight: 500; color: var(--c-muted); }
.pdp__colors { display: flex; flex-wrap: wrap; gap: 10px; }
/* Цвет — миниатюра с фото товара этого цвета и подписью */
.color-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; }
.color-thumb__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2f1ee;
  outline: 1.5px solid var(--c-line);
  outline-offset: 2px;
  transition: outline-color .2s;
}
.color-thumb__img img { width: 100%; height: 100%; object-fit: cover; }
.color-thumb__name { max-width: 100%; font-size: 11px; line-height: 1.25; color: var(--c-muted); text-align: center; hyphens: auto; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
.color-thumb:hover .color-thumb__img { outline-color: #bbb; }
}
.color-thumb.is-active .color-thumb__img { outline-color: var(--c-ink); }
.color-thumb.is-active .color-thumb__name { color: var(--c-ink); font-weight: 600; }
.color-thumb:focus-visible { outline: none; }
.color-thumb:focus-visible .color-thumb__img { outline: 2px solid var(--c-ink); }
/* Цвета нет в наличии: фото бледнее и перечёркнуто */
.color-thumb.is-soldout .color-thumb__img { position: relative; }
.color-thumb.is-soldout img { opacity: .45; }
.color-thumb.is-soldout .color-thumb__img::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 1px;
  background: var(--c-muted);
  transform: translate(-50%, -50%) rotate(-53deg);
}
.qv__sizes.is-error { animation: shake .4s; }

.segmented { display: inline-flex; border: 1px solid var(--c-line); }
.segmented button {
  min-width: 64px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.segmented button + button { border-left: 1px solid var(--c-line); }
@media (hover: hover) and (pointer: fine) {
.segmented button:hover:not(.is-active) { background: #f6f5f2; }
}
.segmented button.is-active { background: var(--c-ink); color: #fff; }

.pdp__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #2f7a3f;
  animation: fade .3s ease;
}
.pdp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp__stock[hidden] { display: none; }
.pdp__stock.is-low { color: #c26a00; }
.pdp .qv__sizes { grid-template-columns: repeat(5, 1fr); }
.pdp__stock.is-low::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.pdp__actions { display: flex; gap: 10px; margin-top: 24px; }
.pdp__add { flex: 1; height: 56px; }
.pdp__add.is-done { background: #2f7a3f; }
.pdp__fav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--c-line);
  transition: border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.pdp__fav:hover { border-color: var(--c-ink); }
}
.pdp__fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.pdp__fav[aria-pressed="true"] svg { fill: var(--c-red); stroke: var(--c-red); }
.pdp__fav.is-pop svg { animation: fav-pop .5s var(--ease); }

.pdp__tryon { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 10px; border: 1px solid var(--c-ink); background: #fff; color: var(--c-ink); }
.pdp__tryon[hidden] { display: none; }
.pdp__tryon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
.pdp__tryon:hover { background: var(--c-ink); color: #fff; }
}
.pdp__tryon:disabled { opacity: .6; cursor: progress; }
.pdp__perks { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font-size: 13px; color: #444; }
.pdp__perks li { display: flex; align-items: center; gap: 10px; }
.pdp__perks svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.pdp__acc { margin-top: 28px; border-top: 1px solid var(--c-line); }
.pdp__text { font-size: 14px; line-height: 1.6; color: #444; }
.pdp__text p { margin: 0 0 10px; }
.pdp__text ul { margin: 0; padding-left: 18px; list-style: disc; }
.pdp__specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; }
.pdp__specs dt { color: var(--c-muted); }
.pdp__specs dd { margin: 0; font-weight: 600; color: var(--c-ink); }
.products--tight { padding-top: 0; }

/* Таблица размеров */
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 12px 8px; border-bottom: 1px solid var(--c-line); text-align: left; }
.size-table th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.size-table td:first-child { font-weight: 700; }
.size-table tbody tr { transition: background .15s; }
@media (hover: hover) and (pointer: fine) {
.size-table tbody tr:hover { background: #f6f5f2; }
}
.size-table__l { margin-top: 32px; }

/* Липкая панель покупки (только телефон) */
.buybar { display: none; }

/* Просмотр фото на весь экран */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f5f2;
  animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: min(88vh, 1100px);
  aspect-ratio: 3 / 4;
  max-width: calc(100vw - 160px);
  padding-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  cursor: grab;
}
.lightbox__stage.ph { background-size: 120px, cover; }
.lightbox__close { position: absolute; top: 16px; right: 16px; background: #fff; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: transform .25s var(--ease);
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
@media (hover: hover) and (pointer: fine) {
.lightbox__nav--prev:hover { transform: translateX(-3px); }
}
@media (hover: hover) and (pointer: fine) {
.lightbox__nav--next:hover { transform: translateX(3px); }
}
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__counter { position: absolute; bottom: 20px; left: 50%; margin: 0; transform: translateX(-50%); font-size: 13px; font-weight: 600; }

/* ===== Оформление заказа ===== */
.co-page { background: #f6f5f2; }
.co-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.co-header__back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 14px; font-weight: 600; }
.co-header__back svg, .co-header__secure svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.co-header__back svg { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.co-header__back:hover svg { transform: translateX(-3px); }
}
.co-header__secure { display: inline-flex; align-items: center; gap: 6px; justify-self: end; margin: 0; font-size: 13px; color: #2f7a3f; }

.co {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  align-items: start;
}
.co__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}
.co__login { margin: 12px 0 24px; font-size: 14px; color: #555; }

/* Шаги */
.co-step {
  margin-top: 16px;
  padding: 28px;
  background: #fff;
  animation: rise .6s var(--ease) backwards;
}
.co-step:nth-of-type(2) { animation-delay: .08s; }
.co-step:nth-of-type(3) { animation-delay: .16s; }
.co-step__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
}
.co-step__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  transition: background .3s, color .3s;
}
/* Заполненный шаг: цифра сменяется галочкой */
.co-step__num::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}
.co-step.is-done .co-step__num { background: #2f7a3f; color: transparent; }
.co-step.is-done .co-step__num::after { transform: rotate(45deg) scale(1); }

.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-grid--address { margin-top: 20px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field[hidden] { display: none; }
.co-field--full { grid-column: 1 / -1; }
.co-field__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #444; }
.co-field__label i { font-style: normal; font-weight: 500; color: var(--c-muted); }
.co-input {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d9d7d2;
  transition: border-color .2s, box-shadow .2s;
}
.co-input:focus-within { border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }
.co-input input, .co-input select, .co-input textarea {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: inherit;
}
.co-input textarea { padding: 12px 0; resize: vertical; }
.co-input--select { position: relative; }
.co-input--select select { height: 48px; appearance: none; cursor: pointer; }
.co-input--select::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  pointer-events: none;
}
.co-field__error { display: none; font-size: 12px; color: var(--c-red); }
.co-field.is-error .co-input { border-color: var(--c-red); animation: shake .4s; }
.co-field.is-error .co-field__error { display: block; animation: fade .25s ease; }

/* Варианты доставки и оплаты */
.co-options { display: flex; flex-direction: column; gap: 10px; }
.co-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #d9d7d2;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
@media (hover: hover) and (pointer: fine) {
.co-option:hover { border-color: #999; }
}
.co-option:has(input:checked) { border-color: var(--c-ink); background: #fbfaf8; box-shadow: inset 0 0 0 1px var(--c-ink); }
.co-option input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #bdbdbd;
  border-radius: 50%;
  appearance: none;
  transition: border-color .2s, border-width .2s;
}
.co-option input:checked { border: 6px solid var(--c-ink); }
.co-option input:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.co-option__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.co-option__title { font-size: 15px; font-weight: 600; }
.co-option__text { font-size: 13px; color: var(--c-muted); }
.co-option__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.co-option__price--free { color: #2f7a3f; }
.pay-logos { display: flex; gap: 6px; }
.pay-logo {
  padding: 5px 9px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.pay-logo--payme { color: #00a7b5; }
.pay-logo--click { color: #0073ff; }

/* Раскрытие блока адреса */
.co-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.co-collapse > div { min-height: 0; overflow: hidden; }
.co-collapse.is-open { grid-template-rows: 1fr; }
.co-slots__label { margin: 22px 0 10px; }
[data-slots][hidden] { display: none; }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.co-chip {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d9d7d2;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.co-chip:hover { border-color: var(--c-ink); }
}
.co-chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* Согласие и кнопка */
.co-consent { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: 13px; line-height: 1.5; color: #444; cursor: pointer; }
.co-consent input { position: absolute; opacity: 0; }
.co-consent .check__box { flex-shrink: 0; margin-top: 1px; background: #fff; }
.co-consent input:checked + .check__box { background: var(--c-ink); border-color: var(--c-ink); }
.co-consent input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.co-consent input:focus-visible + .check__box { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.co-consent a { text-decoration: underline; text-underline-offset: 2px; }
.co-consent__error { margin: 8px 0 0 32px; }
.co-consent__error.is-visible { display: block; animation: fade .25s ease; }
.co__submit { width: 100%; height: 58px; margin-top: 20px; font-size: 15px; }
.co__submit.is-loading { color: transparent; }
.co__submit.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.co__note { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--c-muted); }

/* Сводка заказа */
.co-sum { position: sticky; top: 24px; }
.co-sum[hidden] { display: none; }
.co-sum__inner { padding: 28px; background: #fff; animation: rise .6s var(--ease) .1s backwards; }
.co-sum__head { display: flex; justify-content: space-between; align-items: baseline; }
.co-sum__title { margin: 0; font-size: 20px; font-weight: 700; }
.co-sum__edit { font-size: 13px; }
.co-sum__list { margin: 16px 0 0; }
.co-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.co-item__img { position: relative; aspect-ratio: 3 / 4; }
.co-item__img.ph { background-size: 22px, cover; }
.co-item__qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--c-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.co-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-item__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.co-item__meta { font-size: 12px; color: var(--c-muted); }
.co-item__price { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.co-item__price s { display: block; font-size: 11px; font-weight: 500; color: var(--c-muted); }

.co-promo { display: flex; gap: 8px; margin-top: 20px; }
.co-promo .co-input { flex: 1; min-height: 46px; }
.co-promo__btn { min-width: 0; height: 46px; padding: 0 16px; border-color: var(--c-ink); }
.co-promo.is-error .co-input { border-color: var(--c-red); }
.co-promo.is-shake .co-input { animation: shake .4s; }
.co-promo__msg { margin: 8px 0 0; font-size: 13px; color: #2f7a3f; animation: fade .25s ease; }
.co-promo__msg.is-error { color: var(--c-red); }
.co-sum__rows { margin-top: 20px; }
.co-sum__rows .sum-row--total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 20px; }
.co-sum__rows .sum-cashback { margin: 10px 0 0; }

.co-mobile-sum { display: none; }

/* Заказ оформлен */
.co-done {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 40px auto;
  padding: 48px 40px;
  background: #fff;
  text-align: center;
  animation: rise .6s var(--ease);
}
.co-done[hidden] { display: none; }
.co-done__check { width: 72px; height: 72px; margin-bottom: 24px; fill: none; stroke: #2f7a3f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.co-done__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s ease-out .1s forwards; }
.co-done__check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .4s ease-out .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.co-done__num { margin: 16px 0 0; font-size: 15px; }
.co-done__text { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #555; }
.co-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.co-done__track { border-color: var(--c-ink); }

.co-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px var(--gutter);
  font-size: 12px;
  color: var(--c-muted);
  border-top: 1px solid #e3e1dc;
}
.co-footer p { margin: 0; }
@media (hover: hover) and (pointer: fine) {
.co-footer a:hover { color: var(--c-ink); }
}

/* ===== Личный кабинет ===== */
.acc-page { background: #f6f5f2; padding-bottom: 80px; }
.acc-crumbs { padding: 20px var(--gutter) 0; }
.acc {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  align-items: start;
}

/* Меню */
.acc-nav { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; transition: top .45s var(--ease); }
body:has(.header.is-hidden) .acc-nav { top: 20px; }
.acc-nav__user { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--c-line); }
.acc-nav__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
}
.acc-nav__name { display: block; font-size: 15px; font-weight: 700; }
.acc-nav__phone { display: block; margin-top: 2px; font-size: 12px; color: var(--c-muted); }
.acc-nav__list { padding: 8px 0; }
.acc-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: background .2s, color .2s;
}
.acc-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--c-red);
  transform: scaleY(0);
  transition: transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
.acc-nav__link:hover { background: #faf9f7; color: var(--c-ink); }
}
.acc-nav__link.is-active { color: var(--c-ink); font-weight: 700; background: #faf9f7; }
.acc-nav__link.is-active::before { transform: scaleY(1); }
.acc-nav__link svg, .acc-nav__logout svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acc-nav__count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #f2f1ee;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.acc-nav__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-red);
  transition: background .2s;
}
@media (hover: hover) and (pointer: fine) {
.acc-nav__logout:hover { background: #fdf3f4; }
}

/* Разделы */
.acc-panel.is-entering { animation: step-in .45s var(--ease); }
.acc-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}
.acc-lead { max-width: 620px; margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #555; }
.acc-subtitle { margin: 36px 0 16px; font-size: 18px; font-weight: 700; }
.acc-card { padding: 24px; background: #fff; }

/* Обзор */
.acc-dash { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 24px; }
.bonus-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--c-ink);
  color: #fff;
}
.bonus-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, .55), transparent 70%);
}
.bonus-card__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.bonus-card__value { position: relative; margin: 8px 0 0; font-family: var(--font-display); font-size: 48px; line-height: 1; }
.bonus-card__level { margin: 10px 0 0; font-size: 13px; opacity: .75; }
.level-bar { height: 4px; margin-top: 20px; background: rgba(255, 255, 255, .15); }
.level-bar span { display: block; width: var(--p); height: 100%; background: #fff; animation: grow 1.2s var(--ease) .2s backwards; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bonus-card__next { margin: 10px 0 0; font-size: 12px; opacity: .75; }
.bonus-card__next b { opacity: 1; }
.bonus-card__link { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; }

.acc-last { display: flex; flex-direction: column; }
.acc-last__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acc-last__label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.acc-last__more { align-self: flex-start; margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 600; }

.acc-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.acc-quick__item { display: flex; align-items: baseline; gap: 8px; padding: 20px 24px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
@media (hover: hover) and (pointer: fine) {
.acc-quick__item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
}
.acc-quick__item b { font-family: var(--font-display); font-size: 32px; font-weight: 400; }
.acc-quick__item span { font-size: 14px; color: var(--c-muted); }

/* Статусы и трекер */
.status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status.is-transit { background: #e8f0fb; color: #1f5fbf; }
.status.is-done { background: #e6f4ea; color: #2f7a3f; }
.status.is-cancelled { background: #f2f1ee; color: var(--c-muted); }
.order__num { margin: 0; font-size: 16px; font-weight: 700; }
.order__date { margin: 4px 0 0; font-size: 13px; color: var(--c-muted); }
.order__eta { margin: 16px 0 0; font-size: 14px; font-weight: 600; }

.tracker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--c-muted);
}
.tracker::before, .tracker::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--c-line);
}
/* Заполненная часть линии: шаг из --step (0…3) */
.tracker::after {
  right: auto;
  width: calc(75% * var(--step) / 3);
  background: var(--c-ink);
  animation: grow 1s var(--ease) .2s backwards;
  transform-origin: left;
}
.tracker li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tracker span { width: 14px; height: 14px; border: 2px solid var(--c-line); border-radius: 50%; background: #fff; }
.tracker .is-passed { color: var(--c-ink); }
.tracker .is-passed span { border-color: var(--c-ink); background: var(--c-ink); }
.tracker .is-current { font-weight: 700; }
.tracker .is-current span { box-shadow: 0 0 0 4px rgba(17, 17, 17, .12); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(17, 17, 17, .25); } 100% { box-shadow: 0 0 0 10px rgba(17, 17, 17, 0); } }

/* Заказы */
.acc-filter { display: flex; gap: 8px; margin-top: 20px; }
.orders { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.order { background: #fff; }
.order[hidden] { display: none; }
.order__head {
  display: grid;
  grid-template-columns: 1fr auto auto 20px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
}
.order__main { display: flex; flex-direction: column; }
.order__total { font-size: 15px; font-weight: 700; white-space: nowrap; }
.order__chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.order.is-open .order__chev { transform: rotate(-135deg); }
.order__inner { padding: 0 24px 24px; border-top: 1px solid var(--c-line); }
.order__thumbs { display: flex; gap: 8px; margin-top: 20px; }
.order__thumbs span { width: 56px; aspect-ratio: 3 / 4; background-size: 18px, cover; }
.order__items { margin-top: 20px; border-top: 1px solid var(--c-line); }
.order__items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.order__items i { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--c-muted); }
.order__items b { white-space: nowrap; }
.order__delivery { color: var(--c-muted); }
.order__meta { margin-top: 16px; font-size: 14px; }
.order__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.order__ghost { border-color: var(--c-ink); }

/* Бонусы */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.tier { position: relative; padding: 24px; background: #fff; border: 1px solid transparent; transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.tier:hover { transform: translateY(-3px); }
}
.tier.is-current { border-color: var(--c-ink); }
.tier__name { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.tier__rate { margin: 8px 0 0; font-family: var(--font-display); font-size: 48px; line-height: 1; }
.tier:nth-child(2) .tier__rate { color: #7d7f85; }
.tier:nth-child(3) .tier__rate { color: #b8862b; }
.tier__cond { margin: 8px 0 0; font-size: 13px; color: #555; }
.tier__badge { position: absolute; top: 16px; right: 16px; padding: 4px 8px; background: var(--c-ink); color: #fff; font-size: 11px; font-weight: 700; }
.bonus-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.bonus-table th, .bonus-table td { padding: 14px 20px; border-bottom: 1px solid var(--c-line); text-align: left; }
.bonus-table th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.bonus-table td:last-child, .bonus-table th:last-child { text-align: right; white-space: nowrap; }
.bonus-table .is-plus { color: #2f7a3f; font-weight: 700; }
.bonus-table .is-minus { color: var(--c-red); font-weight: 700; }

/* Избранное */
.acc-wish { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; margin-top: 24px; }
.acc-wish .empty { grid-column: 1 / -1; background: #fff; }

/* Формы */
.acc-form { margin-top: 24px; }
.co-input--readonly { background: #f6f5f2; color: var(--c-muted); }
.acc-gender { display: flex; }
.acc-gender button { flex: 1; background: #fff; }
.acc-switches { gap: 14px; }
.acc-form__save { margin-top: 28px; min-width: 240px; }

/* Адреса */
.addr-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.addr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid transparent;
  animation: rise .4s var(--ease) backwards;
}
.addr.is-main { border-color: var(--c-ink); }
.addr__name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; }
.addr__badge { padding: 3px 8px; background: var(--c-ink); color: #fff; font-size: 11px; font-weight: 700; }
.addr__text { margin: 6px 0 0; font-size: 14px; color: #555; }
.addr__actions { display: flex; gap: 16px; font-size: 13px; white-space: nowrap; }
.addr__del { color: var(--c-red); }
.addr-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 20px;
  border: 1.5px dashed #c9c6bf;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
@media (hover: hover) and (pointer: fine) {
.addr-add:hover { border-color: var(--c-ink); background: #fff; }
}
.addr-add[hidden] { display: none; }
.addr-add span { font-size: 20px; line-height: 1; }
.addr-form { margin-top: 10px; }
.addr-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.addr-form__cancel { border-color: var(--c-line); }

/* Уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  padding: 14px 20px;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Страница 404 ===== */
.nf__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(24px, 4vw, 48px);
  text-align: center;
}
.nf__art { position: relative; width: min(560px, 100%); }
.nf__num { display: block; width: 100%; height: auto; overflow: visible; }
.nf__num text { font-family: var(--font-display); font-weight: 500; font-size: 260px; letter-spacing: -4px; }
.nf__fill { fill: url(#denim); animation: rise .8s var(--ease) backwards; }
/* Прострочка «шьётся» по кругу */
.nf__stitch {
  fill: none;
  stroke: #e3b56a;
  stroke-width: 7;
  stroke-dasharray: 7 6;
  animation: sew 6s linear infinite;
}
@keyframes sew { to { stroke-dashoffset: -260; } }

/* Ярлык качается на верёвочке */
.nf__tag {
  position: absolute;
  top: 6%;
  right: -16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: swing 3.2s ease-in-out infinite;
}
.nf__tag-string { width: 1px; height: 46px; background: #8a8780; }
.nf__tag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 104px;
  padding: 22px 10px 12px;
  background: #c8102e;
  color: #fff;
  clip-path: polygon(20% 0, 80% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.nf__tag-hole { position: absolute; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.nf__tag-brand { font-family: var(--font-display); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.nf__tag-size { font-size: 11px; font-weight: 700; }
.nf__tag-note { font-size: 10px; opacity: .8; }
@keyframes swing { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } }

.nf__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  animation: rise .8s var(--ease) .1s backwards;
}
.nf__text { max-width: 520px; margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: #555; animation: rise .8s var(--ease) .18s backwards; }
.nf__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 28px;
  padding-left: 16px;
  border: 1px solid #d9d7d2;
  transition: border-color .2s, box-shadow .2s;
  animation: rise .8s var(--ease) .26s backwards;
}
.nf__search:focus-within { border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }
.nf__search svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nf__search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; font: inherit; font-size: 15px; background: none; }
.nf__search .btn { min-width: 0; height: 52px; margin: -1px -1px -1px 0; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; animation: rise .8s var(--ease) .32s backwards; }
.nf__btn { border-color: var(--c-ink); }
.nf__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; font-size: 13px; color: var(--c-muted); animation: rise .8s var(--ease) .38s backwards; }
.nf__links .chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 13px; color: var(--c-ink); }
.chip--sale { color: var(--c-red) !important; }
.nf .products { padding-top: 24px; }

/* ===== Страница корзины ===== */
.cart-crumbs { padding: 20px var(--gutter) 0; }
.cart-page__title {
  margin: 16px 0 0;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}
.cart-page__count { color: var(--c-muted); }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
  padding: 28px var(--gutter) 0;
}
.cart-layout[hidden] { display: none; }

.cart-cols {
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  gap: 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--c-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.cart-cols span:not(:first-child) { text-align: right; }
.cart-cols span:nth-child(2) { text-align: center; }

.cp-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px 140px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.cp-item__img { display: block; aspect-ratio: 3 / 4; }
.cp-item__img.ph { background-size: 36px, cover; transition: filter .3s; }
@media (hover: hover) and (pointer: fine) {
.cp-item__img:hover { filter: brightness(.96); }
}
.cp-item__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
.cp-item__title:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.cp-item__meta { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--c-muted); }
.cp-item__unit { margin: 8px 0 0; font-size: 13px; }
.cp-item__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; }
.cp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #444; transition: color .2s; }
.cp-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
.cp-link:hover { color: var(--c-ink); }
}
@media (hover: hover) and (pointer: fine) {
.cp-link[data-cp-fav]:hover { color: var(--c-red); }
}
@media (hover: hover) and (pointer: fine) {
.cp-link[data-cp-fav]:hover svg { animation: icon-heart .6s ease; }
}
.cp-item__qty { justify-self: center; }
.cp-item__price { margin: 0; font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; }
.cp-item__price s { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--c-muted); }
.cp-item__price.is-bump { display: block; transform-origin: right center; }

.cart-continue { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.cart-continue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
.cart-continue:hover svg { transform: translateX(-3px); }
}

.cart-sum { position: sticky; top: calc(var(--header-h) + 24px); transition: top .45s var(--ease); }
body:has(.header.is-hidden) .cart-sum { top: 24px; }
.cart-sum__inner { padding: 28px; background: #f6f5f2; }
.cart-sum__title { margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.cart-sum .sum-row--total { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3e1dc; font-size: 20px; }
.cart-sum__muted { color: var(--c-muted); }
.cart-sum .sum-cashback { margin: 10px 0 20px; }
.cart-sum__btn { width: 100%; height: 56px; }
.cart-sum__pay { justify-content: center; margin: 20px 0 0; }
.cart-sum__pay li { border-color: #d9d7d2; color: #444; background: #fff; }
.cart-sum__perks { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e3e1dc; }

.cart-empty { padding: 48px 16px 24px; }
.cart-bar[hidden] { display: none !important; }

/* Счётчик корзины «подпрыгивает» при добавлении */
.is-bump { animation: bump .45s var(--ease); }
.qty span.is-bump { display: inline-block; }
@keyframes bump { 40% { transform: scale(1.45); } }

.btn--dark { --sweep: var(--c-red); background: var(--c-ink); color: #fff; }

/* ===== Быстрый просмотр ===== */
.qv {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.qv[hidden] { display: none; }
.qv__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  animation: fade .25s ease;
}
.qv__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  animation: pop .3s var(--ease);
}
.qv__close { position: absolute; top: 8px; right: 8px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.qv__gallery { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.qv__main { aspect-ratio: 3 / 4; background-size: 96px, cover; }
.qv__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qv__thumb {
  aspect-ratio: 1;
  background-size: 32px, cover;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color .2s;
}
.qv__thumb.is-active { outline-color: var(--c-ink); }
@media (hover: hover) and (pointer: fine) {
.qv__thumb:hover { outline-color: var(--c-ink); }
}

.qv__info { display: flex; flex-direction: column; padding: 40px 40px 32px 24px; }
.qv__badge { position: static; align-self: flex-start; margin-bottom: 12px; background: #f2f1ee; }
.qv__badge.card__badge--sale { background: var(--c-red); }
.qv__badge:empty { display: none; }
.qv__title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; }
.qv__price { margin-top: 10px; font-size: 20px; }
.qv__cashback { margin: 6px 0 0; font-size: 13px; color: var(--c-muted); }

.qv__group { margin-top: 28px; }
.qv__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.qv__label span { font-weight: 500; color: var(--c-muted); }
.qv__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.qv__guide { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--c-muted); }
@media (hover: hover) and (pointer: fine) {
.qv__guide:hover { color: var(--c-ink); }
}

.qv__colors { display: flex; gap: 10px; }
.qv__color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
  outline: 1.5px solid transparent;
  outline-offset: 3px;
  transition: outline-color .2s;
}
@media (hover: hover) and (pointer: fine) {
.qv__color:hover { outline-color: #bbb; }
}
.qv__color.is-active { outline-color: var(--c-ink); }

.qv__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.qv__size {
  height: 44px;
  border: 1px solid var(--c-line);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) {
.qv__size:hover:not(:disabled) { border-color: var(--c-ink); }
}
.qv__size.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.qv__size:disabled { color: #bbb; cursor: default; background: linear-gradient(to top right, transparent 49%, var(--c-line) 50%, transparent 51%); }
.qv__sizes.is-error .qv__size:not(:disabled) { border-color: var(--c-red); }
.qv__error { margin: 8px 0 0; font-size: 13px; color: var(--c-red); }

.qv__add { width: 100%; height: 52px; margin-top: 28px; }
.qv__add.is-done { background: #2f7a3f; }
.qv__more {
  align-self: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.qv__perks {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
}
.qv__perks li::before { content: "✓"; margin-right: 8px; color: var(--c-ink); }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .nav__link { padding: 0 9px; font-size: 13px; }
  .nav__link::after { left: 9px; right: 9px; }
  .header__inner { gap: 20px; }
  .mega__promo { display: none; }
  .mega__inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .header__burger { display: inline-flex; }
  /* Равные боковые колонки — логотип точно по центру экрана */
  .header__inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .header__inner > .logo { grid-column: 2; justify-self: center; }
  .header .logo__img { height: 38px; }
  .announce__side { display: none; }
  .products__row, .cats__row { --cols: 3; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .fit-card__media { aspect-ratio: 1 / 1; }
  .fit-card__name { margin-top: 10px; font-size: 14px; }
  .fit-card__desc { min-height: 0; font-size: 12px; }
  .fit-carousel__row { grid-auto-columns: 156px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-padding-right: var(--gutter); }
  .co { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .cart-cols { display: none; }
  .cp-item { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "img info price" "img qty price"; gap: 12px 20px; }
  .cp-item__img { grid-area: img; }
  .cp-item__info { grid-area: info; }
  .cp-item__qty { grid-area: qty; justify-self: start; }
  .cp-item__price { grid-area: price; }
  .acc { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
  .acc-dash { grid-template-columns: 1fr; }
  .acc-wish { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
  .pdp__gallery { grid-template-columns: 1fr; }
  .blog__grid { gap: 16px; }
  .blog-grid { gap: 40px 20px; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc__nav { position: static; display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 32px; padding: 0 var(--gutter); scrollbar-width: none; }
  .svc__nav::-webkit-scrollbar { display: none; }
  .svc__nav-title { display: none; }
  .svc__nav ul { display: contents; }
  .svc__nav a { flex-shrink: 0; padding: 9px 14px; border: 1px solid var(--c-line); border-radius: 20px; white-space: nowrap; font-size: 13px; }
  .svc__nav a[aria-current="page"] { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
  .blog-grid .post__title { font-size: 19px; }
  .post__title { font-size: 18px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid #e3e1dc; }
  .footer__main { grid-template-columns: 1fr; gap: 48px; }
}

/* Устройства без наведения: быстрый просмотр открывается иконкой корзины */
@media (hover: none) {
  .card__quick { display: none; }
}

@media (max-width: 760px) {
  /* Быстрый просмотр — нижняя шторка на всю ширину */
  .qv { align-items: flex-end; padding: 0; }
  .qv__dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    animation: sheet .35s var(--ease);
  }
  @keyframes sheet { from { transform: translateY(100%); } }
  .qv__gallery { padding: 0; }
  .qv__main { aspect-ratio: auto; height: 42vh; }
  .qv__thumbs { display: none; }
  .qv__info { padding: 20px 16px 28px; }
  .qv__title { font-size: 20px; }
  .qv__close { background: rgba(255, 255, 255, .9); }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .announce { font-size: 12px; }
  .announce__inner { padding: 8px 16px; }
  .hero { height: calc(100svh - var(--header-h) - 48px); min-height: 560px; }

  /* Сплит превращается в две кликабельные половины сверху вниз */
  .hero__slide--split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero__slide--split::after { display: none; }
  .hero__slide--split .hero__content { display: none; }
  .hero__label {
    display: block;
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  }
  .hero__label::after { content: " →"; }
  .hero__half::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent 50%);
  }

  .hero__content--left { left: 16px; right: 16px; bottom: 76px; }
  .hero__text { font-size: 15px; }
  .btn { min-width: 0; flex: 1; padding: 0 16px; }
  .hero__controls { right: 16px; bottom: 20px; }
  .products__row { --cols: 2; --gap: 10px; grid-auto-columns: 44%; }
  .row-nav { display: none; }
  /* Страница корзины: одна колонка, итог внизу экрана */
  .cart-crumbs { padding: 12px 16px 0; font-size: 12px; }
  .cart-page__title { padding: 0 16px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 12px 16px 0; }
  .cp-item {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "img info" "img qty" "img price";
    gap: 8px 14px;
    padding: 18px 0;
  }
  .cp-item__title { font-size: 14px; }
  .cp-item__meta { margin-top: 4px; font-size: 12px; line-height: 1.5; }
  .cp-item__unit { display: none; }
  .cp-item__links { gap: 6px 14px; margin-top: 10px; }
  .cp-item__price { text-align: left; font-size: 15px; }
  .cp-item__price s { display: inline; margin-left: 6px; }
  .cart-sum { position: static; }
  .cart-sum__inner { padding: 20px 16px; }
  .cart-page { padding-bottom: 72px; }
  .buybar.cart-bar { transform: none; } /* на странице корзины панель видна всегда */

  /* 404 */
  .nf__hero { padding: 28px 16px 16px; }
  .nf__tag { right: -4px; top: 0; transform-origin: 50% 0; scale: .72; }
  .nf__text { font-size: 14px; }
  .nf__search .btn { padding: 0 18px; }
  .nf__actions { width: 100%; }
  .nf__actions .btn { flex: 1; min-width: 0; }

  /* Кабинет: меню становится лентой вкладок */
  .acc-crumbs { padding: 12px 16px 0; font-size: 12px; }
  /* minmax(0, 1fr): иначе лента вкладок растягивает колонку шире экрана */
  .acc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 0 0; }
  .acc-nav { position: relative; top: auto; }
  .acc-nav__user { padding: 14px 16px; }
  .acc-nav__logout {
    position: absolute;
    top: 14px;
    right: 12px;
    width: auto;
    padding: 10px 8px;
    border-top: 0;
    font-size: 13px;
  }
  .acc-nav__list {
    display: flex;
    padding: 0 8px;
    overflow-x: auto;
    border-top: 1px solid var(--c-line);
    scrollbar-width: none;
  }
  .acc-nav__list::-webkit-scrollbar { display: none; }
  .acc-nav__link { flex-shrink: 0; padding: 14px 10px; white-space: nowrap; background: none !important; }
  .acc-nav__link svg { display: none; }
  .acc-nav__link::before { top: auto; bottom: 0; left: 10px; right: 10px; width: auto; height: 2px; transform: scaleX(0); }
  .acc-nav__link.is-active::before { transform: scaleX(1); }
  .acc-content { padding: 0 12px; }
  .acc-card, .bonus-card { padding: 20px 16px; }
  .bonus-card__value { font-size: 40px; }
  .acc-quick { gap: 8px; }
  .acc-quick__item { flex-direction: column; gap: 0; padding: 14px; }
  .acc-quick__item b { font-size: 26px; }
  .acc-quick__item span { font-size: 12px; }
  .order__head {
    grid-template-columns: 1fr auto;
    grid-template-areas: "main status" "total chev";
    gap: 10px 12px;
    padding: 16px;
  }
  .order__main { grid-area: main; }
  .order__head .status { grid-area: status; }
  .order__total { grid-area: total; }
  .order__chev { grid-area: chev; justify-self: end; margin-right: 6px; }
  .order__inner { padding: 0 16px 20px; }
  .tracker { font-size: 10px; }
  .tiers { grid-template-columns: 1fr; gap: 8px; }
  .tier { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px; }
  .tier__rate { grid-row: span 2; font-size: 36px; margin: 0; }
  .tier__badge { position: static; grid-column: 1; justify-self: start; margin-top: 8px; }
  .bonus-table th, .bonus-table td { padding: 12px 10px; font-size: 13px; }
  .acc-wish { gap: 24px 10px; }
  .addr { flex-direction: column; align-items: flex-start; padding: 16px; }
  .acc-form__save { width: 100%; min-width: 0; }

  /* Оформление: одна колонка, сводка сворачивается под шапкой */
  .co-header { height: 60px; padding: 0 12px; }
  .co-header__back span, .co-header__secure span { display: none; }
  .co-header .logo__img { height: 36px; }
  .co { grid-template-columns: 1fr; gap: 0; padding: 20px 0 48px; }
  .co__form { padding: 0 12px; }
  .co__login { margin-bottom: 16px; font-size: 13px; }
  .co-step { padding: 20px 16px; }
  .co-step__title { font-size: 18px; margin-bottom: 18px; }
  .co-grid { grid-template-columns: 1fr; gap: 14px; }
  .co-option { padding: 14px; align-items: flex-start; }
  .co-option input { margin-top: 2px; }
  .co-options--pay .pay-logo, .co-options--pay .pay-logos { display: none; }
  .co-mobile-sum {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    font-size: 14px;
    font-weight: 600;
  }
  .co-mobile-sum[hidden] { display: none; }
  .co-mobile-sum__hint { margin-left: 6px; font-weight: 500; color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
  .co-mobile-sum b { font-size: 16px; }
  .co-sum {
    position: static;
    order: -1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease);
  }
  .co-sum > .co-sum__inner { min-height: 0; overflow: hidden; padding: 0 16px; animation: none; }
  .co-sum.is-open { grid-template-rows: 1fr; }
  .co-sum[hidden] { display: none; }
  .co-sum.is-open > .co-sum__inner { padding: 4px 16px 20px; border-bottom: 1px solid var(--c-line); }
  .co-sum__title { display: none; }
  .co-done { margin: 20px 12px; padding: 36px 20px; }

  /* Страница товара: галерея свайпом, под ней информация */
  .pdp-crumbs { padding: 12px 16px 0; font-size: 12px; }
  .pdp { grid-template-columns: 1fr; gap: 20px; padding: 12px 0 0; }
  .pdp__gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__shot { flex: 0 0 100%; scroll-snap-align: start; }
  .pdp__gallery--odd .pdp__shot:first-child { aspect-ratio: 3 / 4; }
  .pdp__gallery-wrap--slider .pdp__shot { height: auto; aspect-ratio: 3 / 4; }
  .pdp__arrow { display: none; }
  .pdp__thumbs { gap: 6px; padding: 0 16px; }
  .pdp__thumb { flex-basis: 60px; }
  .pdp__colors { gap: 8px; }
  .color-thumb { width: 58px; }
  .pdp__counter {
    display: block;
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 700;
  }
  .pdp__info { position: static; padding: 0 16px; }
  .pdp__price { font-size: 22px; }
  .segmented button { min-width: 0; flex: 1; }
  .segmented { display: flex; }
  .lightbox__stage { max-width: 100vw; height: auto; width: 100vw; }
  .lightbox__nav { display: none; }

  .buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
    transform: translateY(110%);
    transition: transform .4s var(--ease);
  }
  .buybar.is-visible { transform: none; }
  .buybar__info { flex: 1; min-width: 0; }
  .buybar__title { margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; color: var(--c-muted); }
  .buybar__price { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
  .buybar__btn { min-width: 0; height: 46px; padding: 0 24px; }

  .catalog__head { padding: 16px 16px 4px; }
  .catalog__lead { font-size: 14px; }
  .fit-carousel { margin-top: 24px; padding: 20px var(--gutter) 24px; }
  .fit-carousel__head .row-nav { display: none; }
  .fit-carousel__title { font-size: 17px; }
  .fit-carousel__row { grid-auto-columns: 132px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .fit-card__name { margin-top: 8px; font-size: 13px; }
  .fit-card__desc { font-size: 11px; }
  .chip { height: 36px; padding: 0 14px; font-size: 13px; }
  .toolbar__inner { padding: 0 8px; }
  .sort__label { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; padding: 16px 16px 0; }
  .catalog-grid.is-large { grid-template-columns: 1fr; gap: 32px; }
  .promo-tile { padding: 24px 20px; min-height: 260px; }
  .sort__menu { right: -8px; }
  /* Панель каталога на узких экранах (2026-11-13): меньше отступы, длинная подпись сортировки обрезается
     многоточием — иначе переключатель карточек вылезал за край и страница съезжала вбок */
  .toolbar__inner { gap: 4px; }
  .toolbar__btn { gap: 6px; padding: 0 8px; }
  .sort { min-width: 0; }
  .sort__btn { max-width: 100%; }
  .sort__btn > span:not(.sort__label) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .density { flex: none; margin-left: 4px; padding-left: 6px; }
  .density__btn { width: 32px; }
  /* Преимущества: 2 колонки, иконка над текстом, чтобы влезало в половину экрана */
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .perk svg { width: 26px; height: 26px; }
  .perk__title { font-size: 13px; }
  .perk__text { font-size: 12px; }
  .footer__main { padding: 40px 16px 24px; gap: 32px; }
  /* Колонки ссылок — аккордеоны */
  .footer__cols { grid-template-columns: 1fr; gap: 0; }
  .fcol { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .fcol__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 18px 0;
    cursor: pointer;
  }
  details.fcol .fcol__title::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s;
  }
  details.fcol[open] .fcol__title::after { transform: rotate(-135deg); }
  .fcol__list { padding-bottom: 20px; }
  .fcol--contacts { border-bottom: 0; padding-top: 8px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding: 20px 16px 28px; }
  .payments { margin-left: 0; flex-wrap: wrap; gap: 5px; }
  .payments img { height: 24px; } /* все 8 логотипов в одну строку на 390px */
  .insta__head { align-items: center; }
  .insta__follow { height: 40px; padding: 0 14px; font-size: 13px; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .blog__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .blog__grid::-webkit-scrollbar { display: none; }
  .post { scroll-snap-align: start; }
  .blog-grid .post__img { aspect-ratio: 4 / 3; }
  .blog-grid .post__title { font-size: 18px; }
  .blog-tags { margin-top: 24px; padding: 0 16px 20px; }
  .blog-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 16px; }
  .svc { padding: 20px 16px 56px; }
  .svc-cards, .svc-steps, .svc-contact__row { grid-template-columns: 1fr; }
  .svc-levels { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc-level { padding: 18px 16px; }
  .svc-level__pct { font-size: 36px; }
  .svc-size { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .svc-size__img { width: 96px; padding: 10px; }
  .svc-table { font-size: 13px; }
  .svc-table th, .svc-table td { padding: 10px 8px; }
  .svc-doc__item + .svc-doc__item { margin-top: 28px; padding-top: 28px; }
  .svc-steps { gap: 20px; }
  .svc-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
  .svc-steps__num { grid-row: span 2; }
  .svc-steps__title { margin-top: 6px; }
  .svc-steps li:not(:last-child)::after { top: 40px; bottom: -16px; left: 17px; right: auto; width: 1px; height: auto; }
  .svc-card { padding: 20px; }
  .svc-note { align-items: flex-start; }
  .article__head { padding: 16px 16px 0; }
  .article__tag { margin-top: 24px; }
  .article__lead { font-size: 16px; }
  .article__cover { aspect-ratio: 4 / 3; margin: 28px 0 0; }
  .article__layout { padding: 32px 16px 0; }
  .article__share { margin-top: 36px; }
  .article__body { font-size: 16px; }
  .article__body h2 { margin-top: 36px; }
  .article__note { padding: 18px; }
  .article__table { font-size: 14px; }
  .article__nav { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .article__products { grid-template-columns: 1fr; }
  .article__nav-link--next { grid-column: auto; text-align: left; }
  .article__nav-title { font-size: 16px; }
  .post__title { font-size: 17px; }
  .cats__row { --gap: 10px; grid-auto-columns: 62%; }
  .tile__label { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; padding: 10px 12px; font-size: 13px; }
  .tile__sale { padding: 0 16px 40px; }
  .tile__sale-text { font-size: 13px; }
  .fits__head { flex-direction: column; align-items: stretch; }
  .tabs__btn { flex: 1; }
  .fits__row { grid-auto-columns: 42%; gap: 10px; }
  .fit__name { font-size: 19px; }
  .card__title, .card__price { font-size: 13px; }
  .hero__dot { width: 18px; }
  .hero__dot.is-active { width: 30px; }
}

/* «Уменьшить движение» в системе: убираем крупное движение,
   мягкие эффекты (линии, цвет, проявление) оставляем */
@media (prefers-reduced-motion: reduce) {
  .hero__slide img,
  .hero.is-ready .hero__slide.is-active img { scale: 1; translate: none; transition: none; }
  .hero__half { clip-path: none; transition: none; }
  .hero__word > span { transform: none; }
  .hero__eyebrow, .hero__text, .hero__ctas { transform: none; }
  .header.is-hidden { transform: none; }
  .header__inner > * { animation: none; }
  .icon-btn[data-anim]:hover svg { animation: none; }
  .mega__col > *, .mega__promo, .search__hints > *, .drawer__list > li { transform: none; }
  .mega__promo img { transform: none; }
  .js [data-reveal] > * { transform: none; }
  .sheet__panel, .sheet__body > * { transition-property: opacity; }
  .sheet.is-open .sheet__panel { transform: none; }
  .empty svg { animation: none; }
  .nf__tag { animation: none; transform: rotate(4deg); }
  .nf__stitch { animation: none; }
  .card:hover .card__swatches span { transform: none; }
}

/* ===== О нас (about.html) — содержимое со страницы основного сайта ===== */
.crumbs--light, .crumbs--light [aria-current] { color: rgba(255, 255, 255, .8); }
@media (hover: hover) and (pointer: fine) {
.crumbs--light a:hover { color: #fff; }
}

/* Шапка с видео на фоне */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 760px);
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
  text-align: center;
}
.about-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .55)); }
.about-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 96px var(--gutter); }
.about-hero__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .95;
  text-transform: uppercase;
}
.about-hero__sub { margin: 18px 0 0; font-size: clamp(15px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); }
/* Подсказка «листать вниз» */
.about-hero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 28px; width: 24px; height: 40px; translate: -50% 0; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 12px; }
.about-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; translate: -50% 0; background: #fff; border-radius: 1px; animation: about-scroll 1.8s ease-in-out infinite; }
@keyframes about-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Вступление */
.about-intro { padding: clamp(56px, 8vw, 112px) var(--gutter); background: #f6f5f2; }
.about-intro__text {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.5;
  text-align: center;
  color: var(--c-ink);
}

/* Три карточки с фото */
.about-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px; }
.about-tile { position: relative; margin: 0; overflow: hidden; aspect-ratio: 610 / 820; background: #e9e7e2; }
.about-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%); }
@media (hover: hover) and (pointer: fine) {
.about-tile:hover img { transform: scale(1.04); }
}
.about-tile__title {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

/* Прозрачность: видео + текст */
.about-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 8vw, 112px) var(--gutter); }
.about-split__media { aspect-ratio: 1; overflow: hidden; background: #e9e7e2; }
.about-split__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-split__body { max-width: 520px; }
.about-split__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red); }
.about-split__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
}
.about-split__text { margin: 20px 0 0; font-size: 16px; line-height: 1.7; color: #555; }
.about-split__btn { margin-top: 32px; }

@media (max-width: 760px) {
  .about-hero { min-height: 72vh; }
  .about-tiles { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .about-tile { aspect-ratio: 4 / 3; }
  .about-tile img { object-position: center 35%; }
  .about-tile img.about-tile__img--low { object-position: center 85%; } /* люди внизу кадра */
  .about-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .about-hero__scroll span { animation: none; }
  .about-tile img { transition: none; }
}

/* ===== Нижняя панель навигации (телефон) =====
   Всегда закреплена. Нет на товаре (там своя панель «В корзину») и в оформлении заказа.
   Где панель есть, корзина из мобильной шапки убрана — она в панели. */
.tabbar { display: none; }
@media (max-width: 640px) {
  .tabbar {
    --tabbar-h: 60px;
    position: fixed;
    z-index: 35; /* под затемнением меню (40) и панелями (70) */
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--c-line);
  }
  .tabbar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-ink);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar__item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar__item:active svg { transform: scale(.9); }
  .tabbar__item.is-active { color: var(--c-red); }
  /* Счётчик — как у иконок в шапке */
  .tabbar__count {
    position: absolute;
    top: 6px;
    left: calc(50% + 6px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--c-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
  }
  .tabbar__count[hidden] { display: none; }

  body:has(.tabbar) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .header .cart { display: none; }
  body:has(.tabbar) .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Ряды: листание мышью с зажатой кнопкой (main.js). Только для мыши — на тач-экранах как было */
@media (hover: hover) and (pointer: fine) {
  .is-draggable { cursor: grab; }
}
.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  user-select: none;
}
.is-dragging a, .is-dragging button { cursor: grabbing; }
