/* Витрина БУМ. Токены из макета: один акцент, шаг сетки 4 px. */

:root {
  --accent: #7B5CFF;
  --accent-hover: #6A49F5;
  --accent-pressed: #5A3BE0;
  --accent-soft: #F3F1FF;
  --accent-disabled: #C9BEFF;
  --error: #E5484D;
  --error-soft: #FDECEC;
  --error-text: #A02A2E;
  --text: #1A1A1F;
  --text-secondary: #55536B;
  --text-muted: #8B88A0;
  --text-disabled: #C4C1D4;
  --border: #E4E1F0;
  --border-soft: #EFEDF7;
  --surface: #F8F8FA;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 24px 60px rgba(26, 26, 31, .10);
  --shadow-hover: 0 14px 36px rgba(26, 26, 31, .14);
  --transition: 150ms ease-out;
  --focus: 0 0 0 3px rgba(123, 92, 255, .35);
  --container: 1440px;
}

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 30px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 12px; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 44px; }
.muted { color: var(--text-muted); }
.muted--sm { font-size: 13px; }
.is-hidden { display: none !important; }
.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  cursor: pointer; text-align: left;
}
.link:hover { color: var(--accent-hover); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
}

/* ───────────────────────────────────────────────────────── кнопки */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
}
.button--primary { background: var(--accent); color: var(--white); }
.button--primary:hover { background: var(--accent-hover); color: var(--white); }
.button--primary:active { background: var(--accent-pressed); }
.button--primary:disabled { background: var(--accent-disabled); cursor: not-allowed; }
.button--ghost { background: var(--white); color: var(--text); border-color: var(--border); }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }
.button--light { background: var(--white); color: var(--text); }
.button--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.button--block { width: 100%; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); cursor: pointer; position: relative;
  transition: background var(--transition), color var(--transition);
}
.icon-button:hover { background: var(--surface); color: var(--accent); }
.icon-button--lg { width: 52px; height: 52px; border: 1px solid var(--border); flex: none; }
.icon-button.is-active { color: var(--accent); }
.icon-button.is-active svg { fill: var(--accent); }

.badge {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--white);
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.badge.is-empty { display: none; }

/* ───────────────────────────────────────────────────── шапка/подвал */
/* Значения взяты из экрана 8a макета. */

.promo-bar { background: var(--accent); color: var(--white); font-size: 13px; }
.promo-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 44px;
}
.promo-bar a { color: var(--white); }
.promo-bar a:hover { color: var(--white); opacity: .8; }
.promo-bar__links { display: flex; align-items: center; gap: 16px; }
.promo-bar__sep { opacity: .45; }

.header {
  position: sticky; top: 0; z-index: 40; background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--transition);
}
.header__inner {
  display: flex; align-items: center; gap: 40px; height: 88px;
  transition: height var(--transition);
}
/* При прокрутке шапка сжимается и оставляет только «Кроссовки», поиск и иконки —
   остальные пункты уводим, чтобы не спорить с содержимым страницы. */
.header.is-compact { box-shadow: 0 6px 20px rgba(23, 21, 38, .07); }
.header.is-compact .header__inner { height: 62px; }
.header.is-compact .header__nav-item:not(:first-child) {
  opacity: 0; pointer-events: none; width: 0; overflow: hidden;
}
.header__nav-item {
  transition: opacity var(--transition), width var(--transition);
}
@media (prefers-reduced-motion: reduce) {
  .header__inner, .header__nav-item { transition: none; }
}
.header__burger { display: none; }

/* Логотип: Cormorant Garamond акцентного цвета с тонкими разделителями. */
.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px; font-weight: 400; line-height: 1; color: var(--accent);
  display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
}
.logo__sep { width: 1px; height: .75em; background: currentColor; opacity: .5; flex: none; }
.header__logo { flex: none; display: inline-flex; }
.header__logo:hover .logo { color: var(--accent-hover); }

.header__nav { display: flex; align-items: center; gap: 30px; min-width: 0; font-size: 15px; font-weight: 500; }
.header__nav a { color: var(--text); white-space: nowrap; }
.header__nav a:hover { color: var(--accent); }
.header__nav a.is-active {
  font-weight: 700; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 4px;
}
.header__nav-item { position: relative; }
.header__submenu {
  position: absolute; top: calc(100% + 18px); left: -14px;
  padding: 12px 0; min-width: 190px;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  display: none; flex-direction: column; z-index: 5;
}
/* Невидимый мостик через отступ до меню: без него курсор по дороге вниз
   выходит из пункта, наведение слетает и список успевает закрыться. */
.header__submenu::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px;
}
.header__nav-item:hover .header__submenu,
.header__nav-item:focus-within .header__submenu { display: flex; }
.header__submenu a { padding: 8px 18px; font-weight: 500; }

.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 16px 0 20px;
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--radius-sm); transition: border-color var(--transition);
}
.search:focus-within { border-color: var(--accent); background: var(--white); }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; font: inherit;
  font-size: 14.5px; color: var(--text); outline: none;
}
.search input::placeholder { color: var(--text-muted); }
.search__submit {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: 0; background: none;
  color: var(--accent); cursor: pointer;
}
.search--big {
  max-width: 420px; height: 52px; margin: 20px auto;
  background: var(--white); border-color: var(--border);
}

.header__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header__icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;   /* удобная область нажатия на телефоне */
  color: var(--accent); transition: opacity var(--transition);
}
.header__icon:hover { opacity: .7; }
.header__icon.is-active svg { fill: currentColor; }
.header__badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--white);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.header__badge.is-empty { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(26, 26, 31, .4); }
.mobile-menu__panel {
  width: min(320px, 88vw); height: 100%; background: var(--white);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-soft);
}
.search--mobile { margin: 16px 20px 4px; flex: none; height: 46px; }
/* Строка поиска под шапкой — только на телефоне (см. медиазапрос). */
.header__searchbar { display: none; }
.search--bar { height: 44px; width: 100%; }
.mobile-menu__nav { display: flex; flex-direction: column; padding: 12px 0 32px; }
.mobile-menu__group { padding: 13px 20px; font-size: 16px; font-weight: 700; color: var(--text); }
.mobile-menu__child { padding: 10px 20px 10px 34px; font-size: 14px; color: var(--text-secondary); }

.footer { margin-top: 80px; background: var(--surface); }
.footer__inner { display: flex; gap: 64px; padding-top: 40px; padding-bottom: 40px; }
.footer__brand { width: 280px; flex: none; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer__brand .logo { font-size: 28px; }
.footer__brand p { font-size: 13.5px; line-height: 1.65; color: #6B6880; margin: 0; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 14px; color: #6B6880; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__title { font-weight: 700; color: var(--text); }
.footer__col a { color: #6B6880; }
.footer__col a:hover { color: var(--accent); }
.footer__phone { font-size: 19px !important; font-weight: 700; color: var(--text) !important; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 28px;
  border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────── структура */

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 22px 0 0; font-size: 13px; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__current { color: var(--text); }

.page-head { padding: 26px 0 28px; }
.page-head--row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head__sub { color: var(--text-muted); max-width: 620px; margin: 10px 0 0; text-wrap: pretty; }

/* .section и .section__* описаны ниже, в блоке главной — по значениям макета. */
.section__title { font-size: 28px; font-weight: 800; }
.section__subtitle { color: var(--text-muted); margin: 8px 0 0; font-size: 15px; }

.panel {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.panel h2 { font-size: 20px; margin-bottom: 18px; }
.panel--sticky { position: sticky; top: 96px; }

.notice { padding: 13px 18px; border-radius: var(--radius); font-size: 14px; margin: 0 0 20px; }
.notice--error { background: var(--error-soft); color: var(--error-text); }
.notice--ok { background: var(--accent-soft); color: var(--accent-pressed); }

/* ───────────────────────────────────────────────────────── главная */
/* Размеры из экрана 3a макета. */

/* Заглушка вместо фотографии — диагональная штриховка, как в макете. */
.ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #F7F5FF 0 10px, #EEEBF9 10px 20px);
}
.ph__label {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: #A9A6BC; text-align: center; padding: 0 10px;
}
.ph--hero .ph__label { font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: inherit; font-size: 15.5px; font-weight: 600; border: 1px solid transparent;
  border-radius: 12px; padding: 20px 32px; cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); }
.btn--outline { background: var(--white); color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: var(--white); color: var(--text); }
.btn--hero { padding: 20px 32px; }

/* ── Первый экран ───────────────────────────────────────────────────
   Композиция по референсу: слева счётчик, двухстрочный заголовок,
   подтекст, кнопка и полоски-индикаторы; справа — крупное фото.
   Положение фотографии задаётся переменными --fit/--scale/--x/--y
   из настроек слайда в панели управления. */

.hero {
  position: relative;
  margin: 16px 44px 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(123, 92, 255, .16), transparent 62%),
    radial-gradient(90% 70% at 96% 92%, rgba(123, 92, 255, .12), transparent 60%),
    #F7F6FD;
}

/* Слайды лежат в одной ячейке грида: высота не прыгает при переключении. */
.hero__stage { display: grid; }

.hero__slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center; min-height: 560px;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 1;
  transition: opacity 600ms ease-in-out, visibility 0s linear 600ms;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; z-index: 2;
  transition: opacity 600ms ease-in-out, visibility 0s;
}
/* Уходящий кадр держим видимым, пока новый проявляется, — без мигания. */
.hero__slide.is-leaving { opacity: 0; visibility: visible; z-index: 1; transition: opacity 600ms ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-active, .hero__slide.is-leaving { transition: none; }
}

.hero__body {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 26px; padding: 64px 32px 64px 72px;
}

.hero__counter {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .7);
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  letter-spacing: .02em;
}
.hero__counter strong { color: var(--text); font-weight: 700; }

.hero__title {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.02em;
}
.hero__title-top { color: var(--text); }
.hero__title-main { color: var(--accent); }

.hero__lead {
  margin: 0; max-width: 420px;
  font-size: 16px; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty;
}

.hero__cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 300px; padding: 21px 26px; border-radius: 14px;
  background: var(--accent); color: var(--white);
  font-size: 15.5px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(123, 92, 255, .28);
  transition: background var(--transition), transform var(--transition);
}
.hero__cta:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }

/* Полоски-индикаторы: активная окрашена акцентом. */
.hero__bars { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hero__bar {
  width: 46px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: var(--border); cursor: pointer; transition: background var(--transition);
}
.hero__bar:hover { background: var(--text-disabled); }
.hero__bar.is-active { background: var(--accent); }

.hero__media {
  position: relative; align-self: stretch; display: block;
  min-height: 560px; overflow: hidden;
}
.hero__photo { position: absolute; inset: 0; display: block; }
.hero__photo img {
  width: 100%; height: 100%;
  /* Настройки слайда: вписать или заполнить, масштаб и сдвиг. */
  object-fit: var(--fit, cover);
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--scale, 1));
  transition: transform 200ms ease-out;
}
.hero__photo--mobile { display: none; }
.hero__media .ph { position: absolute; inset: 0; }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border: 1px solid var(--border-soft); border-radius: 50%;
  background: var(--white); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 24px rgba(26, 26, 31, .10);
  transition: color var(--transition), border-color var(--transition);
}
.hero__arrow:hover { color: var(--accent); border-color: var(--accent); }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* Подбор по размеру */
/* Подбор по размеру */
/* Подбор по размеру */
.sizepick {
  margin: 24px 0 0; padding: 22px 28px; background: var(--surface);
  border-radius: 16px; display: flex; flex-direction: column; gap: 16px; position: relative;
}
.sizepick__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sizepick__head h2 { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.sizepick__head .link { font-size: 13.5px; font-weight: 600; }
.sizepick__note { font-size: 13.5px; color: var(--text-muted); margin: -6px 0 0; }
/* Размеры в одну строку с горизонтальной прокруткой. */
.sizepick__scroll {
  overflow-x: auto; overflow-y: hidden;
  margin: 0 -4px; padding: 2px 4px 10px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.sizepick__scroll::-webkit-scrollbar { height: 6px; }
.sizepick__scroll::-webkit-scrollbar-track { background: transparent; }
.sizepick__scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sizepick__scroll:hover::-webkit-scrollbar-thumb { background: var(--text-disabled); }

.sizepick__list { display: flex; gap: 8px; width: max-content; min-width: 100%; }
.sizepick__item {
  /* Ширина как в макете: кнопка размера крупная, список уезжает за край. */
  flex: 1 0 auto; min-width: 118px; text-align: center; padding: 13px 0;
  border: 1px solid var(--border); border-radius: 10px; background: var(--white);
  font-size: 14.5px; font-weight: 600; color: var(--text);
  transition: all var(--transition); scroll-snap-align: start;
}
.sizepick__item:hover, .sizepick__item.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
/* Размера сейчас нет на складе — приглушаем, но оставляем кликабельным. */
.sizepick__item.is-out { color: var(--text-disabled); border-color: var(--border-soft); }
.sizepick__item.is-out:hover {
  background: var(--white); border-color: var(--accent); color: var(--accent);
}
/* Выбранный размер должен читаться и когда пар нет: правило идёт последним,
   иначе приглушённый стиль «нет в наличии» перебивает выделение. */
.sizepick__item.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  box-shadow: 0 6px 16px rgba(124, 92, 252, .30);
}
.sizepick__cta {
  font-size: 14px; font-weight: 600; align-self: flex-start;
  transition: color var(--transition);
}

.sizetable { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
/* Свой display перебивает [hidden] браузера — возвращаем скрытие. */
.sizetable[hidden] { display: none; }
.sizetable__head h3 { font-size: 15px; font-weight: 700; }
.sizetable__head p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.sizetable__grid { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-soft); background: var(--white); }
.sizetable__row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; font-size: 13.5px; }
.sizetable__row span { padding: 9px 14px; border-top: 1px solid var(--border-soft); }
.sizetable__row--head span {
  background: var(--accent-soft); color: var(--accent); border-top: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}

/* Категории */
.section { padding-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section__head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.section__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
}

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

/* Плитки сгруппированы по полу: заголовок группы с точкой-маркером. */
.cat-group + .cat-group { margin-top: 32px; }
.cat-group__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; margin: 0 0 16px;
}
.cat-group__title::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.cat-tile {
  position: relative; border-radius: 16px; background: var(--accent-soft);
  padding: 26px 0 0 26px; display: flex; flex-direction: column;
  height: 210px; overflow: hidden; color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-tile:hover {
  color: var(--text); transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 21, 38, .10);
}
.cat-tile:hover .cat-tile__media { transform: scale(1.05); }
.cat-tile__name { font-size: 19px; font-weight: 700; position: relative; z-index: 1; }
.cat-tile__count { font-size: 13.5px; color: #6B6880; margin-top: 4px; position: relative; z-index: 1; }
/* Снимок лежит справа и не обрезается: товар должен читаться целиком,
   как на макете. Поэтому contain, а не cover. */
.cat-tile__media {
  position: absolute; right: 14px; bottom: 12px;
  width: 58%; height: 72%;
  transition: transform 300ms ease-out;
}
.cat-tile__media img {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  mix-blend-mode: multiply;
}
.cat-tile__go {
  position: absolute; left: 26px; bottom: 22px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(124, 92, 252, .32);
  transition: transform var(--transition);
}
.cat-tile:hover .cat-tile__go { transform: translateX(3px); }

/* Карточка товара */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* Карточка тянется на всю высоту ячейки сетки, а цена прижата к низу —
   иначе соседние карточки с разной длиной названия разъезжаются. */
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; }
/* Поднимаем наведённую карточку, чтобы её выпадашка легла поверх соседей. */
.pcard:hover { z-index: 5; }
.pcard__media {
  position: relative; display: block; aspect-ratio: 1 / 1.08;
  border-radius: 16px; overflow: hidden; background: var(--accent-soft);
}
/* Снимки приходят от поставщиков в разных пропорциях: 70 % квадратные,
   остальные вертикальные 2:3. При обрезке у одних срезало носки, у других
   пятки, и сетка выглядела рвано. Вписываем целиком на светлую подложку —
   так делают маркетплейсы, и ряд читается ровно. */
.pcard__media { background: var(--white); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pcard__media picture { display: block; width: 100%; height: 100%; }

/* Смена кадра при наведении: второй снимок лежит поверх первого. */
.pcard__shot {
  position: absolute; inset: 0;
  transition: opacity var(--transition), transform 400ms ease;
}
.pcard__shot--alt { opacity: 0; }
.pcard:hover .pcard__shot { transform: scale(1.04); }
.pcard:hover .pcard__shot--alt { opacity: 1; }

.pcard__flags {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 60px);
}
.pcard__discount, .pcard__flag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 6px;
}
.pcard__discount { background: var(--accent); color: var(--white); }
.pcard__flag { background: var(--white); color: var(--text); }
.pcard__flag--out { background: rgba(23, 21, 38, .78); color: var(--white); }
.pcard.is-out .pcard__shot { opacity: .55; }
.pcard__fav {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color var(--transition), transform var(--transition);
}
.pcard__fav:hover { color: var(--accent); transform: scale(1.08); }
.pcard__fav.is-active { color: var(--accent); }
.pcard__fav.is-active svg { fill: currentColor; }

/* Размеры при наведении — сеткой под названием, как на референсе: покупатель
   сразу видит всю линейку и понимает, есть ли его размер, не открывая карточку.
   На тач-экранах наведения нет, поэтому там блок скрыт. */
.pcard__peek {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  text-align: center; opacity: 0; transform: translateY(6px);
  font-size: 13px; font-weight: 600; color: var(--white);
  background: var(--accent); border-radius: 10px; padding: 9px 12px;
  transition: opacity var(--transition), transform var(--transition);
}
.pcard:hover .pcard__peek { opacity: 1; transform: none; }

.pcard__sizes {
  /* Выпадает поверх соседних карточек, а не раздвигает сетку: иначе при
     наведении вся страница дёргается. */
  position: absolute; top: 100%; left: 0; right: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 8px; padding: 10px;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(23, 21, 38, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.pcard:hover .pcard__sizes { opacity: 1; visibility: visible; transform: none; }
.pcard__sizes i {
  font-style: normal; font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 9px 4px; border-radius: 8px; text-align: center;
  background: var(--surface); color: var(--text);
}
.pcard__sizes-rest { color: #8B88A0 !important; }
@media (hover: none) {
  .pcard__peek, .pcard__sizes { display: none; }
}

/* Низ карточки прижимаем вниз, чтобы цены в ряду встали на одну линию. */
.pcard__body { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.pcard__brand { font-size: 15px; font-weight: 700; color: var(--text); }
.pcard__brand:hover { color: var(--accent); }
.pcard__name { font-size: 14px; color: #6B6880; }
.pcard__name:hover { color: var(--accent); }
.pcard__prices { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; }
.pcard__price { font-size: 16px; font-weight: 700; color: var(--text); }
.pcard__old { font-size: 13.5px; color: #A9A6BC; text-decoration: line-through; }

/* Бренды на главной */
/* Плитки брендов подстраиваются под ширину сами: колонок столько,
   сколько влезает при минимуме 130px. Добавили бренд — сетка
   перестроилась, а не вылезла за экран. */
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.brand-tile {
  height: 92px; background: var(--surface); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 16px; font-weight: 600; color: var(--text);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.brand-tile:hover {
  background: var(--accent-soft); color: var(--accent);
  border-color: rgba(124, 92, 252, .28); transform: translateY(-2px);
}
.brand-tile__name { font-size: 16px; font-weight: 700; }
.brand-tile__count { font-size: 12.5px; font-weight: 500; color: #8B88A0; }
.brand-tile:hover .brand-tile__count { color: var(--accent); }
.brand-tile--all { background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 700; }

/* Заявка вместо предоплаты */
.howto {
  margin: 64px 0 0; background: var(--accent-soft); border-radius: 20px;
  padding: 44px 48px; display: flex; align-items: center; gap: 56px;
}
.howto__text { flex: none; width: 340px; }
.howto__text h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.howto__text p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 12px 0 0; }
.howto__steps { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.howto__step {
  position: relative; background: var(--white); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.howto__step:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(23, 21, 38, .10); }
/* Соединительная линия между этапами — показывает, что это последовательность. */
.howto__step + .howto__step::before {
  content: ''; position: absolute; top: 41px; left: -16px; width: 16px;
  border-top: 2px dashed rgba(124, 92, 252, .38);
}
.howto__num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  color: var(--white); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(124, 92, 252, .32);
}
.howto__text h2 { font-size: 30px; }
.howto__step strong { font-size: 15.5px; }
.howto__step p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* Отзывы покупателей на главной.
   Сетка авто-подбором: карточек в ряду столько, сколько влезает при
   минимуме 260px — на телефоне это одна колонка, и блок не может
   вылезти за экран, сколько бы отзывов ни опубликовали. */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rev {
  border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px;
  min-width: 0; display: flex; flex-direction: column; gap: 12px;
}
.rev__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rev__avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 16px; font-weight: 700;
}
.rev__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rev__who strong { font-size: 15px; overflow-wrap: anywhere; }
.rev__stars, .rev-sum__stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.rev__stars-off, .rev-sum__off { color: var(--border); }
.rev__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); overflow-wrap: anywhere; }
.rev__product { font-size: 13px; color: var(--text-muted); margin-top: auto; }
.rev__product:hover { color: var(--accent); }
.rev-sum { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }

/* Преимущества: снимок и нумерованный список доводов.
   Раньше это были четыре узких карточки в ряд — на телефоне в строке
   помещалось по восемь символов. Список читается сверху вниз и не зависит
   от длины текста, а номера дают порядок вместо одинаковых галочек. */
.adv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.adv-media {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 3; min-width: 0;
}
.adv-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adv-media--empty {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border);
}
.adv-media__stub { opacity: .25; transform: scale(1.4); }

.adv-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* min-width: 0 — иначе элемент не сжимается уже своего содержимого
   и длинное слово выталкивает строку за контейнер. */
.adv {
  background: var(--surface); border-radius: var(--radius-md); padding: 16px 18px;
  min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px; align-items: start;
  transition: background var(--transition);
}
.adv:hover { background: var(--accent-soft); }
.adv__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-size: 13px; font-weight: 700; line-height: 1;
}
.adv__body { min-width: 0; }
.adv strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.adv p { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; overflow-wrap: anywhere; }

.promo-block {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 40px 44px; border-radius: 20px;
  background: var(--accent); color: var(--white);
}
.promo-block h2 { color: var(--white); }
.promo-block p { color: rgba(255, 255, 255, .84); margin: 8px 0 0; }

/* ───────────────────────────────────────────────────────── каталог */

.catalog { display: grid; grid-template-columns: 248px 1fr; gap: 40px; align-items: start; }
.catalog__filters-toggle { display: none; }

/* Колонка фильтров прокручивается сама по себе: overscroll-behavior не даёт
   прокрутке «перескочить» на страницу, когда список закончился. */
.filters {
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 4px;
}
.filters::-webkit-scrollbar { width: 5px; }
.filters::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters__head { display: none; }
.filters__group h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 12px; }
.filters__list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.filters__link, .filters__check {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; margin: 0 -10px; border-radius: 8px;
  color: var(--text); font-size: 14px; transition: background var(--transition);
}
.filters__link:hover, .filters__check:hover { background: var(--surface); color: var(--text); }
.filters__check.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filters__check small { color: var(--text-muted); font-size: 12px; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; outline: none;
}
.filters__price input:focus { border-color: var(--accent); }
.filters__price .button { height: 42px; padding: 0 14px; flex: none; }
.filters__reset { width: 100%; }

.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.catalog__count { font-size: 14px; color: var(--text-muted); }
.catalog__more { display: flex; justify-content: center; padding: 40px 0 0; }

.select { position: relative; }
.select select {
  appearance: none; height: 44px; padding: 0 38px 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
}
.select::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 1.6px solid var(--text-muted); border-bottom: 1.6px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty--page { padding: 80px 20px 100px; }
.empty h1, .empty h2 { color: var(--text); margin-bottom: 12px; }
.empty p { max-width: 460px; margin: 0 auto 24px; }
.empty__code { font-size: 72px; font-weight: 800; color: var(--accent); letter-spacing: -.04em; }
.empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ──────────────────────────────────────────────── карточка товара */

.product { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; padding: 26px 0 0; align-items: start; }
/* Ширину галереи ограничиваем: на широком экране снимок 4:5 без потолка
   вырастает на пол-страницы и отрывается от блока с ценой и размерами. */
.product__gallery {
  position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px;
  max-width: 520px; width: 100%;
}
.gallery__main {
  position: relative; aspect-ratio: 4 / 5; max-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
/* contain, а не cover: обувь не должна обрезаться по краям кадра. */
.gallery__slide img { object-fit: contain; }
.gallery__slide { display: none; }
.gallery__slide.is-active { display: block; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center; padding: 30px;
  background: linear-gradient(150deg, var(--accent-soft), var(--surface));
}
.gallery__placeholder span { font-size: 28px; font-weight: 800; color: var(--text-disabled); }
.gallery__placeholder small { font-size: 13px; color: var(--text-muted); max-width: 280px; }
.gallery__counter {
  position: absolute; bottom: 14px; left: 14px; padding: 5px 11px; border-radius: 20px;
  background: rgba(26, 26, 31, .62); color: var(--white); font-size: 12px; font-weight: 600;
}
.gallery__tag { position: absolute; top: 14px; left: 14px; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb {
  flex: none; width: 74px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; transition: border-color var(--transition);
}
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product__info { display: flex; flex-direction: column; gap: 18px; }
.product__brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.product__title { font-size: 34px; margin: -8px 0 0; }
.product__meta { color: var(--text-muted); font-size: 13px; margin: -10px 0 0; }
.product__prices { display: flex; align-items: baseline; gap: 12px; }
.product__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.product__old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.product__form { display: flex; flex-direction: column; gap: 18px; }
.product__actions { display: flex; gap: 10px; }
.product__submit { flex: 1; }
.product__short { color: var(--text-secondary); margin: 0; }
.product__notes {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--surface);
  font-size: 13.5px; color: var(--text-secondary);
}
.product__notes p { margin: 0; }
.product__section { padding: 34px 0 0; }
.product__section h2 { font-size: 20px; margin-bottom: 14px; }

.sizes { display: flex; flex-direction: column; gap: 10px; }
.sizes__head { display: flex; align-items: center; justify-content: space-between; }
.sizes__head span { font-size: 14px; font-weight: 700; }
.sizes__head .link { font-size: 13px; }
.sizes__note { font-size: 13px; color: var(--accent); margin: 2px 0 0; }

.colors { display: flex; flex-direction: column; gap: 8px; }
.colors__label { font-size: 14px; font-weight: 700; }
.colors__list { display: flex; align-items: center; gap: 8px; }
.colors__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--dot); border: 1px solid var(--border); }
.colors__names { font-size: 13px; color: var(--text-muted); margin-left: 4px; }

.specs { margin: 0; display: flex; flex-direction: column; }
.specs__row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px;
}
.specs__row dt { color: var(--text-muted); }
.specs__row dd { margin: 0; text-align: right; font-weight: 500; }

.prose { color: var(--text-secondary); max-width: 720px; }
/* Описания приходят из прайса построчно («МАТЕРИАЛ Замша» на строку),
   поэтому переносы сохраняем, а не схлопываем в сплошной абзац. */
.prose p { margin: 0 0 14px; white-space: pre-line; }

.reviews { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.review { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 18px 20px; }
.review__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review__stars { color: var(--accent); letter-spacing: 2px; }
.review__stars-off { color: var(--text-disabled); }
.review__date { color: var(--text-muted); font-size: 13px; margin-left: auto; }
.review p { margin: 0; color: var(--text-secondary); }
.review__reply { margin-top: 10px !important; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 14px; }

.review-form { display: grid; grid-template-columns: 1fr 200px; gap: 14px; align-items: end; max-width: 720px; margin-top: 20px; }
.review-form .field--full { grid-column: 1 / -1; }
.review-form .button { grid-column: 1 / -1; justify-self: start; }

.sticky-bar { display: none; }

/* ────────────────────────────────────────────── формы и корзина */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  /* 16px, а не меньше: при шрифте <16px iOS автоматически зумит страницу
     при фокусе на поле — на телефоне это сбивает вёрстку оформления. */
  font: inherit; font-size: 16px; color: var(--text); background: var(--white);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: var(--focus); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error-text); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; margin: 18px 0 14px; }
.checkbox input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.checkbox.has-error span { color: var(--error-text); }

.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart__lines { display: flex; flex-direction: column; }
.cart-line { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.cart-line__media { flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 12px; color: var(--text-disabled); }
.cart-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line__name { color: var(--text); font-weight: 600; }
.cart-line__meta { font-size: 13px; color: var(--text-muted); }
.cart-line__remove { font-size: 13px; color: var(--text-muted); margin-top: auto; }
.cart-line__remove:hover { color: var(--error); }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cart-line__sum { font-weight: 800; font-size: 16px; white-space: nowrap; }

.qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty button {
  width: 38px; height: 40px; border: 0; background: none; font-size: 17px;
  color: var(--text); cursor: pointer; transition: background var(--transition);
}
.qty button:hover { background: var(--surface); color: var(--accent); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-size: 14px; }

.cart__summary {
  position: sticky; top: 96px; padding: 24px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card);
}
.promo { display: flex; gap: 8px; margin-bottom: 6px; }
.promo input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; outline: none;
}
.promo input:focus { border-color: var(--accent); }
.promo .button { height: 46px; flex: none; }
.promo__error { font-size: 13px; color: var(--error-text); margin: 0 0 8px; }

.totals { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.totals dt { color: var(--text-muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals__discount { color: var(--accent); }
.totals__grand { padding-top: 12px; border-top: 1px solid var(--border); font-size: 17px !important; }
.totals__grand dt { color: var(--text) !important; font-weight: 700; }
.totals__grand dd { font-weight: 800; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 40px; }
.checkout__main { display: flex; flex-direction: column; gap: 20px; }
.checkout__items { list-style: none; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }
.checkout__items li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.checkout__items span { color: var(--text-secondary); }

.delivery-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.delivery-option {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition);
}
.delivery-option:hover { border-color: var(--accent); }
.delivery-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.delivery-option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.delivery-option__body { flex: 1; display: flex; flex-direction: column; }
.delivery-option__body strong { font-size: 15px; }
.delivery-option__body small { font-size: 13px; color: var(--text-muted); }
.delivery-option__price { font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }

.success { max-width: 640px; margin: 0 auto; padding: 60px 0 80px; text-align: center; }
.success__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  color: var(--white); margin-bottom: 22px;
}
.success p { color: var(--text-secondary); }
.success__phone { margin-top: 8px; }
.success__items { list-style: none; margin: 32px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.success__items li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.success .totals { text-align: left; }
.success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ────────────────────────────────────────── кабинет и служебные */

.auth { max-width: 420px; margin: 0 auto; padding: 60px 0 100px; }
.auth h1 { font-size: 30px; margin-bottom: 10px; }
.auth .muted { margin-bottom: 24px; }

.account { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding: 30px 0 0; }
.account__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.account__user { display: flex; align-items: center; gap: 12px; }
.account__avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex: none;
}
.account__user small { display: block; color: var(--text-muted); font-size: 13px; }
.account__nav { display: flex; flex-direction: column; }
.account__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; margin: 0 -12px; border-radius: 8px; color: var(--text); font-size: 14px;
}
.account__nav a:hover { background: var(--surface); }
.account__nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.orders { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.order { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px 22px; }
.order__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order__meta { color: var(--text-muted); font-size: 13.5px; margin: 6px 0 12px; }
.order__items { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--text-secondary); }
.order__note { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13.5px; }

.status { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.status--new { background: var(--surface); color: var(--text-secondary); }
.status--confirmed, .status--shipping { background: var(--accent-soft); color: var(--accent); }
.status--done { background: var(--accent); color: var(--white); }
.status--cancelled, .status--returned { background: var(--error-soft); color: var(--error-text); }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; gap: 4px; padding: 24px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  color: var(--text); transition: all var(--transition);
}
.brand-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); color: var(--text); }
.brand-card strong { font-size: 18px; }
.brand-card small { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.brand-head { display: flex; gap: 24px; align-items: flex-start; padding: 26px 0 32px; }
.brand-head__logo {
  width: 88px; height: 88px; flex: none; border-radius: var(--radius-md);
  border: 1px solid var(--border-soft); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--text-disabled); overflow: hidden;
}
.brand-head__stats { display: flex; gap: 24px; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.brand-head__stats strong { display: block; font-size: 18px; color: var(--text); }

/* ───────────────────────────────────────── страницы из блоков */

.doc { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; padding: 26px 0 40px; align-items: start; }
.doc--legal .doc__body { max-width: 720px; }
.doc__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.doc__side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.doc__side nav { display: flex; flex-direction: column; }
.doc__side a { padding: 8px 12px; margin: 0 -12px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; }
.doc__side a:hover { background: var(--surface); }
.doc__side a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.doc__body h1 { margin-bottom: 16px; }
.doc__intro { font-size: 17px; color: var(--text-secondary); text-wrap: pretty; }
.doc__section { padding: 32px 0 0; }
.doc__section h2 { font-size: 22px; margin-bottom: 14px; }
.doc__section p { color: var(--text-secondary); }

.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.doc-card { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; }
.doc-card strong { display: block; font-size: 15px; margin-bottom: 6px; }
.doc-card p { font-size: 14px; margin: 0 0 8px; }
.doc-card__note { font-size: 13px; font-weight: 600; color: var(--accent); }

.doc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.doc-steps li { display: flex; gap: 16px; }
.doc-steps__num {
  flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.doc-steps strong { display: block; margin-bottom: 4px; }
.doc-steps p { margin: 0; font-size: 14px; }

.doc-list { margin: 0; padding-left: 20px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 8px; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 16px; background: var(--surface);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-secondary);
}
.table th:first-child { border-top-left-radius: var(--radius-sm); }
.table th:last-child { border-top-right-radius: var(--radius-sm); }
.table td { padding: 12px 16px; border-top: 1px solid var(--border-soft); }

.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border-soft); }
.faq__item summary {
  padding: 16px 0; font-size: 16px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { padding: 0 0 18px; margin: 0; color: var(--text-secondary); max-width: 640px; }

.doc-note {
  margin: 28px 0 0; padding: 16px 20px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-pressed); font-size: 13.5px;
}

/* ─────────────────────────────────────────── модалка и уведомления */

.modal { border: 0; padding: 0; border-radius: var(--radius-lg); max-width: 480px; width: calc(100% - 32px); box-shadow: var(--shadow-card); }
.modal::backdrop { background: rgba(26, 26, 31, .45); }
.modal__body { padding: 24px 26px 26px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal__head h2 { font-size: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 90; padding: 13px 22px; border-radius: var(--radius);
  background: var(--text); color: var(--white); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-card); animation: toast-in 200ms ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ──────────────────────────────────────────────────── адаптивность */

@media (max-width: 1200px) {
  .product-grid, .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; }
  .header__inner { gap: 24px; }
  .header__nav { gap: 20px; font-size: 14px; }
}

@media (max-width: 1120px) {
  /* Меню перестаёт помещаться — уводим его в шторку под бургером. */
  .header__nav { display: none; }
}

@media (max-width: 1120px) {
  .header__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; background: none;
    color: var(--text); cursor: pointer; flex: none;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  h1 { font-size: 30px; }
  h2, .section__title { font-size: 24px; }

  /* На этой ширине в шапке остаются три элемента: бургер, лого, иконки
     (меню и поиск уже скрыты). Сетка из трёх колонок с равными крайними
     ставит лого точно по центру независимо от разной ширины бургера и
     блока иконок — flex с margin:auto так не умеет. */
  .header__inner {
    height: 64px; gap: 12px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  }
  .header__burger { justify-self: start; }
  .header__logo { justify-self: center; margin-right: 0; }
  .search { display: none; }
  .search--mobile { display: flex; }
  .header__searchbar { display: block; padding: 0 20px 10px; }
  .search--bar { display: flex; }
  .header__icon--account { display: none; }
  .header__actions { justify-self: end; gap: 18px; }
  .logo { font-size: 26px; }
  .promo-bar__inner { height: 38px; }

  /* Преимущества: на телефоне снимок сверху, доводы списком под ним —
     так же, как в референсе, и без узких колонок. */
  .adv-layout { grid-template-columns: 1fr; gap: 18px; }
  .adv-media { aspect-ratio: 16 / 10; }
  .footer__inner { flex-direction: column; gap: 32px; padding-top: 36px; }
  .footer__brand { width: 100%; }
  .footer__cols { gap: 32px; }

  /* Первый экран: фото сверху, текст под ним. Высота и кадрирование
     фотографии берутся из мобильных настроек слайда. */
  .hero { margin: 12px 16px 0; border-radius: 20px; }
  .hero__slide {
    grid-template-columns: 1fr; grid-template-rows: auto auto;
    min-height: 0; align-items: start;
  }
  .hero__media {
    grid-row: 1; min-height: 0;
    /* flex/grid не должны растягивать блок: высоту задаёт настройка слайда. */
    height: var(--mobile-height, 320px);
  }
  .hero__photo--mobile { display: block; }
  .hero__media:has(.hero__photo--mobile) .hero__photo--desktop { display: none; }

  .hero__body {
    grid-row: 2; padding: 22px 20px 28px; gap: 18px;
    font-size: calc(1em * var(--text-scale, 1));
  }
  .hero__body--mobile-hidden { display: none; }
  .hero__counter { padding: 7px 16px; font-size: 13px; }
  .hero__title { font-size: calc(clamp(26px, 7.6vw, 34px) * var(--text-scale, 1)); }
  .hero__lead { font-size: calc(15px * var(--text-scale, 1)); max-width: none; }
  .hero__cta { width: 100%; min-width: 0; padding: 17px 22px; gap: 16px; }
  .hero__bar { width: 34px; }

  .hero__slide[data-align="center"] .hero__body { align-items: center; text-align: center; }
  .hero__slide[data-align="right"] .hero__body { align-items: flex-end; text-align: right; }

  /* Стрелки прижаты к фотографии, чтобы не перекрывать текст. */
  .hero__arrow {
    top: calc(var(--mobile-height, 320px) / 2); width: 40px; height: 40px;
  }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }

  .catalog { grid-template-columns: 1fr; gap: 0; }
  .catalog__filters-toggle { display: inline-flex; margin-bottom: 18px; }
  .filters {
    position: fixed; inset: 0; z-index: 70; background: var(--white);
    padding: 20px; overflow-y: auto; overscroll-behavior: contain;
    max-height: none; gap: 10px; display: none;
  }
  .filters.is-open { display: flex; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; }
  .filters__list { max-height: none; }

  .product { grid-template-columns: 1fr; gap: 24px; }
  .product__gallery { position: static; }
  .product__title { font-size: 26px; }
  .product__section { padding-top: 26px; }
  /* Главное действие уехало в нижнюю панель — сердечко остаётся квадратным. */
  .product__actions { justify-content: flex-start; }
  .product__actions .icon-button--lg { width: 52px; flex: none; }
  .review-form { grid-template-columns: 1fr; }

  .cart, .checkout, .account, .doc { grid-template-columns: 1fr; gap: 24px; }
  /* .filters сюда не входит: на мобильном это шторка поверх страницы,
     и position: fixed ей ставится выше. Раньше её сбрасывало здесь,
     из-за чего фильтры раскрывались внутри страницы и отодвигали
     каталог на полторы тысячи пикселей вниз. */
  .cart__summary, .panel--sticky, .account__side, .doc__side { position: static; }
  .doc__side { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .doc__side h2 { width: 100%; }
  .doc__side nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .doc__side a { margin: 0; border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px; font-size: 13px; }


  /* Действие экрана закреплено внизу — как в мобильных макетах. */
  .sticky-bar {
    display: flex; align-items: center; gap: 12px; position: fixed;
    left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 24px rgba(26, 26, 31, .08);
  }
  .sticky-bar__price { font-size: 18px; font-weight: 800; white-space: nowrap; }
  .sticky-bar .button { flex: 1; height: 52px; }
  body:has(.sticky-bar) { padding-bottom: 84px; }
  .product__actions .product__submit { display: none; }
}

@media (max-width: 640px) {
  .product-grid, .brand-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .advantages { grid-template-columns: 1fr; }
  .promo-bar__links { display: none; }
  .promo-block { padding: 28px 24px; }
  .cart-line__media { width: 76px; }
  .card__name { font-size: 14px; }
  .card__price { font-size: 15px; }
  .button { width: 100%; }
  .button--block, .empty__actions .button, .success__actions .button { width: 100%; }
  .icon-button, .filters__price .button, .promo .button, .search--big .button { width: auto; }
  .header__actions { gap: 0; }
  .totals__grand { font-size: 16px !important; }
  .page-head { padding: 18px 0 20px; }
  .section { padding-top: 34px; }
}

/* Ссылки в нижней строке подвала (помощь, отслеживание, вход в панель). */
.footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom-links a { color: var(--text-muted); }
.footer__bottom-links a:hover { color: var(--accent); }

/* ─────────────────────────────────── размеры в фильтрах каталога
   Размеров под сорок штук, поэтому это сетка одинаковых плиток, а не поток
   ссылок: иначе список читается как сплошной текст и в него не попасть пальцем. */
.filters__sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
}
.size-chip {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 4px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}
.size-chip:hover { border-color: var(--accent); color: var(--accent); }
.size-chip.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  box-shadow: 0 4px 12px rgba(124, 92, 252, .28);
}
.size-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ═══════════════════════════════════════════ карточка товара (страница)
   Структура по референсу: слева миниатюры и крупные кадры столбцом,
   справа липкая колонка с заявкой, размерами и блоками-карточками. */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas: 'gallery side' 'panels side';
  align-items: start;
  gap: 28px 40px;
  margin: 20px 0 56px;
}
.pd__gallery { grid-area: gallery; display: flex; gap: 14px; }
.pd__side { grid-area: side; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.pd__accordions { grid-area: panels; }

/* ── миниатюры */
.pd__thumbs { display: flex; flex-direction: column; gap: 8px; flex: none; width: 64px; }
.pd__thumb {
  width: 64px; height: 64px; padding: 4px; border-radius: 10px;
  border: 1px solid var(--border-soft); background: var(--white); cursor: pointer;
  transition: border-color var(--transition);
}
.pd__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumb:hover { border-color: var(--accent); }
.pd__thumb.is-active { border-color: var(--accent); border-width: 2px; padding: 3px; }

/* ── крупные кадры: столбцом, как на референсе, а не слайдером */
.pd__shots { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd__shot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); aspect-ratio: 1 / 1;
}
.pd__shot img { width: 100%; height: 100%; object-fit: contain; }
.pd__shot--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: linear-gradient(150deg, var(--accent-soft), var(--surface));
}
.pd__shot--empty span { font-size: 26px; font-weight: 800; color: var(--text-disabled); }
.pd__shot--empty small { font-size: 13px; color: var(--text-muted); }

/* ── шапка правой колонки */
.pd__article {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  font-size: 12.5px; color: var(--text-muted);
}
.pd__article b { font-weight: 600; color: var(--text-secondary); }
.pd__copy {
  border: 0; background: none; padding: 2px; cursor: pointer;
  color: var(--text-muted); display: flex; transition: color var(--transition);
}
.pd__copy:hover { color: var(--accent); }
.pd__title {
  font-size: clamp(26px, 2.4vw, 34px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin: 0;
}
.pd__prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd__price { font-size: 24px; font-weight: 800; }
.pd__old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.pd__badge {
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--accent); color: var(--white);
}

/* ── кнопки заявки: размер слева, действие справа */
.pd__form { display: flex; flex-direction: column; gap: 10px; }
.pd__buttons { display: flex; gap: 10px; }
.pd__btn {
  flex: 1; display: grid; grid-template-columns: 88px 1fr; align-items: center;
  min-height: 52px; border-radius: 14px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; padding: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pd__btn-size {
  font-size: 13px; font-weight: 700;
  border-right: 1px solid currentColor; opacity: .75; padding: 14px 0;
}
.pd__btn-label { padding: 14px 12px; }
.pd__btn--outline {
  background: var(--white); border: 1px solid var(--border); color: var(--text);
}
.pd__btn--outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pd__btn--solid {
  background: var(--accent); border: 1px solid var(--accent); color: var(--white);
  box-shadow: 0 8px 20px rgba(124, 92, 252, .28);
}
.pd__btn--solid:hover:not(:disabled) { background: var(--accent-strong, #6A4BF0); }
.pd__btn:disabled { opacity: .5; cursor: not-allowed; }
.pd__fav {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--white); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.pd__fav:hover, .pd__fav.is-active { color: var(--accent); border-color: var(--accent); }
.pd__fav.is-active svg { fill: currentColor; }

/* ── вкладки систем размеров */
.pd__systems {
  display: flex; gap: 2px; border-bottom: 1px solid var(--border-soft); margin-bottom: 12px;
}
.pd__system {
  flex: 1; padding: 10px 6px; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.pd__system:hover { color: var(--text); }
.pd__system.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ── сетка размеров: значение, цена и точка наличия */
.pd__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pd__size {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 13px 6px; border-radius: 10px; cursor: pointer; text-align: center;
  border: 1px solid var(--border-soft); background: var(--white);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pd__size:hover:not(:disabled) { border-color: var(--accent); }
.pd__size.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.pd__size.is-active .pd__size-price { color: rgba(255, 255, 255, .82); }
.pd__size-value { font-size: 13.5px; font-weight: 600; }
.pd__size-price { font-size: 12px; color: var(--text-muted); }
.pd__size.is-out { opacity: .45; cursor: not-allowed; }
.pd__dot {
  position: absolute; top: 9px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: #34C759;
}
.pd__size.is-active .pd__dot { background: var(--white); }

/* ── способ получения и карточки-блоки */
.pd__block, .pd__card {
  border: 1px solid var(--border-soft); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.pd__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.pd__ship {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.pd__ship input { position: absolute; opacity: 0; pointer-events: none; }
.pd__ship-mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); position: relative; transition: border-color var(--transition);
}
.pd__ship input:checked + .pd__ship-mark { border-color: var(--accent); }
.pd__ship input:checked + .pd__ship-mark::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.pd__ship-body { display: flex; flex-direction: column; gap: 2px; }
.pd__ship-body b { font-size: 14px; }
.pd__ship-body small { font-size: 12.5px; color: var(--text-muted); }
.pd__ship-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.pd__link {
  display: flex; align-items: center; gap: 7px; align-self: flex-start;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  transition: color var(--transition);
}
.pd__link:hover { color: var(--accent); }

.pd__card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.pd__card p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.pd__card--row { flex-direction: row; align-items: center; gap: 14px; }
.pd__card-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.pd__card-body { display: flex; flex-direction: column; gap: 3px; }
.pd__card-body b { font-size: 14.5px; }
.pd__card-body small { font-size: 12.5px; color: var(--text-muted); }

.pd__contact {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0; color: var(--text);
  border-top: 1px solid var(--border-soft);
}
.pd__contact:hover { color: var(--accent); }
.pd__contact-icon {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.pd__contact-body { display: flex; flex-direction: column; gap: 1px; }
.pd__contact-body b { font-size: 14px; }
.pd__contact-body small { font-size: 12px; color: var(--text-muted); }
.pd__contact-go { color: var(--text-muted); }

/* ── характеристики: подпись слева, значение справа */
.pd__specs { display: flex; flex-direction: column; margin: 0; }
.pd__spec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--border-soft);
}
.pd__spec:first-child { border-top: 0; }
.pd__spec dt { font-size: 13.5px; color: var(--text-muted); }
.pd__spec dd { margin: 0; font-size: 13.5px; font-weight: 600; text-align: right; }

/* ── аккордеоны под галереей */
.pd__panel { border-bottom: 1px solid var(--border-soft); }
.pd__panel summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.pd__panel summary::-webkit-details-marker { display: none; }
.pd__panel summary i {
  position: relative; width: 14px; height: 14px; flex: none;
}
.pd__panel summary i::before, .pd__panel summary i::after {
  content: ''; position: absolute; background: var(--text);
  top: 50%; left: 0; width: 14px; height: 1.6px; margin-top: -.8px;
  transition: transform var(--transition);
}
.pd__panel summary i::after { transform: rotate(90deg); }
.pd__panel[open] summary i::after { transform: rotate(0); }
.pd__panel-body { padding: 0 0 20px; }
.pd__panel-body p {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
  margin: 0; white-space: pre-line; max-width: 640px;
}

@media (max-width: 1100px) {
  .pd { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'gallery' 'side' 'panels'; }
  .pd__side { position: static; }
}
@media (max-width: 640px) {
  .pd__gallery { flex-direction: column-reverse; }
  .pd__thumbs { flex-direction: row; width: auto; overflow-x: auto; }
  .pd__grid { grid-template-columns: repeat(3, 1fr); }
  .pd__buttons { flex-wrap: wrap; }
}
/* Подсказка «сначала выберите размер» при заявке в один клик. */
.pd__grid.is-asking .pd__size:not(.is-out) {
  animation: pd-ask 600ms ease;
}
@keyframes pd-ask {
  0%, 100% { border-color: var(--border-soft); }
  50% { border-color: var(--accent); }
}
.pd__copy.is-done { color: #34C759; }

/* ═══════════════════════════════════════════ фильтры каталога
   Панели-гармошки с поиском внутри и множественным выбором. */
.fpanel {
  border: 1px solid var(--border-soft); border-radius: 14px;
  background: var(--white);
}
.fpanel summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700;
}
.fpanel summary::-webkit-details-marker { display: none; }
.fpanel summary i {
  width: 11px; height: 7px; flex: none;
  background: currentColor; color: var(--text-secondary);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transition: transform var(--transition);
}
.fpanel[open] summary i { transform: rotate(180deg); }
.fpanel__body { padding: 0 16px 16px; }
.fpanel__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 10px; }

/* Поиск внутри панели — при десятках брендов и размеров без него не найти. */
.fsearch {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-muted);
}
.fsearch:focus-within { border-color: var(--accent); }
.fsearch input {
  border: 0; outline: 0; background: none; width: 100%;
  font: inherit; font-size: 14px; color: var(--text);
}
/* Внутреннего скролла здесь больше нет: длинные списки обрезаются
   до шести-восьми значений и раскрываются кнопкой «Показать ещё».
   Скролл внутри прокручиваемой страницы промахивался колесом мыши. */
.fpanel__list { display: flex; flex-direction: column; }

.fcheck {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  color: var(--text); font-size: 14.5px;
}
.fcheck:hover { color: var(--accent); }
.fcheck__box {
  width: 19px; height: 19px; flex: none; border-radius: 5px;
  border: 1.5px solid var(--border); background: var(--white);
  position: relative; transition: background var(--transition), border-color var(--transition);
}
.fcheck.is-on .fcheck__box { background: var(--accent); border-color: var(--accent); }
.fcheck.is-on .fcheck__box::after {
  content: ''; position: absolute; left: 5.5px; top: 2px;
  width: 5px; height: 9px; border: solid var(--white);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.fcheck__label { flex: 1; min-width: 0; }
.fcheck__count { font-size: 12.5px; color: var(--text-muted); }
.fcheck[hidden] { display: none; }

.fprice { display: flex; align-items: center; gap: 8px; }
.fprice input {
  width: 100%; min-width: 0; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px;
}
.fprice input:focus { outline: 0; border-color: var(--accent); }
.fprice span { color: var(--text-muted); }
.fprice__go {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.fprice__go:hover { border-color: var(--accent); color: var(--accent); }

/* Переключатели без панели — как на референсе. */
.ftoggles { display: flex; flex-direction: column; gap: 10px; }
.ftoggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px; border: 1px solid var(--border-soft); border-radius: 14px;
  background: var(--white);
  font-size: 15px; font-weight: 600; color: var(--text);
}
.ftoggle__track {
  width: 42px; height: 24px; flex: none; border-radius: 20px;
  background: var(--border); position: relative; transition: background var(--transition);
}
.ftoggle__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  transition: transform var(--transition);
}
.ftoggle.is-on .ftoggle__track { background: var(--accent); }
.ftoggle.is-on .ftoggle__track::after { transform: translateX(18px); }

/* Чипы активных фильтров над выдачей. */
.fchips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.fchips__label { font-size: 14px; color: var(--text-muted); margin-right: 4px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 20px;
  background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.fchip:hover { background: var(--accent-soft); color: var(--accent); }
.fchips__reset {
  margin-left: auto; font-size: 13.5px; color: var(--text-secondary);
  text-decoration: underline;
}
.fchips__reset:hover { color: var(--accent); }
.catalog__count b { font-weight: 700; }
.fpanel__empty { font-size: 13.5px; color: var(--text-muted); padding: 8px 0; margin: 0; }

/* ═══════════════════════════════════════ подборка товаров лентой
   Лишний товар уезжает вбок, а не переносится на вторую строку с дырами.
   scroll-snap ставит карточку ровно к краю, как на витринах магазинов. */
.product-rail {
  display: grid; grid-auto-flow: column;
  /* Фиксированная ширина, а не 1fr: с долей карточки сжимаются под контейнер,
     всегда помещаются целиком и прокручивать становится нечего. */
  grid-auto-columns: 250px;
  gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  /* Карточки при наведении выпускают панель размеров — снизу оставляем место. */
  scrollbar-width: thin;
}
.product-rail > * { scroll-snap-align: start; }
.product-rail::-webkit-scrollbar { height: 6px; }
.product-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.product-rail::-webkit-scrollbar-track { background: transparent; }
/* На узком экране показываем полторы карточки — видно, что ленту можно листать. */
@media (max-width: 640px) {
  .product-rail { grid-auto-columns: 64vw; gap: 14px; }
}

/* ── ручной выбор товаров в админке */
.picked { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.picked__row, .picker__row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border: 1px solid var(--border-soft); border-radius: 10px;
  background: var(--white); width: 100%; text-align: left; font: inherit;
}
.picker__row { cursor: pointer; }
.picker__row:hover { border-color: var(--accent); }
.picked__handle { cursor: grab; color: var(--text-muted); display: flex; }
.picked__num { font-size: 12px; color: var(--text-muted); width: 18px; }
.picked__img {
  width: 34px; height: 34px; flex: none; border-radius: 7px;
  object-fit: cover; background: var(--surface);
}
.picked__img--empty { display: block; }
.picked__name { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker { margin-top: 6px; }
.picker__results { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* ═══════════════════════════════════════ карусель товаров со стрелками
   Прокрутки колесом мало: на широком экране полосы не видно и блок кажется
   статичным. Стрелки листают на ширину карточки и прячутся на краях. */
.rail { position: relative; }
.rail__arrow {
  position: absolute; top: 38%; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-soft); background: var(--white); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 21, 38, .12);
  transition: color var(--transition), border-color var(--transition), opacity var(--transition);
}
.rail__arrow:hover { color: var(--accent); border-color: var(--accent); }
.rail__arrow--prev { left: -20px; }
.rail__arrow--next { right: -20px; }
.rail__arrow[hidden] { display: none; }
/* Полосу прокрутки прячем — листают стрелками, свайпом или колесом. */
.product-rail { scrollbar-width: none; }
.product-rail::-webkit-scrollbar { height: 0; }
@media (max-width: 900px) {
  .rail__arrow { display: none; }
  .product-rail { scrollbar-width: thin; }
  .product-rail::-webkit-scrollbar { height: 4px; }
}
/* Плавность прокрутки ленты задаём стилями: так она работает везде и
   автоматически отключается у тех, кто просил уменьшить анимации. */
.product-rail { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  .product-rail { scroll-behavior: auto; }
}

/* В ленте панель размеров не показываем. Она абсолютная и вылезает за низ
   контейнера, а у контейнера включена горизонтальная прокрутка — браузер в
   таком случае делает прокручиваемыми обе оси, и лента начинала листаться
   вниз. В обычной сетке каталога панель остаётся. */
.product-rail .pcard__sizes { display: none; }

/* ─── Уведомление о cookie ─────────────────────────────────────────── */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line, #e8e8ee);
  box-shadow: 0 18px 48px rgba(20, 18, 40, .18);
}

.cookie[hidden] { display: none; }

.cookie__text { flex: 1 1 340px; }
.cookie__text strong { display: block; margin-bottom: 4px; font-size: 15px; }
.cookie__text p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted, #6b6b7b); }
.cookie__text a { color: inherit; text-decoration: underline; }

.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie__actions .button { white-space: nowrap; }

@media (max-width: 640px) {
  .cookie { padding: 16px; gap: 14px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .button { flex: 1; }
}

/* ─── Ценовой диапазон ─────────────────────────────────────────────
   В колонке фильтров всего ~250 px. Раньше два поля, тире и кнопка
   стояли в один ряд, и на цену оставалось по 60 px — пятизначная сумма
   не помещалась. Теперь поля делят строку пополам, кнопка уходит вниз. */
.fprice {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.fprice input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.fprice input::placeholder { font-size: 13px; }
.fprice__dash { justify-self: center; color: var(--text-muted); }

.fprice__go {
  grid-column: 1 / -1;
  width: 100%;
  padding: 10px 16px;
}

/* ─── Страница брендов ──────────────────────────────────────────────
   Сильные бренды идут отдельным блоком: давать Nike и бренду с одной
   моделью одинаковый вес — значит терять коммерческий смысл страницы. */
.brand-section { margin-bottom: 40px; }

.brand-section__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-grid--featured .brand-card { padding: 22px 20px; }
.brand-grid--featured .brand-card strong { font-size: 18px; }

.brand-card--lg { border-color: var(--border); }
.brand-card--lg:hover { border-color: var(--accent); }

/* ─── Подсказки в поиске ───────────────────────────────────────────── */
.search { position: relative; }

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 62vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(20, 18, 40, .14);
}

.suggest[hidden] { display: none; }

.suggest__item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--text);
  text-decoration: none;
}

.suggest__item:hover,
.suggest__item.is-active { background: var(--bg-soft, #f5f3fa); }

.suggest__thumb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--bg-soft, #f5f3fa);
  overflow: hidden;
}

.suggest__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.suggest__text { min-width: 0; }

.suggest__brand {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.suggest__name {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest__price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.suggest__price i {
  display: block;
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  color: var(--text-muted);
}

.suggest__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.suggest__all b {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.suggest__all:hover,
.suggest__all.is-active { background: var(--bg-soft, #f5f3fa); }

.suggest__empty {
  margin: 0;
  padding: 18px 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .suggest { max-height: 55vh; }
  .suggest__item { grid-template-columns: 42px 1fr auto; }
}

/* ─── Фильтры: сетка размеров и «Показать ещё» ─────────────────────── */
.fcheck.is-hidden { display: none; }

.fmore {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
  cursor: pointer;
}

.fmore:hover { background: var(--bg-soft, #f5f3fa); }
.fmore[hidden] { display: none; }

/* Размеры сеткой: глаз ищет число, а не строку списка. */
.fsizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 6px;
}

.fsize {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.fsize:hover { border-color: var(--accent); color: var(--accent); }

.fsize.is-on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Размер существует, но сейчас его нет — показываем, чтобы покупатель
   понимал ассортимент, но кликнуть нельзя. */
.fsize.is-off {
  border-style: dashed;
  color: var(--text-muted);
  opacity: .5;
  cursor: not-allowed;
}

/* ─── Ссылка на размерную сетку в карточке товара ──────────────────── */
.pd__sizes-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.pd__guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.pd__guide:hover { text-decoration: underline; }
.pd__guide svg { flex: none; }

/* ─── Нижняя панель шторки фильтров (только мобильный) ─────────────── */
.filters__apply { display: none; }

@media (max-width: 900px) {
  /* Нижний отступ убираем: панель сама несёт свои поля и прилипает
     ровно к краю экрана, а не зависает над ним. */
  .filters { padding-bottom: 0; }

  .filters__apply {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    margin: 12px -20px 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-soft);
    background: var(--white);
  }

  .filters__apply .button { flex: 1; min-height: 46px; }
  .filters__apply .button--ghost { flex: 0 0 40%; }
}

/* ─── Быстрый просмотр ─────────────────────────────────────────────── */
.quick::backdrop { background: rgba(20, 18, 40, .45); }

.quick .modal__body {
  position: relative;
  width: min(860px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
}

.quick__close { position: absolute; top: 14px; right: 14px; z-index: 2; }

.quick__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  align-items: start;
}

.quick__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick__shots img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-soft, #f5f3fa);
}

.quick__shots img:first-child:last-child { grid-column: 1 / -1; }

.quick__info { display: flex; flex-direction: column; gap: 10px; }

.quick__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.quick__name { margin: 0; font-size: 21px; line-height: 1.3; }

.quick__prices { display: flex; align-items: baseline; gap: 10px; }
.quick__price { font-size: 22px; font-weight: 700; }
.quick__old { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }

.quick__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quick__sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}

.quick__size {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.quick__size:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.quick__size.is-on { border-color: var(--accent); background: var(--accent); color: #fff; }

.quick__size.is-out {
  border-style: dashed;
  color: var(--text-muted);
  opacity: .45;
  cursor: not-allowed;
}

.quick__full {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

@media (max-width: 720px) {
  .quick .modal__body { padding: 20px; max-height: 92vh; }
  .quick__grid { grid-template-columns: 1fr; gap: 18px; }
  .quick__shots { grid-template-columns: repeat(3, 1fr); }
  .quick__shots img:first-child:last-child { grid-column: auto; }
}

/* ─── Ползунок цены ────────────────────────────────────────────────── */
.frange {
  position: relative;
  grid-column: 1 / -1;
  height: 26px;
  margin-top: 4px;
}

.frange__track,
.frange__fill {
  position: absolute;
  top: 11px;
  height: 4px;
  border-radius: 4px;
  pointer-events: none;
}

.frange__track { left: 0; right: 0; background: var(--border); }
.frange__fill { background: var(--accent); }

/* Два ползунка лежат друг на друге: сама дорожка прозрачная, кликабельны
   только ручки — иначе верхний input перехватывал бы все нажатия. */
.frange__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.frange__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(20, 18, 40, .2);
  cursor: grab;
  pointer-events: auto;
}

.frange__input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--white);
  cursor: grab;
  pointer-events: auto;
}

.frange__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.frange__input::-moz-range-track { background: none; }

/* ─── Фокус с клавиатуры ───────────────────────────────────────────────
   Отдельным блоком, чтобы кольцо было одинаковым во всём интерфейсе.
   :focus-visible, а не :focus — иначе рамка вспыхивает и от щелчка мышью. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* У полей ввода своя рамка — обводка поверх неё смотрится грязно. */
.field input:focus-visible,
.field textarea:focus-visible,
.fprice input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Недоступное действие должно читаться как недоступное. */
button:disabled,
.button:disabled,
[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

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

/* ─── Заготовки на время загрузки ──────────────────────────────────────
   Серые блоки на месте будущего содержимого: сетка не прыгает, когда
   приходят настоящие карточки, и видно, что страница не зависла. */
.skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg,
    var(--bg-soft, #f2f0f7) 25%,
    var(--border-soft, #e9e6f2) 37%,
    var(--bg-soft, #f2f0f7) 63%);
  background-size: 400% 100%;
  animation: skeleton-sweep 1.3s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.grid-skeleton {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.skeleton-card { display: flex; flex-direction: column; gap: 8px; }
.skeleton--shot { aspect-ratio: 1; border-radius: 14px; }
.skeleton--line { height: 12px; }
.skeleton--short { width: 42%; }
.skeleton--price { width: 32%; height: 15px; margin-top: 2px; }

.suggest__item--skeleton { pointer-events: none; }
.skeleton--thumb { width: 46px; height: 46px; border-radius: 9px; }

@media (max-width: 1120px) { .grid-skeleton { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .grid-skeleton { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ─── Свёрнутые разделы юридических документов ─────────────────────────
   Оферта и политика — это не чтение, а поиск нужного пункта. Оглавление
   видно целиком, раздел открывается по клику. */
.doc-fold {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  margin-bottom: 8px;
}

.doc-fold > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.doc-fold > summary::-webkit-details-marker { display: none; }

.doc-fold__num {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.doc-fold__title { flex: 1; }

.doc-fold > summary i {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition);
}

.doc-fold[open] > summary i { transform: rotate(-135deg) translate(-2px, -2px); }
.doc-fold[open] > summary { border-bottom: 1px solid var(--border-soft); }
.doc-fold:hover { border-color: var(--border); }

.doc-fold__body { padding: 16px 18px 18px 46px; }
.doc-fold__body p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.doc-fold__body p:last-child { margin-bottom: 0; }
.doc-fold__body .table { margin: 0; }

@media (max-width: 640px) {
  .doc-fold > summary { padding: 14px; gap: 10px; font-size: 14px; }
  .doc-fold__body { padding: 14px 14px 16px; }
}

/* ─── Подвал: группы ссылок ────────────────────────────────────────────
   Колонки стали <details>. На десктопе они всегда раскрыты и выглядят как
   обычные списки, на телефоне сворачиваются — иначе пять списков подряд
   дают стену ссылок высотой в два экрана. */
.footer__col > summary {
  list-style: none;
  cursor: default;
}

.footer__col > summary::-webkit-details-marker { display: none; }
.footer__col > summary i { display: none; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Способы оплаты — текстом, без чужих логотипов. */
.footer__pay {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer__pay-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__pay-item {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer__cols { display: block; }

  .footer__col {
    border-bottom: 1px solid var(--border-soft);
  }

  .footer__col > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    cursor: pointer;
  }

  .footer__col > summary i {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--transition);
  }

  .footer__col[open] > summary i { transform: rotate(-135deg) translate(-2px, -2px); }
  .footer__links { margin: 0 0 16px; gap: 12px; }
  .footer__links a { padding: 2px 0; }
}

/* ─── Боковое меню документов: группы ──────────────────────────────── */
.doc__side h2 + nav { margin-bottom: 22px; }
.doc__side h2 ~ h2 { margin-top: 4px; }

.doc__side-track {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.doc__side-track:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .doc__side h2 + nav { margin-bottom: 12px; }
  .doc__side-track { margin-top: 8px; }
}

/* ─── Документы на телефоне ────────────────────────────────────────────
   Боковое меню из тринадцати ссылок занимало полтора экрана перед
   заголовком: человек открывал оферту и видел навигацию вместо документа.
   На узком экране меню уходит под текст. */
@media (max-width: 900px) {
  .doc { display: flex; flex-direction: column; }
  .doc__body { order: 1; }
  .doc__side { order: 2; padding-top: 24px; border-top: 1px solid var(--border-soft); }
  .doc__side h2 { font-size: 13px; }
}

/* Расцветки товара: один товар — несколько цветов */
.pd__colors { margin: 18px 0 4px; }
.pd__colors-head { display: flex; gap: 6px; font-size: 13.5px; margin-bottom: 8px; }
.pd__colors-head span { color: var(--text-muted); }
.pd__color-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd__color {
  width: 54px; height: 54px; padding: 0; flex: none; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--transition);
}
.pd__color img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd__color-dot { display: block; width: 100%; height: 100%; }
.pd__color:hover { border-color: var(--accent-disabled); }
.pd__color.is-active { border-color: var(--accent); }

/* Отметка «N цветов» на карточке каталога */
.pcard__colors {
  display: inline-block; margin-bottom: 4px; font-size: 12px;
  color: var(--muted, #7c7a86);
}

/* Свой display перебивает [hidden] браузера: кнопка размера объявлена flex,
   и скрытые чужие расцветки продолжали показываться. Возвращаем скрытие. */
.pd__size[hidden],
.pd__shot[hidden],
.pd__thumb[hidden],
.pd__shot--empty[hidden] { display: none !important; }

/* Полоса позиционирования над шапкой */
.topline {
  background: var(--accent, #6B5BF5); color: #fff;
  font-size: 13px; line-height: 1.3;
}
.topline__inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; text-align: center; flex-wrap: wrap;
}
.topline__mark { opacity: .85; }
.topline__note { opacity: .8; }
@media (max-width: 720px) {
  .topline__inner { padding: 7px 12px; font-size: 12px; }
  .topline__note { display: none; }
}

/* Подпись у цены на карточке товара */
.pd__slogan {
  margin: 2px 0 0; font-size: 13px; color: var(--accent, #6B5BF5); font-weight: 500;
}

/* Одна высота у всех карточек сетки.
   Названия бывают в одну и в три строки, поэтому фиксируем высоту строки
   названия и низа карточки: иначе цена и кружки расцветок у соседей
   оказываются на разной высоте, и сетка выглядит рваной. */
.pcard__body { display: flex; flex-direction: column; flex: 1; }
.pcard__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3; height: 2.6em;
}
/* Цена идёт сразу под названием фиксированной высоты — тогда у всех
   карточек ряда она на одном уровне. Прижимать её к низу нельзя: у карточек
   с кружками расцветок низ занят, и цена уезжала бы выше соседних. */
.pcard__prices { margin-top: 2px; }

/* Оценка и подпись под ценой */
.pcard__meta { min-height: 18px; margin-top: 4px; font-size: 12.5px; }
.pcard__rating { display: inline-flex; align-items: center; gap: 5px; color: #F5A524; }
.pcard__rating b { color: var(--text, #1b1a22); font-weight: 600; }
.pcard__reviews { color: var(--muted, #7c7a86); }
.pcard__hint { color: var(--muted, #7c7a86); }

/* Расцветки снимками. Появляются при наведении: в покое сетка каталога
   должна оставаться спокойной, а под курсором — давать выбор цвета. */
.pcard__swatches {
  display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: nowrap;
  min-height: 34px; overflow: hidden;
  opacity: 0; transform: translateY(-2px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.pcard:hover .pcard__swatches,
.pcard:focus-within .pcard__swatches { opacity: 1; transform: none; pointer-events: auto; }
/* На тач-устройствах наведения нет — показываем сразу. */
@media (hover: none) {
  .pcard__swatches { opacity: 1; transform: none; pointer-events: auto; }
}
.pcard__swatch {
  width: 34px; height: 34px; flex: none; padding: 2px; border-radius: 8px;
  border: 1px solid var(--border-soft); background: var(--white);
  display: block; overflow: hidden; transition: border-color var(--transition);
}
.pcard__swatch:hover { border-color: var(--accent); }
.pcard__swatch img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard__swatch-rest {
  font-style: normal; font-size: 12px; color: var(--muted, #7c7a86); padding-left: 2px;
}
@media (max-width: 720px) {
  .pcard__swatch { width: 28px; height: 28px; }
}

/* Пока смотрят расцветку, второй кадр не должен перекрывать выбранный */
.pcard.is-swatching .pcard__shot--alt { opacity: 0 !important; }
