@charset "UTF-8";
/* =========================================================
   Rodels — статическая главная страница
   Чистый CSS без фреймворков. Порядок разделов:
   1. Шрифты  2. Переменные  3. Сброс/база  4. Утилиты
   5. Кнопки  6. Шапка  7. Каталог  8. Баннер  9. Секции
   10. Подвал 11. Оверлеи 12. Адаптив
   ========================================================= */

/* ---------- 1. Шрифты ---------- */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/jost-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Переменные ---------- */
:root {
  --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --c-text: #282828;
  --c-heading: #1c1c1c;
  --c-muted: #767676;
  --c-line: #e6e6e6;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f6f4;   /* подложка под картинками, не фирменный цвет */
  --c-dark: #1c1c1c;
  --c-white: #ffffff;

  /* Фирменный фон: шапка, панель каталога, подвал */
  --c-brand: #e4dee0;
  --c-brand-hover: #d8d0d3;
  --c-brand-line: rgba(28, 28, 28, .12);

  --header-h: 70px;
  --container: 1200px;
  --container-page: 1140px;
  --container-wide: 1600px;
  --gutter: 20px;

  --radius: 0px;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --dur: .35s;

  --z-header: 900;
  --z-panel: 950;
  --z-overlay: 1000;
}

/* ---------- 3. Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-heading);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease), opacity .25s var(--ease); }
a:hover { color: #000; }

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

:focus-visible { outline: 2px solid #1c1c1c; outline-offset: 3px; }

/* Иконки — единый стиль штриха */
svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4. Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 30px;
}

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

.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--c-dark);
  color: #fff;
  transition: top .2s;
}
.skip-link:focus { top: 10px; color: #fff; }

.link-underline {
  position: relative;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .8);
  background: transparent;
}
.btn--outline-light:hover {
  color: var(--c-dark);
  background: #fff;
  border-color: #fff;
}

.btn--outline {
  color: var(--c-dark);
  border-color: var(--c-dark);
  background: transparent;
}
.btn--outline:hover { color: #fff; background: var(--c-dark); }

.btn--dark {
  color: #fff;
  background: var(--c-dark);
  border-color: var(--c-dark);
}
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }

/* Нечего продавать — кнопка видимо неактивна, а не просто «не нажимается» */
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 6. Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: var(--c-brand);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 16px rgba(0, 0, 0, .07); border-bottom-color: var(--c-brand-line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.header__nav { flex: 1 1 0; min-width: 0; }
.header__logo { flex: 0 0 auto; }
.header__actions { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.header__logo img { width: 145px; height: auto; }

/* --- основное меню --- */
.nav { display: flex; align-items: center; gap: 28px; }

.nav__item { position: relative; }

.nav__item > a {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-heading);
  white-space: nowrap;
}

/* Подчёркивание при наведении */
.nav__item > a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 20px;
  height: 1px;
  background: currentColor;
  transition: right .3s var(--ease);
}
.nav__item:hover > a::after,
.nav__item:focus-within > a::after { right: 0; }

/* Выпадающее подменю */
.nav__sub {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 240px;
  padding: 14px 0;
  background: var(--c-brand);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__sub a {
  display: block;
  padding: 7px 24px;
  font-size: 15px;
  color: var(--c-text);
}
.nav__sub a:hover { color: #000; background: var(--c-brand-hover); }

/* --- иконки справа --- */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--c-heading);
}
/* Иконки шапки — заливка, а не обводка (как в оригинале) */
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.icon-btn:hover { opacity: .6; }
/* Пустое сравнение — кнопки нет совсем; у .icon-btn свой display,
   поэтому атрибут hidden сам по себе её не спрячет */
.icon-btn[hidden] { display: none; }

.icon-btn__badge {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  color: #000;
  background: #fff;
  border-radius: 999px;
}
/* Пустой список — метки нет. Правило явное: у .icon-btn__badge своего
   display нет, но добавят — и hidden перестанет работать молча. */
.icon-btn__badge[hidden] { display: none; }

/* --- бургер (моб.) --- */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--c-heading);
  transition: transform .3s var(--ease), opacity .2s;
}

/* ---------- 7. Панель каталога ---------- */
.catalog-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: var(--z-panel);
  display: flex;
  height: calc(100vh - var(--header-h));
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.catalog-panel.is-open { transform: translateX(0); pointer-events: auto; }

.catalog-panel__col {
  width: 340px;
  padding: 26px 0 40px;
  background: var(--c-brand);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.catalog-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 34px;
  font-size: 16px;
  color: var(--c-text);
}
.catalog-list li a:hover { color: #000; background: var(--c-brand-hover); }
.catalog-list__gap { margin-top: 26px; }
.catalog-list .plus { color: var(--c-muted); font-size: 15px; }

.catalog-panel__sub {
  width: 260px;
  padding: 26px 0 40px;
  background: var(--c-brand);
  border-left: 1px solid var(--c-brand-line);
  box-shadow: 18px 0 40px rgba(0, 0, 0, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  position: absolute;
  top: 0; left: 340px;
  height: 100%;
  overflow-y: auto;
}
.catalog-panel__sub.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.catalog-panel__sub a {
  display: block;
  padding: 7px 30px;
  font-size: 16px;
  color: var(--c-text);
}
.catalog-panel__sub a:hover { color: #000; background: var(--c-brand-hover); }

/* Третий уровень и глубже — тем же списком, с отступом */
.catalog-panel__deep a {
  padding-left: 46px;
  font-size: 15px;
  color: var(--c-muted);
}
.catalog-panel__deep .catalog-panel__deep a { padding-left: 62px; }

/* Форма обратной связи (блок страницы). Отправка пока не подключена */
.cform { max-width: 720px; }
.cform__title { margin: 0 0 8px; }
.cform__note { margin: 0 0 18px; color: var(--c-muted); }
.cform__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.cform__field { display: block; margin-bottom: 14px; }
.cform__field > span { display: block; margin-bottom: 6px; font-size: 14px; color: var(--c-muted); }
.cform__field input,
.cform__field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--c-brand-line);
  border-radius: 2px;
}
.cform__field textarea { resize: vertical; }
.cform__field input:focus,
.cform__field textarea:focus { outline: 2px solid var(--c-text); outline-offset: 1px; }
.cform__hint { font-size: 13px; color: var(--c-muted); }

/* ---------- Товары: плитка, карточка ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 34px 24px;
}
.pcard { position: relative; }
/* Плитка выводится внутри .sec, где ссылки подчёркиваются по умолчанию —
   для карточки товара это лишнее. */
.pcard__link,
.sec .pcard__link { display: block; color: inherit; text-decoration: none; }
.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-brand);
  margin-bottom: 12px;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease); }
.pcard__hover { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pcard__hover { opacity: 1; }
.pcard__label {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 9px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  background: #fff;
}
.pcard__title { display: block; font-size: 17px; margin-bottom: 6px; }
.pcard__price { display: block; font-size: 17px; font-weight: 500; }
.pcard__price s { color: var(--c-muted); font-weight: 400; margin-left: 6px; }
.pcard__tools { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 10px; }
/* Иконки тонкие и крупные: заливки нет, только контур */
.pcard__tool {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #fff; cursor: pointer;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
/* Без наведения оставляем видимой только отметку «в пожеланиях» —
   она полезна как напоминание. Сравнение показывается лишь при наведении. */
.pcard:hover .pcard__tool,
.pcard__tool:focus-visible,
.pcard__tool.js-wish.is-on { opacity: 1; transform: none; }
.pcard__tool svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--c-text); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.pcard__tool.is-on svg { stroke: var(--c-text); fill: var(--c-text); }

/* Панель над плиткой: количество и сортировка */
.pbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.pbar__count { margin: 0; font-size: 14px; color: var(--c-muted); }
.pbar__sort select {
  padding: 9px 30px 9px 12px; font: inherit; font-size: 14px; color: inherit;
  background: #fff; border: 1px solid var(--c-brand-line); border-radius: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 14px center, right 9px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 50px; }
.pager__page, .pager__step {
  min-width: 40px; padding: 10px 14px; text-align: center; font-size: 14px;
  border: 1px solid var(--c-brand-line); color: inherit;
}
.sec .pager__page, .sec .pager__step { text-decoration: none; }
.pager__page:hover, .pager__step:hover { border-color: var(--c-text); }
.pager__page.is-current { border-color: var(--c-text); background: var(--c-text); color: #fff; }

.product__sku { margin: 0 0 10px; font-size: 14px; color: var(--c-muted); }
.product__sku[hidden] { display: none; }

.breadcrumbs--product { padding: 22px 0 26px; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  margin-bottom: 70px;
}
/* Галерея залипает, пока справа прокручивается описание и блоки */
.product__media {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.product__thumbs {
  display: flex; flex-direction: column; gap: 10px;
  /* Высоту подгоняет скрипт под высоту большой фотографии; это запасное
     значение на случай отключённого JS */
  max-height: 74vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  /* Полосу прокрутки не показываем: она появлялась и исчезала при смене
     цвета — у цветов разное число снимков, и это выглядело сбоем.
     Лента и так сама подводит активную миниатюру. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product__thumbs::-webkit-scrollbar { width: 0; height: 0; }
.product__thumb { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.product__thumb.is-active { border-color: var(--c-text); }
/* Скрытые при выбранном цвете — на всякий случай явно, чтобы правило
   display у кнопок не перебило атрибут hidden */
.product__thumb[hidden] { display: none; }
.product__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

.product__stage { position: relative; aspect-ratio: 3 / 4; background: var(--c-brand); overflow: hidden; cursor: zoom-in; }
.product__stage--empty { display: grid; place-items: center; color: var(--c-muted); }
.product__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.product__photo.is-active { opacity: 1; }
.product__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); cursor: pointer; font-size: 17px;
}
.product__arrow--prev { left: 14px; }
.product__arrow--next { right: 14px; }

.product__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #c0392b; margin-bottom: 10px; }
.product__head { display: flex; align-items: flex-start; gap: 16px; }
.product__title { flex: 1 1 auto; font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; }
.product__wish {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--c-brand-line); border-radius: 50%; background: none; cursor: pointer;
}
.product__wish svg { width: 19px; height: 19px; fill: none; stroke: var(--c-text); stroke-width: 1.4; }
.product__wish.is-on svg { fill: #c0392b; stroke: #c0392b; }

.product__price { margin-top: 14px; font-size: 21px; font-weight: 500; }
.product__price-old { margin-left: 10px; font-size: 16px; color: var(--c-muted); font-weight: 400; }
.product__desc { margin-top: 18px; color: var(--c-muted); line-height: 1.75; }

.product__opt { margin-top: 22px; }
.product__opt-label { font-size: 14px; margin-bottom: 8px; }
.product__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.product__size {
  min-width: 52px; padding: 9px 12px; border: 1px solid var(--c-brand-line);
  background: #fff; cursor: pointer; font: inherit; font-size: 14px;
}
.product__size.is-on { border-color: var(--c-text); }
.product__colors { display: flex; flex-wrap: wrap; gap: 10px; }
.product__color { padding: 3px; border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.product__color span { display: block; width: 30px; height: 30px; border-radius: 50%; }
.product__color.is-on { border-color: var(--c-text); }

.product__stock { margin-top: 14px; color: #c0392b; font-size: 14px; }
.product__cart { width: 100%; margin-top: 24px; }
.product__cart[disabled] { opacity: .5; cursor: not-allowed; }
.product__help {
  display: block; width: 100%; margin-top: 12px; padding: 14px 20px;
  border: 1px solid var(--c-text); text-align: center; font-size: 14px;
}

.product__actions { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.product__action {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--c-muted);
}
.product__action svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.product__action:hover, .product__action.is-on { color: var(--c-text); }
.product__action.is-on svg { fill: currentColor; }
.product__action.js-compare.is-on svg { fill: none; stroke-width: 2; }

.product__blocks { margin-top: 34px; border-top: 1px solid var(--c-brand-line); }
.pblock { border-bottom: 1px solid var(--c-brand-line); }
.pblock__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none;
}
.pblock__head::-webkit-details-marker { display: none; }
.pblock__head::marker { content: ''; }
.pblock__title { color: var(--c-heading); }
.pblock__chev {
  flex: 0 0 auto; width: 22px; height: 22px;
  fill: none; stroke: var(--c-text); stroke-width: 1.5;
  transition: transform .3s var(--ease);
}
.pblock[open] .pblock__chev { transform: rotate(180deg); }
.pblock__body { padding-bottom: 20px; font-size: 15px; line-height: 1.75; overflow-x: auto; }
.pblock__body table { width: 100%; border-collapse: collapse; }
.pblock__body th, .pblock__body td { border: 1px solid var(--c-brand-line); padding: 9px 12px; text-align: center; }
.pblock__body th { font-weight: 600; }
.pblock__body tr td:first-child, .pblock__body tr th:first-child { text-align: right; font-weight: 600; }
.pblock__body ul, .pblock__body ol { padding-left: 20px; }
.pblock__body ul { list-style: disc; }
.pblock__body ol { list-style: decimal; }

/* Блок помощи с заказом — одинаковый на всех карточках */
.phelp { margin-top: 34px; padding-top: 28px; text-align: center; }
.phelp__title { margin: 0 0 6px; font-size: 15px; color: var(--c-muted); }
.phelp__phone { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.phelp__phone a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.phelp__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.phelp__link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; font-size: 15px;
  border: 1px solid var(--c-brand-line);
  transition: border-color .25s var(--ease);
}
.phelp__link:hover { border-color: var(--c-text); }
/* Брендовые знаки заливные — общий штриховой стиль иконок им не подходит */
.phelp__link svg { flex: 0 0 auto; width: 20px; height: 20px; fill: currentColor; stroke: none; }
.phelp__link svg[viewBox='0 0 24 24'] { fill: none; stroke: currentColor; }

.product__opt-value { color: var(--c-muted); }

.product__related { margin-top: 20px; }

/* Полноэкранный просмотр фотографий товара */
.plightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: none; background: rgba(17, 17, 17, .94);
}
.plightbox.is-open { display: block; }
.plightbox__stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 76px;
}
.plightbox__img {
  /* min-*: auto у флекс-элемента не даёт картинке сжаться ниже своего
     размера — без обнуления высокая фотография вылезает за экран */
  min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}
.plightbox__close, .plightbox__arrow {
  position: absolute; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease);
}
.plightbox__close:hover, .plightbox__arrow:hover { background: rgba(255, 255, 255, .26); }
.plightbox__close { top: 18px; right: 18px; }
.plightbox__arrow { top: 50%; transform: translateY(-50%); }
.plightbox__arrow--prev { left: 18px; }
.plightbox__arrow--next { right: 18px; }
.plightbox__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .75); font-size: 14px; letter-spacing: .04em;
}
body.is-lightbox { overflow: hidden; }

@media (max-width: 700px) {
  .plightbox__stage { padding: 60px 14px; }
  .plightbox__arrow { width: 40px; height: 40px; }
  .plightbox__arrow--prev { left: 8px; }
  .plightbox__arrow--next { right: 8px; }
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product__media { position: static; grid-template-columns: 1fr; }
  .product__thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .product__thumb { flex: 0 0 64px; }
}

/* Список вложенных категорий на странице каталога */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-grid > li > a { font-size: 17px; font-weight: 500; }
.cat-grid__sub { list-style: none; margin: 6px 0 0; padding: 0; }
.cat-grid__sub a { font-size: 15px; color: var(--c-muted); }
.cat-grid__sub a:hover { color: var(--c-text); }

/* ---------- 8. Главный баннер ---------- */
.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #d8d3cd;
}

.hero__slides { position: absolute; inset: 0; }

/* Слайд: все слайды лежат стопкой, активный проявляется */
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

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

/* Лёгкая подложка: только чтобы текст и нижняя строка читались на любом фото */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .04) 38%, rgba(0, 0, 0, 0) 62%),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .3) 100%);
}

/* Контент прижат влево — как в оригинале: max-width 1820px, отступ 50px */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1820px;
  margin-inline: auto;
  padding-inline: 50px;
  text-align: left;
}

.hero__subtitle {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.hero__title {
  margin: 0 0 40px;
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .32);
}

/* --- стрелки и точки слайдера (появляются, если слайдов > 1) --- */
.hero__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.hero__nav[hidden] { display: none; }
.hero__nav svg { width: 20px; height: 20px; }
.hero__nav:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.hero__nav--prev { left: 20px; }
.hero__nav--next { right: 20px; }

.hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 78px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dots[hidden] { display: none; }
.hero__dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: transparent;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.hero__dot.is-active { background: #fff; transform: scale(1.15); }

.hero__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding-block: 22px;
}
.hero__footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1820px;
  margin-inline: auto;
  padding-inline: 50px;
  color: #fff;
  font-size: 15px;
}
.hero__footer-sep { opacity: .5; }
.hero__footer-link { border-bottom: 2px solid rgba(255, 255, 255, .9); padding-bottom: 2px; }
.hero__footer-link:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- 9. Секции ---------- */
.section { padding-block: 70px; }
.section--categories { padding-block: 60px 40px; }
.section--stories { padding-block: 40px 20px; }
.section--social { padding-block: 70px; text-align: center; }
.section--about { padding-block: 40px 90px; }

.section__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.3;
}
.section__title--tag { font-size: clamp(30px, 3.4vw, 42px); }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

/* --- Карусель категорий --- */
.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 20px) / 5);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }

.cat-card { scroll-snap-align: start; }
.cat-card__link { display: block; }

.cat-card__media {
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 370 / 402;
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.cat-card__link:hover .cat-card__media img { transform: scale(1.05); }

.cat-card__title {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: var(--c-heading);
}
.cat-card__link:hover .cat-card__title { text-decoration: underline; text-underline-offset: 4px; }

.carousel__nav {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--c-heading);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .14);
  transform: translateY(-50%);
  transition: opacity .25s, background-color .25s;
}
.carousel__nav svg { width: 20px; height: 20px; }
.carousel__nav:hover { background: var(--c-bg-soft); }
.carousel__nav--prev { left: -14px; }
.carousel__nav--next { right: -14px; }
.carousel__nav[disabled] { opacity: 0; pointer-events: none; }

/* --- Истории --- */
.section--stories .section__title { margin-bottom: 28px; }

.stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.story-card__media {
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 2 / 3;
}
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.story-card:hover .story-card__media img { transform: scale(1.05); }

.story-card__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.story-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Блог --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card__link { position: relative; display: block; }

.post-card__media {
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 1 / 1;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }

.post-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 100%);
}
.post-card__title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

/* --- #rodels --- */
.section--social .section__title { margin-bottom: 18px; }
.social__text { max-width: 640px; margin-inline: auto; color: var(--c-text); }
.social__text a { font-weight: 500; }

/* --- О нас --- */
/* Пропорции колонок повторяют оригинал: 27,5% / 27,5% / 45% */
.about {
  display: grid;
  grid-template-columns: 27.5% 27.5% 45%;
  align-items: center;
  padding-right: 38px;
}

.about__gallery {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about__col { display: flex; flex-direction: column; gap: 20px; padding-inline: 10px; }

/* Левая колонка сдвинута вниз, картинки прижаты вправо */
.about__col--a { padding-top: 24px; }
.about__col--a img { margin-left: auto; }
.about__col--a img:nth-child(1) { width: 45%; }
.about__col--a img:nth-child(2) { width: 75%; }

/* Правая колонка — картинки прижаты влево */
.about__col--b img:nth-child(1) { width: 85%; }
.about__col--b img:nth-child(2) { width: 50%; }

.about__col img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--c-bg-soft);
}

.about__text { padding-left: 16px; }
.about__text .section__title { margin-bottom: 20px; }
.about__text p { margin-bottom: 28px; max-width: 420px; }

/* Текстовая ссылка со стрелкой — вместо чёрной кнопки */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-heading);
}
.btn-link svg { width: 16px; height: 16px; stroke-width: 2; transition: transform .25s var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }

/* ---------- 9б. Внутренние страницы ---------- */

/* Шапка страницы: заголовок по центру, под ним хлебные крошки */
.page-head { padding: 30px 0 46px; text-align: center; }
.page-head__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-text);
}

.breadcrumbs { margin-top: 8px; font-size: 14px; color: var(--c-text); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 0; padding: 0;
  list-style: none;
}
/* Символ экранирован: если сервер отдаст CSS без указания кодировки,
   литеральный «›» превратился бы в кракозябры */
.breadcrumbs li + li::before { content: '\203A'; margin-right: 8px; opacity: .55; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Ширина текста внутренних страниц — как на боевом сайте (1140px),
   шапка и хлебные крошки при этом остаются во всю ширину */
.page-content { padding-bottom: 90px; }
/* 1140px — это ширина самого контента, поэтому к ней добавляются боковые
   поля контейнера (30px с каждой стороны) */
.page-content .container-wide { max-width: calc(var(--container-page) + 60px); }

/* --- Секции и сетка колонок из оригинала --- */
.sec { margin-bottom: 46px; font-size: 16px; line-height: 1.8; }
.sec:last-child { margin-bottom: 0; }

/* Сетка повторяет модель боевого сайта: колонки вплотную друг к другу,
   а зазор делают внутренние поля колонок. Поэтому ряд без зазора —
   это просто колонки без полей, а не другая ширина сетки. */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 30px;
  align-items: start;
}
/* Ряд, у которого на боевом сайте колонка с текстом выровнена по центру
   относительно соседней фотографии */
.row--middle { align-items: center; }
.row + .row { margin-top: 34px; }

.col {
  grid-column: span var(--span, 12);
  min-width: 0;
  padding-inline: 15px;
}
/* Ряд без зазора: фотография занимает ровно половину и стыкуется с соседней */
.row--flush > .col { padding-inline: 0; }

/* Блок ограниченной ширины внутри колонки: на боевом сайте текст рядом
   с фотографией не растягивается на всю колонку, а стоит по центру */
.wblock { max-width: var(--w, none); }
.wblock--center { margin-inline: auto; }

/* Типографика контента */
.sec h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.4; }
.sec h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.sec h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.sec > * + *, .col > * + *, .ibox > * + * { margin-top: 1.1em; }
.sec h2 + *, .sec h3 + *, .sec h4 + * { margin-top: .7em; }

.sec ul, .sec ol { padding-left: 22px; }
.sec ul { list-style: disc; }
.sec ol { list-style: decimal; }
.sec li { margin-bottom: .4em; }
.sec li::marker { color: var(--c-muted); }
/* Ссылки в тексте подчёркиваются, кнопки — нет. Исключение обязано быть
   здесь, а не отменяться у каждой кнопки отдельно: `.sec a:hover` весит
   больше, чем `.btn--dark:hover`, и перекрашивал текст тёмной кнопки
   в чёрный — на чёрном фоне он просто пропадал.
   Исключение завёрнуто в :where() намеренно — он ничего не добавляет к весу
   селектора. С `:not(.btn)` вес вырос бы до трёх классов и перебил бы все
   точечные отмены подчёркивания: у плиток товаров, заголовков блога,
   строк корзины. Здесь должно остаться ровно «класс + тег», как было. */
.sec a:not(:where(.btn, .btn-link)) { text-decoration: underline; text-underline-offset: 3px; }
.sec a:not(:where(.btn, .btn-link)):hover { color: #000; }
.sec strong, .sec b { font-weight: 600; color: var(--c-heading); }
.sec hr { height: 1px; margin: 34px 0; border: 0; background: var(--c-line); }

.is-center { text-align: center; }
.is-right  { text-align: right; }
.is-center ul, .is-center ol { list-style-position: inside; padding-left: 0; }

/* Блок «иконка + текст» — перенос tm-image-box */
.ibox__icon { width: 64px; height: auto; margin-bottom: 18px; }
.ibox__title { font-size: 18px; font-weight: 600; }
.is-center .ibox__icon, .ibox.is-center .ibox__icon { margin-inline: auto; }

.figure { margin: 0; }
/* Ширину не навязываем: крупное фото и так упирается в колонку (max-width:100%
   стоит глобально), а мелкая иконка должна остаться мелкой, а не растянуться
   на всю ширину секции. */
.figure img { height: auto; }
.figure.is-center img { margin-inline: auto; }
.figure.is-right img { margin-inline-start: auto; }

/* Полоса с фоновой картинкой: на боевом сайте это распорка заданной высоты
   с фоном в CSS, поэтому высота задаётся отдельно от самой картинки. */
.cover {
  height: var(--cover-h, 400px);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 1024px) {
  .cover { height: calc(var(--cover-h, 400px) / 2); }
}
.btn-wrap { margin-top: 1.4em; }

/* Таблицы: на узком экране скроллятся внутри себя, а не ломают страницу */
.sec table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}
.sec th, .sec td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.sec th { font-weight: 600; color: var(--c-heading); background: var(--c-bg-soft); }

/* Блок «текст не заполнен» */
.notice {
  padding: 22px 24px;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-dark);
  font-size: 15px;
}
.notice code {
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: #fff;
}

/* 404 */
.error-code {
  margin-bottom: 8px;
  font-size: 72px;
  line-height: 1;
  color: var(--c-brand);
}

/* ---------- 9г. Корзина и оформление ---------- */

/* Товары слева на две трети, сводка справа на треть и залипает */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.cart-table { border-top: 1px solid var(--c-line); }

/* Шапка таблицы и строки живут на одной сетке колонок */
.cart-head,
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 132px 120px;
  gap: 20px;
  align-items: center;
}
.cart-row--static { grid-template-columns: minmax(0, 1fr) 110px 120px; }

.cart-head {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.cart-head span:nth-child(n+2) { text-align: right; }
.cart-head span:last-child { text-align: right; }

.cart-row { padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.cart-row__main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }

.cart-row__media {
  flex: 0 0 96px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--c-bg-soft);
}
.cart-row__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-row__info { min-width: 0; }
.cart-row__title { display: block; font-size: 16px; font-weight: 500; color: var(--c-heading); }
.sec .cart-row__title { text-decoration: none; }
.cart-row__title:hover { text-decoration: underline; text-underline-offset: 3px; }

.cart-row__opt { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); }
.cart-row__opt span { color: var(--c-text); }
.cart-row__warn { margin: 6px 0 0; font-size: 14px; color: #a4423a; }

.cart-row__drop {
  margin-top: 10px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--c-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.cart-row__drop:hover { color: var(--c-text); }

.cart-row__price, .cart-row__sum { text-align: right; font-size: 16px; }
.cart-row__sum { font-weight: 500; }
.cart-row__price s { display: block; margin-top: 2px; font-size: 14px; color: var(--c-muted); }
.cart-row__qty { display: flex; justify-content: flex-end; }

/* Счётчик количества */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-brand-line); }
.qty__btn {
  width: 38px; height: 42px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 18px; line-height: 1; color: var(--c-text);
}
.qty__btn:hover { background: var(--c-brand); }
.qty__input {
  width: 44px; height: 42px;
  border: 0; border-inline: 1px solid var(--c-brand-line);
  background: none; text-align: center; font: inherit; font-size: 15px;
}
.qty__input:focus { outline: none; }

/* --- сводка справа --- */
.cart-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.cart-aside__box { padding: 26px; background: var(--c-bg-soft); }

.cart-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.cart-tabs__btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px 4px;
  border: 0; border-right: 1px solid var(--c-brand-line);
  background: none; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--c-text);
}
.cart-tabs__btn:last-child { border-right: 0; }
.cart-tabs__btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.cart-tabs__btn:hover, .cart-tabs__btn.is-on { color: #000; }
.cart-tabs__btn.is-on { font-weight: 500; }

.cart-panel { margin-bottom: 18px; }
.cart-panel[hidden] { display: none; }

.cart-field {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit; font-size: 15px; color: inherit;
  background: #fff;
  border: 1px solid var(--c-brand-line);
  border-radius: 0;
}
.cart-field:focus { outline: none; border-color: var(--c-text); }
textarea.cart-field { min-height: 84px; resize: vertical; }

.cart-coupon { display: flex; gap: 8px; }
.cart-coupon .cart-field { flex: 1 1 auto; min-width: 0; }
.cart-coupon .btn { flex: 0 0 auto; padding-inline: 18px; }

.cart-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.cart-hint--error { color: #a4423a; }
.cart-hint--ok { color: #3f7a4f; }

.cart-linkbtn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

.cart-total { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--c-brand-line); }
.cart-total__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; font-size: 15px;
}
.cart-total__row--off { color: #3f7a4f; }
.cart-total__row--grand {
  margin-top: 6px; padding-top: 14px;
  border-top: 1px solid var(--c-brand-line);
  font-size: 18px; font-weight: 500; color: var(--c-heading);
}

/* display:flex, а не block: .btn центрирует подпись флексом, и block
   ломал бы и выравнивание, и высоту */
.cart-aside__go { display: flex; width: 100%; margin-top: 18px; }

/* --- оформление заказа --- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.checkout[hidden] { display: none; }
.checkout__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.checkout__box { padding: 26px; background: var(--c-bg-soft); }

.checkout__title { margin: 0 0 20px; font-size: 20px; font-weight: 500; color: var(--c-heading); }
.checkout__aside .checkout__title { font-size: 18px; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field[hidden] { display: none; }

.field__label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--c-text); }
.field__label span { color: #a4423a; }
.field__input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit; font-size: 15px; color: inherit;
  background: #fff;
  border: 1px solid var(--c-brand-line);
  border-radius: 0;
}
.field__input:focus { outline: none; border-color: var(--c-text); }
textarea.field__input { min-height: 90px; resize: vertical; }

.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--c-muted); }
.field__error { margin: 6px 0 0; font-size: 13px; color: #a4423a; }
.field__error:empty { display: none; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.5; }
.checkbox input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--c-dark); }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }

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

/* В сводке заказа таблица без колонки количества стоит компактнее */
#checkoutItems .cart-table { border-top: 0; }
#checkoutItems .cart-head { display: none; }
#checkoutItems .cart-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
#checkoutItems .cart-row__price { display: none; }
#checkoutItems .cart-row__media { flex-basis: 64px; }
#checkoutItems .cart-row__title { font-size: 15px; }
#checkoutItems .cart-total { border-top: 0; }

.checkout-done__number { font-size: 22px; color: var(--c-heading); }

/* ---------- 9д. Сравнение ---------- */

/* Товаров бывает больше, чем влезает: таблица едет вбок, а колонка
   с названиями характеристик остаётся на месте — иначе, пролистав вправо,
   невозможно понять, что за строка перед тобой. */
.compare__scroll { overflow-x: auto; }

/* Селектор с .sec обязателен: правило `.sec table` из внутренних страниц
   делает таблицу блоком со своей прокруткой и шириной 100% — весит больше
   одного класса и перебивало всё, что тут написано. Колонки при этом
   вылезали за таблицу и налезали друг на друга.
   width: max-content — чтобы таблица росла под число товаров и ехала вбок,
   min-width — чтобы не сжималась, когда товаров мало. */
.sec .compare__table {
  display: table;
  width: max-content;
  min-width: 100%;
  max-width: none;
  overflow: visible;
  border-collapse: collapse;
  font-size: 15px;
}
/* Общее для ячеек — только отступы и линейка. Фон, начертание и цвет
   каждая колонка задаёт себе сама: иначе это правило перебивает их
   (у него на класс больше) и залипающая колонка теряет непрозрачный фон. */
.sec .compare__table th,
.sec .compare__table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}

/* Колонка с названиями характеристик не уезжает при прокрутке вбок.
   Фон обязателен и непрозрачен — под ней проезжает содержимое таблицы.
   Через .sec — иначе `.sec th` красит её в серый и делает жирной. */
.sec .compare__label {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 160px;
  min-width: 160px;
  background: var(--c-bg);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-muted);
}
.compare__label--head { border-bottom-color: transparent; }

.sec .compare__head {
  position: relative;
  width: 240px;
  min-width: 240px;
  background: transparent;
  font-weight: 400;
  vertical-align: top;
}

.compare__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  background: var(--c-bg-soft);
}
.compare__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.compare__media:hover img { transform: scale(1.04); }

.compare__title { display: block; font-size: 16px; font-weight: 500; color: var(--c-heading); padding-right: 26px; }
.compare__title:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Крестик поверх фотографии — убрать товар из сравнения */
.compare__drop {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 1;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.compare__drop svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--c-text); stroke-width: 1.4;
  stroke-linecap: round;
}
.compare__drop:hover { background: var(--c-brand); }

.compare__price { font-weight: 500; color: var(--c-heading); }
.compare__price + s { margin-left: 6px; color: var(--c-muted); }
.compare__yes { color: #3f7a4f; }
.compare__no { color: #a4423a; }

.compare__go { width: 100%; }
.compare__clear-wrap { margin-top: 22px; }
.compare__clear-wrap[hidden] { display: none; }

/* ---------- 9в. Блог ---------- */

/* Список записей: как на боевом сайте — три колонки, квадратная обложка,
   подпись под ней. Тот же зазор 30px. */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.bcard__link { display: block; }
/* Плитка строго квадратная: высоту задаёт сама ячейка, а фотография любой
   формы обрезается по центру. Так ряд не рвётся из-за вертикального кадра. */
.bcard__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 1 / 1;
}
.bcard__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .7s var(--ease);
}
.bcard__link:hover .bcard__media img { transform: scale(1.05); }

.bcard__caption { padding-top: 18px; }
.bcard__date {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--c-muted);
}
/* Заголовок и текст ровно в две строки — иначе плитка «ступеньками»,
   как только у одной записи название длиннее остальных */
.bcard__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}
.bcard__title a { color: var(--c-heading); }
.sec .bcard__title a { text-decoration: none; }
.bcard__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bcard__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-muted);
}

/* Статья: текст и колонка с товарами. Без товаров текст стоит по центру
   и не растягивается — ширина как у оригинала (870px). */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.post { margin-inline: auto; width: 100%; }

.post-layout--aside {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}
.post-layout--aside .post { margin-inline: 0; }

.post__head { margin-bottom: 26px; text-align: center; }
.post__meta {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.post__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-heading);
}

.post__cover { margin: 0 0 34px; }
.post__cover img { width: 100%; height: auto; background: var(--c-bg-soft); }

.post__body { margin-bottom: 0; }
.post__body > *:first-child { margin-top: 0; }
/* Отступ вокруг одиночной иллюстрации в тексте. Плитку галерей он не
   касается: там расстояние между кадрами задаёт gap сетки, а этот отступ
   добавлялся бы к нему сверху и снизу — ряды расходились бы независимо
   от настройки в редакторе. */
.post__body figure:not(.shopgal__item) { margin: 1.6em 0; }
.post__body figure img { width: 100%; height: auto; background: var(--c-bg-soft); }
.post__body figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--c-muted);
}
.post__body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--c-dark);
  font-size: 18px;
  line-height: 1.7;
}
.post__body blockquote p { margin: 0; }
.post__body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  color: var(--c-muted);
}
.post__body pre {
  margin: 1.4em 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--c-bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}
.post__body mark { padding: 0 3px; background: var(--c-brand); }
.post__body .table-responsive { overflow-x: auto; }

.blog-checklist { padding-left: 0 !important; list-style: none !important; }
.blog-checklist li { position: relative; padding-left: 30px; }
.blog-checklist li::before {
  content: '';
  position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px;
  border: 1px solid var(--c-muted);
}
.blog-checklist li.is-checked::before {
  border-color: var(--c-dark);
  background: var(--c-dark);
}
.blog-checklist li.is-checked::after {
  content: '';
  position: absolute; left: 5px; top: calc(.45em + 3px);
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.blog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 1.6em 0;
}
.blog-gallery figure { margin: 0 !important; }
.blog-gallery a { display: block; overflow: hidden; background: var(--c-bg-soft); }
.blog-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.blog-gallery a:hover img { transform: scale(1.04); }

.blog-embed {
  position: relative;
  margin: 1.6em 0;
  padding-bottom: 56.25%;
  background: var(--c-bg-soft);
}
.blog-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.sec .post__foot a { text-decoration: none; }

/* Колонка с товарами: залипает, пока листается статья */
.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.post-aside__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.post-aside__list { display: flex; flex-direction: column; gap: 18px; max-height: 70vh; overflow-y: auto; }

.mini-card { display: flex; gap: 14px; align-items: flex-start; }
.sec .mini-card { text-decoration: none; }
.mini-card__media {
  flex: 0 0 84px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--c-bg-soft);
}
.mini-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mini-card:hover .mini-card__media img { transform: scale(1.05); }
.mini-card__info { display: block; min-width: 0; padding-top: 2px; }
.mini-card__title { display: block; font-size: 15px; line-height: 1.45; color: var(--c-text); }
.mini-card:hover .mini-card__title { text-decoration: underline; text-underline-offset: 3px; }
.mini-card__price { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--c-heading); }
.mini-card__price s { margin-left: 6px; font-weight: 400; color: var(--c-muted); }

.post-products, .post-more { margin-top: 70px; }
.post-products .section__title,
.post-more .section__title { margin-bottom: 26px; }

/* Заголовок подборки по центру — как на боевом сайте */
.post-more .section__title { text-align: center; margin-bottom: 34px; }

/* В подборке снимок горизонтальный (на боевом сайте это кроп 540×350),
   в отличие от квадратов основного списка */
.blog-list--related .bcard__media { aspect-ratio: 3 / 2; }
.blog-list--related .bcard__title { font-size: 18px; }

/* --- Переход к соседним записям --- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 60px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.post-nav__item {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  padding: 24px 30px;
  color: inherit;
}
.sec .post-nav__item { text-decoration: none; }

/* «Далее» — зеркальное: стрелка справа, текст прижат к правому краю */
.post-nav__item--next {
  flex-direction: row-reverse;
  text-align: right;
  border-left: 1px solid var(--c-line);
}

.post-nav__arrow {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: none; stroke: var(--c-text); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.post-nav__item--prev:hover .post-nav__arrow { transform: translateX(-4px); }
.post-nav__item--next:hover .post-nav__arrow { transform: translateX(4px); }

.post-nav__body { min-width: 0; }
.post-nav__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.post-nav__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.45;
  color: var(--c-heading);
}
.post-nav__item:hover .post-nav__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 10. Подвал ---------- */
.footer {
  padding-top: 60px;
  background: var(--c-brand);
  color: var(--c-text);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 50px;
}

.footer__logo { width: 145px; margin-bottom: 20px; }

.footer__contacts li { line-height: 1.9; }
.footer__contacts a:hover { text-decoration: underline; }
.footer__address { margin-top: 14px; color: var(--c-muted); }

.footer__title {
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
}

.footer__list li { line-height: 2.1; }
.footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__note { margin-bottom: 18px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }

.subscribe { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe__input {
  flex: 1 1 170px;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .25s;
}
.subscribe__input:focus { border-color: var(--c-dark); outline: none; }
.subscribe__btn { flex: 0 0 auto; padding-inline: 26px; }
.subscribe__msg { flex: 1 0 100%; margin: 0; font-size: 14px; }
.subscribe__msg.is-error { color: #c0392b; }
.subscribe__msg.is-ok { color: #2e7d4f; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid var(--c-brand-line);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14px;
  color: var(--c-muted);
}
.footer__legal a:hover { color: var(--c-dark); text-decoration: underline; }

/* Соцсети — сплошные глифы без подложки, как в оригинале */
.footer__social { display: flex; align-items: center; gap: 18px; }
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-heading);
  transition: opacity .25s var(--ease);
}
.footer__social a:hover { opacity: .6; }
.footer__social svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }

/* ---------- 11. Оверлеи ---------- */

/* Мобильное меню */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  visibility: hidden;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer.is-open { visibility: visible; opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(360px, 88vw);
  padding: 26px 0 30px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: 12px;
}
.drawer__close svg { width: 22px; height: 22px; }

.drawer__nav { margin-top: 10px; }

.m-nav__item > a,
.m-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 26px;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  color: var(--c-heading);
}

.m-nav__chev {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.m-nav__toggle[aria-expanded="true"] .m-nav__chev { transform: rotate(-135deg) translate(-3px, -3px); }

.m-nav__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.m-nav__item--has-sub.is-open .m-nav__sub { max-height: 900px; }
.m-nav__sub a {
  display: block;
  padding: 9px 26px 9px 40px;
  font-size: 16px;
  color: var(--c-text);
}

.drawer__footer {
  margin-top: auto;
  padding: 22px 26px 0;
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: 10px;
  font-size: 16px;
}

/* Поиск */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 255, 255, .98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-overlay__inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 120px 20px 40px;
  text-align: center;
}

.search-overlay__close {
  position: fixed;
  top: 20px; right: 30px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
}
.search-overlay__close svg { width: 24px; height: 24px; }

.search-overlay__title { margin-bottom: 26px; font-size: 22px; color: var(--c-heading); }

.search-form { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--c-dark); }
.search-form__input {
  flex: 1;
  min-height: 54px;
  padding: 0 6px;
  font-size: 18px;
  background: transparent;
  border: 0;
  outline: none;
}
.search-form__btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; }
.search-form__btn svg { width: 22px; height: 22px; }

/* То же поле, но на странице выдачи: запрос правится без открытия оверлея.
   Отступ до строки с количеством и сортировкой даёт секция вокруг формы,
   поэтому здесь только ширина. */
.psearch { max-width: 560px; margin-inline: auto; }

/* Cookie */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 40px);
  max-width: 760px;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.55;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { text-decoration: underline; }
.cookie__btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 22px;
  color: #fff;
  background: var(--c-dark);
  font-weight: 500;
  transition: background-color .25s;
}
.cookie__btn:hover { background: #000; }

/* ---------- 12. Адаптив ---------- */
@media (max-width: 1400px) {
  .carousel__nav--prev { left: 6px; }
  .carousel__nav--next { right: 6px; }
}

@media (max-width: 1200px) {
  .carousel__track { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
  .about { grid-template-columns: 30% 30% 40%; }
  .footer__top { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
  .footer__col--subscribe { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header__inner { justify-content: space-between; }
  .header__logo { flex: 1 1 auto; display: flex; justify-content: center; }
  .header__actions { flex: 0 0 auto; }
  .catalog-panel { display: none; }

  .hero { min-height: 560px; }
  .hero__inner, .hero__footer-inner { padding-inline: 30px; }

  .carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }

  .about { grid-template-columns: 1fr; padding-right: 0; }
  .about__gallery { grid-column: 1; }
  .about__text { padding: 40px 30px 0; text-align: center; }
  .about__text p { margin-inline: auto; }
}

@media (max-width: 1024px) {
  /* Сводка уходит под товары: в трети экрана она уже нечитаема */
  .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cart-aside, .checkout__aside { position: static; }

  /* Колонка с товарами уходит под статью — иначе на планшете текст
     сжимается до нечитаемого */
  .post-layout--aside { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .post-layout--aside .post { margin-inline: auto; }
  .post-aside { position: static; max-width: 870px; margin-inline: auto; width: 100%; }
  .post-aside__list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
  }
  .post-aside__list .mini-card { flex: 1 1 260px; }
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .blog-list { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  /* Колонки контента складываются: 4/12 и 6/12 становятся половинами */
  .col { grid-column: span 6; }
  .col:empty { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; --gutter: 16px; }
  .container-wide { padding-inline: 16px; }

  .section { padding-block: 48px; }
  .section--categories { padding-block: 40px 24px; }
  .section--about { padding-block: 24px 60px; }

  .hero { min-height: 78vh; }
  .hero__inner { padding-inline: 16px; }
  .hero__footer { padding-block: 16px; }
  .hero__footer-inner { font-size: 13px; gap: 10px; padding-inline: 16px; }
  .hero__nav { display: none; }
  .hero__dots { bottom: 66px; }

  .about__col { padding-inline: 8px; gap: 14px; }
  .about__col--a { padding-top: 16px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }

  .carousel__track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .carousel__nav { display: none; }

  .blog-grid { grid-template-columns: 1fr; }
  .post-card__overlay { padding: 18px; }
  .post-card__title { font-size: 17px; }

  /* Сравнение: колонки уже, подписи характеристик компактнее */
  .sec .compare__table th, .sec .compare__table td { padding: 12px; font-size: 14px; }
  .sec .compare__label { width: 108px; min-width: 108px; font-size: 13px; }
  .sec .compare__head { width: 172px; min-width: 172px; }
  .compare__title { font-size: 15px; }

  /* Строка корзины складывается: фото с описанием сверху, цифры под ними */
  .cart-head { display: none; }
  .cart-row, .cart-row--static {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 20px 0;
    align-items: start;
  }
  .cart-row__main { grid-column: 1 / -1; }
  .cart-row__media { flex-basis: 78px; }
  .cart-row__price { text-align: left; font-size: 15px; color: var(--c-muted); }
  .cart-row__qty { justify-content: flex-start; }
  .cart-row__sum { grid-column: 2; text-align: right; }
  .cart-aside__box, .checkout__box { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .blog-list { grid-template-columns: 1fr; gap: 34px; }
  .bcard__caption { padding-top: 14px; }
  .bcard__title { font-size: 18px; }
  .post__head { margin-bottom: 20px; }
  .post__cover { margin-bottom: 24px; }
  .post-products, .post-more { margin-top: 48px; }

  /* Стрелки в столбик: рядом на телефоне два заголовка не читаются */
  .post-nav { grid-template-columns: 1fr; margin-top: 40px; }
  .post-nav__item { min-height: 0; padding: 20px 4px; }
  .post-nav__item:empty { display: none; }
  .post-nav__item--next { border-left: 0; }
  /* Разделитель нужен только между двумя настоящими ссылками, иначе он
     ляжет вплотную к рамке блока */
  .post-nav__item:not(:empty) + .post-nav__item:not(:empty) {
    border-top: 1px solid var(--c-line);
  }

  .stories { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .page-head { padding: 22px 0 30px; }
  .page-content { padding-bottom: 60px; }
  .breadcrumbs { font-size: 13px; }
  .sec { margin-bottom: 34px; font-size: 15px; }
  .row { row-gap: 22px; }
  .col { grid-column: span 12; }
  .row + .row { margin-top: 22px; }

  .footer { padding-top: 44px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .footer__col--subscribe { max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { font-size: 13px; gap: 6px 18px; }

  .cookie { flex-direction: column; align-items: flex-start; gap: 12px; bottom: 12px; padding: 14px 18px; }

  .search-overlay__inner { padding-top: 90px; }
  .search-overlay__close { right: 12px; }
}

@media (max-width: 480px) {
  .hero__subtitle { font-size: 16px; }
  .cat-card__title { font-size: 14px; margin-top: 12px; }
}

/* ---------- Печать / пониженная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Личный кабинет: вход, регистрация, пароль, заказы
   Формы держатся на общих классах .field / .btn / .notice —
   здесь только колонка страницы входа и сетка кабинета.
   ============================================================ */

.page-head__lead { margin: 14px auto 0; max-width: 620px; color: var(--c-muted); font-size: 15px; }

.notice--ok { border-left-color: #4a7a52; }
.notice--error { border-left-color: #a4423a; }
.notice p + p { margin-top: .6em; }
.notice form { margin-top: 12px; }

/* ---------- страница входа ---------- */

.auth { max-width: 440px; margin: 0 auto; }
.auth__box > * + * { margin-top: 20px; }
.auth__form { margin-top: 4px; }
.auth__form .field:first-child { margin-top: 0; }
.auth__submit { width: 100%; margin-top: 22px; }
.auth__foot { margin-top: 22px; text-align: center; font-size: 15px; color: var(--c-muted); }
.auth__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* Разделитель «или» — линия с надписью посередине */
.auth__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--c-muted);
  font-size: 14px;
}
.auth__or::before, .auth__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

.auth__ya { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.auth__ya-fallback { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.auth__ya-fallback[hidden] { display: none; }
.auth__ya-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.auth__ya-error { text-align: center; }

/* ---------- кабинет ---------- */

.account { display: grid; grid-template-columns: 240px 1fr; gap: 46px; align-items: start; }
.account__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.account__who { margin: 0 0 22px; line-height: 1.5; }
.account__who strong { display: block; color: var(--c-heading); font-weight: 600; }
.account__who span { font-size: 14px; color: var(--c-muted); word-break: break-all; }

.account__nav { display: flex; flex-direction: column; }
.account__nav a {
  padding: 11px 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.account__nav a:hover { color: #000; }
.account__nav a.is-active { color: var(--c-heading); font-weight: 600; }
.account__logout { margin-top: 22px; }
.account__logout button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--c-muted); }
.account__logout button:hover { color: var(--c-heading); }

.account__main > * + * { margin-top: 26px; }
.account__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.account__card { padding: 26px; background: var(--c-bg-soft); }
.account__card > * + * { margin-top: 16px; }
.account__card .field:first-of-type { margin-top: 20px; }

.account__meta { font-size: 14px; color: var(--c-muted); }
.account__meta strong { color: var(--c-text); font-weight: 500; }

.account__status {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-brand);
  color: var(--c-heading);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}
.account__status--paid { background: #dbe8dc; }
.account__status--canceled, .account__status--cancelled { background: #efd9d7; }

.account__recent { list-style: none; padding: 0; margin: 0; }
.account__recent li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.account__recent li:last-child { border-bottom: 0; }
.account__recent a { color: var(--c-heading); font-weight: 500; text-decoration: none; }
.account__recent a:hover { text-decoration: underline; }

.account__orders, .account__items { width: 100%; border-collapse: collapse; font-size: 15px; }
.account__orders th, .account__items th,
.account__orders td, .account__items td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.account__orders th, .account__items th { background: var(--c-bg-soft); font-weight: 600; color: var(--c-heading); }
.account__orders td:first-child a { color: var(--c-heading); text-decoration: none; font-weight: 500; }
.account__orders td:first-child a:hover { text-decoration: underline; }
.account__item-opt { display: block; margin-top: 4px; font-size: 13px; color: var(--c-muted); }

.account__order-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.account__order-head .checkout__title { margin: 0; }

.account__totals { margin-top: 20px; margin-left: auto; max-width: 340px; font-size: 15px; }
.account__totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.account__totals dt, .account__totals dd { margin: 0; }
.account__totals dt { color: var(--c-muted); }
.account__totals .is-total { border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 14px; font-size: 17px; }
.account__totals .is-total dt, .account__totals .is-total dd { color: var(--c-heading); font-weight: 600; }

.account__delivery { padding: 22px 24px; background: var(--c-bg-soft); }
.account__delivery h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--c-heading); }
.account__delivery p { margin: 0 0 6px; }

/* Подсказка про вход на странице оформления */
.checkout-login { margin-bottom: 24px; font-size: 15px; color: var(--c-muted); }
.checkout-login a { color: var(--c-heading); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .account { grid-template-columns: 1fr; gap: 30px; }
  .account__aside { position: static; }
  .account__nav { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  .account__nav a { border-bottom: 0; padding: 6px 0; }
  .account__cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .account__orders, .account__items { font-size: 14px; }
  .account__orders th:nth-child(2), .account__orders td:nth-child(2) { display: none; }
  .account__items th:nth-child(2), .account__items td:nth-child(2) { display: none; }
  .account__totals { max-width: none; }
}

/* Ссылка «Оплатить» в списке заказов */
.account__pay {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-dark);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.account__pay:hover { background: #000; color: #fff; }

/* ============================================================
   Галерея с товарами в записях блога и историй.
   Сетка, отступ и пропорции задаются в редакторе — здесь только
   варианты, которые он умеет выбирать.
   ============================================================ */

.shopgal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Без выравнивания по верху фото разной высоты растягивало бы ячейку
     до высоты самой длинной в ряду — под коротким снимком появлялась бы
     пустота, неотличимая от лишнего отступа */
  align-items: start;
  margin: 34px 0;
}
.shopgal--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shopgal--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shopgal--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.shopgal--gap-none { gap: 0; }
.shopgal--gap-s { gap: 8px; }
.shopgal--gap-m { gap: 20px; }
.shopgal--gap-l { gap: 40px; }

/* Отступ между рядами задаёт только gap сетки.
   `!important` здесь по делу: в тексте статьи действует
   `.post__body figure { margin: 1.6em 0 }`, и без него к выбранному
   отступу добавлялось бы ещё по полтора em сверху и снизу — ряды
   расходились независимо от настройки в редакторе. Прежняя галерея
   гасит тот же отступ ровно так же. */
.shopgal .shopgal__item {
  margin: 0 !important;
  /* Свои отступы кадра приходят переменными из редактора */
  padding: var(--pt, 0px) var(--pr, 0px) var(--pb, 0px) var(--pl, 0px);
}
.shopgal__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.shopgal__media img { display: block; width: 100%; height: auto; }

/* Пропорции кадра: без них сетка «пляшет» на фото разной формы */
.shopgal--ratio-1-1 .shopgal__media img,
.shopgal--ratio-3-4 .shopgal__media img,
.shopgal--ratio-2-3 .shopgal__media img,
.shopgal--ratio-16-9 .shopgal__media img { height: 100%; object-fit: cover; }
.shopgal--ratio-1-1 .shopgal__media { aspect-ratio: 1 / 1; }
.shopgal--ratio-3-4 .shopgal__media { aspect-ratio: 3 / 4; }
.shopgal--ratio-2-3 .shopgal__media { aspect-ratio: 2 / 3; }
.shopgal--ratio-16-9 .shopgal__media { aspect-ratio: 16 / 9; }

.shopgal figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* ---------- товар на фото ---------- */

.shot {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  /* Раскрытая карточка не должна вылезать за кадр: в узкой колонке
     её обрезал бы край фото. Длинное название вместо этого сжимается
     и заканчивается многоточием. */
  max-width: calc(100% - 28px);
}

.shot__dot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* Тёмный кружок, значок белый */
  background: var(--c-dark);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
  /* Кружок появляется при наведении на фото */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
/* Значок тот же, что в шапке: заливка, без обводки */
.shot__dot svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.shopgal__item:hover .shot__dot,
.shot__dot:focus-visible,
.shot.is-open .shot__dot { opacity: 1; transform: none; }
.shot__dot:hover, .shot.is-open .shot__dot { background: #000; color: #fff; }

/* Карточка товара раскрывается вправо от кружка */
.shot__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  max-width: 0;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: var(--c-heading);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
  transition: max-width .4s var(--ease), opacity .3s var(--ease), padding .4s var(--ease), margin .4s var(--ease);
}
.shot:hover .shot__card,
.shot:focus-within .shot__card,
.shot.is-open .shot__card {
  max-width: 260px;
  margin-left: 10px;
  padding: 9px 16px;
  opacity: 1;
}
.shot__title {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.shot__price { overflow: hidden; text-overflow: ellipsis; }
.shot__price { color: var(--c-text); }
.shot__price s { margin-left: 6px; color: var(--c-muted); font-weight: 400; }
.sec .shot__card { text-decoration: none; }

/* На тач-экранах наведения нет: кружок виден сразу, карточка — по нажатию */
@media (hover: none) {
  .shot__dot { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .shopgal--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopgal--gap-l { gap: 24px; }
}

/* На телефоне всегда одно фото в ряд, что бы ни стояло в настройках блока:
   две-три колонки на узком экране превращают кадры в марки, а вся затея
   с крупными снимками теряет смысл. */
@media (max-width: 600px) {
  .shopgal--cols-2, .shopgal--cols-3, .shopgal--cols-4 { grid-template-columns: minmax(0, 1fr); }
  .shopgal--gap-l, .shopgal--gap-m { gap: 12px; }
  .shot { left: 8px; bottom: 8px; }
  .shot__dot { width: 36px; height: 36px; }
  .shot__dot svg { width: 16px; height: 16px; }
  .shot:hover .shot__card, .shot.is-open .shot__card { max-width: 190px; padding: 7px 12px; }
}

/* Заданные для кадра отступы на телефоне уменьшаем вдвое: их подбирают
   под широкий экран, и целиком они съели бы половину ширины снимка. */
@media (max-width: 600px) {
  .shopgal .shopgal__item {
    padding: calc(var(--pt, 0px) / 2) calc(var(--pr, 0px) / 2) calc(var(--pb, 0px) / 2) calc(var(--pl, 0px) / 2);
  }
}
/* ============================================================
   Шапка на планшетах и небольших ноутбуках (меню видно с 1025px).

   Меню и блок иконок делят строку поровну (flex: 1 1 0), логотип
   стоит ровно посередине. Пунктов стало шесть, и на узком экране
   текст перестал помещаться в свою половину — надписи наезжали
   на логотип. Сжимаем сам текст меню, а не ломаем раскладку:
   центровка логотипа при этом сохраняется.
   ============================================================ */

@media (min-width: 1025px) and (max-width: 1400px) {
  .nav { gap: 20px; }
  .nav__item > a { font-size: 16px; }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .header__inner { gap: 12px; }
  .nav { gap: 13px; }
  .nav__item > a { font-size: 15px; }
  /* Логотип чуть меньше — освобождает место обеим половинам сразу */
  .header__logo img { width: 120px; }
}

/* ---------- «Поделиться» под записью ---------- */

.post__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
}

.post-share {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-heading);
  transition: color var(--dur) var(--ease);
}
.post-share svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}
.post-share:hover { color: #000; }
.post-share:hover svg { transform: translateX(2px); }

/* Ответ после нажатия: «скопировано» либо сам адрес, если не вышло */
.post-share__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
}
.post-share__note:empty { display: none; }
.post-share__note.is-ok { color: #4a7a52; }
.post-share__note.is-error { color: var(--c-text); word-break: break-all; }

@media (max-width: 560px) {
  .post__foot { gap: 12px 20px; }
}

/* ============================================================
   Контакты: связь, форма, маркетплейсы
   ============================================================ */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 60px;
  align-items: start;
}

.contacts__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.25; color: var(--c-heading); }
.contacts__lead { margin-top: 14px; max-width: 560px; color: var(--c-muted); }

/* --- список контактов --- */

.contacts__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.contacts__item { display: flex; align-items: flex-start; gap: 16px; }

.contacts__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.contacts__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--c-heading); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contacts__item:hover .contacts__icon { border-color: var(--c-dark); background: var(--c-bg-soft); }

.contacts__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contacts__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.contacts__value { font-size: 18px; color: var(--c-heading); text-decoration: none; }
a.contacts__value:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacts__hint { font-size: 14px; color: var(--c-muted); }

/* --- социальные сети: стили ниже, в блоке .socials --- */

.contacts__socials { margin-top: 40px; }

/* --- форма --- */

.contacts__form-box { padding: 38px; background: var(--c-bg-soft); }
.contacts__form-title { font-size: 22px; font-weight: 500; color: var(--c-heading); }
.contacts__form-note { margin: 8px 0 26px; font-size: 15px; color: var(--c-muted); }

.feedback .field:last-of-type { margin-bottom: 8px; }
.feedback .checkbox { margin-top: 16px; }
.feedback__submit { width: 100%; margin-top: 24px; }

/* Ловушка для роботов: убрана из потока и недоступна с клавиатуры */
.feedback__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback__done {
  margin: 0;
  padding: 26px;
  background: #fff;
  border-left: 3px solid #4a7a52;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-heading);
}
.feedback__done[hidden] { display: none; }

/* --- маркетплейсы --- */

.mplace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.mplace__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-heading);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mplace__card:hover {
  border-color: var(--c-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
}

/* Логотипы разной ширины — держим их в одной высоте, чтобы плитки не прыгали */
.mplace__logo { display: flex; align-items: center; height: 40px; }
.mplace__logo img { max-width: 190px; max-height: 100%; width: auto; height: auto; }

.mplace__note { color: var(--c-muted); font-size: 15px; line-height: 1.6; }
.mplace__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-weight: 500;
}
.mplace__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.mplace__card:hover .mplace__go svg { transform: translateX(4px); }

@media (max-width: 1000px) {
  .contacts { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .contacts__form-box { padding: 30px; }
}

@media (max-width: 560px) {
  .contacts__form-box { padding: 24px 20px; }
  .mplace__card { padding: 26px 22px; }
  .contacts__social-list a { padding: 9px 14px; font-size: 14px; }
}

/* ---------- социальные сети на странице контактов ----------
   Круглая кнопка со знаком бренда и подписью под ней. Спокойный
   вид по умолчанию, цвет бренда — только при наведении.
   ---------------------------------------------------------- */

/* Статейные стили внутри .sec вешают на любые списки маркеры и отступ
   слева — здесь они не нужны. Селектор с двумя классами, чтобы
   перебить `.sec ul`. */
.sec .socials,
.sec .contacts__list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.sec .socials li,
.sec .contacts__list li { margin-bottom: 0; }
.sec .socials li::marker,
.sec .contacts__list li::marker { content: none; }

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin: 18px 0 0;
}

/* Только сам знак: ни кружка, ни рамки, ни подписи. Подчёркивание,
   которое статейные стили вешают на любую ссылку внутри .sec, тоже
   снимаем — под значком оно выглядит как случайная черта. */
.sec .socials__link,
.socials__link {
  display: inline-flex;
  color: var(--c-heading);
  text-decoration: none;
}

.socials__icon { display: inline-flex; }
.socials__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--c-heading);
  transition: fill var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.socials__link:hover .socials__icon svg { fill: #000; transform: translateY(-3px); }
.socials__link:focus-visible .socials__icon { outline: 2px solid var(--c-dark); outline-offset: 4px; }

@media (max-width: 560px) {
  .socials { gap: 24px; }
  .socials__icon svg { width: 34px; height: 34px; }
}
