/* =====================================================================
   EcoLine Decking — дизайн-система v2 (многостраничный сайт)
   Референсы: Millboard (типографика, сплит-блоки, тёмные бэнды),
   TimberTech (галерея проектов, стоимость, хаб «Готовы начать?»).
   ===================================================================== */
:root {
  --bg: #f6f2ea;          /* тёплый крем — основной фон */
  --bg-2: #ede6d9;        /* песок — чередующиеся секции */
  --paper: #fbf8f2;       /* карточки */
  --ink: #1d1a16;         /* основной текст */
  --ink-2: #3d362e;       /* текст абзацев */
  --muted: #877c70;       /* вторичный текст */
  --line: #ddd3c3;        /* тонкие линии */
  --dark: #1f1c18;        /* тёмные бэнды, футер */
  --dark-2: #2a2620;
  --terra: #c0603a;       /* акцент — терракота */
  --terra-d: #a44e2e;
  --wood: #8a6a45;
  --f-sans: 'Montserrat', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1.1em; color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
::selection { background: var(--terra); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: clamp(80px, 10vw, 140px) var(--pad); }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--dark); color: #efe8dc; }
.section.dark p { color: rgba(239, 232, 220, .72); }
.section.tight { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }

/* ---------- Типографика ---------- */
.display { font-weight: 300; text-transform: uppercase; letter-spacing: .05em; line-height: 1; font-size: clamp(46px, 8vw, 116px); }
.h1 { font-weight: 300; text-transform: uppercase; letter-spacing: .06em; line-height: 1.04; font-size: clamp(38px, 5.4vw, 78px); }
.h2 { font-weight: 300; text-transform: uppercase; letter-spacing: .06em; line-height: 1.08; font-size: clamp(30px, 3.8vw, 54px); }
.h3 { font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; line-height: 1.4; }
.h4 { font-weight: 500; font-size: 20px; line-height: 1.3; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: #e3a582; }
.lead { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.45; color: var(--ink-2); }
.dark .lead, .page-hero .lead, .hero .lead { color: rgba(255, 255, 255, .86); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.head-row .lead { max-width: 520px; margin: 0; }
.stack > * + * { margin-top: 24px; }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 30px; font: 600 12px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-d); border-color: var(--terra-d); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(5px); }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--terra); }

/* ---------- Шапка ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff; transition: background .4s, color .4s, box-shadow .4s, transform .4s; }
.site-header.solid, body.header-solid .site-header { background: rgba(246, 242, 234, .96); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.topbar { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.site-header.solid .topbar, body.header-solid .topbar { border-bottom-color: var(--line); }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 22px; }
.topbar a:hover { color: var(--terra); }
.langs { display: flex; gap: 4px; }
.langs button { padding: 4px 7px; font-size: 11px; letter-spacing: .14em; opacity: .6; transition: opacity .2s; }
.langs button.on { opacity: 1; font-weight: 700; }
.navbar { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-r { justify-content: flex-end; align-items: center; }
.nav a { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.nav a:hover::after, .nav a.on::after { width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; justify-self: center; }
.logo-mark { width: 30px; height: 26px; }
.logo-mark rect { fill: currentColor; }
.logo-mark rect:nth-child(2) { fill: var(--terra); }
.logo-text { font-size: 17px; letter-spacing: .26em; text-transform: uppercase; line-height: 1; }
.logo-text b { font-weight: 700; }
.logo-text span { font-weight: 300; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--terra); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.badge:empty, .badge[data-n="0"] { display: none; }
.burger { display: none; }
.mnav { display: none; }

/* ---------- Главный экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) var(--pad) clamp(48px, 7vw, 96px); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, .12) 38%, rgba(20, 17, 14, .7) 100%); }
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero .display { margin-bottom: 28px; }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255, 255, 255, .3); }
.hero-facts div { padding: 20px 0 4px; }
.hero-facts b { display: block; font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: .02em; }
.hero-facts span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }

/* ---------- Страничный хиро ---------- */
.page-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 70px) var(--pad) clamp(56px, 7vw, 90px); color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.page-hero.plain::after { background: none; }
.page-hero .hero-bg img { animation: none; transform: none; }
.page-hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.page-hero .lead { margin: 0; }
.crumbs { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 26px; }
.crumbs a:hover { color: #e3a582; }
.crumbs span { margin: 0 10px; }

/* ---------- Сплит-блоки ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.media-tag { position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--ink); padding: 14px 20px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.split-body .h2 { margin-bottom: 30px; }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 38px 28px 34px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-weight: 300; font-size: clamp(42px, 4.6vw, 70px); line-height: 1; letter-spacing: .01em; margin-bottom: 14px; }
.stat b small { font-size: .38em; letter-spacing: .1em; margin-left: 6px; text-transform: uppercase; }
.stat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dark .stats, .dark .stat + .stat { border-color: rgba(255, 255, 255, .14); }
.dark .stat span { color: rgba(239, 232, 220, .6); }

/* ---------- Преимущества (нумерованный список) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 40px 36px 44px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(3n+2), .feature:nth-child(3n+3) { padding-left: 36px; border-left: 1px solid var(--line); }
.feature-n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--terra); margin-bottom: 26px; display: block; }
.feature .h3 { margin-bottom: 14px; }
.feature p { margin: 0; font-size: 15px; }

/* ---------- Карточки товаров ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.p-card { display: block; }
.p-media { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-label { position: absolute; top: 16px; left: 16px; background: var(--bg); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 7px 11px; }
.p-body { padding-top: 20px; }
.p-body .h3 { margin-bottom: 8px; }
.p-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.p-price { color: var(--ink); font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 14px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.illus { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #ece4d6, #e2d8c6); }
.illus svg { width: 62%; height: auto; }

/* ---------- Фильтры ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { padding: 11px 20px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: all .25s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Проекты ---------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.pr-card { grid-column: span 4; cursor: pointer; }
.pr-card.big { grid-column: span 8; }
.pr-card.big .pr-media { aspect-ratio: 16 / 10; }
.pr-media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.pr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pr-card:hover .pr-media img { transform: scale(1.05); }
.pr-body { padding-top: 18px; }
.pr-body .h3 { margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.tags span + span::before { content: "·"; margin-right: 14px; }

/* ---------- Стоимость (тёмный бэнд) ---------- */
.cost { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .14); }
.cost > div { padding: clamp(28px, 4vw, 56px); }
.cost > div + div { border-left: 1px solid rgba(255, 255, 255, .14); background: rgba(192, 96, 58, .1); }
.cost-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 18px; }
.cost-sum { font-weight: 300; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: .01em; }
.cost-note { font-size: 13px; margin-top: 14px; opacity: .65; }
.cost > div + div .cost-sum { color: #f0b08e; }

/* ---------- Инструменты / «Спланируйте» ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tool { padding: 40px 28px 44px 0; display: flex; flex-direction: column; gap: 14px; }
.tool + .tool { padding-left: 28px; border-left: 1px solid var(--line); }
.tool p { font-size: 15px; margin: 0 0 8px; flex: 1; }
.tool .link { align-self: flex-start; }

/* ---------- Отзывы ---------- */
.quote-wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.32; color: var(--ink); margin: 0 0 30px; min-height: 3.6em; }
.quote-by { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 40px; }
.slider-nav button { width: 46px; height: 46px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: all .25s; }
.slider-nav button:hover { border-color: var(--ink); }
.dots { display: flex; gap: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--terra); }

/* ---------- CTA с фоном ---------- */
.cta { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); color: #fff; overflow: hidden; isolation: isolate; }
.cta .hero-bg img { animation: none; transform: none; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 17, 14, .62); }
.cta-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 56px; }
.cta-actions a { padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.cta-actions a + a { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .25); }
.cta-actions a:hover { color: #f0b08e; }
.cta-actions a span { padding-right: 26px; }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1; overflow: hidden; outline: 1px solid transparent; outline-offset: -1px; opacity: .7; transition: opacity .2s, outline-color .2s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; outline-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 130px; }
.product-info .h1 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 18px; }
.price { font-size: 22px; font-weight: 300; margin-bottom: 26px; }
.price b { font-weight: 600; }
.opt-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 30px 0 14px; }
.opt-label span:last-child { color: var(--muted); font-weight: 500; }
.color-opts { display: flex; flex-wrap: wrap; gap: 12px; }
.color-opts button { width: 56px; height: 56px; outline: 1px solid var(--line); outline-offset: 3px; transition: outline-color .2s; }
.color-opts button.on { outline: 2px solid var(--ink); }
.color-opts img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: flex; gap: 12px; margin-top: 30px; }
.qty label { flex: 0 0 150px; display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.qty input { width: 100%; border: 0; background: none; padding: 0 0 0 16px; height: 52px; font: 500 16px var(--f-sans); color: var(--ink); outline: none; }
.qty label span { padding: 0 14px; font-size: 13px; color: var(--muted); }
.qty .btn { flex: 1; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; }
.checks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--terra); border-bottom: 1.5px solid var(--terra); transform: rotate(-45deg); }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 48%; padding-right: 20px; }
.color-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 22px); }
.color-strip figure { margin: 0; }
.color-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.color-strip figcaption { padding-top: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.demo-note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--terra); padding: 6px 0 6px 14px; margin-top: 22px; }

/* ---------- Аккордеон ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; }
.acc-q i { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.acc-q i::before, .acc-q i::after { content: ""; position: absolute; background: var(--ink); transition: transform .35s var(--ease); }
.acc-q i::before { left: 0; top: 7.5px; width: 16px; height: 1px; }
.acc-q i::after { left: 7.5px; top: 0; width: 1px; height: 16px; }
.acc-item.open .acc-q i::after { transform: rotate(90deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 60px 26px 0; margin: 0; }
.acc-a .specs { margin-bottom: 20px; }

/* ---------- Технология ---------- */
.layers { display: grid; gap: 14px; }
.layer { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.layer-bar { height: 22px; border-radius: 2px; }
.layer .h3 { margin-bottom: 6px; }
.layer p { margin: 0; font-size: 15px; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 20px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp th { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cmp td:first-child { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cmp .hl { background: rgba(192, 96, 58, .08); color: var(--ink); font-weight: 600; }
.cmp th.hl { color: var(--terra); }
.table-wrap { overflow-x: auto; }
.calc { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.calc-input .range-val { font-weight: 300; font-size: clamp(56px, 6vw, 92px); line-height: 1; margin: 10px 0 24px; }
.calc-input .range-val small { font-size: .3em; letter-spacing: .14em; margin-left: 8px; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--terra); cursor: pointer; border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--terra); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--terra); cursor: pointer; border: 4px solid var(--bg); }
.calc-cols { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.calc-col { padding: 30px; }
.calc-col + .calc-col { border-left: 1px solid var(--line); background: var(--paper); }
.calc-col .h3 { margin-bottom: 18px; }
.calc-col + .calc-col .h3 { color: var(--terra); }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.calc-total b { font-size: 26px; font-weight: 400; letter-spacing: 0; }
.calc-save { margin-top: 20px; padding: 20px 24px; background: var(--dark); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.calc-save b { font-size: 28px; font-weight: 300; letter-spacing: 0; color: #f0b08e; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.doc { padding: 32px 28px 32px 0; display: flex; flex-direction: column; gap: 14px; }
.doc + .doc { padding-left: 28px; border-left: 1px solid var(--line); }
.doc small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Монтаж ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.step { padding: 34px 22px 36px 0; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step-n { font-weight: 300; font-size: 54px; line-height: 1; color: var(--terra); margin-bottom: 26px; display: block; }
.step .h3 { margin-bottom: 12px; }
.step p { font-size: 14px; margin: 0; }
.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.included li { list-style: none; }
.included ul { margin: 0; padding: 0; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.info-list { border-top: 1px solid var(--line); }
.info { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.info small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.info a, .info span { font-size: 17px; }
.info a:hover { color: var(--terra); }
.form { background: var(--paper); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); }
.form .h2 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 30px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0; font: 400 16px var(--f-sans); color: var(--ink); outline: none; border-radius: 0; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--terra); }
.field.err input { border-bottom-color: #c0392b; }
.form-foot { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.form-ok { display: none; padding: 16px 20px; background: rgba(192, 96, 58, .1); font-size: 14px; }
.form-ok.show { display: block; }
.map-card { margin-top: 40px; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); color: #fff; display: flex; align-items: flex-end; padding: 28px; isolation: isolate; }
.map-card .hero-bg img { animation: none; transform: none; opacity: .55; }
.map-card .btns { position: relative; }

/* ---------- Футер ---------- */
.site-footer { background: var(--dark); color: rgba(239, 232, 220, .72); padding: clamp(70px, 8vw, 110px) var(--pad) 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .logo { color: #fff; justify-self: start; margin-bottom: 26px; }
.foot-tag { font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: rgba(255, 255, 255, .86); max-width: 320px; margin-bottom: 26px; }
.foot-col h4 { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.foot-col a, .foot-col span { display: block; font-size: 14px; padding: 6px 0; }
.foot-col a:hover { color: #f0b08e; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; transition: all .25s; }
.socials a:hover { border-color: #f0b08e; color: #f0b08e; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 12px; letter-spacing: .08em; flex-wrap: wrap; }

/* ---------- Корзина (заявка на расчёт) ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 200; background: rgba(20, 17, 14, .45); opacity: 0; pointer-events: none; transition: opacity .4s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(460px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.drawer-head .h3 { font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 30px; }
.drawer-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 72px; height: 72px; object-fit: cover; }
.ci-name { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ci-sub { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.ci input { width: 90px; border: 1px solid var(--line); background: var(--paper); padding: 7px 10px; font: 500 14px var(--f-sans); }
.ci-x { font-size: 22px; color: var(--muted); padding: 4px 8px; }
.ci-x:hover { color: var(--terra); }
.drawer-foot { padding: 24px 30px 30px; border-top: 1px solid var(--line); }
.drawer-foot p { font-size: 13px; color: var(--muted); }

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(20, 17, 14, .96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 72vh; object-fit: contain; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; }
.lb-prev { left: var(--pad); } .lb-next { right: var(--pad); }
.lb-prev:hover, .lb-next:hover { background: #fff; color: var(--ink); }
.lb-cap { padding: 22px var(--pad) 30px; text-align: center; }
.lb-cap .h3 { margin-bottom: 8px; }
.lb-cap .tags { justify-content: center; color: rgba(255, 255, 255, .65); }
.lb-close { font-size: 30px; line-height: 1; padding: 0 6px; }

/* ---------- Анимация появления ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero-bg img { animation: none; transform: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .navbar { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; }
  .burger span { display: block; height: 1.5px; width: 24px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .mnav { display: flex; position: fixed; inset: 0; z-index: 90; background: var(--dark); color: #fff; flex-direction: column; justify-content: center; padding: 120px var(--pad) 40px; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .4s; }
  .mnav.open { opacity: 1; pointer-events: auto; }
  .mnav a { font-size: clamp(28px, 7vw, 44px); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
  .mnav a.on { color: #f0b08e; }
  body.menu-open .site-header { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; }
  .hero-inner, .page-hero-inner, .split, .product, .calc, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .product-info { position: static; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(3n+2), .feature:nth-child(3n+3) { padding: 34px 28px 34px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .grid-4, .tools, .cta-actions { grid-template-columns: 1fr 1fr; }
  .tool:nth-child(3), .cta-actions a:nth-child(3) { padding-left: 0; border-left: 0; }
  .tool:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-actions a:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .25); }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .pr-card, .pr-card.big { grid-column: span 6; }
  .pr-card.big .pr-media { aspect-ratio: 4 / 5; }
}
@media (min-width: 1101px) { .header-tools { display: flex; align-items: center; gap: 6px; margin-left: 18px; } }
@media (max-width: 720px) {
  :root { --header-h: 100px; }
  .topbar-l .hide-sm { display: none; }
  .navbar { height: 64px; }
  .logo-text { font-size: 14px; letter-spacing: .2em; }
  .grid-3, .grid-4, .tools, .cta-actions, .docs, .color-strip, .stats { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features, .steps, .included, .fields, .cost, .calc-cols, .foot-top { grid-template-columns: 1fr; }
  .feature:nth-child(2n) { padding-left: 0; border-left: 0; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .cost > div + div, .calc-col + .calc-col { border-left: 0; border-top: 1px solid var(--line); }
  .cost > div + div { border-top-color: rgba(255, 255, 255, .14); }
  .tools, .cta-actions, .docs { grid-template-columns: 1fr; }
  .tool + .tool, .cta-actions a + a, .doc + .doc { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cta-actions a + a { border-top-color: rgba(255, 255, 255, .25); }
  .pr-card, .pr-card.big { grid-column: span 12; }
  .color-strip { grid-template-columns: repeat(3, 1fr); }
  .info { grid-template-columns: 1fr; gap: 4px; }
  .qty { flex-direction: column; }
  .qty label { flex: 0 0 auto; }
  .acc-a p { padding-right: 0; }
  .lb-prev, .lb-next { top: auto; bottom: -70px; transform: none; }
  .cmp th, .cmp td { padding: 14px 10px; font-size: 13px; }
}

/* ---------- Дополнения к шапке и бэндам ---------- */
.nav-wrap { display: flex; justify-content: flex-end; align-items: center; }
.hero { isolation: isolate; }
.cta-actions a { padding-right: 26px; }
.cta-actions a span { padding-right: 0; }
.dark .checks li { color: rgba(239, 232, 220, .86); border-bottom-color: rgba(255, 255, 255, .14); }
.dark .h2, .dark .h3 { color: #f4eee4; }
.crumbs.on-light { opacity: 1; color: var(--muted); margin-bottom: 36px; }
.product-info .lead { margin-bottom: 4px; }
.help { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 1100px) { .help { grid-template-columns: 1fr; } }
.display, .h1, .h2 { text-wrap: balance; }
.cta .lead { color: rgba(255, 255, 255, .86); }
.cta .eyebrow { color: #e3a582; }
.hero::after, .page-hero::after { background:
  linear-gradient(90deg, rgba(20, 17, 14, .66) 0%, rgba(20, 17, 14, .28) 55%, rgba(20, 17, 14, .06) 100%),
  linear-gradient(180deg, rgba(20, 17, 14, .5) 0%, rgba(20, 17, 14, 0) 30%, rgba(20, 17, 14, .55) 100%); }
.illus svg { width: 80%; }
.calc-total { gap: 12px; } .calc-total b { white-space: nowrap; font-size: clamp(20px, 1.8vw, 26px); }
.topbar a, .topbar span { white-space: nowrap; }
@media (max-width: 720px) { .hide-sm { display: none !important; } .topbar { font-size: 10px; } }

/* ---------- Реальные материалы клиента (каталог 2025, испытания, фото) ---------- */
/* Логотип: белый поверх фото, цветной на светлой шапке */
.logo img { display: block; height: 40px; width: auto; }
.logo .logo-c { display: none; }
.site-header.solid .logo .logo-w, body.header-solid .site-header .logo .logo-w { display: none; }
.site-header.solid .logo .logo-c, body.header-solid .site-header .logo .logo-c { display: block; }
body.menu-open .site-header .logo .logo-w { display: block; }
body.menu-open .site-header .logo .logo-c { display: none; }
.site-footer .logo img { height: 48px; }

/* Рендеры доски на белом фоне */
.p-card.contain .p-media, .gallery-main.is-board, .thumbs button.is-board, .board-media { background: #fff; }
.p-card.contain .p-media img { object-fit: contain; padding: 16%; }
.gallery-main.is-board img { object-fit: contain; padding: 9%; }
.thumbs button.is-board img { object-fit: contain; padding: 8%; }
.gallery-main.small img { padding: 24%; }
.p-card.contain .p-media img[src*='-board'] { padding: 10%; }
.split-media.board-media img { aspect-ratio: 4 / 3; object-fit: contain; padding: 8%; }
.color-opts .dot { display: block; width: 100%; height: 100%; }
.opt-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.color-strip { grid-template-columns: repeat(7, 1fr); }

/* Применение */
.uses { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.use { position: relative; overflow: hidden; display: block; color: #fff; }
.use img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; transition: transform 1.1s var(--ease); }
.use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 14, 0) 45%, rgba(20, 17, 14, .7) 100%); }
.use span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.use:hover img { transform: scale(1.05); }

/* Партнёры */
.partners { margin-top: clamp(56px, 7vw, 96px); }
.partners .eyebrow { margin: 0 0 26px; }
.partners-row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner { display: flex; align-items: center; justify-content: center; padding: clamp(14px, 2vw, 26px) clamp(14px, 2.2vw, 34px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner img { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: contain; filter: brightness(0); opacity: .58; transition: filter .4s, opacity .4s; }
/* тонкие и полупрозрачные логотипы — плотнее, чтобы ряд выглядел ровно */
.partner img[src*='kazevrostroy'], .partner img[src*='almaty'], .partner img[src*='kusto'] { opacity: .92; }
.partner:hover img { filter: none; opacity: 1; }

/* Объекты */
.objects { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.objects li { break-inside: avoid; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.objects li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px 2px 0; background: var(--terra); }

/* Состав */
.comp-bar { display: flex; height: 64px; overflow: hidden; }
.comp-bar span { display: flex; align-items: center; padding: 0 18px; min-width: 64px; color: #fff; }
.comp-bar b { font-weight: 500; font-size: 14px; letter-spacing: .1em; }
.comps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.comp { padding: 34px 32px 38px 0; }
.comp + .comp { padding-left: 32px; border-left: 1px solid var(--line); }
.comp-n { display: flex; align-items: center; gap: 12px; font-weight: 300; font-size: clamp(38px, 4vw, 58px); line-height: 1; margin-bottom: 18px; }
.comp-n i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.comp .h3 { margin-bottom: 10px; }
.comp p { margin: 0; font-size: 15px; }

/* Профиль доски */
.profile { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 34px; }
.pf { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.pf:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
.pf small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pf b { font-weight: 400; font-size: clamp(20px, 2vw, 26px); }

/* Таблица испытаний */
.cmp.tests { min-width: 640px; }
.cmp.tests tr.grp th { padding: 30px 18px 12px 0; font-size: 12px; color: var(--terra); border-bottom: 1px solid var(--ink); text-transform: uppercase; }
.cmp.tests td:first-child { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink-2); padding-left: 0; }
.cmp.tests th:first-child { padding-left: 0; }
.cmp.tests td.win::after { content: "✓"; margin-left: 10px; color: var(--terra); font-weight: 600; }
.cmp.tests td.norm { color: var(--muted); white-space: nowrap; }

/* Документы и сертификаты */
.docs.docs-2 { grid-template-columns: repeat(2, 1fr); }
.certs-title { margin: clamp(56px, 6vw, 80px) 0 28px; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.cert { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.cert-img { display: block; background: #fff; padding: 18px; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(29, 26, 22, .35); }
.cert-img img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; transition: transform .6s var(--ease); }
.cert:hover .cert-img img { transform: scale(1.03); }
.cert-t { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }

.pr-card.full { grid-column: span 12; }
.pr-card.full .pr-media { aspect-ratio: 21 / 9; }
@media (max-width: 1100px) {
  .uses { grid-template-columns: repeat(3, 1fr); }
  .pr-card.full { grid-column: span 12; }
  .color-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .logo img { height: 32px; }
  .uses { grid-template-columns: 1fr 1fr; }
  .use span { left: 14px; bottom: 14px; font-size: 11px; }
  .objects { columns: 1; }
  .partners-row { grid-template-columns: 1fr 1fr; }
  .comps, .docs.docs-2 { grid-template-columns: 1fr; }
  .comp, .comp + .comp { padding: 26px 0; border-left: 0; }
  .comp + .comp { border-top: 1px solid var(--line); }
  .comp-bar span { padding: 0 10px; min-width: 44px; }
  .comp-bar b { font-size: 12px; }
  .certs { grid-template-columns: 1fr 1fr; }
  .cert-img { padding: 10px; }
  .cert-t { font-size: 11px; }
  .color-strip { grid-template-columns: repeat(4, 1fr); }
  .color-strip figcaption { font-size: 10px; letter-spacing: .1em; }
  .cmp.tests td:first-child { font-size: 13px; }
}

/* ---------- Печать ---------- */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: absolute !important; }
  .drawer, .drawer-bg, .lb, .mnav, .burger { display: none !important; }
  .hero-bg img { animation: none !important; transform: none !important; }
  .hero, .page-hero { min-height: 0; }
}
