/* СВОД — фирменные токены из брифа (раздел 03 · Айдентика) */
:root {
  --night: #0E0E10;      /* Полночь — основной тёмный */
  --frost: #EEF4FA;      /* Иней — основной светлый */
  --studio: #F4F4F2;     /* Студия — фон страниц */
  --graphite: #5E6168;   /* Графит — второстепенный текст */
  --line: rgba(14, 14, 16, .14);
  --line-strong: rgba(14, 14, 16, .9);
  --r-sm: 16px;
  --r-lg: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 300ms;
  --f-display: "Inter", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--studio);
  color: var(--night);
  font: 400 17px/1.55 var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Типографика ---------- */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 32;   /* Inter Display */
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 8vw, 104px); }
h2 { font-size: clamp(34px, 5.2vw, 68px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--graphite); max-width: 36ch; }
.muted { color: var(--graphite); }
.mono, .eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { color: var(--graphite); display: inline-flex; gap: .6em; align-items: center; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* ---------- Логотип: СВ + сфера + Д ---------- */
.logo {
  display: inline-flex; align-items: center; gap: .14em;
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "opsz" 32;
  font-size: 26px; line-height: 1; letter-spacing: 0; text-decoration: none;
  min-width: 80px; /* бриф: минимум 80 px */
}
.logo .o { width: .74em; height: .74em; flex: none; }
.logo .o .top { fill: currentColor; }
.logo .o .bottom { fill: currentColor; }
.logo .o .hole { fill: var(--logo-hole, var(--studio)); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-sm); border: 1px solid var(--night);
  background: var(--night); color: var(--frost);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--night); }
.btn.ghost:hover { background: var(--night); color: var(--frost); }
.btn.light { background: var(--frost); color: var(--night); border-color: var(--frost); }
.btn.light.ghost { background: transparent; color: var(--frost); }
.btn.light.ghost:hover { background: var(--frost); color: var(--night); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--studio) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
/* Меню: всегда за тремя полосками справа */
.burger { display: block; background: none; border: 0; padding: 12px 10px; margin-right: -10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--night); margin: 5px 0; transition: transform var(--t) var(--ease), opacity var(--t); }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav {
  position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: var(--studio); border-bottom: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.nav .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; height: auto; padding-top: 16px; padding-bottom: 40px; align-items: start; }
.nav-links { display: grid; }
.nav-links a {
  text-decoration: none; font-family: var(--f-display); font-variation-settings: "opsz" 32; font-weight: 700;
  font-size: clamp(24px, 3vw, 36px); letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line);
  transition: color var(--t), padding var(--t) var(--ease);
}
.nav-links a:hover { padding-left: 8px; }
.nav-links a[aria-current="page"] { color: var(--graphite); }
.nav-social { display: grid; gap: 4px; padding-top: 12px; }
.nav-social .mono { color: var(--graphite); margin-bottom: 8px; }
.nav-social a { text-decoration: none; font-size: 18px; padding: 6px 0; display: flex; justify-content: space-between; }
.nav-social a::after { content: "↗"; color: var(--graphite); }
.nav-social a:hover::after { color: var(--night); }
.menu-shade { position: fixed; inset: 68px 0 0 0; z-index: 48; background: rgba(14,14,16,.25); opacity: 0; pointer-events: none; transition: opacity var(--t); }
.menu-open .menu-shade { opacity: 1; pointer-events: auto; }
@media (max-width: 720px) {
  .nav .wrap { grid-template-columns: 1fr; }
}

/* Vector Wordmark на главной */
.vector-wordmark { width: 100%; margin-bottom: 8px; }
.wm-caption { display: flex; justify-content: flex-end; gap: 16px; color: var(--graphite); padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Секции ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.dark { background: var(--night); color: var(--frost); --logo-hole: var(--night); }
.dark .muted, .dark .lead, .dark .eyebrow { color: #A3A7AE; }
.dark .line, .dark { --line: rgba(238, 244, 250, .16); }
.frost { background: var(--frost); --logo-hole: var(--frost); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-text { display: grid; gap: 24px; justify-items: start; margin-bottom: clamp(40px, 6vw, 64px); }
.hero-media {
  border-radius: var(--r-lg); overflow: hidden; background: #E3E3E5;
  aspect-ratio: 16 / 9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--graphite);
}

/* ---------- Скролл-сцена: внутрянка выезжает ---------- */
.scrolly { height: 320vh; }
.scrolly-stage {
  position: sticky; top: 68px; height: calc(100vh - 68px); min-height: 560px;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(24px, 5vw, 80px);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; opacity: .28; transition: opacity 400ms var(--ease); }
.step.on { opacity: 1; }
.step .num { font-family: var(--f-mono); font-size: 13px; padding-top: 6px; }
.step h3 { grid-column: 2; }
.step p { grid-column: 2; color: inherit; opacity: .7; max-width: 34ch; }
.scheme { width: 100%; height: auto; max-height: calc(100vh - 140px); overflow: visible; }
.scheme text { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; }
.scheme .dim { stroke: currentColor; stroke-width: 1; fill: none; opacity: .55; }
.scheme .dimtxt { fill: currentColor; opacity: .7; }
.scheme .fade { transition: opacity 300ms var(--ease); }
.progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: currentColor; }

@media (max-width: 860px) {
  .scrolly { height: 300vh; }
  .scrolly-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 8px; padding-top: 12px; }
  .scrolly-stage .scheme-wrap { order: -1; }
  .scheme { max-height: 46vh; margin: 0 auto; }
  .steps { gap: 0; position: relative; min-height: 150px; }
  .step { position: absolute; inset: 0 0 auto 0; opacity: 0; }
  .step.on { opacity: 1; }
}

/* ---------- Модели ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  display: grid; grid-template-rows: 1fr auto;
}
.model-card .pic { aspect-ratio: 1; overflow: hidden; }
.model-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.model-card:hover .pic img { transform: scale(1.035); }
.model-card .meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 20px 24px 24px; }
.model-card.m-polnoch { background: #E3E3E5; color: var(--night); }
.model-card.m-iney { background: #121214; color: var(--frost); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(127,127,127,.5); vertical-align: -1px; margin-right: 6px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid currentColor; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.soon::before { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Детали ---------- */
.details { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.detail { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.detail + .detail { padding-left: 24px; }
.detail:last-child { border-right: 0; }
.detail .mono { color: var(--graphite); }
.detail svg { width: 44px; height: 44px; margin-bottom: 16px; }

/* ---------- Дроп-баннер ---------- */
.drop-banner {
  border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px;
  font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 24px; height: 24px; position: relative; margin-top: 2px; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: currentColor; transition: transform var(--t) var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 48px 28px 0; color: var(--graphite); max-width: 70ch; }

/* ---------- Таблица характеристик ---------- */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; width: 34%; padding-right: 16px; }
.specs td { color: var(--graphite); }

/* ---------- Страница товара ---------- */
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 72px); padding: 32px 0 120px; align-items: start; }
.product > * { min-width: 0; }
.gallery { display: grid; gap: 12px; }
.gallery .main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; }
.gallery .main { position: relative; border: 1px solid var(--line); }
.gallery .main.white { background: #fff; }
.gallery .main.grey { background: #E4E5E7; }
.gallery .main img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.gallery .main.grey img { inset: 0; width: 100%; height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ph {
  border-radius: var(--r-sm); aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 12px;
  min-width: 0; overflow-wrap: anywhere; hyphens: auto;
  border: 1px dashed rgba(94, 97, 104, .45); color: var(--graphite);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(94,97,104,.05) 10px 11px);
}
.buybox { position: sticky; top: 100px; display: grid; gap: 24px; }
.price { font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.kit { display: flex; flex-wrap: wrap; gap: 8px; }
.kit span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.color-pick { display: flex; gap: 10px; }
.color-pick a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600;
}
.color-pick a[aria-current="true"] { border-color: var(--night); }
.color-pick i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(127,127,127,.4); }

/* ---------- Магазин ---------- */
.cdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); vertical-align: -2px; margin-right: 8px; }
.filters {
  position: sticky; top: 68px; z-index: 20; background: color-mix(in srgb, var(--studio) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.filters .group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters button {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; transition: background var(--t), color var(--t), border-color var(--t);
}
.filters [data-filter-colors] button { padding: 0 11px; }
.filters [data-filter-colors] .cdot { margin: 0; }
.filters button[aria-pressed="true"] { background: var(--night); color: var(--frost); border-color: var(--night); }
.shop-section { padding-top: clamp(56px, 8vw, 104px); scroll-margin-top: 140px; }
.shop-section[hidden] { display: none; }
.shop-section .section-head { margin-bottom: 32px; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-grid.two { grid-template-columns: 1fr 1fr; }
.p-card { display: grid; gap: 0; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform var(--t) var(--ease); }
.p-card:hover { transform: translateY(-3px); }
.p-card[hidden] { display: none; }
.p-pic { position: relative; overflow: hidden; }
.p-pic.white { background: #fff; }
.p-pic.grey { background: #E4E5E7; }
.p-pic img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; transition: transform 600ms var(--ease); }
.p-pic.grey img { inset: 0; width: 100%; height: 100%; }
.p-card:hover .p-pic img { transform: scale(1.03); }
.p-grid.two .p-pic { aspect-ratio: 4 / 3; }
.p-grid:not(.two) .p-pic { aspect-ratio: 728 / 512; }
.p-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 18px 20px 20px; background: var(--studio); border-top: 1px solid var(--line); }
.p-meta h3 { font-size: 20px; display: flex; align-items: center; }
.p-meta .muted { font-size: 14px; }
.p-price { font-weight: 600; white-space: nowrap; }
.empty { padding: 32px 0; color: var(--graphite); }
.fits { display: inline-flex; align-items: center; gap: 0; font-size: 14px; color: var(--graphite); }
.fits .cdot { width: 12px; height: 12px; margin-right: 4px; }
.fits .cdot + .cdot { margin-left: -8px; margin-right: 10px; }

/* Свотчи */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw {
  display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 14px 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: border-color var(--t), background var(--t);
}
.sw .cdot { width: 22px; height: 22px; }
.sw:hover { border-color: var(--graphite); }
.sw[aria-pressed="true"] { border-color: var(--night); background: #fff; box-shadow: inset 0 0 0 1px var(--night); }
.swatches.small .sw { min-height: 38px; font-size: 12px; }

/* Конструктор */
.kit-builder { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.kit-pic { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 32px; position: sticky; top: 150px; }
.kit-pic img { width: auto; height: auto; max-width: 100%; max-height: min(520px, calc(100vh - 280px)); object-fit: contain; transition: opacity 150ms ease, transform 300ms var(--ease); }
.kit-pic img.swap { opacity: 0; transform: translateY(6px); }
.kit-panel { display: grid; gap: 28px; }
.kit-step { display: grid; gap: 12px; }
.kit-sum { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--line); }
.kit-sum h3 { font-size: clamp(22px, 2.4vw, 30px); }
.upsell { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--r-sm); border: 1px dashed rgba(94,97,104,.45); }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 44px; height: 26px; border-radius: 999px; background: #D3D5D9; position: relative; transition: background var(--t); flex: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--t) var(--ease); }
.toggle input:checked + span { background: var(--night); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--night); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.presets .mono { width: 100%; }
.presets button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.presets button:hover { border-color: var(--night); }

/* ДРОП 01 */
.drop-hero { border-radius: var(--r-lg); overflow: hidden; }
.drop-hero img { width: 100%; }
.counter { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.counter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E8754A; animation: blink 1.6s infinite; }
.box-card { border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); }
.box-card .pic { background: #DADBDE; }
.box-card .body { padding: 24px; display: grid; gap: 14px; align-content: start; }
.dark .box-card { border-color: rgba(238,244,250,.16); }
.places { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.places .mono { padding-top: 3px; color: var(--graphite); }

/* Цвета внутрянок на главной */
.color-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.chip-color { display: grid; gap: 6px; text-decoration: none; }
.chip-color i { display: block; aspect-ratio: 1.4; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); transition: transform var(--t) var(--ease); }
.chip-color:hover i { transform: translateY(-3px); }
.chip-color b { font-size: 14px; letter-spacing: .02em; }
.chip-color .mono { color: var(--graphite); font-size: 11px; }
.combo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.combo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 16px; display: grid; gap: 12px; text-decoration: none; transition: transform var(--t) var(--ease); }
.combo:hover { transform: translateY(-3px); }
.combo img { aspect-ratio: 773 / 880; object-fit: contain; width: 70%; margin: 0 auto; }
.combo b { font-size: 14px; }
.combo .mono { color: var(--graphite); font-size: 11px; }

.p-card.mini { background: #fff; }
.p-card.mini .p-pic { aspect-ratio: 1; }
.p-card.mini span { padding: 12px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; background: var(--studio); border-top: 1px solid var(--line); }
.cross { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cross.two { grid-template-columns: repeat(2, 1fr); max-width: 520px; }

@media (max-width: 960px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .kit-builder { grid-template-columns: 1fr; }
  .kit-pic { position: static; max-width: 520px; width: 100%; margin: 0 auto; }
  .color-row { grid-template-columns: repeat(3, 1fr); }
  .combo-grid { grid-template-columns: 1fr 1fr; }
  .cross { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .p-grid, .p-grid.two { grid-template-columns: 1fr; }
  .filters .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; gap: 16px; }
  .filters .wrap::-webkit-scrollbar { display: none; }
  .filters .group { flex-wrap: nowrap; flex: none; }
  .filters button { white-space: nowrap; }
}

/* ---------- Текстовые страницы ---------- */
.page-head { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(32px, 5vw, 64px); display: grid; gap: 20px; }
.prose { max-width: 72ch; padding-bottom: 120px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 56px 0 16px; }
.prose h3 { margin: 32px 0 10px; font-size: 20px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #2b2d31; }
.prose li { margin-bottom: 6px; }
.note {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; font-size: 15px; color: var(--graphite);
  background: rgba(255,255,255,.5);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.card { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.card .mono { color: var(--graphite); }
.rounded { border-radius: var(--r-lg); overflow: hidden; }
.video-ph { aspect-ratio: 16/9; border-radius: var(--r-lg); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--night); color: var(--frost); padding: 72px 0 40px; --logo-hole: var(--night); }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(238,244,250,.14); }
.site-footer .logo { font-size: 44px; color: var(--frost); }
.drop-banner h2 { font-size: clamp(32px, 4.2vw, 56px); }
.site-footer h4 { margin: 0 0 14px; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #8E929A; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #C9CED6; transition: color var(--t); }
.site-footer a:hover { color: var(--frost); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: #8E929A; font-size: 13px; }

.site-footer .credits {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(238,244,250,.08);
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6F737B;
}
.site-footer .credits .by { color: var(--frost); }
.site-footer .credits .dot { width: 4px; height: 4px; border-radius: 50%; background: #E8754A; }
.site-footer .credits .slava {
  color: var(--frost); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size 300ms var(--ease), color 300ms var(--ease);
}
.site-footer .credits .slava::after { content: " ↗"; color: #E8754A; }
.site-footer .credits .slava:hover { background-size: 100% 1px; color: #fff; }

/* ---------- Cookie-баннер ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 460px;
  background: var(--night); color: var(--frost); border-radius: var(--r-sm); padding: 18px 20px;
  display: grid; gap: 14px; font-size: 14px;
  transform: translateY(20px); opacity: 0; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.cookie.show { transform: none; opacity: 1; }
.cookie a { color: var(--frost); }
.cookie .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Новости ---------- */
.news-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 5vw, 64px); align-items: start; }
.news-sub { position: sticky; top: 100px; border: 0; }
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; gap: 14px; padding: 36px 0; border-bottom: 1px solid var(--line); justify-items: start; scroll-margin-top: 90px; }
.news-item h2 { font-size: clamp(26px, 3vw, 38px); }
.news-item img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-lg); }
.news-text { display: grid; gap: 12px; max-width: 68ch; color: #2b2d31; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: grid; gap: 10px; align-content: start; text-decoration: none; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: transform var(--t) var(--ease); }
.news-card:hover { transform: translateY(-3px); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); }
@media (max-width: 860px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sub { position: static; order: -1; }
  .news-cards { grid-template-columns: 1fr; }
}

/* ---------- Настройки из админки ---------- */
html.svod-wait body { opacity: 0; }
body { transition: opacity 200ms ease; }
.announce {
  display: block; background: var(--night); color: var(--frost); text-align: center; text-decoration: none;
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 10px var(--gutter);
}
a.announce:hover { text-decoration: underline; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .details { grid-template-columns: 1fr 1fr; }
  .detail:nth-child(2) { border-right: 0; }
  .detail:nth-child(3) { padding-left: 0; }
  .detail:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .duo, .grid-3, .grid-2, .drop-banner { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .detail, .detail + .detail { padding: 24px 0 12px; border-right: 0; border-top: 1px solid var(--line); }
  .details { border-top: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .btn-row .btn { flex: 1 1 auto; }
  .faq .answer { padding-right: 0; }
}

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