/* ==========================================================================
   СПЕКТР — Dark / Light Emerald Premium
   Дизайн-система публичного сайта. Шрифт Onest.
   ========================================================================== */

:root {
  --bg: #07110d;
  --bg-elev: #0a1712;
  --surface: #0e1d16;
  --surface-2: #12251c;
  --text: #edf2ea;
  --text-strong: #f8fbf6;
  --muted: #9fb0a4;
  --faint: #708477;
  --line: rgba(216, 233, 220, .13);
  --line-strong: rgba(216, 233, 220, .28);
  --accent: #3b9b72;
  --accent-strong: #79c7a4;
  --accent-soft: #113127;
  --gold: #c8a86a;
  --gold-soft: rgba(200, 168, 106, .16);
  --danger: #e39a87;
  --image-bg: #e9ece4;
  --header-bg: rgba(7, 17, 13, .92);
  --footer-bg: #050d09;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
  --radius: 2px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 84px;
  --font: 'Onest', 'Segoe UI', Arial, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5ef;
  --bg-elev: #e8ede3;
  --surface: #ffffff;
  --surface-2: #eef2e9;
  --text: #10231a;
  --text-strong: #07160f;
  --muted: #596b5f;
  --faint: #7d8e82;
  --line: rgba(16, 35, 26, .14);
  --line-strong: rgba(16, 35, 26, .30);
  --accent: #1f6b4a;
  --accent-strong: #18573c;
  --accent-soft: #dce9df;
  --gold: #8b6f3a;
  --gold-soft: rgba(139, 111, 58, .14);
  --danger: #a4452e;
  --image-bg: #f6f7f2;
  --header-bg: rgba(243, 245, 239, .82);
  --shadow: 0 24px 70px rgba(20, 42, 31, .12);
}

/* Шапка, мобильное меню, Hero и cookie-карточка всегда остаются в тёмной
   палитре Dark Emerald — независимо от выбранной темы сайта. */
.site-header,
.mobile-menu,
.hero,
.about-hero,
.about-cta,
.cookie-banner {
  color-scheme: dark;
  color: var(--text);
  --bg: #07110d;
  --bg-elev: #0a1712;
  --surface: #0e1d16;
  --surface-2: #12251c;
  --text: #edf2ea;
  --text-strong: #f8fbf6;
  --muted: #9fb0a4;
  --faint: #708477;
  --line: rgba(216, 233, 220, .13);
  --line-strong: rgba(216, 233, 220, .28);
  --accent: #3b9b72;
  --accent-strong: #79c7a4;
  --accent-soft: #113127;
  --gold: #c8a86a;
  --gold-soft: rgba(200, 168, 106, .16);
  --danger: #e39a87;
  --image-bg: #e9ece4;
  --header-bg: rgba(7, 17, 13, .92);
  --footer-bg: #050d09;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

img, svg, iframe { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, dl, dd, dt, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 550;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.05; }
h3 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.3; letter-spacing: -.02em; }
h4 { font-size: 1rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-line { width: 34px; height: 1px; background: var(--gold); display: inline-block; flex: none; }

.section-index {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Кнопки и ссылки
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #06120c; transform: translateY(-1px); }
.button span { font-size: 14px; line-height: 1; }

.button-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.button-outline:hover {
  background: transparent;
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.button-small { min-height: 42px; padding: 0 16px; font-size: 10px; }

.text-link {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: .04em;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-strong) 45%, transparent);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--text-strong); border-color: var(--text-strong); }

.link-button {
  padding: 0; border: 0; background: none;
  color: inherit; font-size: inherit; text-align: left;
}
.link-button:hover { color: var(--text-strong); }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: color .2s, border-color .2s;
}
.section-link:hover { color: var(--text-strong); border-color: var(--accent-strong); }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.header-underlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  background: #07110d;
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: background .25s, border-color .25s;
}
.site-header.is-scrolled,
.page:not(.home) .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  height: 100%;
}

.brand { display: block; flex: none; }
.brand-logo { display: block; width: 146px; height: auto; }
.brand-logo-light { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  margin-left: auto;
}
.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text-strong); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent-strong);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.header-phone {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.header-phone:hover { color: var(--text-strong); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  transition: color .2s, border-color .2s, transform .3s;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); transform: rotate(15deg); }
.theme-toggle .theme-icon { display: block; transform: translateY(-1px); }

.header-cta { min-height: 40px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: currentColor;
  transition: transform .25s, top .25s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Мобильное меню
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px var(--gutter) 36px;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.mobile-menu nav a b { color: var(--gold); font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.mobile-contacts { display: grid; gap: 10px; justify-items: start; }
.mobile-contacts > a:not(.button) { color: var(--muted); font-size: 14px; }
.mobile-contacts .button { margin-top: 8px; color: #fff; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(18px, 3vh, 36px) 0 clamp(48px, 7vh, 90px);
  overflow: hidden;
  background: #07110d;
}
.hero-snow {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2.6vw, 44px);
  align-items: center;
  min-height: min(820px, calc(100svh - var(--header-h) - 20px));
}
.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 600px;
  animation: heroCopyIn .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none; }
  .scene-frame { transition: none; }
}
.hero h1 {
  margin: 22px 0 28px;
  font-size: clamp(3rem, 5.1vw, 5.4rem);
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero h1 span { color: var(--gold); font-weight: 380; }
.hero-lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 42px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 38px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-meta div { display: grid; gap: 4px; }
.hero-meta span {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-meta b { color: var(--text); font-size: 14px; font-weight: 500; }

.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: min(74vh, 780px);
  min-height: 500px;
  transform: translateY(-108px);
}
.scene-stage {
  position: absolute;
  inset: -9% -12% -9% 1%;
  z-index: 2;
}
.scene-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07110d;
  opacity: 0;
  transition: opacity .52s ease .3s;
}
.scene-stage.is-loaded .scene-frame { opacity: 1; }

/* PNG-прелоадер: та же область, что и 3D-диорама, без рамки и подложки. */
.scene-preload-wrap {
  position: absolute;
  z-index: 4;
  left: var(--preload-left, .7%);
  top: var(--preload-top, 31%);
  width: var(--preload-width, 90.5%);
  pointer-events: none;
  transition: opacity .32s ease;
}
.scene-preload {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  transform: scaleX(1.07);
  transform-origin: left center;
}
.scene-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .045em;
  text-align: center;
  transform: translateX(3.5%);
}
.scene-loading-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: sceneSpin 1s linear infinite;
}
@keyframes sceneSpin { to { transform: rotate(360deg); } }
.scene-stage.is-loaded .scene-preload-wrap {
  opacity: 0;
  pointer-events: none;
}
.scene-stage.is-error .scene-loading { display: none; }
.scene-retry {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 10px auto 0;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
  pointer-events: auto;
}
.scene-stage.is-error .scene-retry {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.scene-retry:hover { border-color: var(--gold); color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .scene-loading-dot { animation: none; border-top-color: var(--gold); }
  .scene-preload-wrap, .scene-frame { transition: none; }
}

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(58px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { max-width: 900px; }
.section-head .section-index { margin-bottom: 12px; }
.section-head .section-lead {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}
.section-head-docs { align-items: flex-start; }
.section-head-docs > .section-link { margin-top: 42px; }
.section-count { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* Направления */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.direction-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background .3s;
}
.direction-card:hover { background: var(--surface); }
.direction-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.direction-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
  filter: saturate(.75);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .4s, filter .4s;
}
.direction-card:hover .direction-media img { transform: scale(1.04); opacity: 1; filter: saturate(1); }
.direction-index {
  position: absolute;
  left: 12px; top: 12px;
  padding: 5px 8px;
  background: rgba(4, 12, 8, .65);
  border: 1px solid rgba(237, 242, 234, .16);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .1em;
}
.direction-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: var(--gold);
  font-size: 48px;
}
.direction-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 22px 24px;
}
.direction-body h3 { font-size: 18px; }
.direction-body p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.direction-count {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent-strong);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Товары */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card { background: var(--bg); min-width: 0; }
.product-card-link { display: flex; flex-direction: column; height: 100%; }
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--image-bg);
}
.product-card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(16px, 2vw, 28px);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.product-card:hover .product-card-media img { transform: scale(1.035); }
.product-card-arrow {
  position: absolute;
  right: 12px; top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(7, 17, 13, .22);
  background: rgba(255, 255, 255, .82);
  color: #07110d;
  font-size: 14px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity .25s, transform .25s;
}
.product-card:hover .product-card-arrow { opacity: 1; transform: none; }
.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
}
.product-card-cat {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-card-body h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.product-card-model { color: var(--faint); font-size: 10.5px; line-height: 1.45; }
.product-card-price { margin-top: 8px; color: var(--accent-strong); font-size: 12px; }
.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: #9aa89d;
  font-size: 10px;
  letter-spacing: .3em;
}

/* Потребители */
.section-consumers { background: var(--bg-elev); }
.consumers-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}
.consumers-copy h2 { margin-bottom: 18px; }
.consumers-copy p { max-width: 38ch; color: var(--muted); font-size: 14px; }
.consumers-copy .text-link { margin-top: 24px; }
.consumer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.consumer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 22px 16px;
  background: var(--bg);
}
.consumer img {
  max-width: 82%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .66;
  transition: opacity .25s, filter .25s;
}
[data-theme="light"] .consumer img { filter: grayscale(1) brightness(0); opacity: .62; }
.consumer:hover img { opacity: 1; }
.consumer > span {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.consumer-name { color: var(--muted); font-size: 12px; text-align: center; }

/* О компании */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}
.about-copy h2 { margin-bottom: 30px; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.about-facts > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.about-facts dt {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.about-facts dd { color: var(--text); font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.about-body {
  padding-left: clamp(0px, 4vw, 50px);
  border-left: 1px solid var(--line);
}
.about-body .prose { color: var(--muted); font-size: 16px; line-height: 1.78; }
.about-body .prose p { margin-bottom: 1.1em; }
.about-body .button { margin-top: 14px; }

/* Документы */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.document-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 42, 31, .07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
[data-theme="dark"] .document-card {
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.document-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 62px rgba(20, 42, 31, .12);
}
[data-theme="dark"] .document-card:hover {
  box-shadow: 0 26px 62px rgba(0, 0, 0, .3);
}
.document-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: clamp(10px, 1.2vw, 16px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
  border-radius: 10px;
  background: #fff;
}
.document-preview img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.document-preview:hover img { transform: scale(1.018); }
.pdf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 5px;
  background: var(--gold);
  color: #1a1408;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  vertical-align: middle;
}
.pdf-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 12px 3px 4px;
  border: 1px solid rgba(16, 35, 26, .12);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .12);
  color: #17241c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}
.pdf-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 26px;
  flex: none;
  border-radius: 3px;
  background: #e54135;
  color: #fff;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .02em;
}
.document-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: #9aa89d;
  font-size: 22px;
}
.document-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 6px 5px;
}
.document-body h3 {
  margin: 0 0 7px;
  color: var(--text-strong);
  font-size: clamp(1.08rem, 1.3vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.document-org {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.document-org-icon {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: .8;
}
.document-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .2s, color .2s, background .2s;
}
.document-open:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}
.document-open span { font-size: 15px; line-height: 1; }

/* Документы — плоский стиль: без скруглений и теней. */
.section-documents .document-card,
.section-documents .document-preview,
.section-documents .pdf-chip,
.section-documents .pdf-chip-icon,
.section-documents .document-open {
  border-radius: 0;
}
.section-documents .document-card,
.section-documents .document-card:hover,
.section-documents .pdf-chip {
  box-shadow: none !important;
}

/* CTA */
.cta-band {
  padding: clamp(58px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 18% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--surface);
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
}
.cta-grid h2 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); color: var(--text-strong); }
.cta-copy p { max-width: 42ch; color: var(--muted); font-size: 15px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.cta-phone {
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.cta-phone:hover { color: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: #edf2ea;
  border-top: 1px solid rgba(237, 242, 234, .09);
  padding-top: clamp(44px, 6vw, 72px);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr .7fr .9fr 1fr;
  gap: clamp(26px, 4vw, 60px);
  padding-bottom: 54px;
}
.footer-brand img { width: 146px; height: auto; display: block; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: #a9b7ad; font-size: 12.5px; line-height: 1.6; }
.footer-note { display: block; margin-top: 14px; color: #71857a; font-size: 10px; line-height: 1.55; }
.footer-col h2 {
  color: #7d9186;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a,
.footer-col button {
  display: block;
  color: #c7d3cb;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 9px;
  transition: color .2s;
}
.footer-col a:hover,
.footer-col button:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(237, 242, 234, .1);
  color: #71857a;
  font-size: 10px;
}
.footer-requisites { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-credit {
  display: block;
  margin-top: 6px;
  color: #71857a;
  font-size: 10px;
  line-height: 1.5;
}
.footer-credit a {
  color: #a9b7ad;
  border-bottom: 1px solid rgba(237, 242, 234, .24);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.footer-credit a:hover { color: #fff; border-color: #fff; }
.footer-up { color: #a9b7ad; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-up:hover { color: #fff; }

/* Cookie */
.cookie-banner {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 32px);
  left: auto;
  width: min(720px, calc(100vw - 32px));
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}
.cookie-inner p { max-width: 470px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.cookie-inner a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.cookie-banner .button-outline { color: var(--text); border-color: var(--line-strong); }
.cookie-banner .button-outline:hover { color: var(--accent-strong); border-color: var(--accent-strong); }

/* --------------------------------------------------------------------------
   Внутренние страницы
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(34px, 5vw, 56px) 0 clamp(38px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 88% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--bg);
}
.page-hero-inner { background: var(--bg); }
.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--faint); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: var(--muted); }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
}
.page-hero h1 { margin-top: 4px; }
.page-hero-lead { max-width: 44ch; color: var(--muted); font-size: 14px; line-height: 1.7; padding-bottom: 4px; }
.page-hero-lead p + p { margin-top: 10px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin-top: 34px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.search-form input::placeholder { color: var(--faint); }
.search-form input:focus { outline: none; border-color: var(--accent-strong); }
.search-reset { color: var(--faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.search-reset:hover { color: var(--text); }

/* Каталог */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.category-card { display: flex; flex-direction: column; background: var(--bg); transition: background .25s; }
.category-card:hover { background: var(--surface); }
.category-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.category-media img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .8s, opacity .3s; }
.category-card:hover .category-media img { transform: scale(1.03); opacity: 1; }
.category-index {
  position: absolute;
  left: 12px; top: 12px;
  padding: 5px 8px;
  background: rgba(4, 12, 8, .65);
  border: 1px solid rgba(237, 242, 234, .16);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .1em;
}
.category-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.category-body h2 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.category-body span { color: var(--accent-strong); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.results-head h2 { font-size: 20px; letter-spacing: -.02em; }
.results-head span { color: var(--faint); font-size: 11px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pagination a { color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.pagination a:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
.pagination-status { color: var(--faint); }

.empty-state {
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { max-width: 46ch; margin: 0 auto 22px; color: var(--muted); font-size: 13px; }

/* Карточка товара */
.product-hero { padding: clamp(28px, 4vw, 44px) 0 clamp(44px, 6vw, 80px); }
.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin-top: 8px;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--image-bg);
  overflow: hidden;
}
.gallery-stage img { max-width: 86%; max-height: 86%; object-fit: contain; }
.gallery-count {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .8);
  color: #28372e;
  font-size: 9px;
  letter-spacing: .08em;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumb {
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--image-bg);
  overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active { border-color: var(--accent-strong); }
.product-info h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.02; margin: 6px 0 14px; }
.product-model { color: var(--faint); font-size: 11px; letter-spacing: .02em; }
.product-model span { color: var(--muted); }
.product-price { color: var(--accent-strong); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.2; margin: 18px 0 8px; letter-spacing: -.02em; }
.review-note { color: var(--gold); font-size: 11px; margin-bottom: 10px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
.product-note { color: var(--faint); font-size: 10.5px; line-height: 1.55; }
.product-facts { margin-top: 24px; border-top: 1px solid var(--line); }
.product-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--faint); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.product-facts dd { color: var(--text); font-size: 12px; text-align: right; }
.product-facts a { color: var(--accent-strong); }

.product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.product-description .prose { max-width: 72ch; }
.product-documents { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.product-documents ul { display: grid; gap: 8px; }
.product-documents a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-size: 13px; }
.product-specs { position: sticky; top: calc(var(--header-h) + 20px); border-top: 1px solid var(--line); padding-top: 18px; }
.product-specs > .button { margin-top: 12px; }
.spec-list { margin-bottom: 18px; }
.spec-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--faint); font-size: 10px; line-height: 1.45; }
.spec-list dd { color: var(--text); font-size: 11.5px; text-align: right; }

/* Партнёры */
.consumer-grid-page { margin-top: 8px; }
.section-dealers .dealers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dealer-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--bg); }
.dealer-head { display: flex; align-items: center; gap: 10px; }
.dealer-head img { max-height: 28px; max-width: 70px; object-fit: contain; filter: grayscale(1); }
.dealer-head h3 { font-size: 14px; }
.dealer-card p { color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.dealer-card .text-link { margin-top: auto; font-size: 10px; }

/* Контакты */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}
.contact-block { padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 34px; }
.contact-big { display: block; color: var(--text-strong); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.2; }
.contact-big:hover { color: var(--gold); }
.contact-mail { display: inline-block; margin-top: 10px; color: var(--accent-strong); font-size: 14px; }
.contact-address { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 12px; line-height: 1.6; }
.requisites > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--faint); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.requisites dd { color: var(--text); font-size: 11.5px; text-align: right; }
.contact-note { padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.contact-note p { color: var(--muted); font-size: 11px; line-height: 1.55; }

.lead-form-wrap { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); background: var(--surface); }
.lead-form-head h2 { margin-top: 2px; }
.request-context { display: flex; flex-direction: column; gap: 2px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--accent-soft); }
.request-context span { color: var(--faint); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.request-context strong { font-size: 13px; font-weight: 500; }
.request-context small { color: var(--muted); font-size: 10px; }
.lead-form { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid span { color: var(--faint); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  font-size: 13px;
  transition: border-color .2s;
}
.form-grid textarea { resize: vertical; min-height: 96px; }
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: var(--faint); }
.form-grid input:focus,
.form-grid textarea:focus { outline: none; border-color: var(--accent-strong); }
.form-grid .has-error input,
.form-grid .has-error textarea { border-color: var(--danger); }
.form-grid em { color: var(--danger); font-size: 10px; font-style: normal; }
.form-error { color: var(--danger); font-size: 11px; margin-top: 10px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.checkbox input { margin-top: 2px; accent-color: var(--accent); }
.checkbox a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.form-note { margin-top: 10px; color: var(--faint); font-size: 9.5px; line-height: 1.5; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 14px 0; padding: 11px 13px; border: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.alert-success { border-color: color-mix(in srgb, var(--accent-strong) 55%, transparent); background: var(--accent-soft); color: var(--text); }
.alert-error { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

/* Контентные страницы / legal */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.page-privacy .page-layout,
.page-personal-data .page-layout { grid-template-columns: minmax(0, 820px); }
.page-aside { position: sticky; top: calc(var(--header-h) + 20px); padding-top: 18px; border-top: 1px solid var(--line); }
.page-aside .button { margin-top: 18px; }

.prose { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { color: var(--text-strong); font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; letter-spacing: -.02em; margin: 2em 0 .6em; }
.prose h3 { color: var(--text); font-size: 1.05rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; }
.prose li { list-style: disc; margin-bottom: .35em; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); font-weight: 550; }
.prose blockquote { margin: 1.6em 0; padding: 10px 0 10px 20px; border-left: 1px solid var(--gold); color: var(--text); font-size: 1.05em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 12px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose th { color: var(--text); font-weight: 500; }
.prose code { padding: 2px 5px; background: var(--surface); font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* 404 */
.page-404 { min-height: 72vh; display: flex; align-items: center; padding: 8vh 0; }
.page-404-inner { position: relative; }
.error-code {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  font-size: clamp(8rem, 26vw, 22rem);
  line-height: .75;
  letter-spacing: -.08em;
  font-weight: 600;
  margin: 0 0 10px;
}
.page-404 h1 { margin-bottom: 18px; }
.page-404 p { max-width: 48ch; color: var(--muted); font-size: 14px; }
.page-404-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Появление */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Адаптивность
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav { gap: 12px; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .hero-visual { transform: none; }
  .scene-stage { inset: -5% -4% -5% 0; }
  .scene-preload-wrap { --preload-left: 0; --preload-top: 27%; --preload-width: 100%; height: 56%; }
  .scene-preload { width: 100%; height: 100%; object-fit: fill; transform: none; }
  .scene-loading { transform: none; }
  .documents-grid, .documents-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .hero-copy { max-width: 820px; }
  .hero h1 { font-size: clamp(3.1rem, 7.6vw, 5rem); }
  .hero-visual { width: 100%; max-width: none; height: min(58vh, 560px); min-height: 380px; transform: none; }
  .scene-stage { inset: -4% -8% -4% -8%; }
  .scene-preload-wrap { --preload-left: 0; --preload-top: 3%; --preload-width: 100%; height: auto; }
  .scene-preload { width: 100%; height: auto; object-fit: contain; }
  .directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consumers-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-body { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-hero-lead { max-width: 60ch; }
  .product-top { grid-template-columns: 1fr; }
  .product-gallery { position: static; max-width: 720px; }
  .product-content-grid { grid-template-columns: 1fr; }
  .product-specs { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
  .dealers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .page-layout { grid-template-columns: 1fr; }
  .page-aside { position: static; max-width: 520px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header-inner { gap: 12px; }
  .brand-logo { width: 126px; }
  .theme-toggle { width: 36px; height: 36px; }
  .hero { padding-top: 20px; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(2.6rem, 10.5vw, 3.7rem); }
  .hero-lead { font-size: 15px; }
  .hero-actions { margin: 24px 0 28px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-meta { gap: 16px; }
  .hero-visual { height: 380px; min-height: 320px; transform: none; }
  .scene-stage { inset: -2% -5% -2% -5%; }
  .scene-preload-wrap { --preload-left: 9%; --preload-top: 27%; --preload-width: 82%; height: auto; }
  .scene-loading { margin-top: 8px; font-size: 9px; }
  .section { padding: 52px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-head-docs > .section-link { margin-top: 4px; }
  .section-head h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .directions-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card-body { padding: 14px 14px 18px; }
  .product-card-body h3 { font-size: 14px; }
  .product-card-media { aspect-ratio: 1 / 1; }
  .product-card-media img { padding: 14px; }
  .consumer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .consumer { min-height: 110px; padding: 14px 8px; }
  .consumer img { max-height: 36px; }
  .consumer > span { font-size: 8px; }
  .category-grid { grid-template-columns: 1fr; }
  .documents-grid, .documents-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
  .cookie-inner p { font-size: 10px; line-height: 1.45; }
  .cookie-actions { width: 100%; gap: 6px; }
  .cookie-actions .button { flex: 1; min-height: 38px; padding: 0 8px; font-size: 9px; letter-spacing: .04em; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-form-wrap { padding: 20px; }
  .product-hero { padding-top: 22px; }
  .gallery-stage { aspect-ratio: 1 / 1; }
  .product-actions .button { flex: 1 1 auto; }
  .page-404 { min-height: 60vh; }
  .error-code { font-size: 38vw; }
}

@media (max-width: 480px) {
  .hero-meta b { font-size: 12px; }
  .hero-meta span { font-size: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-media { aspect-ratio: 4 / 3; }
  .consumer-grid { grid-template-columns: 1fr; }
  .consumer { min-height: 96px; }
  .dealers-grid { grid-template-columns: 1fr !important; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }
  .page-hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex-basis: 100%; }
  .search-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .scene-stage, .hero-snow, .hero-actions, .hero-copy { animation: none; }
  .site-header, .site-footer, .header-underlay, .cookie-banner, .scene-stage, .hero-snow, .hero-actions, .lead-form-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
}
