/* ==========================================================================
   Магазин ИП Бабушкин — светлая премиальная система
   Тёплый бумажный фон, серифные заголовки, сдержанные акценты.
   ========================================================================== */

/* ---------- шрифты ---------- */
@font-face {
  font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/prata-cyrillic.woff2') format('woff2');
}
@font-face {
  font-family: 'Golos'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/golos-cyr-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Golos'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/golos-cyr-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Golos'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/golos-cyr-600.woff2') format('woff2');
}

:root {
  /* холодная сталь: светлый цинк, графит, синий акцент */
  --paper:   #F1F4F6;
  --paper-2: #E6EAEE;
  --card:    #FFFFFF;
  --ink:     #14181C;
  --ink-2:   #3D454C;
  --ink-3:   #7C868F;
  --line:    rgba(20, 24, 28, .10);
  --line-2:  rgba(20, 24, 28, .20);

  /* акцент — сталь, не кричащий */
  --clay:    #2F4A63;
  --clay-2:  #3E5F7D;
  --clay-bg: rgba(47, 74, 99, .08);

  --serif: 'Prata', 'Times New Roman', serif;
  --sans:  'Golos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad: clamp(18px, 4vw, 64px);
  --max: 1360px;
  --head: 76px;
  --r: 12px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* единый фон сайта: один зафиксированный слой под всем контентом */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* слой не скроллится — контент едет поверх него */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../img/bg/bg-tile.webp') center top / 420px auto repeat;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--clay); color: #fff; }
:focus-visible { outline: 1.5px solid var(--clay); outline-offset: 3px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 9px 15px; background: var(--ink); color: var(--paper);
  font-size: 13px; transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip:focus-visible { transform: none; }

/* ---------- шапка ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--head);
  display: flex; align-items: center; gap: 30px;
  padding: 0 var(--pad);
  background: rgba(241, 244, 246, .82);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.head.is-stuck {
  background: rgba(241, 244, 246, .96);
  border-bottom-color: var(--line);
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo svg { width: 32px; height: 32px; }
.logo span {
  font-family: var(--serif); font-size: 26px; letter-spacing: .015em;
  line-height: 1; white-space: nowrap;
}

.nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.nav a {
  position: relative; font-size: 14px; color: var(--ink-2);
  transition: color .22s var(--ease); white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }

.head__tools { display: flex; align-items: center; gap: 14px; }
.head__phone {
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap; transition: color .22s;
}
.head__phone:hover { color: var(--clay); }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 15px;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 13px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.cart-btn:hover { border-color: var(--ink); background: #fff; }
.cart-btn svg { width: 16px; height: 16px; }
.cart-btn b {
  font-weight: 500; font-variant-numeric: tabular-nums;
}

.burger { display: none; }

.menu {
  position: fixed; inset: var(--head) 0 auto; z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--pad) 24px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 17px;
}
.menu a:first-child { border-top: 0; }
.menu i {
  font-style: normal; font-family: var(--serif); font-size: 12px;
  color: var(--ink-3); min-width: 22px;
}

/* ---------- типографика ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.h-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.1; letter-spacing: -.01em;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.15; letter-spacing: -.005em;
}
.lead {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65; color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  border-radius: 100px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn--ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }

/* ---------- секции ---------- */
.sect { padding: clamp(44px, 6vw, 96px) var(--pad); }
.sect--line { border-top: 1px solid var(--line); }
.sect__head { margin-bottom: clamp(26px, 3vw, 48px); }
.sect__head .h2 { max-width: 22ch; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--head) + clamp(38px, 6vw, 84px)) var(--pad) clamp(34px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 26px;
}
.hero__eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--clay);
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border-radius: var(--r);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero__art::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.9), transparent 60%);
  pointer-events: none;
}
.hero__art svg { width: 62%; height: auto; opacity: .9; }

/* ---------- полоса преимуществ ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.facts__item {
  padding: 22px clamp(14px, 2vw, 28px);
  border-right: 1px solid var(--line);
}
.facts__item:last-child { border-right: 0; }
.facts__item b {
  display: block; font-family: var(--serif); font-size: 20px;
  font-weight: 400; margin-bottom: 6px;
}
.facts__item span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* ---------- карточки товаров ---------- */
.grid-products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.product {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.product:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -26px rgba(20, 24, 28, .42);
}
.product__pic {
  aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  display: grid; place-items: center;
  margin: 8px 8px 0;
  border-radius: 9px;
  border: 1px solid rgba(20,24,28,.055);
}
.product__pic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.product:hover .product__pic img { transform: scale(1.035); }
.product__body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product__cat {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 7px;
}
.product h3 {
  font-size: 15px; font-weight: 500; line-height: 1.35;
  margin-bottom: 12px;
}
.product__price {
  margin-top: auto; display: flex; align-items: baseline; gap: 8px;
}
.product__price b { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.product__price s { font-size: 13px; color: var(--ink-3); }

/* ---------- категории ---------- */
.cats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.cat {
  position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(20px, 2.4vw, 34px);
  min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.cat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cat__n {
  font-family: var(--serif); font-size: 13px; color: var(--clay);
  margin-bottom: auto;
}
.cat h3 { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); font-weight: 400; margin: 18px 0 8px; }
.cat p { font-size: 13.5px; color: var(--ink-3); max-width: 30ch; }
.cat__go {
  position: absolute; right: clamp(16px, 2.2vw, 28px); bottom: clamp(16px, 2.2vw, 28px);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s;
}
.cat:hover .cat__go { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cat__go svg { width: 15px; height: 15px; }

/* ---------- блок о доставке ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 70px); align-items: center;
}
.split__art {
  aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.split__art svg { width: 54%; opacity: .85; }

.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px; padding: 20px 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step__n {
  font-family: var(--serif); font-size: 13px; color: var(--ink-3);
  padding-top: 3px;
}
.step b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* ---------- подвал ---------- */
.foot {
  padding: clamp(40px, 5vw, 70px) var(--pad) 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.foot__in {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.foot__in p { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); margin-top: 14px; max-width: 34ch; }
.foot__col h4 {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.foot__col a, .foot__col span {
  display: block; font-size: 14px; color: var(--ink-2);
  padding: 4px 0; transition: color .22s;
}
.foot__col a:hover { color: var(--clay); }
.foot__line {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 18px; font-size: 12px; color: var(--ink-3);
}
.foot__line a { border-bottom: 1px solid var(--line-2); }

/* ---------- появление ---------- */
.js .rev { opacity: 0; }
.js .rev.is-in { opacity: 1; transition: opacity .6s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rev { opacity: 1; transition: none; }
  .btn, .product, .cat, .cart-btn { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .head__phone { display: none; }
  .burger { display: block; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { aspect-ratio: 16 / 10; max-height: 420px; }
  .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(2) { border-right: 0; }
  .facts__item:nth-child(1), .facts__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  :root { --head: 62px; }
  .h-display { font-size: clamp(28px, 8.6vw, 38px); }
  .h2 { font-size: clamp(22px, 6.4vw, 30px); }
  .lead { font-size: 15px; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product__body { padding: 12px 12px 14px; }
  .product h3 { font-size: 13.5px; }
  .product__price b { font-size: 18px; }
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 170px; padding: 20px; }
  .foot__in { grid-template-columns: 1fr; gap: 26px; }
  .cart-btn span { display: none; }
  .cart-btn { padding: 0 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- корзина: модальное окно по центру ---------- */
.cart {
  position: fixed; z-index: 150;
  top: 50%; left: 50%;
  width: 50vw;
  height: 50vh;
  min-width: 520px;
  min-height: 380px;
  max-width: 860px;
  max-height: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transform: translate(-50%, -46%) scale(.97);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease-out);
  display: flex; flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(20,24,28,.4), 0 2px 8px rgba(20,24,28,.06);
  overflow: hidden;
}
.cart.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.cart__head h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.cart__close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.cart__close:hover { background: var(--paper-2); }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.cart__empty {
  padding: 48px 0; text-align: center; color: var(--ink-3); font-size: 14px;
}
.cart__foot { padding: 18px 26px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.cart__sum {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; font-size: 14px; color: var(--ink-2);
}
.cart__sum b { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink); }
.cart__foot .btn { width: 100%; }

/* на телефоне и узких экранах окно почти на весь экран */
@media (max-width: 900px) {
  .cart {
    width: calc(100vw - 32px);
    height: auto;
    max-height: 80vh;
    min-width: 0;
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .cart {
    top: auto; bottom: 0; left: 0;
    width: 100%; max-height: 88vh;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    transform: translate(0, 100%);
  }
  .cart.is-open { transform: none; }
  .cart__head { padding: 16px 20px; }
  .cart__body { padding: 6px 20px; }
  .cart__foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
}

.scrim {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(20,24,28,.42);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* пока открыта корзина, страница не скроллится */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Страницы каталога и карточки товара
   ========================================================================== */

.page-head {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(20px,4vw,60px); align-items: end;
  padding: calc(var(--head) + clamp(38px,5vw,70px)) var(--pad) clamp(24px,3vw,40px);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  background: transparent;
}
.page-head__lead { max-width: 46ch; }

/* ---------- каталог ---------- */
.catalog-wrap {
  display: grid; grid-template-columns: 244px minmax(0,1fr);
  gap: clamp(20px,3vw,48px);
  padding: clamp(26px,3.4vw,46px) var(--pad) clamp(40px,5vw,70px);
  align-items: start;
}
.filters { position: sticky; top: calc(var(--head) + 20px); }
.filters__group { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filters__group h4 {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.filters__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  width: 100%; padding: 7px 0; text-align: left;
  font-size: 14px; color: var(--ink-2);
  transition: color .2s var(--ease), padding-left .25s var(--ease-out);
}
.filters__item span { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filters__item:hover { color: var(--ink); }
.filters__item.is-on { color: var(--clay); padding-left: 6px; }
.filters__item.is-on span { color: var(--clay); }

.filters__range { display: block; }
.filters__range input[type=range] {
  width: 100%; margin: 6px 0 10px; accent-color: var(--clay);
}
.filters__range span { font-size: 12.5px; color: var(--ink-3); }
.filters__range b { color: var(--ink); font-weight: 500; }

.filters__note { padding-top: 4px; }
.filters__note p { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin-bottom: 8px; }
.filters__phone { font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line-2); }

.catalog-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.catalog-count { font-size: 13px; color: var(--ink-3); }
.catalog-sort { font-size: 12.5px; color: var(--ink-3); }
.catalog-empty { padding: 40px 0; font-size: 14px; color: var(--ink-3); }
.catalog-main .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* ---------- хлебные крошки ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: calc(var(--head) + 26px) var(--pad) 0;
  font-size: 12.5px; color: var(--ink-3);
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--clay); }
.crumbs span { opacity: .5; }

/* ---------- карточка товара ---------- */
.product-page {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: clamp(24px,4vw,64px);
  padding: clamp(22px,3vw,40px) var(--pad) clamp(34px,4.4vw,64px);
  align-items: start;
}
.product-page__pic {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; aspect-ratio: 1/1;
  display: grid; place-items: center;
  position: sticky; top: calc(var(--head) + 20px);
}
.product-page__pic img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.product-page__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px,3vw,40px); line-height: 1.12;
  letter-spacing: -.01em; margin-bottom: 16px;
}
.product-page__lead { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 26px; max-width: 46ch; }

.product-page__buy {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.product-page__price {
  font-family: var(--serif); font-size: clamp(24px,2.6vw,34px); line-height: 1;
}
.product-page__notes { display: grid; gap: 10px; }
.product-page__notes li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.product-page__notes svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--clay); }

/* ---------- характеристики ---------- */
.specs {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(20px,4vw,60px);
}
.specs__list { margin: 0; }
.specs__row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 20px; padding: 13px 0; border-top: 1px solid var(--line);
}
.specs__row:first-child { border-top: 0; padding-top: 0; }
.specs__row dt { font-size: 13.5px; color: var(--ink-3); }
.specs__row dd { margin: 0; font-size: 14px; font-weight: 500; }

@media (max-width: 1100px) {
  .page-head { grid-template-columns: 1fr; align-items: start; }
  .catalog-wrap { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .filters__note { grid-column: 1 / -1; }
  .catalog-main .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-page { grid-template-columns: 1fr; }
  .product-page__pic { position: static; }
  .specs { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .filters { grid-template-columns: 1fr; gap: 0; }
  .catalog-main .grid-products { grid-template-columns: 1fr 1fr; }
  .crumbs { padding-top: calc(var(--head) + 18px); font-size: 11.5px; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Прочие страницы: карточки, реквизиты, оформление, юридический текст
   ========================================================================== */

/* ---------- универсальные карточки ---------- */
.cards { display: grid; gap: clamp(12px,1.6vw,22px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  padding: clamp(20px,2.4vw,30px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-size: clamp(18px,1.8vw,23px); font-weight: 400; margin-bottom: 10px; }
.card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- реквизиты ---------- */
.reqs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(18px,3vw,40px); }
.reqs__block { border-top: 1px solid var(--line-2); padding-top: 20px; }
.reqs__block h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 18px;
}
.reqs__block dl { margin: 0; }
.reqs__block dl > div {
  display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.reqs__block dl > div:last-child { border-bottom: 0; }
.reqs__block dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.reqs__block dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.reqs__block dd.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.reqs__block a { border-bottom: 1px solid var(--line-2); }
.reqs__block a:hover { color: var(--clay); }
.reqs__note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

/* ---------- контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(12px,1.6vw,22px); }
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(20px,2.4vw,30px);
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
a.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card__k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.contact-card__v { font-family: var(--serif); font-size: clamp(19px,2vw,25px); line-height: 1.2; }
.contact-card__v--sm { font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
.contact-card__d { font-size: 12.5px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.form input, .form textarea {
  width: 100%; padding: 11px 0;
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; resize: vertical;
  transition: border-color .25s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: #9AA4AD; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form .btn:disabled { opacity: .55; cursor: default; transform: none; }
.form__status { font-size: 13px; color: var(--clay); min-height: 18px; }
.form__note { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.form__note a { border-bottom: 1px solid var(--line-2); }

/* ---------- оформление заказа ---------- */
.checkout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(24px,4vw,60px); align-items: start; }
.checkout__summary {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: clamp(20px,2.4vw,30px); position: sticky; top: calc(var(--head) + 20px);
}
.checkout__summary h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 16px; }
.order-list { display: flex; flex-direction: column; }
.order-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.order-row b { font-weight: 500; white-space: nowrap; }
.checkout__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-size: 14px; color: var(--ink-3); }
.checkout__total b { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink); }
.checkout__hint { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.order-done { padding: 30px 0; }
.order-done .btn { margin-top: 20px; }
.muted { font-size: 13.5px; color: var(--ink-3); }

/* ---------- юридический текст ---------- */
.legal { max-width: 74ch; }
.legal h2 {
  font-family: var(--serif); font-size: clamp(18px,1.8vw,23px); font-weight: 400;
  margin: 34px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
.legal a { border-bottom: 1px solid var(--line-2); }
.legal__date { margin-top: 32px !important; font-size: 12.5px !important; color: var(--ink-3) !important; }

/* ---------- строки корзины ---------- */
.cart-item {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item__txt { display: flex; flex-direction: column; gap: 3px; }
.cart-item__txt b { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.cart-item__txt span { font-size: 12px; color: var(--ink-3); }
.cart-item__qty { display: flex; align-items: center; gap: 2px; }
.cart-item__qty button {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; font-size: 14px; line-height: 1;
  transition: border-color .2s, background .2s;
}
.cart-item__qty button:hover { border-color: var(--ink); background: var(--paper-2); }
.cart-item__qty span { min-width: 22px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cart-item__del { width: 24px; height: 24px; color: var(--ink-3); font-size: 16px; line-height: 1; }
.cart-item__del:hover { color: var(--clay); }

@media (max-width: 1100px) {
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .cards--3 .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .reqs { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
}

@media (max-width: 700px) {
  .cards--3 { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .form { max-width: none; }
  .legal p { font-size: 14px; }
}

/* строка заказа: название + количество под ним */
.order-row span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-row em { font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* ==========================================================================
   Каталог по разделам
   ========================================================================== */

.catalog-side { position: sticky; top: calc(var(--head) + 24px); }

.catnav { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.catnav__item {
  display: grid; grid-template-columns: 26px minmax(0,1fr) auto;
  align-items: baseline; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), padding-left .25s var(--ease-out);
}
.catnav__item span {
  font-family: var(--mono), ui-monospace, monospace;
  font-size: 10px; letter-spacing: .12em; color: var(--ink-3);
}
.catnav__item b { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.catnav__item i {
  font-style: normal; font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.catnav__item:hover { color: var(--clay); padding-left: 5px; }
.catnav__item:hover span, .catnav__item:hover i { color: var(--clay); }

.catalog-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.catalog-help p { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin-bottom: 8px; }
.catalog-help a { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.catalog-help a:hover { color: var(--clay); }
.catalog-help span { font-size: 12px; color: var(--ink-3); }

/* ---------- разделы ---------- */
.catsec {
  padding-bottom: clamp(34px, 4vw, 56px);
  margin-bottom: clamp(34px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--head) + 20px);
}
.catsec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.catsec__head { margin-bottom: clamp(18px, 2.2vw, 28px); }
.catsec__desc {
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
  max-width: 52ch; margin-top: 10px;
}
.catsec .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 1100px) {
  .catalog-side { position: static; margin-bottom: 28px; }
  .catnav { flex-direction: row; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .catnav__item {
    grid-template-columns: auto auto; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px;
    background: #fff;
  }
  .catnav__item span { display: none; }
  .catnav__item i { font-size: 10.5px; }
  .catalog-help { display: none; }
  .catsec .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .catsec .grid-products { grid-template-columns: 1fr 1fr; }
  .catnav { gap: 6px; }
  .catnav__item { padding: 7px 11px; }
  .catnav__item b { font-size: 13px; }
}

/* ==========================================================================
   Фоновые изображения
   ========================================================================== */

/* hero: фото на всю ширину, текст поверх левой части */
.hero {
  position: relative;
  padding: calc(var(--head) + clamp(56px, 8vw, 110px)) var(--pad) clamp(56px, 8vw, 110px);
  min-height: clamp(480px, 62vh, 700px);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/bg/hero-bg.webp') 70% 50% / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
/* мягкое затухание по краям: фото врастает в общий фон без кромки */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, #F1F4F6 0%, rgba(241,244,246,.94) 28%, rgba(241,244,246,.45) 52%, rgba(241,244,246,0) 78%),
    linear-gradient(180deg, #F1F4F6 0%, rgba(241,244,246,.35) 9%, rgba(241,244,246,0) 22%,
                            rgba(241,244,246,0) 78%, rgba(241,244,246,.45) 93%, #F1F4F6 100%);
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to   { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); }
}
.hero__grid { width: 100%; position: relative; z-index: 2; }
.hero__art { display: none; }

/* под разделами — единый фон сайта, отдельных слоёв нет */
.bg-steel { position: relative; }
.bg-steel::before { display: none; }

.bg-steps { position: relative; }
.bg-steps::before,
.bg-steps::after { display: none; }

.bg-about { position: relative; }
.bg-about::before,
.bg-about::after { display: none; }

/* подвал — полупрозрачный, сквозь него виден общий фон */
.foot {
  position: relative;
  background: rgba(230, 234, 238, .62);
  border-top: 1px solid var(--line);
}
.foot::before { display: none; }
/* карточки категорий с фото */
.cat {
  position: relative; isolation: isolate;
  min-height: 260px;
  justify-content: flex-end;
  background: #fff;
  overflow: hidden;
}
.cat__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .9;
  transition: transform .8s var(--ease-out);
}
.cat:hover .cat__bg { transform: scale(1.04); }
.cat::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.55) 34%, rgba(255,255,255,.93) 68%, #fff 100%);
}
.cat h3 { margin-top: 26px; }
.cat__n { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .cat__bg { transition: none; }
}

@media (max-width: 1100px) {
  .hero { min-height: 0; padding: calc(var(--head) + 40px) var(--pad) 40px; }
  .hero__bg { background-position: 62% 42%; }
  .hero::before {
    background: linear-gradient(0deg, var(--paper) 4%, rgba(241,244,246,.86) 42%, rgba(241,244,246,.55) 100%);
  }
}

@media (max-width: 700px) {
  .hero { padding: calc(var(--head) + 28px) var(--pad) 34px; }
  .cat { min-height: 210px; }
  .cat h3 { margin-top: 18px; }
}

/* ---------- шапки страниц: только лёгкое фото, без отдельного фонового слоя ---------- */
.page-head--photo {
  position: relative; isolation: isolate;
  background: transparent;
}
.page-head--photo::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--head-img) right center / cover no-repeat;
  opacity: .82;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
}
.page-head--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(241,244,246,.78) 0%, rgba(241,244,246,.5) 40%, rgba(241,244,246,.12) 74%, rgba(241,244,246,0) 100%);
}

/* ---------- фото в разделах вместо SVG ---------- */
.split__art img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.split__art {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
}

@media (max-width: 1100px) {
  .page-head--photo::before { background-position: 70% center; opacity: .62; }
  .page-head--photo::after {
    background: linear-gradient(180deg, rgba(241,244,246,.7) 0%, rgba(241,244,246,.35) 60%, rgba(241,244,246,.6) 100%);
  }
}

/* ==========================================================================
   Переходы между страницами
   ========================================================================== */

/* запасной вариант: мягкое появление и уход */
html.page-in body { opacity: 0; }
html body { transition: opacity .22s var(--ease); }
html.page-out body { opacity: 0; transition-duration: .18s; }

/* кросс-документные переходы (Chrome 126+): шапка и подвал не мигают */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vtOut .26s cubic-bezier(.4, 0, .2, 1) both;
}
::view-transition-new(root) {
  animation: vtIn .34s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes vtOut {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vtIn {
  from { opacity: 0; transform: translateY(8px); }
}

/* шапку не трогаем: она одинаковa на всех страницах */
.head { view-transition-name: site-head; }
::view-transition-old(site-head),
::view-transition-new(site-head) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  html body { transition: none; }
  html.page-in body, html.page-out body { opacity: 1; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
