/* =============================================================================
   СтальсибТех — общий styles.css · MVP-3
   Концепция: «Инженерный каталог», палитра «лес + терракот» (зелёный + оранжевый)
     · превалирующие цвета: приглушённый зелёный + терракотовый оранжевый
     · без неона, без glow, без bounce
     · многостраничный, без EN, только RU
============================================================================= */

/* ──────────────────────────────────────────────────────────────────── TOKENS */
:root {
  /* paper — основная бумажная поверхность */
  --paper:        #F4F1EA;   /* warm off-white */
  --paper-2:      #ECE7DA;   /* deeper paper */
  --paper-3:      #DCD6C5;   /* sepia-cream, разметка */

  /* ink — текст / линии */
  --ink:          #1F2520;   /* почти-чёрный с зелёным подтоном */
  --ink-2:        #2E3530;
  --ink-3:        #4A535F;

  /* линии и сетки */
  --rule:         #C9C2B0;
  --rule-soft:    #DBD5C4;
  --grid-fine:    rgba(61, 90, 64, 0.05);
  --grid-bold:    rgba(61, 90, 64, 0.10);

  /* брендовые акценты — финальные (из ТЗ заказчика) */
  --brand-green:      #3D5A40;   /* зелёный заказчика */
  --brand-green-2:    #2A3F2D;
  --brand-green-3:    #1E2E20;
  --brand-green-soft: #E2EAE0;
  --brand-orange:     #C55F2E;   /* оранжевый заказчика */
  --brand-orange-2:   #A04A1F;
  --brand-orange-soft:#F4E4D6;

  --steel:        #6B7280;
  --steel-2:      #8F98A2;

  /* sub-brand */
  --wood:         #8B6F47;
  --wood-2:       #6C5535;
  --wood-soft:    #EFE3CC;
  --khaki:        #5F6B4A;
  --khaki-2:      #43492E;
  --khaki-soft:   #E2E1D3;

  /* шрифты — заголовки на Unbounded (бесплатный аналог Intro;
     если будет лицензия Intro — заменить значение этой переменной),
     основной текст — Inter */
  --f-display:    'Unbounded', 'Oswald', system-ui, sans-serif;
  --f-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:       'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* лёгкое скругление карточек — «совсем чуть-чуть» по правкам */
  --r-card: 14px;

  /* easing */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:       160ms;
  --t-med:        300ms;
  --t-slow:       560ms;

  /* layout — сужено под типовой ноутбук 1366/1440 (по правкам — чтобы влезало в экран) */
  --container:    1200px;
  --gutter:       clamp(20px, 3vw, 36px);
  --header-h:     76px;

  --shadow-pencil: 0 1px 0 rgba(31, 37, 32, 0.06), 0 0 0 1px rgba(31, 37, 32, 0.08);
  --shadow-card:   0 1px 0 rgba(31, 37, 32, 0.05), 0 2px 4px -1px rgba(31, 37, 32, 0.08);
  --shadow-card-h: 0 1px 0 rgba(31, 37, 32, 0.06), 0 8px 16px -6px rgba(31, 37, 32, 0.12);
}

/* ──────────────────────────────────────────────────────────────────── RESET */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Резервируем место под скроллбар чтобы layout не «дрожал» и не смещался влево */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    linear-gradient(to right, var(--grid-fine) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 0 1px, transparent 1px),
    linear-gradient(to right, var(--grid-bold) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-bold) 0 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ──────────────────────────────────────────────────────── TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-weight: 700; }
.h-hero {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.96;
  text-transform: uppercase;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}
.h-card {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
  text-transform: uppercase;
}
.lede {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--brand-orange);
}
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }

.pencil {
  background-image: linear-gradient(transparent 78%, var(--brand-orange) 78%, var(--brand-orange) 86%, transparent 86%);
  padding-right: 4px;
}

/* ──────────────────────────────────────────────────────── PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 500ms var(--ease), visibility 500ms var(--ease);
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__gear {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: spin 2.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green);
  display: flex;
  gap: 4px;
}
.preloader__bar {
  width: 180px;
  height: 2px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.preloader__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-orange);
  width: 30%;
  animation: barslide 1.4s ease-in-out infinite;
}
@keyframes barslide {
  0%   { left: -30%; }
  100% { left: 100%; }
}
.preloader__caption {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────── LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.section {
  padding: clamp(56px, 8vw, 112px) 0;
  position: relative;
}
.section--paper-2 { background: var(--paper-2); }
.section--ink {
  background: var(--brand-green-3);
  color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, 0.04) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.04) 0 1px, transparent 1px),
    linear-gradient(to right, rgba(244, 241, 234, 0.08) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.08) 0 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
}
.section--green {
  background: var(--brand-green);
  color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, 0.06) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.06) 0 1px, transparent 1px),
    linear-gradient(to right, rgba(244, 241, 234, 0.12) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.12) 0 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
}
.section--orange-soft { background: var(--brand-orange-soft); }
.section--green-soft  { background: var(--brand-green-soft); }

/* ─────────────────────────────────────────── SECTION HEAD */
.shead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  position: relative;
}
.section--ink .shead, .section--green .shead { border-top-color: var(--paper); }
@media (min-width: 880px) {
  .shead { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
}
.shead__num {
  position: absolute;
  top: -10px;
  right: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
  background: var(--paper);
  padding: 0 10px;
}
.section--paper-2 .shead__num { background: var(--paper-2); }
.section--green-soft .shead__num { background: var(--brand-green-soft); }
.section--orange-soft .shead__num { background: var(--brand-orange-soft); }
.section--ink .shead__num, .section--green .shead__num { color: var(--steel-2); background: var(--brand-green-3); }
.section--green .shead__num { background: var(--brand-green); }

/* ──────────────────────────────────────────────────────── HEAD */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
/* При скролле шапка становится более прозрачной + добавляется лёгкая тень */
.site-head.is-scrolled {
  background: rgba(244, 241, 234, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 4px 16px -8px rgba(31, 37, 32, 0.16);
  border-bottom-color: rgba(31, 37, 32, 0.18);
}
.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  min-height: var(--header-h);
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
  line-height: 1;
}
.brand__tagline {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}
@media (max-width: 560px) { .brand__tagline { font-size: 10px; letter-spacing: 0.04em; } }
@media (max-width: 380px) { .brand__tagline { display: none; } }
.brand__mark {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
}
.brand__mark svg { width: 44px; height: 44px; }
.brand__wm {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--brand-green);
  /* наклон вправо по правкам — без italic-варианта шрифта используем skewX */
  transform: skewX(-9deg);
  transform-origin: left center;
  display: inline-block;
  padding-right: 6px;
}
.brand__wm sup {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-left: 6px;
  color: var(--steel);
  text-transform: uppercase;
}
.brand__logo {
  height: 88px;
  width: auto;
  display: block;
}
.foot__logo {
  height: 64px;
  width: auto;
  display: block;
  /* подвал тёмный — перекрашиваем зелёный логотип в светлый */
  filter: brightness(0) invert(1);
}
/* Меню на одной строке с логотипом, поиском и телефоном */
.nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-list a.is-cat {
  color: var(--brand-green);
  font-weight: 600;
}
.nav-list a.is-cat:hover { color: var(--brand-green-2); }
.nav-list a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a.is-active { color: var(--brand-green); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-orange);
}
.head-phone {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  flex-shrink: 0;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.head-phone:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.head-phone a { color: inherit; text-decoration: none; }
.head-phone__ico { color: var(--brand-green); flex-shrink: 0; }
.head-phone:hover .head-phone__ico { color: var(--brand-orange); }
/* Иконка-кнопка MAX рядом с телефоном — открывает чат в приложении MAX */
.head-phone__max {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FF6B6B, #C55F2E);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.head-phone__max:hover { transform: scale(1.08); filter: brightness(1.08); }
/* Кнопка MAX убрана по правкам */
.head-phone__max { display: none !important; }

/* ─────────────────────────── HERO правая колонка — фото + блок преимуществ */
.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(61, 90, 64, 0.15), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(197, 95, 46, 0.12), transparent 60%),
    linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-3) 100%);
  margin-bottom: 24px;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__photo-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.hero__info {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  padding: 24px 28px;
}
.hero__info-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--brand-green);
  text-transform: uppercase;
  transform: skewX(-9deg);
  transform-origin: left;
  display: inline-block;
  margin-bottom: 4px;
}
.hero__info-sub {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.hero__info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero__info-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--f-sans);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.hero__info-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--brand-orange);
  border-radius: 50%;
}

/* ─────────────────────────── INDIVIDUAL ORDERS — нумерация в круглых рамках */
.indiv__list li::before {
  content: counter(indiv-counter, decimal);
  counter-increment: indiv-counter;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-orange);
  border: 1.5px solid var(--brand-orange);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  letter-spacing: 0;
}

/* ─────────────────────────── TEAM photo gallery (горизонтальный слайдер) */
.team-gallery {
  margin-top: 56px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.team-gallery__track {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.team-gallery__track::-webkit-scrollbar { display: none; }
.team-gallery__slide {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  opacity: 1;
}
.team-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1024px) {
  .team-gallery__slide { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .team-gallery__slide { flex: 0 0 85%; }
}
.team-gallery__slide-placeholder {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.team-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.team-gallery__arrow:hover { background: var(--brand-green); color: var(--paper); transform: translateY(-50%) scale(1.06); }
.team-gallery__arrow--prev { left: 12px; }
.team-gallery__arrow--next { right: 12px; }
.team-gallery__arrow svg { width: 18px; height: 18px; }
.team-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.team-gallery__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.team-gallery__dot.is-active { background: var(--brand-orange); transform: scale(1.2); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  align-items: center;
  justify-content: center;
  position: relative;
}
.burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--ink);
}
.burger::before { top: 14px; }
.burger::after { bottom: 14px; }

@media (max-width: 1219px) {
  .nav-list { display: none; }
  .head-phone { display: none; }
  .burger { display: inline-flex; }
  .brand { margin-right: auto; }
}
@media (max-width: 720px) {
  .brand__wm sup { display: none; }
}

/* ──────────────────────────────────────────────────────── SEARCH */
.search {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}
.search__form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  height: 40px;
  transition: border-color var(--t-fast) var(--ease);
}
.search__form:focus-within { border-color: var(--brand-orange); }
.search__btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  border-right: 1px solid var(--rule);
}
.search__btn svg { width: 16px; height: 16px; }
.search__btn:hover { color: var(--brand-orange); }
.search__input {
  border: none;
  background: transparent;
  outline: none;
  padding: 0 10px;
  height: 38px;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
  -webkit-appearance: none;
}
.search__input::placeholder { color: var(--steel); font-size: 13px; }
.search__clear {
  width: 32px; height: 38px;
  font-size: 22px;
  line-height: 1;
  color: var(--steel);
  display: none;
}
.search.has-value .search__clear { display: inline-flex; align-items: center; justify-content: center; }
.search__clear:hover { color: var(--brand-orange); }

.search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  /* шире самого инпута — чтоб длинные названия товаров помещались целиком */
  width: 480px;
  max-width: calc(100vw - 32px);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  display: none;
  flex-direction: column;
  max-height: min(70vh, 520px);
  overflow: hidden auto;
  /* поверх любых элементов страницы */
  z-index: 1200;
  box-shadow: var(--shadow-card-h);
}
.search__dropdown.is-open { display: flex; }
.search__row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease);
}
.search__row:hover { background: var(--brand-green-soft); }
.search__row:last-of-type { border-bottom: none; }
.search__sku {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.05em;
  min-width: 72px;
}
.search__name {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.search__name mark {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-2);
  padding: 0 2px;
}
.search__tag {
  display: none;
}
.search__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-green);
  white-space: nowrap;
}
.search__all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--paper);
  transition: background var(--t-fast) var(--ease);
}
.search__all:hover { background: var(--brand-orange); }
.search__empty {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.search__empty strong {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.search__empty span { font-size: 13px; color: var(--steel); }
.search__empty em { color: var(--brand-orange); font-style: normal; }

/* Поиск на десктопе под мин. шириной — компактнее */
@media (max-width: 1280px) {
  .search { width: 200px; }
}
@media (max-width: 1100px) {
  /* На мобильной — оставляем поиск, но он перемещается под шапку */
  .site-head__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 99; width: 100%; }
  .search__dropdown { left: -1px; right: -1px; }
}

/* ──────────────────────────────────────────────────────── SEARCH PAGE */
.search-form-big {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  margin-top: 16px;
  max-width: 720px;
}
.search-form-big input {
  border: none;
  background: transparent;
  padding: 16px 18px;
  font-family: var(--f-sans);
  font-size: 18px;
  color: var(--ink);
  outline: none;
}
.search-form-big input::placeholder { color: var(--steel); }
.search-form-big button {
  background: var(--brand-green);
  color: var(--paper);
  padding: 0 24px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast) var(--ease);
}
.search-form-big button:hover { background: var(--brand-orange); }
.search-form-big svg { width: 16px; height: 16px; }

.search-count {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 32px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.search-empty {
  padding: 40px;
  border: 1.5px dashed var(--rule);
  background: var(--paper);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.search-empty h2 {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  color: var(--ink);
}
.search-empty p { color: var(--ink-2); max-width: 56ch; }
.search-empty__tips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.search-empty__tips a {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.search-empty__tips a:hover { background: var(--brand-green); color: var(--paper); }

.product__name mark {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-2);
  padding: 0 2px;
}
.product__specs span mark {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-2);
  padding: 0 1px;
}

/* off-canvas nav */
.off-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  padding: 40px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 55;
  border-top: 1px solid var(--ink);
  overflow-y: auto;
  background-image:
    linear-gradient(to right, var(--grid-fine) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 0 1px, transparent 1px);
  background-size: 8px 8px;
}
.off-nav.is-open { display: flex; }
.off-nav a {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.off-nav a small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────── BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  user-select: none;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--solid { background: var(--brand-green); color: var(--paper); border-color: var(--brand-green); }
.btn--solid:hover { background: var(--brand-green-2); border-color: var(--brand-green-2); }
.btn--orange { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.btn--orange:hover { background: var(--brand-orange-2); border-color: var(--brand-orange-2); }
.btn--ozon {
  background: #0091FF;
  border-color: #0091FF;
  color: #fff;
  text-transform: none;
  font-family: var(--f-sans);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 14px;
}
.btn--ozon:hover { background: #0077D4; border-color: #0077D4; }
.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: 12px; gap: 8px; }

/* ────────────────────────────────────────────────────────────── DIM line */
.dim {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.dim__line { flex: 1; height: 1px; background: var(--rule); position: relative; }
.dim__line::before, .dim__line::after {
  content: "";
  position: absolute;
  width: 1px; height: 7px;
  background: var(--rule);
  top: -3px;
}
.dim__line::before { left: 0; }
.dim__line::after { right: 0; }

/* ─────────────────────────────────────────────────────────────────── HERO */
.hero {
  padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ─────────────────────────── ВИДЕО-ФОН в hero (опциональный) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
  /* пока файла нет — этот блок просто не покажется */
}
.hero__video.is-failed { display: none; }
.hero[data-video]::after {
  /* зелёный градиент-наложение поверх видео для читабельности текста */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(244, 241, 234, 0.85) 0%, rgba(226, 234, 224, 0.7) 100%);
  pointer-events: none;
}

/* ─────────────────────────── ГЛОБАЛЬНЫЕ ФОНОВЫЕ ШЕСТЕРНИ
   Постоянно на фоне ВСЕХ страниц, fixed внизу z-index'а.
   Создаются JS-функцией mountGlobalBg(). */
.bg-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-global .bg-anim__gear {
  position: absolute;
  animation: bg-spin 90s linear infinite;
  opacity: 0.05;
  will-change: transform;
}
.bg-global .bg-anim__gear--g1 { width: 360px; height: 360px; top: 10vh; left: -100px; color: var(--brand-green); animation-duration: 120s; }
.bg-global .bg-anim__gear--g2 { width: 220px; height: 220px; top: 60vh; right: -70px; color: var(--brand-orange); opacity: 0.06; animation-duration: 80s; animation-direction: reverse; }
.bg-global .bg-anim__gear--g3 { width: 180px; height: 180px; top: 130vh; left: 30%; color: var(--brand-green-2); animation-duration: 100s; }
.bg-global .bg-anim__gear--g4 { width: 280px; height: 280px; top: 180vh; right: 20%; color: var(--brand-orange); opacity: 0.045; animation-duration: 140s; animation-direction: reverse; }
.bg-global .bg-anim__gear--g5 { width: 200px; height: 200px; top: 230vh; left: -50px; color: var(--brand-green); animation-duration: 95s; }
.bg-global .bg-anim__gear svg { width: 100%; height: 100%; }
/* Искры-частицы в глобальном фоне */
.bg-global__sparks { position: absolute; inset: 0; }
/* основные слои сайта поверх глобального фона */
main, section, footer, aside { position: relative; z-index: 1; }
/* шапка — поверх всего, чтобы выпадающий поиск не перекрывался секциями */
.site-head { z-index: 100; }
@media (prefers-reduced-motion: reduce) {
  .bg-global .bg-anim__gear { animation: none; }
}

/* ─────────────────────────── HERO sub-list (замена sub-параграфа) */
.hero__sub-list {
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 56ch;
}
.hero__sub-list .hero__sub-list-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 16px;
}
.hero__sub-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero__sub-list ul li {
  position: relative;
  padding-left: 22px;
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.45;
  color: var(--ink-2);
}
.hero__sub-list ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  background: var(--brand-orange);
  border-radius: 50%;
}

/* ─────────────────────────── ФОНОВЫЕ АНИМАЦИИ (hero-локальные) */
.bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero > *:not(.bg-anim):not(.hero__video) { position: relative; z-index: 1; }

/* Шестерни */
.bg-anim__gear {
  position: absolute;
  opacity: 0.06;
  color: var(--brand-green);
  animation: bg-spin 60s linear infinite;
  will-change: transform;
}
.bg-anim__gear--lg { width: 480px; height: 480px; top: -120px; right: -100px; animation-duration: 80s; }
.bg-anim__gear--md { width: 260px; height: 260px; bottom: -50px; left: -50px; color: var(--brand-orange); opacity: 0.07; animation-duration: 45s; animation-direction: reverse; }
.bg-anim__gear--sm { width: 140px; height: 140px; top: 30%; left: 8%; color: var(--brand-green-2); opacity: 0.05; animation-duration: 35s; }
.bg-anim__gear svg { width: 100%; height: 100%; }

@keyframes bg-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Градиент-мэш — пульсация зелёных и оранжевых пятен */
.bg-anim__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(61, 90, 64, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(198, 95, 46, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(61, 90, 64, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(198, 95, 46, 0.06) 0%, transparent 35%);
  animation: bg-pulse 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes bg-pulse {
  0%   { transform: scale(1) rotate(0deg);    opacity: 1; }
  50%  { transform: scale(1.08) rotate(15deg); opacity: 0.85; }
  100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

/* Частицы (искры от сварки) */
.bg-anim__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-anim__wrench {
  position: absolute;
  bottom: -50px;
  opacity: 0;
  animation: bg-wrench-rise 20s linear infinite;
  will-change: transform, opacity;
}
.bg-anim__wrench svg { width: 100%; height: 100%; display: block; }
.bg-anim__wrench--green  { color: rgba(61, 90, 64, 0.22); }
.bg-anim__wrench--orange { color: rgba(198, 95, 46, 0.30); }

@keyframes bg-wrench-rise {
  0%   { transform: translateY(0) rotate(var(--rot, 0deg)); opacity: 0; }
  10%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { transform: translateY(-118vh) translateX(var(--drift, 0px)) rotate(calc(var(--rot, 0deg) + var(--spin, 180deg))); opacity: 0; }
}

/* На тёмных секциях частицы и шестерни ярче */
.section--ink .bg-anim__gear, .section--green .bg-anim__gear,
.section--blueprint .bg-anim__gear { opacity: 0.10; }
.section--ink .bg-anim__wrench--green,
.section--green .bg-anim__wrench--green { color: rgba(244, 241, 234, 0.16); }

/* Reduced motion — отключаем фоновую анимацию */
@media (prefers-reduced-motion: reduce) {
  .bg-anim__gear, .bg-anim__mesh, .bg-anim__wrench { animation: none !important; }
  .bg-anim__wrench { display: none; }
}
.hero__head {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.hero__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  min-width: 220px;
}
.hero__num strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.hero__tagline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 14px;
}
.hero__claim {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-align: left;
  max-width: 56ch;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.hero__title { margin-bottom: 12px; text-transform: none; letter-spacing: -0.01em; }
.hero__title .accent { color: var(--brand-green); }
.hero__sub {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: stretch;
}
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; }
}
.hero__draw {
  position: relative;
  min-height: 360px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
}
.hero__draw svg { width: 100%; height: 100%; max-height: 480px; }

.draw-label {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  background: var(--paper-2);
  padding: 3px 8px;
}
.draw-label--tl { top: 0; left: 16px; transform: translateY(-50%); }
.draw-label--br { bottom: 0; right: 16px; transform: translateY(50%); }

.hero__specs {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
}
@media (min-width: 720px) { .hero__specs { grid-template-columns: repeat(4, 1fr); } }
.hero__spec {
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--rule);
}
.hero__spec:last-child { border-right: none; }
.hero__spec dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.hero__spec dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
}
.hero__spec dd small {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.42em;
  color: var(--steel);
  margin-left: 4px;
}

/* ─────────────────────────────────────────────────────────── HGRID + cards */
/* По правкам: все блоки с пояснениями — в отдельных рамках друг от друга, со скруглением */
.hgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: none;
  background: transparent;
}
@media (min-width: 720px)  { .hgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hgrid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .hgrid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hgrid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px)  { .hgrid--2 { grid-template-columns: repeat(2, 1fr); } }
.hgrid > * {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
  position: relative;
}

.adv {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  transition: background var(--t-med) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  border-radius: var(--r-card);
}
.adv:hover { background: var(--brand-green-soft); }

/* Сетка преимуществ — каждая карточка в отдельной рамке (по правкам) */
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px)  { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
.adv-grid .adv {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 28px;
  background: var(--paper);
}
.adv-grid .adv:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-h);
  background: var(--paper);
}
/* Скруглить иконки причин (по правкам) */
.adv-grid .adv__icon {
  border-radius: 12px;
}
.adv__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.adv__icon {
  width: 56px; height: 56px;
  border: 1.5px solid var(--brand-green);
  background: var(--brand-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  border-radius: 14px;
}
.adv__icon svg { width: 30px; height: 30px; }
.adv__title { font-size: 17px; }
.adv__text { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.adv__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* direction cards */
.dir-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  transition: background var(--t-med) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  border-radius: 14px;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-h); }

/* Сетка категорий — отдельные закруглённые рамки друг от друга (по правкам) */
.dirs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px)  { .dirs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .dirs-grid { grid-template-columns: repeat(4, 1fr); } }
.dirs-grid .dir-card {
  border: 1.5px solid var(--ink);
  padding: 28px;
  border-radius: 14px;
}
/* 4 фоновых цвета направлений (по правкам) */
.dir-card--c1 { background: #E1DFD5; }
.dir-card--c2 { background: #F3F1EA; }
.dir-card--c3 { background: #EEEEEE; }
.dir-card--c4 { background: #E5E4D9; }
/* старые подбренды — оставлены для backward-compat */
.dir-card--uyut { background: var(--wood-soft); }
.dir-card--uyut:hover { background: #E5D4B7; }
.dir-card--travel { background: var(--khaki-soft); }
.dir-card--travel:hover { background: #D6D4C2; }
.dir-card__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dir-card__tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--brand-green);
}
.dir-card--uyut .dir-card__tag::before { background: var(--wood-2); }
.dir-card--travel .dir-card__tag::before { background: var(--khaki-2); }
.dir-card__title { font-size: clamp(22px, 2.2vw, 30px); }
.dir-card__list {
  font-family: var(--f-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.dir-card__list li { padding-left: 18px; position: relative; }
.dir-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-family: var(--f-mono);
}
.dir-card__art {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 180px; height: 180px;
  opacity: 0.08;
  pointer-events: none;
}
.dir-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
  align-self: flex-start;
  color: var(--ink);
  transition: gap var(--t-fast) var(--ease);
}
.dir-card:hover .dir-card__cta { gap: 16px; }

/* ─────────────────────────────────────────────────────── PRODUCTS */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 600px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
/* В каталоге сайдбар занимает 260px, поэтому max 2 колонки до 1280, 3 после */
.cat .products { grid-template-columns: 1fr; }
@media (min-width: 720px)  { .cat .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cat .products { grid-template-columns: repeat(3, 1fr); } }

/* ────────────────────────────── PRODUCT CARDS в стиле Ozon */
.product {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-fast) var(--ease);
}
.product:hover {
  box-shadow: 0 12px 24px -8px rgba(31, 37, 32, 0.18), 0 4px 8px -2px rgba(31, 37, 32, 0.08);
  transform: translateY(-3px);
  border-color: var(--ink);
}
.product__draw {
  position: relative;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--rule);
  background: #FAFAFA;
  overflow: hidden;
}
.product__draw svg { width: 100%; height: 100%; position: relative; z-index: 1; }
/* Если положили фото в /контент фото/products/<sku>.jpg — оно автоматически
   ложится поверх SVG-схемы. Если файла нет — onerror прячет img, остаётся схема. */
.product__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: var(--paper);
}
.product__photo + svg { z-index: 0; }
.product:hover .product__photo { transform: scale(1.04); transition: transform 600ms var(--ease); }
.product__draw::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-fine) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 0 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}
.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-green);
  color: var(--paper);
  padding: 5px 10px;
  border-radius: 6px;
}
.product__badge--orange { background: var(--brand-orange); }
/* Сердечко-избранное справа сверху (Ozon-стиль) */
.product__heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  z-index: 3;
  color: #6B7280;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  border: none;
}
.product__heart:hover { color: var(--brand-orange); transform: scale(1.1); }
.product__heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.product__heart.is-active { color: var(--brand-orange); }
.product__heart.is-active svg { fill: currentColor; }
.product__sn {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.product__photo-slot {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--steel);
  background: rgba(244, 241, 234, 0.85);
  padding: 3px 7px;
  border: 1px dashed var(--rule);
  text-transform: uppercase;
}
.product__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
/* Цена крупная и жирная как у Ozon — сразу под фото */
.product__price-top {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.product__old-price {
  font-family: var(--f-sans);
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: line-through;
  font-weight: 500;
}
.product__discount {
  background: var(--brand-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--f-sans);
  letter-spacing: 0;
}
.product__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-size: 13px;
}
.product__stars { color: var(--brand-orange); letter-spacing: 0.04em; font-size: 14px; }
.product__rating-num { color: var(--ink); font-weight: 600; }
.product__rating-count { color: var(--steel); }
.product__delivery {
  font-family: var(--f-sans);
  font-size: 12.5px;
  color: var(--brand-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--steel);
  text-transform: uppercase;
}
.product__name {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  min-height: 2.7em;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel);
  min-height: 26px;
}
.product__specs span {
  border: 1px solid var(--rule);
  padding: 3px 7px;
}
.product__packs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  min-height: 26px;
}
.product__pack {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  cursor: pointer;
  background: var(--paper);
}
.product__pack:hover { background: var(--brand-green-soft); }
.product__pack.is-active { background: var(--brand-green); color: var(--paper); border-color: var(--brand-green); }
.product__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product__price {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.product__price small {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--steel);
  margin-left: 4px;
}
/* Полноширинная синяя Ozon-кнопка */
.product__ozon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #005BFF;
  color: #fff;
  padding: 11px 14px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 10px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  width: 100%;
}
.product__ozon:hover { background: #0049CC; transform: translateY(-1px); }
.product__ozon:active { transform: translateY(0); }
.product__ozon svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────────────── CATALOG layout */
.cat {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 960px) {
  .cat { grid-template-columns: 260px 1fr; }
}
.cat__filters {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cat__filters h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.cat__filters fieldset { border: none; padding: 0; margin: 0 0 20px; }
.cat__filters fieldset:last-child { margin-bottom: 0; }
.cat__filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.cat__filter input { accent-color: var(--brand-orange); }
.cat__filter .count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel);
}
.cat__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}
.cat__count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cat__sort {
  font-family: var(--f-mono);
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 7px 11px;
  color: var(--ink);
}

/* Reset фильтров */
.cat__reset {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange-2);
  padding: 6px 0;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px dashed var(--brand-orange);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.cat__reset:hover { color: var(--ink); border-color: var(--ink); }

/* Пустое состояние каталога */
.catalog-empty {
  grid-column: 1 / -1;
  padding: 56px 32px;
  border: 1.5px dashed var(--brand-orange);
  background: var(--brand-orange-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.catalog-empty svg { color: var(--brand-orange-2); opacity: 0.8; }
.catalog-empty h3 {
  font-family: var(--f-display);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--brand-orange-2);
  letter-spacing: 0.02em;
}
.catalog-empty p { color: var(--ink-2); max-width: 56ch; margin: 0; }

/* Сетка каталога — отступ сверху и реактивность */
#catalog-grid {
  transition: opacity var(--t-fast) var(--ease);
}
#catalog-grid.is-loading { opacity: 0.4; }

/* Чек-боксы фильтров — более выраженный hover */
.cat__filter {
  border-radius: 0;
  transition: background var(--t-fast) var(--ease), padding var(--t-fast) var(--ease);
}
.cat__filter:hover {
  background: var(--brand-green-soft);
  padding-left: 6px;
  padding-right: 6px;
  margin-left: -6px;
  margin-right: -6px;
}
.cat__filter:has(input:checked) {
  color: var(--brand-green);
  font-weight: 700;
}
.cat__filter:has(input:checked) .count {
  color: var(--brand-orange);
  font-weight: 600;
}

/* ─────────────────────────────────────────── PRODUCT page */
.pd {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 64px;
}
@media (min-width: 960px) {
  .pd { grid-template-columns: 1.2fr 1fr; }
}
.pd__gallery {
  border: 1px solid var(--ink);
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: 32px;
  position: relative;
  min-height: 420px;
}
.pd__gallery svg { width: 100%; height: 100%; max-height: 540px; }
.pd__gallery img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; display: block; }
.pd__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pd__thumb {
  width: 70px; height: 70px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--t-fast) var(--ease);
}
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd__thumb.is-active { box-shadow: inset 0 0 0 2px var(--brand-orange); }
.pd__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.pd__chip {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 5px 10px;
}
.pd__desc { color: var(--ink-2); line-height: 1.65; font-size: 15px; margin: 14px 0 28px; }
.pd__head h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; text-transform: none; }
.pd__sn {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pd__price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 24px;
}
.pd__price { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1; }
.pd__price small { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--steel); margin-left: 6px; }
.pd__stock {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.pd__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.pd__packs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.pd__pack {
  border: 1.5px solid var(--rule);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pd__pack:hover { border-color: var(--brand-green); }
.pd__pack.is-active { border-color: var(--brand-green); background: var(--brand-green-soft); }
.pd__pack-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.pd__pack-price {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--brand-green);
  margin-top: 6px;
  font-weight: 500;
}
.pd__pack-saving {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--brand-orange);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.pd__spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pd__spec th, .pd__spec td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-sans);
  font-weight: 400;
  vertical-align: top;
}
.pd__spec th {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  width: 45%;
  font-weight: 500;
}
.pd__spec td { color: var(--ink); }

/* breadcrumbs */
.crumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.crumbs a:hover { border-color: currentColor; }
.crumbs span { color: var(--steel); }

/* ──────────────────────────────────────── PLACEHOLDER ZONES */
.ph {
  border: 1.5px dashed var(--brand-orange);
  background: var(--brand-orange-soft);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 140px;
}
.ph::before {
  content: "В РАЗРАБОТКЕ";
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 3px 10px;
}
.ph__icon {
  width: 32px; height: 32px;
  color: var(--brand-orange-2);
  animation: spin 4s linear infinite;
}
.ph__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-orange-2);
}
.ph__text {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  max-width: 50ch;
}

/* ──────────────────────────────────────── TEAM */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px)  { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(4, 1fr); } }

.team-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-h); }
.team-card__photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  position: relative;
  border-bottom: 1px solid var(--ink);
  background-image:
    linear-gradient(to right, var(--grid-fine) 0 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fine) 0 1px, transparent 1px);
  background-size: 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo-icon {
  width: 64px; height: 64px;
  color: var(--steel);
  opacity: 0.5;
}
.team-card__photo-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--steel);
  background: rgba(244, 241, 234, 0.9);
  padding: 3px 7px;
  border: 1px dashed var(--rule);
  text-transform: uppercase;
}
.team-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-card__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.team-card__role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-orange);
  text-transform: uppercase;
}
.team-card__bio {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 4px;
}

/* ──────────────────────────────────────── FAQ */
/* FAQ - каждый вопрос в отдельной закруглённой рамке (по правкам) */
.faq {
  display: grid;
  gap: 14px;
  border: none;
}
.faq__item {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 22px;
  transition: border-color var(--t-fast) var(--ease);
}
.faq__item.is-open { border-color: var(--brand-green); }
.faq__q {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color var(--t-fast) var(--ease);
}
/* плюсик всегда в правой колонке, по центру строки */
.faq__sign { grid-column: 2; justify-self: end; }
.faq__q:hover { color: var(--brand-green); }
.faq__num {
  display: none;
}
.faq__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.faq__sign {
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq__sign::before { width: 12px; height: 1.5px; }
.faq__sign::after { width: 1.5px; height: 12px; transition: transform var(--t-med) var(--ease); }
.faq__item.is-open .faq__sign { background: var(--brand-green); }
.faq__item.is-open .faq__sign::before, .faq__item.is-open .faq__sign::after { background: var(--paper); }
.faq__item.is-open .faq__sign::after { transform: rotate(90deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner {
  overflow: hidden;
}
.faq__a-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-bottom: 22px;
  max-width: 76ch;
}

/* ──────────────────────────────────────── INDIVIDUAL ORDERS block */
.indiv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 880px) {
  .indiv { grid-template-columns: 1.2fr 1fr; }
}
.indiv__text {
  padding: clamp(28px, 4vw, 48px);
  background: var(--brand-green);
  color: var(--paper);
}
.indiv__draw {
  padding: clamp(28px, 4vw, 48px);
  background: var(--brand-green-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.indiv__draw svg { width: 100%; max-width: 320px; }
.indiv__title { color: var(--paper); margin-bottom: 18px; }
.indiv__lede { font-size: 16px; line-height: 1.55; color: var(--brand-green-soft); margin-bottom: 24px; }
.indiv__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}
.indiv__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  color: var(--brand-green-soft);
  line-height: 1.55;
}
.indiv__list li::before {
  content: counter(indiv-counter, decimal);
  counter-increment: indiv-counter;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.indiv__list { counter-reset: indiv-counter; }

/* ──────────────────────────────────────── REVIEWS / CASES */
.case {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-h); }
.case__draw {
  aspect-ratio: 16/10;
  background: var(--brand-green);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.case__draw svg { width: 100%; height: 100%; }
.case__photo {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--brand-green);
}
.case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-med) var(--ease);
}
.case:hover .case__photo img { transform: scale(1.04); }
.case__tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  padding: 4px 9px;
}
.case__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case__title { font-size: 19px; }
.case__sum { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.case__meta {
  display: flex;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.case__meta div { font-family: var(--f-mono); font-size: 11px; color: var(--steel); letter-spacing: 0.06em; text-transform: uppercase; }
.case__meta strong { display: block; margin-top: 4px; font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: 0; }

/* ────────────────────────────────── TIMELINE + SHOP grid */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.tl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: start;
}
.tl-row:last-child { border-bottom: none; }
@media (min-width: 720px) {
  .tl-row { grid-template-columns: 140px 1fr 1fr; gap: 32px; }
}
.tl__year {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--brand-orange);
}
.tl__title { font-size: 17px; margin-bottom: 6px; }
.tl__text { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.tl__art { font-family: var(--f-mono); font-size: 11px; color: var(--steel); letter-spacing: 0.06em; }

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
}
@media (min-width: 720px) { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
.shop-grid > div {
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.shop-grid dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.shop-grid dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.shop-grid dd small { font-family: var(--f-sans); font-weight: 400; font-size: 13px; color: var(--steel); display: block; margin-top: 6px; }

/* ─────────────────────────────────── FORM */
.form {
  display: grid;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: clamp(24px, 3vw, 36px);
}
/* На зелёной/тёмной секции форма — белая (по правкам).
   Тёмные подписи/инпуты остаются нормальными благодаря цвету фона. */
.section--ink .form, .section--green .form {
  background: var(--paper);
  border-color: var(--ink);
  border-radius: var(--r-card);
}
.form__row { display: grid; gap: 6px; }
.form__row label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.section--ink .form__row label, .section--green .form__row label { color: var(--steel); }
.form__row input,
.form__row textarea,
.form__row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 0;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  font-family: var(--f-sans);
  transition: border-color var(--t-fast) var(--ease);
  border-radius: 0;
}
/* Форма на тёмной секции теперь сама белая — текст внутри тёмный */
.section--ink .form__row input,
.section--ink .form__row textarea,
.section--ink .form__row select,
.section--green .form__row input,
.section--green .form__row textarea,
.section--green .form__row select { color: var(--ink); border-bottom-color: var(--ink); }
.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus {
  outline: none;
  border-bottom-color: var(--brand-orange);
}
.form__row textarea { resize: vertical; min-height: 80px; }
.form__row select option { color: var(--ink); }
.form__consent {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.section--ink .form__consent, .section--green .form__consent { color: var(--ink-3); }
.form__consent input { accent-color: var(--brand-orange); margin-top: 3px; }

/* Статус отправки формы */
.form__status {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
}
.form__status.is-pending { display: block; background: var(--brand-green-soft); color: var(--ink-2); }
.form__status.is-ok { display: block; background: var(--brand-green); color: #fff; }
.form__status.is-err { display: block; background: var(--brand-orange-soft); color: var(--brand-orange-2); }
.form__status.is-err a { color: var(--brand-orange-2); font-weight: 700; }

/* ─────────────────────────────────── STAMP */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px; height: 120px;
  border: 2.5px solid var(--brand-orange);
  border-radius: 50%;
  color: var(--brand-orange);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-7deg);
  position: relative;
  padding: 8px;
  text-align: center;
  line-height: 1;
  font-size: 15px;
  letter-spacing: 0.05em;
}
.stamp::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--brand-orange);
  border-radius: 50%;
  opacity: 0.5;
}
.stamp small {
  display: block;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 6px;
  opacity: 0.9;
}

/* ─────────────────────────────────── CARTOUCHE */
.cartouche {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--paper);
  background: transparent;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cartouche > div {
  padding: 10px 12px;
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cartouche > div:nth-child(4n) { border-right: none; }
.cartouche > div:nth-last-child(-n+4) { border-bottom: none; }
.cartouche dt { color: var(--steel-2); font-size: 9px; }
.cartouche dd { margin: 0; color: var(--paper); font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }

@media (max-width: 720px) {
  .cartouche { grid-template-columns: repeat(2, 1fr); }
  .cartouche > div:nth-child(4n) { border-right: 1px solid var(--paper); }
  .cartouche > div:nth-child(2n) { border-right: none; }
  .cartouche > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--paper); }
  .cartouche > div:nth-last-child(-n+2) { border-bottom: none; }
}

/* ─────────────────────────────────── FOOTER */
.site-foot {
  background: var(--brand-green-3);
  color: var(--paper);
  padding: 64px 0 24px;
  position: relative;
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, 0.03) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.03) 0 1px, transparent 1px),
    linear-gradient(to right, rgba(244, 241, 234, 0.06) 0 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.06) 0 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.2);
}
@media (min-width: 800px) { .foot__top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.foot__brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.foot__about { font-size: 14px; line-height: 1.6; color: var(--steel-2); max-width: 360px; margin-bottom: 20px; }
.foot__contact { font-family: var(--f-mono); font-size: 13px; line-height: 1.85; color: var(--steel-2); }
.foot__contact > div { white-space: nowrap; }
.foot__contact a { color: var(--paper); }
.foot h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-2);
  margin-bottom: 16px;
}
.foot ul a {
  display: block;
  padding: 5px 0;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--steel-2);
  transition: color var(--t-fast) var(--ease);
}
.foot ul a:hover { color: var(--paper); }

.foot__cartouche { margin-top: 36px; }
.foot__bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel-2);
  text-transform: uppercase;
}
.foot__bottom a:hover { color: var(--paper); }

/* ─────────────────────────────────── PAGE HEAD */
.page-head {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--ink);
}
.page-head__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 800px) { .page-head__row { grid-template-columns: 1fr auto; align-items: end; } }
.page-head h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 0.98; text-transform: none; }
.page-head__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: left;
}
@media (min-width: 800px) { .page-head__meta { text-align: right; } }
.page-head__meta strong { display: block; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 14px; margin-top: 4px; letter-spacing: 0.04em; }

/* ─────────────────────────────────── REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-stagger] { transition-delay: calc(var(--i, 0) * 70ms); }

.draw-in path,
.draw-in line,
.draw-in polyline,
.draw-in rect,
.draw-in circle {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1400ms var(--ease);
}
.draw-in.is-visible path,
.draw-in.is-visible line,
.draw-in.is-visible polyline,
.draw-in.is-visible rect,
.draw-in.is-visible circle { stroke-dashoffset: 0; }

/* ─────────────────────────────────── PAGER */
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 0;
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper);
  padding: 0 8px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pager a:hover { background: var(--ink); color: var(--paper); }
.pager .is-current { background: var(--brand-green); color: var(--paper); border-color: var(--brand-green); }

/* ─────────────────────────────────── REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw-in path, .draw-in line, .draw-in polyline, .draw-in rect, .draw-in circle {
    stroke-dasharray: none; stroke-dashoffset: 0;
  }
  .preloader__gear, .ph__icon { animation: none; }
}

@media print {
  body { background: white; }
  .site-head, .site-foot, .off-nav, .burger, .preloader { display: none; }
  .section { padding: 24px 0; }
}

/* ─────────────────────────────────────────────────────────
   Мобильная адаптация — всё в экран, без горизонтального скролла
   ───────────────────────────────────────────────────────── */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; }

.table-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  overflow: hidden;
}

@media (max-width: 720px) {
  /* контейнер — компактнее padding по бокам */
  :root { --gutter: 16px; }

  /* hero — поджимаем заголовок и фото */
  .h-hero { font-size: clamp(34px, 11vw, 56px) !important; }
  .hero__photo { min-height: 280px !important; aspect-ratio: 4/3 !important; }
  .hero__claim { font-size: 11px; }
  .hero__sub-list ul { padding-left: 18px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn { justify-content: center; }
  .hero__head { gap: 14px; }

  /* секции — меньше вертикальный padding */
  .section { padding: clamp(40px, 9vw, 64px) 0; }
  .h-section { font-size: clamp(24px, 7vw, 36px) !important; }

  /* кнопки — слегка меньше */
  .btn { font-size: 13px; padding: 12px 16px; }

  /* подвал — лого + телефон не вылазят */
  .foot__top { gap: 24px; }
  .foot__logo { height: 52px; }
  .foot__about { font-size: 13px; }
  .foot__contact > div { font-size: 12px; }

  /* подвал нижний — в столбик */
  .foot__bottom { flex-direction: column; gap: 8px; text-align: left; }

  /* таблицы (опт/услуги) — горизонтальный скролл */
  .table-card { overflow: hidden auto; }
  .table-card { overflow-x: auto; }
  .table-card table { min-width: 520px; font-size: 13px; }
  .table-card th, .table-card td { padding: 12px 14px !important; }

  /* page-head — мета под заголовком, не вылетает */
  .page-head__row { gap: 12px; }
  .page-head__meta { font-size: 12px; }
  .page-head__meta strong { font-size: 13px; }

  /* страница товара */
  .pd { gap: 24px; }
  .pd__head h1 { font-size: clamp(22px, 6vw, 30px); }
  .pd__price { font-size: 30px; }
  .pd__price-row { flex-wrap: wrap; gap: 10px; }
  .pd__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .pd__cta .btn { justify-content: center; }
  .pd__thumb { width: 58px; height: 58px; }
  .pd__gallery { padding: 16px; min-height: 280px; }
  .pd__gallery img { max-height: 360px; }
  .pd__spec { font-size: 13px; }
  .pd__spec th, .pd__spec td { padding: 10px 12px; }

  /* каталог: карточки в одну колонку, фильтры сверху */
  .product__name { font-size: 14px; line-height: 1.35; }
  .product__draw { aspect-ratio: 1/1; }

  /* убираем фоновые шестерни на мобиле — освобождаем экран */
  .bg-anim__gear { display: none; }

  /* убираем избыточные отступы у inline-стилизованных CTA-боксов */
  div[style*="padding: 48px"] { padding: 28px !important; }
  div[style*="padding: 36px"] { padding: 24px !important; }
}

@media (max-width: 480px) {
  :root { --gutter: 14px; }
  .h-hero { font-size: clamp(30px, 11vw, 48px) !important; }
  .hero__photo { min-height: 220px !important; }
  .pd__price { font-size: 24px; }
  .pd__price-row { flex-direction: column; align-items: flex-start; }
  .crumbs { font-size: 10px; letter-spacing: 0.06em; }
  .crumbs span { margin: 0 4px; }
  /* галерея превью — еще меньше */
  .pd__thumb { width: 48px; height: 48px; padding: 3px; }
  /* hero CTA — кнопки крупные но в столбик */
  .hero__ctas .btn { padding: 14px; font-size: 13px; }
}

/* ─────────────────────────────────────────────────────────
   Единое скругление блоков и разделов (по правкам заказчика)
   ───────────────────────────────────────────────────────── */
.case,
.team-card,
.faq__item,
.ph,
.dir-card,
.shop-grid,
.timeline,
.pd__gallery,
.form,
.stamp,
.hero__photo,
.indiv__draw,
.team-gallery,
.team-gallery__track,
.search__form,
.pd__spec,
.adv,
.product {
  border-radius: var(--r-card);
}
/* блоки с дочерним контентом/фото — обрезаем углы по скруглению */
.case,
.team-card,
.shop-grid,
.ph,
.dir-card,
.timeline,
.pd__gallery,
.indiv__draw,
.team-gallery__track {
  overflow: hidden;
}
/* таблицы прайса/характеристик */
.pd__spec { border-collapse: separate; border-spacing: 0; overflow: hidden; }

/* ─────────────────────────── КАЛЬКУЛЯТОР ЗАКАЗА (квиз) */
.calc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 36px);
}
.calc__progress { height: 6px; background: var(--rule); border-radius: 100px; overflow: hidden; }
.calc__progress-bar { display: block; height: 100%; width: 0; background: var(--brand-orange); border-radius: 100px; transition: width var(--t-med) var(--ease); }
.calc__meta {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px; color: var(--steel);
  letter-spacing: 0.04em; margin: 10px 0 24px;
}
.calc__q {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; margin-bottom: 20px;
}
.calc__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.calc__opt {
  text-align: left; padding: 16px 18px;
  border: 1.5px solid var(--rule); border-radius: var(--r-card);
  background: var(--paper-2); font-family: var(--f-sans); font-size: 15px;
  color: var(--ink); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.calc__opt:hover { border-color: var(--brand-green); background: var(--brand-green-soft); }
.calc__opt.is-active { border-color: var(--brand-orange); background: var(--brand-orange-soft); }
.calc__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 13px; color: var(--steel);
  padding: 6px 0; cursor: pointer; background: none; border: none;
}
.calc__back:hover { color: var(--brand-orange); }
.calc__summary {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-2);
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.calc__summary b { color: var(--steel); font-weight: 500; }
.calc__form { display: grid; gap: 16px; }
.calc__done { text-align: center; padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.calc__done h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; }
.calc__done p { color: var(--ink-2); max-width: 44ch; }
@media (max-width: 600px) { .calc__opts { grid-template-columns: 1fr; } }
