/* ============================================================
   SHPITSER — дизайн-система нового сайта
   Стилистика задана референсом theact.ru, адаптирована под
   бьюти-дом с немецким инструментом. См. docs/DESIGN_REFERENCE.md
   ============================================================ */

/* --- 1. Токены ------------------------------------------- */
:root {
  /* Цвет. Основа чёрно-белая, весь цвет отдан фотографии. */
  --ink:        #0A0A0A;   /* заголовки, основной текст */
  --ink-2:      #1D1D1D;   /* вторичный текст */
  --muted:      #737065;   /* подписи, служебное */
  --warm:       #9E907B;   /* тёплый акцент из референса */
  --bg:         #FFFFFF;
  --bg-warm:    #F6F4F1;   /* секции-подложки */
  --bg-stone:   #EFEBE6;   /* плитки категорий без фото */
  --line:       rgba(0,0,0,.12);
  --line-soft:  rgba(0,0,0,.06);
  --brand:      #800050;   /* фирменный, только точечно */

  /* Типографика */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Ритм */
  --gutter: 40px;
  --maxw: 1600px;
  --section-y: 120px;

  /* Прочее */
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --section-y: 72px; --header-h: 60px; }
}

/* --- 2. Сброс -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- 3. Утилиты ------------------------------------------ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--mid { max-width: 1180px; }

/* Мелкий капс с широким трекингом — главный «голос» интерфейса */
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.section-title {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .01em;
}
.section { padding: var(--section-y) 0; }
.section--warm { background: var(--bg-warm); }
.center { text-align: center; }

/* Кнопки — узкие прямоугольники, без скруглений и теней */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  text-align: center;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--wide { width: 100%; }
.btn--brand { background: var(--brand); border-color: var(--brand); }
.btn--brand:hover { background: transparent; color: var(--brand); }

/* Текстовая ссылка с подчёркиванием-«волоском» */
.link {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .3s var(--ease);
}
.link:hover { border-color: var(--ink); }

/* --- 4. Верхняя плашка-объявление ------------------------ */
.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px var(--gutter);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 300;
}
.topbar a { border-bottom: 1px solid rgba(255,255,255,.4); }

/* --- 5. Шапка -------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header__logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 32px; justify-content: center; }
.nav a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.header__tools {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  align-items: center;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.header__burger { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__burger { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
  .header__logo { justify-self: center; }
}

/* --- 6. Герой -------------------------------------------- */
/* Светлый герой — текст поверх собственной фотографии на светлом фоне.
   Пока нет полноценной съёмки, это честнее полноэкранного фото. */
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  background: var(--bg-stone) center/cover no-repeat;
  color: var(--ink);
}
/* Горизонтальный отступ берём из .wrap — задаём только вертикальный,
   иначе короткая запись padding затирает боковые поля. */
.hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero__eyebrow { margin-bottom: 20px; }

/* Вариант на тёмном снимке — включить, когда будет своя съёмка */
.hero--photo { color: #fff; align-items: flex-end; min-height: calc(100svh - var(--header-h)); }
.hero--photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 100%);
}
.hero--photo .hero__inner { padding-bottom: 80px; }
.hero--photo .hero__eyebrow { color: rgba(255,255,255,.85); }
.hero--photo .hero__text { color: rgba(255,255,255,.88); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 14ch;
}
.hero__text {
  max-width: 46ch;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Светлый вариант героя — для внутренних страниц */
.pagehead { padding: 80px 0 56px; border-bottom: 1px solid var(--line-soft); }
.pagehead__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  margin: 12px 0 16px;
}
.pagehead__text { max-width: 60ch; color: var(--ink-2); }

/* Хлебные крошки */
.crumbs { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; }

/* --- 7. Плитки категорий --------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-stone);
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%);
}
.tile:hover img { transform: scale(1.04); }
.tile__body { position: relative; z-index: 1; padding: 32px; }
.tile__name {
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
}
.tile__count { font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.75); vertical-align: super; margin-left: 6px; }

@media (max-width: 900px) {
  .tiles, .tiles--2 { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .tile__body { padding: 18px; }
  .tile__name { font-size: 12px; }
}

/* --- 8. Карточка товара в сетке -------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}
.products--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .products, .products--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .products, .products--3 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

.card { position: relative; }
.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-warm);
  overflow: hidden;
  margin-bottom: 18px;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12%;
  transition: transform .8s var(--ease);
  mix-blend-mode: multiply;   /* гасит белый фон амазоновских фото */
}
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  padding: 6px 10px;
}
.card__badge--brand { background: var(--brand); color: #fff; }
.card__brand { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card__name {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__price { font-size: 15px; letter-spacing: .04em; }
.card__price s { color: var(--muted); margin-right: 8px; }

/* --- 9. Сплит: фото + текст ------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.split__media { aspect-ratio: 4 / 3; background: var(--bg-stone); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 0 8vw; }
.split__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  margin: 16px 0 20px;
}
.split__text { color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.split--rev .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__body { padding: 40px var(--gutter) 0; }
  .split--rev .split__media { order: 0; }
}

/* --- 10. Аргументы бренда -------------------------------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.values__item { text-align: center; }
.values__num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--warm);
  display: block;
  margin-bottom: 12px;
}
.values__name { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.values__text { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }

/* --- 11. Подвал ------------------------------------------ */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 80px 0 40px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer__logo img { height: 26px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer__about { max-width: 34ch; line-height: 1.7; }
.footer__title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer__list li { margin-bottom: 12px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }

/* Подписка */
.subscribe { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,.3); max-width: 320px; }
.subscribe input {
  flex: 1;
  background: none; border: 0; color: #fff;
  padding: 10px 0;
  font: inherit; font-size: 14px;
}
.subscribe input::placeholder { color: rgba(255,255,255,.45); }
.subscribe input:focus { outline: none; }
.subscribe button { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; padding: 0 4px; }

/* --- 12. Карточка товара (страница) ---------------------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; padding-top: 40px; }
.pdp__gallery { display: grid; grid-template-columns: 1fr; gap: 4px; }
.pdp__main { background: var(--bg-warm); aspect-ratio: 1/1; display: grid; place-items: center; }
.pdp__main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pdp__thumb { background: var(--bg-warm); aspect-ratio: 1/1; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14%; mix-blend-mode: multiply; }
.pdp__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); margin: 14px 0 18px; }
.pdp__price { font-size: 22px; margin-bottom: 8px; }
.pdp__stock { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); margin-bottom: 28px; }
.pdp__lead { color: var(--ink-2); margin-bottom: 32px; }
.pdp__buy { display: flex; gap: 12px; margin-bottom: 36px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 44px; height: 54px; font-size: 16px; }
.qty span { width: 34px; text-align: center; font-size: 14px; }
.pdp__specs { border-top: 1px solid var(--line-soft); }
.pdp__specs div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.pdp__specs dt, .pdp__specs .k { color: var(--muted); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 36px; } }

/* Аккордеон описания */
.acc { border-top: 1px solid var(--line-soft); }
.acc__item { border-bottom: 1px solid var(--line-soft); }
.acc__head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-align: left;
}
.acc__body { padding: 0 0 24px; color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.acc__body[hidden] { display: none; }

/* --- 13. Каталог: фильтры -------------------------------- */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.filters__group { border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.filters__group:first-child { padding-top: 0; }
.filters__title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.filters__list li { margin-bottom: 11px; color: var(--ink-2); }
.filters__list a:hover, .filters__list a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.filters__list span { color: var(--muted); font-size: 12px; }
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted);
}
.toolbar select { font: inherit; font-size: 13px; border: 0; background: none; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) { .catalog { grid-template-columns: 1fr; gap: 28px; } .filters { position: static; } }

/* --- 14. Корзина ----------------------------------------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.cart__row { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart__row:first-child { border-top: 1px solid var(--line-soft); }
.cart__thumb { background: var(--bg-warm); aspect-ratio: 1/1; }
.cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.cart__name { font-size: 15px; margin-bottom: 6px; }
.cart__meta { font-size: 12px; color: var(--muted); }
.cart__sum { background: var(--bg-warm); padding: 36px; position: sticky; top: calc(var(--header-h) + 24px); }
.cart__line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.cart__line--total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 20px; font-size: 18px; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; gap: 32px; } .cart__sum { position: static; } }

/* --- 15. Журнал ------------------------------------------ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.post__media { aspect-ratio: 4/3; background: var(--bg-stone); overflow: hidden; margin-bottom: 20px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post__title { font-family: var(--font-display); font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.post__text { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; gap: 40px; } }

/* --- 16. Текстовые страницы ------------------------------ */
.prose { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.prose h2 { font-family: var(--font-display); font-size: 32px; color: var(--ink); margin: 48px 0 18px; }
.prose h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin: 36px 0 14px; }
.prose ul { list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 1px; background: var(--warm); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); }
.prose th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* Контакты */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px;
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

/* --- 17. Мелочи ------------------------------------------ */
.marquee-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px 0;
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.note { font-size: 13px; color: var(--muted); }

/* ============================================================
   18. Движение: слайдер, карусель, появление при скролле
   ============================================================ */

/* --- Слайдер героя --------------------------------------- */
.hero { overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background: var(--bg-stone) center/cover no-repeat;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.2s var(--ease), transform 7s linear;
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

/* Точки-переключатели */
.hero__dots {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 34px;
  width: 100%; max-width: var(--maxw);
  padding: 0 var(--gutter);
  z-index: 2;
  display: flex; gap: 10px;
}
.hero__dot {
  width: 32px; height: 2px;
  background: rgba(0,0,0,.18);
  transition: background .4s var(--ease);
  padding: 0;
}
.hero__dot.is-active { background: var(--ink); }
.hero--photo .hero__dot { background: rgba(255,255,255,.35); }
.hero--photo .hero__dot.is-active { background: #fff; }

/* Содержимое поверх слайдов */
.hero__inner { position: relative; z-index: 1; }
.hero__copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn .9s var(--ease) forwards;
}
.hero__copy > *:nth-child(1) { animation-delay: .15s; }
.hero__copy > *:nth-child(2) { animation-delay: .28s; }
.hero__copy > *:nth-child(3) { animation-delay: .41s; }
.hero__copy > *:nth-child(4) { animation-delay: .54s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* --- Карусель -------------------------------------------- */
.carousel { position: relative; }
.carousel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.carousel__head .section-title { margin: 0; text-align: left; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), opacity .3s;
}
.carousel__arrow:hover:not([disabled]) { background: var(--ink); border-color: var(--ink); color: #fff; }
.carousel__arrow[disabled] { opacity: .28; cursor: default; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 32px) / 4);
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .carousel__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; } }
@media (max-width: 760px)  { .carousel__track { grid-auto-columns: calc((100% - 16px) / 1.6); gap: 16px; } }

/* --- Появление при скролле -------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Плитки и карточки внутри группы выезжают лесенкой —
   задержка задаётся атрибутом data-reveal-delay в разметке. */

/* --- Шапка при скролле ------------------------------------ */
.header.is-stuck { box-shadow: 0 1px 0 rgba(0,0,0,.06); }

/* --- Мобильное меню --------------------------------------- */
@media (max-width: 1100px) {
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: calc(var(--header-h) + 38px) 0 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 99;
  }
  .nav.is-open a { font-size: 15px; letter-spacing: .2em; }
}

/* --- Уважение к настройкам системы ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__copy > * { opacity: 1; transform: none; }
}

/* ============================================================
   19. Структура по референсу
   Метрики сняты с theact.ru и воспроизведены в своей вёрстке:
   боковое поле 30px, ритм секций 165px, заголовки 52/57,
   надзаголовки 17px капсом, названия категорий 36/45.
   ============================================================ */
:root {
  --ref-pad: 30px;          /* боковое поле макета */
  --ref-rhythm: 165px;      /* расстояние между секциями */
  --ref-h1: 52px;
  --ref-h1-lh: 57px;
  --ref-tag: 17px;
}
@media (max-width: 900px) {
  :root { --ref-pad: 20px; --ref-rhythm: 80px; --ref-h1: 32px; --ref-h1-lh: 38px; --ref-tag: 14px; }
}

.ref-inner { padding: 0 var(--ref-pad); }
.ref-inner-full { margin-left: var(--ref-pad); }
.ref-section { margin-bottom: var(--ref-rhythm); }
.ref-title {
  font-family: var(--font-display);
  font-size: var(--ref-h1);
  line-height: var(--ref-h1-lh);
  font-weight: 300;
  margin-bottom: 50px;
}
.ref-tag {
  font-size: var(--ref-tag);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 25px;
}

/* --- Полноэкранный слайдер героя -------------------------- */
.ref-hero { position: relative; height: calc(100svh - var(--header-h)); overflow: hidden; }
.ref-hero__item {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  padding: 0 0 90px var(--ref-pad);
  color: #fff;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.ref-hero__item.is-active { opacity: 1; }
.ref-hero__item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.5) 100%);
}
.ref-hero__content { position: relative; max-width: 760px; }
.ref-hero__title {
  font-family: var(--font-display);
  font-size: var(--ref-h1); line-height: var(--ref-h1-lh);
  font-weight: 300; margin-bottom: 25px;
}
.ref-hero__text { font-size: 17px; margin-bottom: 32px; max-width: 46ch; }
.ref-hero__dots { position: absolute; left: var(--ref-pad); bottom: 40px; z-index: 3; display: flex; gap: 10px; }
.ref-hero__dots .hero__dot { background: rgba(255,255,255,.4); }
.ref-hero__dots .hero__dot.is-active { background: #fff; }

/* --- Карусель категорий: крупные плитки ------------------- */
.ref-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 30%;
  gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ref-cats::-webkit-scrollbar { display: none; }
.ref-cat {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  scroll-snap-align: start; background: var(--bg-stone); color: #fff;
}
.ref-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ref-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.4) 100%); }
.ref-cat:hover img { transform: scale(1.05); }
.ref-cat__title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 36px; line-height: 45px; font-weight: 300;
  margin: 27px 0 0 var(--ref-pad);
}
.ref-cat__arrow { position: absolute; right: 24px; bottom: 24px; z-index: 1; font-size: 22px; }
@media (max-width: 900px) { .ref-cats { grid-auto-columns: 72%; } .ref-cat__title { font-size: 24px; line-height: 30px; } }

/* --- Манифест крупным кеглем ------------------------------ */
.ref-manifest { font-family: var(--font-display); font-size: var(--ref-h1); line-height: var(--ref-h1-lh);
  font-weight: 300; max-width: 1600px; margin-bottom: 50px; }

/* --- Табы с подборками ------------------------------------ */
.ref-tabs { display: flex; justify-content: center; gap: 40px; margin-bottom: 50px; flex-wrap: wrap; }
.ref-tab {
  cursor: pointer; font-size: var(--ref-tag);
  color: var(--muted); padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.ref-tab:hover { color: var(--ink); }
.ref-tab.is-active { color: var(--ink); border-color: var(--ink); }
.ref-tabpanel { display: none; }
.ref-tabpanel.is-active { display: block; animation: tabIn .5s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Линейки: слайдер + описание -------------------------- */
.ref-line { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.ref-line--rev .ref-line__media { order: 2; }
.ref-line__media { aspect-ratio: 4/5; background: var(--bg-stone); overflow: hidden; }
.ref-line__media img { width: 100%; height: 100%; object-fit: cover; }
.ref-line__title { font-family: var(--font-display); font-size: 36px; line-height: 45px; font-weight: 300; margin-bottom: 14px; }
.ref-line__cat { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.ref-line__desc { color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
@media (max-width: 900px) { .ref-line { grid-template-columns: 1fr; gap: 28px; } .ref-line--rev .ref-line__media { order: 0; } }

/* --- Плашка кук ------------------------------------------- */
.ref-cookies {
  position: fixed; right: var(--ref-pad); bottom: var(--ref-pad); z-index: 200;
  max-width: 420px; background: #fff; border: 1px solid var(--line);
  padding: 24px; font-size: 13px; line-height: 1.6;
  display: flex; gap: 18px; align-items: flex-start;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.ref-cookies[hidden] { display: none; }
.ref-cookies button { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--ink); }

/* --- Крупный логотип поверх слайдера ----------------------
   Логотип лежит на первом экране во всю ширину, при скролле
   ужимается и уступает место логотипу в шапке. */
.ref-brand {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  /* 34%, а не 60% как в референсе: наш логотип растровый (767px),
     на большем размере вылезает лесенка. Вернуть 60% после отрисовки в векторе. */
  width: 34%;
  z-index: 2;
  color: #fff;
  pointer-events: none;
  transition:
    width .8s cubic-bezier(.5,0,0,1),
    opacity .8s cubic-bezier(.5,0,0,1),
    transform .8s cubic-bezier(.5,0,0,1);
}
.ref-brand svg { width: 100%; height: auto; display: block; fill: currentColor; }
.ref-brand.is-small { width: 26%; opacity: 0; transform: translate(-50%, -140%); }

/* Пока крупный логотип на экране, в шапке его прячем */
.header__logo { transition: opacity .6s var(--ease); }
body.at-top .header__logo { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .ref-brand { width: 58%; top: 40%; }
  .ref-brand.is-small { width: 40%; }
}

/* ============================================================
   20. Точная посадка первого экрана
   Снято с оригинала: логотип 60% ширины поверх шапки, меню
   мелкое справа, подпись слайда внизу слева, круглые точки,
   боковые стрелки в тонких кружках.
   ============================================================ */

/* Шапка поверх героя, прозрачная */
.hd {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: flex-end; align-items: center;
  gap: 26px;
  padding: 15px var(--ref-pad);
  color: #fff;
}
.hd__nav { display: flex; gap: 26px; }
.hd__nav a, .hd__tools a {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
}
.hd__nav a:hover, .hd__tools a:hover { opacity: .65; }
.hd__tools { display: flex; gap: 16px; align-items: center; margin-left: 20px; }
.hd__burger { display: none; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 1000px) {
  .hd__nav { display: none; }
  .hd { justify-content: space-between; }
  .hd__burger { display: block; }
}

/* Гигантский логотип поверх первого экрана */
.bigLogo {
  position: absolute; z-index: 15;
  left: var(--ref-pad); top: 18px;
  width: 60%; max-width: 900px;
  color: #fff;
  pointer-events: none;
  transition: opacity .8s cubic-bezier(.5,0,0,1), transform .8s cubic-bezier(.5,0,0,1);
}
.bigLogo svg { width: 100%; height: auto; display: block; fill: currentColor; }
.bigLogo.is-gone { opacity: 0; transform: translate3d(0,-22px,0); }
@media (max-width: 1000px) { .bigLogo { width: 78%; } }

/* Первый экран */
.fs { position: relative; height: 100svh; overflow: hidden; background: #EFEBE6; }
.fs__item {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.fs__item.is-active { opacity: 1; }
.fs__caption {
  position: absolute; left: var(--ref-pad); bottom: 90px; z-index: 12;
  color: #fff; max-width: 560px;
}
.fs__tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.fs__title {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1.05; font-weight: 300;
  letter-spacing: .02em; margin-bottom: 14px;
}
.fs__text { font-size: 15px; line-height: 1.5; margin-bottom: 22px; max-width: 42ch; }
.fs__btn {
  display: inline-block; padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.85); color: #fff;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.fs__btn:hover { background: #fff; color: var(--ink); }

/* Круглые точки внизу слева */
.fs__dots { position: absolute; left: var(--ref-pad); bottom: 34px; z-index: 12; display: flex; gap: 9px; }
.fs__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); padding: 0; transition: background .3s; }
.fs__dot.is-active { background: #fff; }

/* Стрелки по бокам */
.fs__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 12;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); color: #fff;
  display: grid; place-items: center; font-size: 13px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.fs__arrow:hover { background: #fff; color: var(--ink); }
.fs__arrow--prev { left: 16px; }
.fs__arrow--next { right: 16px; }

/* Плашка кук по центру внизу */
.ck {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 200;
  background: #F0F0F0; padding: 16px 20px; max-width: 600px;
  display: flex; align-items: center; gap: 20px;
  font-size: 12px; line-height: 1.5;
}
.ck[hidden] { display: none; }
.ck button { border: 1px solid rgba(0,0,0,.3); padding: 7px 20px; font-size: 12px; }

/* Наши снимки светлее оригинальных, поэтому белый текст без подложки
   не читается — притемняем верх и низ первого экрана. */
.fs::before, .fs::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 10; pointer-events: none;
}
.fs::before { top: 0; height: 320px; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0)); }
.fs::after  { bottom: 0; height: 340px; background: linear-gradient(0deg, rgba(0,0,0,.46), rgba(0,0,0,0)); }
.fs__caption, .fs__dots, .fs__arrow, .bigLogo, .hd { position: absolute; }
.bigLogo, .hd { z-index: 16; }
.fs__caption, .fs__dots { z-index: 14; }

/* --- Логотип текстом --------------------------------------
   Растровый исходник (767px) на крупном размере сыпался в лесенку,
   поэтому знак набирается шрифтом: чисто на любом размере и в печати.
   Росчерк под надписью — отдельная кривая. */
.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: .92;
  letter-spacing: .005em;
  color: currentColor;
  position: relative;
  white-space: nowrap;
}
.wordmark__swash {
  display: block;
  width: 100%;
  height: .13em;
  margin-top: -.06em;
  overflow: visible;
}
.wordmark__swash path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }

/* Крупный знак на первом экране */
.bigLogo { width: auto; max-width: none; }
.bigLogo .wordmark { font-size: clamp(56px, 10.5vw, 178px); }

/* Знак в обычной шапке */
.header__logo .wordmark { font-size: 26px; }
.header__logo .wordmark__swash { stroke-width: 7; }

/* --- WordPress: меню выводит <li> без обёртки <ul> --------- */
.nav li, .hd__nav li, .footer__list li { list-style: none; }
.nav ul, .hd__nav ul, .footer__list ul { margin: 0; padding: 0; list-style: none; }
.hd__nav { align-items: center; }

/* --- Каталог WooCommerce ---------------------------------- */
.wc-page { padding: 56px 0 var(--section-y); }
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin: 0; padding: 0; list-style: none;
}
@media (max-width: 760px) { ul.products { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }
ul.products li.product { margin: 0; }
.woocommerce-result-count, .woocommerce-ordering { font-size: 13px; color: var(--muted); }
.woocommerce-pagination ul { display: flex; gap: 14px; justify-content: center; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { font-size: 13px; padding: 6px 10px; }
.woocommerce-pagination .current { border-bottom: 1px solid var(--ink); }

/* Кнопки WooCommerce в нашем оформлении */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button {
  background: var(--ink) !important; color: #fff !important;
  border: 1px solid var(--ink) !important; border-radius: 0 !important;
  padding: 15px 34px !important;
  font-family: var(--font-ui) !important; font-size: 12px !important;
  letter-spacing: .18em !important; text-transform: uppercase !important; font-weight: 400 !important;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce #respond input#submit:hover { background: transparent !important; color: var(--ink) !important; }
.woocommerce .quantity input.qty { border: 1px solid var(--line); padding: 12px 8px; width: 68px; text-align: center; font: inherit; }

/* Карточка товара */
.woocommerce div.product .product_title { font-family: var(--font-display); font-size: clamp(28px,3vw,42px); font-weight: 300; margin: 14px 0 18px; }
.woocommerce div.product p.price { font-size: 22px; color: var(--ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 28px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 12px 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: 1px solid var(--line-soft); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info {
  border-top-color: var(--warm); background: var(--bg-warm); font-size: 14px;
}

/* WooCommerce добавляет к ul.products clearfix-псевдоэлементы.
   В grid они занимают первую и последнюю ячейку — сетка «съезжает». */
ul.products::before, ul.products::after { content: none !important; display: none !important; }

/* Карточки в ряду держим одной высоты: имя занимает две строки всегда */
ul.products li.product > a { display: flex; flex-direction: column; height: 100%; }
ul.products li.product .card__name { min-height: 4.2em; margin-bottom: 10px; -webkit-line-clamp: 3; }
ul.products li.product .card__price { margin-top: auto; }

/* ============================================================
   21. Каталог и карточка: шапка раздела, фильтры, тулбар,
       бонусный клуб. Устройство снято с референса.
   ============================================================ */

/* --- Шапка раздела ---------------------------------------- */
.cathead {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-warm) center/cover no-repeat;
}
/* На фотографии текст белый, поверх снимка — затемнение */
.cathead--photo {
  position: relative;
  border-bottom: 0;
  padding: 96px 0 80px;
  color: #fff;
}
.cathead--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 100%);
}
.cathead--photo .wrap { position: relative; z-index: 1; }
.cathead--photo .crumbs, .cathead--photo .crumbs a { color: rgba(255,255,255,.8); }
.cathead--photo .crumbs a:hover { color: #fff; }
.cathead--photo .cathead__text { color: rgba(255,255,255,.85); }
.cathead__title {
  font-size: clamp(34px, 4.4vw, 60px);
  margin: 14px 0 0;
}
/* Счётчик товаров — мелкой цифрой у заголовка, как в референсе */
.cathead__title sup {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-left: 10px;
  top: -1.1em;
}
.cathead--photo .cathead__title sup { color: rgba(255,255,255,.75); }
.cathead__text { max-width: 62ch; color: var(--ink-2); margin-top: 14px; font-size: 15px; }
.cathead__text p:last-child { margin-bottom: 0; }

.section--catalog { padding-top: 48px; }

/* --- Фильтры ---------------------------------------------- */
.filters__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.filters__heading { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.filters__reset { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.filters__reset:hover { color: var(--ink); border-color: var(--ink); }
.filters__list a[aria-current] { color: var(--ink); font-weight: 400; }
/* Выбранный фильтр помечаем чертой слева — без цвета, без галочек */
.filters__list a[aria-current="true"] { position: relative; }
.filters__list a[aria-current="true"]::before {
  content: ""; position: absolute; left: -14px; top: .7em;
  width: 8px; height: 1px; background: var(--ink);
}
.filters__toggle { display: none; }

/* --- Тулбар ----------------------------------------------- */
.toolbar__tools { display: flex; align-items: center; gap: 28px; }
.toolbar__count { letter-spacing: .04em; }

.viewswitch { display: flex; align-items: center; gap: 10px; }
.viewswitch__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.viewswitch__btn { display: flex; gap: 3px; padding: 6px; opacity: .35; transition: opacity .25s var(--ease); }
.viewswitch__btn span { width: 5px; height: 14px; background: var(--ink); display: block; }
.viewswitch__btn.is-active, .viewswitch__btn:hover { opacity: 1; }

/* Сортировка: своя раскрывашка вместо системного select */
.sortbox { position: relative; }
.sortbox__btn { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.sortbox__btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.sortbox.is-open .sortbox__btn svg { transform: rotate(180deg); }
.sortbox__body {
  position: absolute; right: 0; top: calc(100% + 12px);
  min-width: 220px; background: #fff;
  border: 1px solid var(--line-soft);
  padding: 10px 0; z-index: 30;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.sortbox.is-open .sortbox__body { opacity: 1; visibility: visible; transform: none; }
.sortbox__item { display: block; padding: 9px 20px; font-size: 13px; color: var(--ink-2); }
.sortbox__item:hover { background: var(--bg-warm); color: var(--ink); }
.sortbox__item.is-active { color: var(--ink); }

/* Выбранные фильтры строкой над сеткой */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -14px 0 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 7px 14px;
  font-size: 12px; letter-spacing: .04em;
}
.chip i { font-style: normal; color: var(--muted); }
.chip:hover { border-color: var(--ink); }

/* Плотность сетки */
.products--wide { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
@media (max-width: 760px) { .products--wide { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* --- Пагинация -------------------------------------------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 72px; }
.pager a, .pager span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid transparent;
}
.pager a:hover { border-color: var(--line); color: var(--ink); }
.pager .current { border-color: var(--ink); color: var(--ink); }

/* --- Пустая выдача ---------------------------------------- */
.empty { padding: 64px 0; text-align: center; }
.empty__title { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; }
.empty .btn { margin-top: 24px; }

/* --- Карточка товара: правки под разметку WooCommerce ------ */
.pdp-page .crumbs { padding-top: 32px; }
.pdp__brand { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pdp__buybox { padding-top: 6px; }
.pdp__stock--out { color: var(--muted); }
.pdp__lead { max-width: 52ch; }
.pdp__lead p:last-child { margin-bottom: 0; }
/* Форму покупки рисует WooCommerce — сажаем её в наш ряд */
.pdp__buy form.cart { display: flex; gap: 12px; align-items: stretch; margin: 0; width: 100%; }
.pdp__buy .quantity { display: flex; }
.pdp__buy .quantity input.qty { width: 76px; height: 54px; border: 1px solid var(--line); text-align: center; }
.pdp__buy button.single_add_to_cart_button { flex: 1; padding: 15px 34px !important; }
.pdp__buy .stock { display: none; }
.pdp__values { margin-top: 96px; }
.pdp__specs .k { color: var(--muted); }
.acc__head i { color: var(--muted); font-size: 15px; }

/* --- Бонусный значок в шапке ------------------------------- */
.bonus { display: inline-flex; align-items: center; gap: 7px; }
.bonus__num { font-size: 12px; letter-spacing: .08em; }
/* Кружок с фирменной буквой — засечный шрифт, как в логотипе */
.bonus__icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px; line-height: 1;
  padding-bottom: 1px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.bonus:hover .bonus__icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.is-front .bonus__icon { border-color: rgba(255,255,255,.5); }
.is-front .bonus:hover .bonus__icon { background: #fff; border-color: #fff; color: var(--ink); }

/* --- Клуб: корзина и личный кабинет ----------------------- */
.bonus-box { border-top: 1px solid var(--line-soft); padding: 20px 0; }
.bonus-box__title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.bonus-box__form { display: flex; gap: 10px; margin-top: 12px; }
.bonus-box__form input {
  width: 100px; font: inherit; font-size: 14px;
  padding: 10px 12px; border: 1px solid var(--line); background: none;
}
.bonus-box__form .btn { padding: 10px 22px; }

.club__balance { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.club__num { font-family: var(--font-display); font-size: 64px; line-height: 1; }
.club__unit { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.club__log { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 14px; }
.club__log th {
  text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line);
}
.club__log td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); }
.club__log .is-plus { color: var(--ink); }
.club__log .is-minus { color: var(--muted); }

/* --- Мобильные фильтры ------------------------------------ */
@media (max-width: 900px) {
  .filters__toggle {
    display: block; width: 100%;
    border: 1px solid var(--line); padding: 14px;
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    margin-bottom: 20px;
  }
  .filters { display: none; }
  .filters.is-open { display: block; margin-bottom: 32px; }
  .toolbar { flex-wrap: wrap; gap: 14px; }
  .toolbar__tools { width: 100%; justify-content: space-between; gap: 14px; }
  .cathead { padding: 36px 0 32px; }
  .cathead--photo { padding: 64px 0 52px; }
  .pdp__values { margin-top: 64px; }
}

/* --- Сетка WooCommerce: снимаем его собственную раскладку ----
   woocommerce-layout.css задаёт карточкам float и ширину 30.75%.
   В нашем grid это сплющивает плитки в узкую колонку. */
.woocommerce ul.products li.product,
ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; }
.woocommerce ul.products { display: grid; }

/* Ничто не должно вылезать за экран по горизонтали */
html, body { overflow-x: hidden; max-width: 100%; }

/* Поиск и кабинет: в шапке на десктопе, в меню — на телефоне */
.nav__extra { display: none; }
@media (max-width: 1100px) {
  .nav.is-open .nav__extra { display: block; }
  .header__tools .is-desktop, .hd__tools .is-desktop { display: none; }
  .header__tools, .hd__tools { gap: 14px; }
}
