/* =========================================================
   BARNIQ — дизайн-система
   Бренд: чёрный / белый + оранжевый градиент (#ff6b35 → #ffa366)
   ========================================================= */
:root {
  --bg: #111111;
  --bg-2: #161616;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f5f5f7;
  --muted: #a8a8a8;
  --muted-2: #7a7a7a;
  --brand: #f39208;
  --brand-2: #f39208;
  --brand-3: #f6a83a;
  --grad: linear-gradient(100deg, #cc7628 0%, #e0861a 45%, #f39208 100%);
  --wood: #cc7628;
  --graphite: #2f2f2f;
  --ok: #34d399;
  --err: #f87171;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 72px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #000; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.h1 { font-size: clamp(36px, 6.2vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; letter-spacing: -.03em; }
.h3 { font-size: clamp(20px, 2vw, 24px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 680px; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #111; box-shadow: 0 10px 30px rgba(243, 146, 8, .28); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(243, 146, 8, .45); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-3); }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { background: #f1f1f1; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { color: var(--brand-3); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { gap: 12px; }
.link-arrow { transition: gap .2s var(--ease); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .header.is-solid {
  background: rgba(17, 17, 17, .78);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.logo { gap: 12px; flex: none; }
.header .container { max-width: 1400px; }
.logo img { width: auto; }
.header .logo-mark { height: 50px; }
.header .logo-word { height: 26px; }
@media (max-width: 720px) {
  .logo { gap: 9px; }
  .header .logo-mark { height: 40px; }
  .header .logo-word { height: 20px; }
}
.footer .logo img { height: 64px; }
.logo-text b { font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 11px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #d4d4d8; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: var(--brand-3); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.header-phone a { font-weight: 800; font-size: 16px; white-space: nowrap; }
.header-phone a:hover { color: var(--brand-3); }
.header-phone span { font-size: 12px; color: var(--muted-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 24px 24px 120px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-menu nav a { display: flex; justify-content: space-between; padding: 16px 0; font-size: 22px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-menu nav a::after { content: "→"; color: var(--muted-2); }
.mobile-menu .mm-contacts { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu .mm-contacts a.phone { font-size: 24px; font-weight: 800; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.social:hover { transform: translateY(-2px); border-color: var(--brand-2); background: rgba(243, 146, 8, .12); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social.is-empty { opacity: .45; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section + .section-alt, .section-alt + .section { border-top: 1px solid var(--line); }
.page-top { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(40px, 6vw, 72px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-2); margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--brand-3); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 56px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, .55) 0%, rgba(17, 17, 17, .25) 35%, rgba(17, 17, 17, .85) 75%, var(--bg) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-title { max-width: 980px; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.8vw, 21px); color: #d4d4d8; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-stat { padding: 22px 24px; background: rgba(18, 18, 20, .72); }
.hero-stat b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.hero-stat span { font-size: 14px; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .25s, transform .3s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .num { font-size: 14px; font-weight: 800; color: var(--brand-2); margin-bottom: 18px; display: block; letter-spacing: .06em; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(243, 146, 8, .12); color: var(--brand-3); margin-bottom: 22px; }
.icon-box svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Product cards */
.product {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s;
}
.product:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product-media img { transform: scale(1.05); }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(17, 17, 17, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-brand { background: var(--grad); color: #111; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-title { font-size: 20px; font-weight: 700; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-specs small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.product-specs b { font-size: 15px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.price-old { font-size: 15px; color: var(--muted-2); text-decoration: line-through; margin-left: 8px; font-weight: 600; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 15px;
  background: transparent; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--brand-2); }
.chip.is-active { background: #fff; color: #111; border-color: #fff; }
.filters .sep { width: 1px; background: var(--line-2); margin: 4px 6px; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.stat-big { font-size: clamp(56px, 8vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* Check list */
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: #d4d4d8; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(243, 146, 8, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a83a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks b { color: #fff; }

/* Spec tiles */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.spec h4 { font-size: 16px; margin-bottom: 6px; color: var(--brand-3); }
.spec p { font-size: 15px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--surface); }
.gallery img { width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .3s; }
.gallery a:hover figcaption { opacity: 1; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
.strip .tile { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; position: relative; background: var(--surface); }
.strip .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.strip .tile:hover img { transform: scale(1.05); }
.strip .tile::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; }
.strip .tile span { z-index: 1; position: absolute; left: 16px; bottom: 16px; right: 16px; font-weight: 700; font-size: 15px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 10px; object-fit: contain; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #d4d4d8; font-size: 14px; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 22px; }
.review blockquote { font-size: 18px; color: #e4e4e7; line-height: 1.6; }
.review .stars { color: var(--brand-2); letter-spacing: 3px; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #111; font-weight: 800; display: grid; place-items: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(243, 146, 8, .2); }
.faq .answer { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 800; background: var(--surface-2); }
thead th:first-child { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.cell-link { cursor: pointer; transition: color .15s; }
td.cell-link:hover { color: var(--brand-3); }
.table-note { font-size: 14px; color: var(--muted-2); margin-top: 12px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { padding: 10px 22px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.tabs button.is-active { background: #fff; color: #111; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; }
.field { position: relative; }
.input, .textarea, .select {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); font-size: 16px; transition: border-color .2s, background .2s;
}
.textarea { height: auto; min-height: 96px; padding: 16px 18px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand-2); background: rgba(243, 146, 8, .05); }
.input.is-invalid { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted-2); line-height: 1.45; }
.consent input { margin-top: 2px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.msgr { display: flex; gap: 8px; flex-wrap: wrap; }
.msgr label { cursor: pointer; }
.msgr input { position: absolute; opacity: 0; }
.msgr span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; transition: all .2s; }
.msgr input:checked + span { background: #fff; color: #111; border-color: #fff; }
.msgr input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.form-title { font-size: 26px; margin-bottom: 6px; }

/* CTA panel */
.cta-panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(243, 146, 8, .28) 0%, rgba(243, 146, 8, 0) 55%), var(--surface);
  border: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list .ci { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci small { display: block; color: var(--muted-2); font-size: 13px; }
.contact-list .ci a, .contact-list .ci b { font-weight: 700; font-size: 18px; }
.contact-list .ci a:hover { color: var(--brand-3); }
.contact-list .ci .icon-box { width: 44px; height: 44px; margin: 0; border-radius: 12px; flex: none; }
.contact-list .ci .icon-box svg { width: 20px; height: 20px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.calc-steps { display: grid; gap: 16px; }
.calc-block { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.calc-block h3 { display: flex; gap: 14px; align-items: baseline; font-size: 20px; margin-bottom: 18px; }
.calc-block h3 i { font-style: normal; font-size: 14px; font-weight: 800; color: var(--brand-2); }
.calc-block .hint { font-size: 14px; color: var(--muted-2); margin: -8px 0 16px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.opts.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background .2s; font-weight: 700; }
.opt span small { font-weight: 600; font-size: 13px; color: var(--muted); }
.opt.is-on span { border-color: var(--brand-2); background: rgba(243, 146, 8, .1); }
.opt.is-on span small { color: var(--brand-3); }
.opt.is-off span { opacity: .35; cursor: not-allowed; }
.opt input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.sub-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 800; margin: 18px 0 10px; }
.sub-label:first-child { margin-top: 0; }
.counter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.counter-row:last-child { border-bottom: 0; }
.counter-row small { display: block; color: var(--muted); font-size: 13px; }
.counter { display: flex; align-items: center; gap: 4px; flex: none; }
.counter button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 18px; font-weight: 700; }
.counter button:hover { border-color: var(--brand-2); }
.counter output { min-width: 34px; text-align: center; font-weight: 800; }
.calc-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.calc-summary h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.calc-summary .conf { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.calc-lines { display: grid; gap: 10px; font-size: 15px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines span:first-child { color: var(--muted); }
.calc-lines span:last-child { font-weight: 700; white-space: nowrap; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; }
.calc-total b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.calc-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }
.mobile-total { display: none; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-card .media { border: 0; border-radius: 0; aspect-ratio: 16/10; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 20px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .link-arrow { margin-top: auto; padding-top: 8px; }
.article { max-width: 780px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 32px 0 40px; aspect-ratio: 16/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; color: #d4d4d8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; margin-top: 1.8em; }
.prose h3 { font-size: 22px; color: #fff; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand-2); }
.prose a { color: var(--brand-3); text-decoration: underline; }
.prose strong { color: #fff; }
.prose img { border-radius: var(--radius-sm); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.article-nav a { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.article-nav a:hover { border-color: var(--brand-2); }
.article-nav small { display: block; color: var(--muted-2); font-size: 13px; margin-bottom: 4px; }
.article-nav a:last-child { text-align: right; }

/* ---------- Footer ---------- */
.footer { background: #070708; border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--brand-3); }
.footer .about { color: var(--muted); margin: 16px 0 22px; max-width: 320px; }
.footer .f-phone { font-size: 20px; font-weight: 800; }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; color: var(--muted-2); font-size: 13px; }
.footer-bottom .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { text-decoration: underline; }

/* ---------- Floating / mobile bar ---------- */
.mobile-bar { display: none; }
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px;
}
.fab-main { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #111; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(243, 146, 8, .45); transition: transform .3s var(--ease); }
.fab-main svg { width: 26px; height: 26px; }
.fab-main::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--brand-2); animation: pulse 2.4s infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.fab-list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); }
.fab.is-open .fab-list { opacity: 1; visibility: visible; transform: none; }
.fab.is-open .fab-main::after { display: none; }
.fab-list a, .fab-list button { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap; }
.fab-list svg { width: 22px; height: 22px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s; }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100svh - 32px); overflow-y: auto; padding: 36px 32px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: modalIn .35s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 22px; line-height: 1; }
.modal-close:hover { background: rgba(255, 255, 255, .12); }
.modal-box p.muted { margin-bottom: 20px; font-size: 15px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: rgba(52, 211, 153, .15); color: var(--ok); font-size: 34px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 400; padding: 14px 22px; border-radius: 14px; background: #fff; color: #111; font-weight: 700; box-shadow: var(--shadow); animation: modalIn .3s var(--ease); max-width: calc(100% - 32px); }
.toast.err { background: var(--err); }

/* Cookie */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 95; max-width: 420px; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; color: var(--muted); display: none; gap: 14px; align-items: center; }
.cookie.is-visible { display: flex; }
.cookie a { text-decoration: underline; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Marquee of benefits */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; font-weight: 700; font-size: 18px; color: #d4d4d8; white-space: nowrap; }
.ticker-track span::after { content: "✦"; color: var(--brand-2); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.2) invert(.9) hue-rotate(180deg); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1700px) and (min-width: 1341px) {
  .header-phone { display: none; }
}
@media (max-width: 1340px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr 340px; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .cta-panel { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .mobile-total {
    display: flex; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 89; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; background: rgba(24, 24, 27, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
  }
  .mobile-total b { font-size: 22px; font-weight: 800; }
  .mobile-total small { display: block; font-size: 12px; color: var(--muted); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .spec-grid, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; padding-bottom: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 36px; }
  .hero-stat { padding: 16px; }
  .card, .step, .calc-block { padding: 22px; }
  .cta-panel { padding: 28px 16px; border-radius: 22px; }
  .opts:not(.wide) { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .opts:not(.wide) .opt span { padding: 12px; font-size: 15px; }
  .opts:not(.wide) .opt span small { font-size: 11px; }
  .calc-block { padding: 18px 14px; }
  .cta-panel > .card { padding: 22px 16px; }
  .hero-bg img { object-position: 35% center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
  .fab { display: none; }
  .cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; }
  .toast { bottom: 84px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 92svh; padding: 32px 20px 24px; animation: sheetIn .35s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 64px;
    background: rgba(17, 17, 17, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: #d4d4d8; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar .mb-accent { color: var(--brand-3); }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 10px 12px; }
  .faq summary { font-size: 16px; padding: 18px 56px 18px 18px; }
  .faq .answer { padding: 0 18px 18px; }
  th, td { padding: 12px; font-size: 14px; }
  .prose { font-size: 17px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .ticker-track span { font-size: 16px; }
}

/* В наличии */
.stock-feature { align-items: start; }
.stock-media { display: grid; gap: 12px; }
.stock-media .media { position: relative; display: block; }
.stock-media .media:first-child { aspect-ratio: 4/3; }
.plan-card { background: #141414; padding: 10px; }
.plan-card img { width: 100%; height: auto; object-fit: contain; }
.plan-card span { display: block; text-align: center; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--brand-3); }

/* Акционная цена */
.badge-sale { left: auto; right: 14px; background: #e5484d; color: #fff; font-size: 14px; }
.promo-price { padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(243,146,8,.45); background: rgba(243,146,8,.08); }
.promo-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #e5484d; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; margin-bottom: 10px; }
.promo-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.promo-now { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.promo-row .price-old { font-size: 20px; margin: 0; }
.promo-note { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Галерея бани в наличии */
.stock-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stock-thumbs a { display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.stock-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.stock-thumbs a:hover img { transform: scale(1.06); }
.photo-count { position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(17,17,17,.8); font-size: 13px; font-weight: 700; color: #fff; }

/* схема дома в калькуляторе */
.calc-draw { margin: 4px 0 14px; color: var(--muted); }
.calc-draw svg { display: block; width: 100%; max-width: 440px; height: auto; }
.calc-draw .pano { fill: rgba(90,176,255,.22); stroke: #5ab0ff; stroke-width: 1.5; }
.calc-draw .pano-l { stroke: #5ab0ff; stroke-width: 1.2; }
.calc-draw .pano-k { fill: #5ab0ff; }
.calc-draw .pano-p { stroke: #5ab0ff; stroke-width: 5; }
.calc-draw text.sm { font-size: 9.5px; }
.calc-draw .legend { max-width: 560px; }
.calc-draw .wall { fill: rgba(255,255,255,.05); stroke: currentColor; stroke-width: 1.5; }
.calc-draw .roof { fill: none; stroke: var(--brand-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.calc-draw .film { stroke: #5ab0ff; stroke-width: 2; stroke-dasharray: 5 4; }
.calc-draw .ridge { fill: var(--brand-2); }
.calc-draw .dim { stroke: currentColor; stroke-width: 1; }
.calc-draw text { fill: currentColor; font-size: 11px; font-family: inherit; }
.calc-draw text.t-brand { fill: var(--brand-2); }
.calc-draw text.t-film { fill: #5ab0ff; }
.calc-draw .wall.m2 { fill: rgba(243,146,8,.10); }
.calc-draw .roof.thin { stroke-width: 2; }
.calc-draw text.cap { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted-2); }
.calc-draw .legend { font-size: 13px; line-height: 1.4; margin-top: 6px; }
