/* ГабионСетки — стили сайта */

@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/onest-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/unbounded-cyrillic-600.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/unbounded-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 800; src: url(/assets/fonts/unbounded-cyrillic-800.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 800; src: url(/assets/fonts/unbounded-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

:root {
  --bg: #f3f1eb;
  --surface: #ffffff;
  --surface-2: #eae6dc;
  --ink: #181c1b;
  --ink-2: #454b48;
  --muted: #737a76;
  --line: #dcd7cb;
  --line-2: #e8e4da;
  --accent: #4c8a2b;
  --accent-hover: #3e7521;
  --accent-soft: #e4eedb;
  --accent-ink: #ffffff;
  --dark: #141817;
  --dark-2: #1e2422;
  --dark-line: #2f3634;
  --on-dark: #eef0ec;
  --on-dark-2: #a9b0ac;
  --zinc: #b9c1c5;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --danger: #b3261e;

  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-head: 'Unbounded', 'Onest', system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(20, 24, 23, .06), 0 8px 24px rgba(20, 24, 23, .06);
  --shadow-lg: 0 24px 60px rgba(20, 24, 23, .18);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 54px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.muted { color: var(--muted); }
.rounded { border-radius: var(--r-lg); }
.bordered { border: 1px solid var(--line); background: #fff; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link .i { width: 16px; height: 16px; transition: transform .2s; }
a:hover .link .i, .link:hover .i { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; font-weight: 600; border-bottom: 1px dashed currentColor; }
.more { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.center .more, .shead--c + .more { justify-content: center; }
.free { color: var(--accent); }

/* ---------- Типографика блоков ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow .i { width: 16px; height: 16px; }
.eyebrow--light { color: #a5d487; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 720px; }
.shead { margin-bottom: clamp(28px, 4vw, 44px); max-width: 820px; }
.shead h2, .shead h1 { margin-bottom: 14px; }
.shead .lead { margin-bottom: 0; }
.shead--c { margin-inline: auto; text-align: center; }
.shead--c .lead { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn { --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s; }
.btn:hover { color: var(--b-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 18px; height: 18px; }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--accent:hover { --b-bg: var(--accent-hover); --b-bd: var(--accent-hover); }
.btn--dark { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.btn--dark:hover { --b-bg: #000; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn--ghost:hover { --b-bd: var(--ink); }
.btn--glass { --b-bg: rgba(255,255,255,.1); --b-fg: #fff; --b-bd: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn--glass:hover { --b-bg: rgba(255,255,255,.2); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Верхняя плашка и шапка ---------- */
.topbar { background: var(--dark); color: var(--on-dark-2); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar .i { width: 15px; height: 15px; color: #8fc46d; }
.topbar__right { display: flex; gap: 20px; }
.topbar__right > * { display: flex; align-items: center; gap: 6px; text-decoration: none; }

.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 20px rgba(20,24,23,.05); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { font-family: var(--f-head); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo__text i { font-style: normal; color: var(--accent); }
.logo__text small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.logo--light .logo__text small { color: var(--on-dark-2); }
.logo--light .logo__text i { color: #8fc46d; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 999px; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav__link .i { width: 16px; height: 16px; }
.nav__link:hover, .nav__link.is-on { color: var(--ink); background: var(--surface-2); }
.nav__link--hot { color: var(--accent); font-weight: 600; }
.nav__link--hot:hover { color: var(--accent-hover); background: var(--accent-soft); }
.has-sub > .nav__link .i { transition: transform .2s; }
.sub { position: absolute; top: 100%; left: -12px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub ul { width: 320px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.sub a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.sub a:hover { background: var(--bg); color: var(--ink); }
.sub b { display: block; font-weight: 600; font-size: 15px; }
.sub small { color: var(--muted); font-size: 13px; }
.has-sub:hover .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > .nav__link .i, .has-sub.is-open > .nav__link .i { transform: rotate(180deg); }
.nav__mobile-contacts { display: none; }

.header__contacts { display: flex; align-items: center; gap: 10px; flex: none; }
.msg { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; text-decoration: none; transition: transform .15s; }
.msg:hover { color: #fff; transform: scale(1.06); }
.msg .i { width: 20px; height: 20px; }
.msg--wa { background: #25d366; }
.msg--tg { background: #2aabee; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; margin-left: 6px; }
.header__phone a { font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); place-items: center; }

.crumbs { padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.crumbs .wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs span[aria-current] { color: var(--ink-2); }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-2); }
.section--dark .eyebrow { color: #8fc46d; }
.section--mesh { position: relative; isolation: isolate; }
.section--mesh::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px); background-size: 28px 56px; mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); }
.section--calc { padding-top: 28px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-lg { gap: clamp(20px, 3vw, 36px); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,15,14,.92) 0%, rgba(12,15,14,.78) 42%, rgba(12,15,14,.35) 100%), linear-gradient(0deg, rgba(12,15,14,.7), transparent 40%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px); background-size: 32px 64px; mask-image: linear-gradient(90deg, #000, transparent 60%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.hero h1 { font-size: clamp(32px, 5vw, 60px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #a5d487; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: #d6dcd8; max-width: 600px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__prices { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__prices li { display: flex; flex-direction: column; }
.hero__prices span { font-size: 13px; color: #aab2ae; }
.hero__prices b { font-family: var(--f-head); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); }
.hero__card { background: rgba(250,249,245,.97); color: var(--ink); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.hero__card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 8px; }
.hero__card-top .i { width: 16px; height: 16px; }
.hero__card-title { font-family: var(--f-head); font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 16px; }
.hero__card-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.hero__card-list span { color: var(--ink-2); }
.hero__card-list b { white-space: nowrap; font-weight: 600; }
.hero__card-list .is-disc b { color: var(--accent); }
.hero__card-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin: 14px 0 18px; }
.hero__card-total span { font-weight: 600; }
.hero__card-total b { font-family: var(--f-head); font-size: 26px; font-weight: 800; }
.hero__card-total small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; text-align: right; }

.phero { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.phero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero h1 { margin-bottom: 18px; }
.phero__chips { display: grid; gap: 8px; margin: 22px 0 28px; }
.phero__chips li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.phero__chips .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.phero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- Доверие ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.trust .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.trust b { display: block; font-weight: 700; line-height: 1.3; }
.trust span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Карточки товаров ---------- */
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pcard:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #fff; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.pcard__body p { color: var(--ink-2); font-size: 15px; }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.pcard__go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); transition: background .2s, color .2s; }
.pcard:hover .pcard__go { background: var(--accent); color: #fff; }
.price { font-family: var(--f-head); font-weight: 600; font-size: 19px; margin: 0; white-space: nowrap; }
.price small { font-family: var(--f-body); font-weight: 500; font-size: 14px; color: var(--muted); }

/* ---------- Решения ---------- */
.solutions { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.sol { position: relative; display: block; min-height: 260px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.sol:hover { color: #fff; }
.sol--big { grid-row: span 2; min-height: 540px; }
.sol img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.sol:hover img { transform: scale(1.05); }
.sol::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,11,.88) 0%, rgba(10,12,11,.25) 55%, transparent 100%); }
.sol__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 32px); }
.sol__txt h3 { font-size: clamp(20px, 2.2vw, 28px); }
.sol__txt p { color: #d3d9d5; max-width: 440px; margin-bottom: 12px; }
.sol__price { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); font-weight: 600; font-size: 14px; }

/* ---------- Сетки ---------- */
.mesh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.mesh-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); position: relative; }
.mesh-card.is-pop { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.mesh-card.is-pop::after { content: 'Популярная'; position: absolute; top: -10px; right: 16px; padding: 2px 10px; font-size: 11px; font-weight: 700; border-radius: 999px; background: var(--accent); color: #fff; }
.mesh-card__img { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); align-self: start; }
.mesh-card__img img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: left center; }
.mesh-card h3 { margin-bottom: 2px; font-size: 22px; }
.mesh-card h3 small { font-family: var(--f-body); font-size: 14px; color: var(--muted); font-weight: 500; }
.mesh-card__spec { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.mesh-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.mesh-card .price { font-size: 17px; margin: 0; }

/* ---------- Преимущества ---------- */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.feat li { display: flex; gap: 14px; }
.feat .i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent); }
.feat h3 { font-size: 16px; margin-bottom: 4px; font-family: var(--f-body); font-weight: 700; }
.feat p { margin: 0; font-size: 14px; color: var(--ink-2); }
.stat-card { position: absolute; left: -24px; bottom: 28px; padding: 18px 22px; max-width: 260px; background: var(--accent); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.stat-card b { display: block; font-family: var(--f-head); font-size: 38px; font-weight: 800; line-height: 1; }
.stat-card span { font-size: 14px; }

/* ---------- Галерея ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery__item { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--surface-2); }
.gallery__item:hover { color: #fff; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); font-size: 14px; line-height: 1.3; }
.gallery__cap b { display: block; font-weight: 600; }
.gallery__cap small { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #cfd6d2; }
.gallery__cap .i { width: 13px; height: 13px; }
.gallery__item.is-hidden { display: none; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.step__n { display: block; font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 16px; font-family: var(--f-body); font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; padding: 24px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line-2); }
.review__stars { display: flex; gap: 2px; color: #e3a008; margin-bottom: 12px; }
.review__stars .i { width: 16px; height: 16px; fill: currentColor; }
.review blockquote { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; }
.review time { font-size: 13px; color: var(--muted); }

/* ---------- Города ---------- */
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.city-links a:hover { border-color: var(--accent); color: var(--accent); }
.city-links .i { width: 16px; height: 16px; color: var(--accent); }
.city-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.city-card:hover { color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.city-card h2 { font-size: 22px; margin: 0; }
.city-card p { margin: 0; color: var(--muted); font-size: 14px; }
.city-card ul { display: grid; gap: 6px; font-size: 14px; }
.city-card li { display: flex; gap: 8px; align-items: center; }
.city-card .i { width: 16px; height: 16px; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { transition: transform .2s; color: var(--muted); }
.faq__item[open] summary .i { transform: rotate(180deg); }
.faq__a { padding: 0 22px 18px; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ---------- CTA и формы ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px); background-size: 28px 56px; mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%); }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 42px); }
.cta-band__text > p { color: var(--on-dark-2); font-size: 17px; max-width: 560px; }
.cta-band__contacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 28px; color: var(--on-dark-2); font-size: 14px; }
.big-phone { font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: #fff; text-decoration: none; }
.big-phone:hover { color: #a5d487; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--accent); margin-top: 3px; }
.ticks--light .i { color: #8fc46d; }

.lform { display: grid; gap: 12px; padding: clamp(20px, 3vw, 30px); background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.lform__title { font-family: var(--f-head); font-weight: 600; font-size: 21px; margin: 0; line-height: 1.25; }
.lform__text { margin: 0; color: var(--ink-2); font-size: 15px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 16px; font-weight: 400; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field.is-error input { border-color: var(--danger); box-shadow: 0 0 0 4px #f6dcda; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lform__status { margin: 0; font-size: 14px; font-weight: 600; min-height: 0; }
.lform__status.is-ok { color: var(--accent); }
.lform__status.is-err { color: var(--danger); }
.lform.is-done > :not(.lform__status):not(.lform__title) { display: none; }
.lform.is-done .lform__status { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 14px; background: var(--accent-soft); font-size: 16px; }

/* ---------- Таблицы ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl caption { text-align: left; padding: 14px 18px; font-weight: 600; }
.tbl th { text-align: left; padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #faf9f5; }
.tbl__price { font-weight: 700; white-space: nowrap; text-align: right; }
.tbl th:last-child { text-align: right; }
.tbl-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.tbl-note .i { width: 16px; height: 16px; margin-top: 2px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.tag--ok { background: var(--accent); color: #fff; }

.pgroups { display: grid; gap: 20px; }
.pgroup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); align-items: start; }
.pgroup__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: #fff; }
.pgroup .tbl-wrap { border: 0; }
.pgroup .tbl th { background: transparent; }

.stone { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.stone__img img, .stone__swatch { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stone__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.stone__sub { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.stone__body > p:not(.stone__sub) { font-size: 14px; color: var(--ink-2); }
.stone__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.stone__foot .muted { font-size: 13px; }
.erklez { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 32px; padding: clamp(16px, 3vw, 28px); background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); }
.erklez img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.erklez h3 { font-size: clamp(22px, 2.4vw, 30px); }
.erklez p { color: var(--on-dark-2); }
.erklez .price { color: #fff; margin: 12px 0 2px; font-size: 26px; }
.erklez .muted { margin-bottom: 20px; }
.erklez .btn--dark { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }

.acc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.acc__img img, .acc__icon { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.acc__icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--bg)); color: var(--accent); }
.acc__icon .i { width: 56px; height: 56px; }
.acc__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.acc h3 { font-size: 15px; font-family: var(--f-body); font-weight: 700; }
.acc p { font-size: 13px; color: var(--muted); }
.acc .price { margin-top: auto; font-size: 18px; }

.series { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.series__img { position: relative; aspect-ratio: 16 / 11; }
.series__img img { width: 100%; height: 100%; object-fit: cover; }
.series__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.series__body > p { font-size: 14px; color: var(--ink-2); }
.series__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.series__specs li { padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 500; }
.series__prices { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.series__prices div { padding: 12px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; }
.series__prices div:first-child { background: var(--accent-soft); }
.series__prices span { font-size: 12px; color: var(--muted); }
.series__prices b { font-family: var(--f-head); font-weight: 600; font-size: 18px; white-space: nowrap; }
.series__prices small { font-size: 12px; color: var(--muted); }

.tech { counter-reset: t; display: grid; gap: 16px; }
.tech li { counter-increment: t; position: relative; padding-left: 52px; color: var(--ink-2); }
.tech li::before { content: counter(t); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.tech b { color: var(--ink); }

.info-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.info-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.info-card > div { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.info-card p { font-size: 15px; color: var(--ink-2); }
.info-card .btn { margin-top: auto; }
.info-card--plain { padding: 22px; flex-direction: row; gap: 16px; }
.info-card--plain > div { padding: 0; }
.info-card--plain > .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.info-card--plain p { margin: 0 0 8px; }

.svc { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: flex-start; }
.svc p { color: var(--ink-2); }
.svc .ticks { margin: 8px 0 24px; }
.svc--dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.svc--dark p { color: var(--on-dark-2); }
.svc .btn { margin-top: auto; }

.calc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.calc-head h1 { margin-bottom: 10px; }
.calc-head .lead { margin: 0; }
.calc-head__ticks { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 20px; font-size: 14px; font-weight: 500; }
.calc-head__ticks li { display: flex; gap: 8px; align-items: center; }
.calc-head__ticks .i { width: 18px; height: 18px; color: var(--accent); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; padding: 8px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-radius: 999px; }
.toc a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.price-sec { margin-bottom: 40px; }
.price-sec h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
.price-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pay { display: grid; gap: 12px; }
.pay li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border-radius: var(--r); }
.pay .i { color: var(--accent); width: 24px; height: 24px; }
.promo-card { padding: clamp(24px, 4vw, 36px); border-radius: var(--r-lg); background: var(--accent); color: #fff; }
.promo-card h3 { font-size: clamp(22px, 2.4vw, 30px); }
.promo-card .eyebrow--light { color: #e2f2d6; }
.promo-card__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.promo-card__nums div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.14); }
.promo-card__nums b { display: block; font-family: var(--f-head); font-size: clamp(20px, 2.6vw, 30px); }
.promo-card__nums span { font-size: 13px; }

.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.nums div { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.nums b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1.1; }
.nums span { font-size: 14px; color: var(--ink-2); }

.contact-list { display: grid; gap: 10px; margin-top: 24px; }
.contact { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; }
.contact .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.contact small { display: block; color: var(--muted); font-size: 13px; }
.contact b { font-size: 17px; }

.price-tiles { margin-bottom: 20px; }
.ptile { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.ptile span { font-size: 14px; color: var(--muted); }
.ptile b { font-family: var(--f-head); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); margin: 4px 0 0; white-space: nowrap; }
.ptile small { color: var(--muted); font-size: 13px; }
.ptile:first-child { background: var(--dark); color: #fff; border-color: var(--dark); }

.acard { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); }
.acard:hover { color: var(--ink); box-shadow: var(--shadow); }
.acard img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.acard h2 { font-size: 19px; }
.acard p { color: var(--ink-2); font-size: 14px; }

.prose { font-size: 17px; }
.prose h1 { font-size: clamp(28px, 4vw, 44px); }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.6em; }
.prose > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 24px 0; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose ul li { margin-bottom: 6px; }
.prose .tbl-wrap { margin: 16px 0 20px; }
.prose-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; padding: 22px; border-radius: var(--r-lg); background: var(--accent-soft); }
.prose-cta > .i { width: 40px; height: 40px; color: var(--accent); }
.prose-cta div { flex: 1; min-width: 200px; }
.prose-cta p { margin: 0; font-size: 15px; color: var(--ink-2); }
.card-pad .lform { box-shadow: var(--shadow); }

.seo-text { color: var(--ink-2); font-size: 15px; columns: 2 340px; column-gap: 48px; }
.seo-text h2 { column-span: all; font-size: 22px; color: var(--ink); margin-bottom: 16px; }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); padding: 64px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer__about { margin: 18px 0; max-width: 320px; }
.footer__phone { font-family: var(--f-head); font-weight: 600; font-size: 22px; color: #fff; }
.footer__muted { margin: 6px 0 16px; }
.footer__msg { display: flex; gap: 8px; }
.footer__h { color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer__col li { margin-bottom: 9px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.footer__bottom p { margin: 0; }

/* ---------- Мобильная панель, модалки, cookie ---------- */
.mbar { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal__bg { position: absolute; inset: 0; background: rgba(10,12,11,.6); backdrop-filter: blur(4px); animation: fade .2s; }
.modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(22px, 4vw, 32px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.modal__title { font-family: var(--f-head); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 0 40px 8px 0; }
.modal__text { color: var(--ink-2); font-size: 15px; }
.modal .lform { padding: 0; box-shadow: none; border-radius: 0; }
.modal__alt { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.lightbox { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(8,10,9,.94); padding: 56px 64px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: #dfe4e1; font-size: 15px; text-align: center; }
.lightbox__x, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox__x { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; } .lightbox__prev .i { transform: rotate(90deg); }
.lightbox__next { right: 12px; } .lightbox__next .i { transform: rotate(-90deg); }

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: 420px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 13px; }
.cookie p { margin: 0; color: var(--ink-2); }

/* ================= 3D-калькулятор ================= */
.cfg { --cfg-gap: 20px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); grid-template-areas: "stage panel" "result result"; gap: var(--cfg-gap); padding: var(--cfg-gap); background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.section--dark .cfg { box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.cfg__stage { grid-area: stage; position: relative; align-self: start; position: sticky; top: calc(var(--header-h) + 12px); }
.cfg__canvas { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, #cfe0ee 0%, #e9eef0 60%, #c9cfb8 100%); touch-action: none; }
.cfg__canvas canvas { width: 100% !important; height: 100% !important; }
.cfg__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; }
.cfg__loading .i { width: 44px; height: 44px; color: var(--accent); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cfg__tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.tool { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 0; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tool:hover { background: #fff; color: var(--accent); }
.tool .i { width: 19px; height: 19px; }
.cfg__hint { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.cfg__hint span { padding: 5px 10px; border-radius: 999px; background: rgba(20,24,23,.72); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); }
.cfg__dim { position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cfg__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.cfg__panel { grid-area: panel; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cfg__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ctype { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center; color: var(--ink-2); transition: border-color .15s, background-color .15s, color .15s; }
.ctype svg { width: 34px; height: 26px; }
.ctype:hover { border-color: var(--ink-2); }
.ctype.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.cgroup { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.cgroup__t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.rng { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.rng label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.rng__val { display: flex; align-items: center; gap: 4px; }
.rng__val input { width: 72px; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); text-align: right; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.rng__val input::-webkit-outer-spin-button, .rng__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rng__val input:focus { outline: none; border-color: var(--accent); background: #fff; }
.rng__val span { font-size: 13px; color: var(--muted); min-width: 22px; }
.rng input[type=range] { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; --p: 50%; }
.rng input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); }
.rng input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.rng input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.rng input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.rng input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg__l { width: 100%; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg button { flex: 1 1 auto; min-height: 38px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; }
.seg button:hover { border-color: var(--ink-2); }
.seg button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg button small { display: block; font-size: 11px; opacity: .7; font-weight: 400; }
.sw-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sw { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-align: left; font-size: 12.5px; line-height: 1.2; font-weight: 600; }
.sw i { display: block; width: 100%; height: 26px; border-radius: 7px; }
.sw small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.sw:hover { border-color: var(--ink-2); }
.sw.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.tgl__sw { position: relative; width: 44px; height: 26px; border-radius: 26px; background: var(--line); transition: background .2s; flex: none; }
.tgl__sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.tgl input:checked + .tgl__sw { background: var(--accent); }
.tgl input:checked + .tgl__sw::after { transform: translateX(18px); }
.tgl input:focus-visible + .tgl__sw { outline: 3px solid var(--accent-soft); }
.tgl small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.csel { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.csel select, .csel input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.csel label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }

.cfg__result { grid-area: result; min-width: 0; }
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--cfg-gap); align-items: start; }
.est__sum { position: relative; padding: 22px; border-radius: var(--r); background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.est__sum::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px); background-size: 20px 40px; mask-image: linear-gradient(135deg, transparent 40%, #000); }
.est__desc { font-size: 14px; color: var(--on-dark-2); margin-bottom: 14px; }
.est__lines { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.est__lines li { display: flex; justify-content: space-between; gap: 10px; }
.est__lines span { color: var(--on-dark-2); }
.est__lines .is-disc b { color: #a5d487; }
.est__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 14px; border-top: 1px solid var(--dark-line); }
.est__total span { font-weight: 600; }
.est__total b { font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; transition: color .3s; }
.est__total b.is-flash { color: #a5d487; }
.est__per { width: 100%; text-align: right; font-size: 14px; color: var(--on-dark-2); }
.est__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.est__actions .btn { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.est__actions .btn--accent { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.est__actions .btn--glass { --b-bd: rgba(255,255,255,.22); }
.est__warn { display: grid; gap: 8px; margin-top: 14px; }
.est__warn p { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.4; }
.est__warn .i { width: 16px; height: 16px; margin-top: 1px; }
.est__detail { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.est__detail > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700; background: var(--bg); }
.est__detail > summary::-webkit-details-marker { display: none; }
.est__detail > summary .i { transition: transform .2s; }
.est__detail[open] > summary .i { transform: rotate(180deg); }
.est__tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.est__tbl th { text-align: left; padding: 12px 18px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.est__tbl th:last-child { text-align: right; color: var(--ink); }
.est__tbl td { padding: 7px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.est__tbl td:nth-child(2) { white-space: nowrap; color: var(--ink-2); text-align: right; }
.est__tbl td:last-child { white-space: nowrap; font-weight: 700; text-align: right; }
.est__tbl small { display: block; color: var(--muted); font-size: 12px; }
.est__notes { padding: 12px 18px 16px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.est__notes p { margin: 0; }
.est__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.est__meta span { padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cfg--compact .est__detail:not([open]) { }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 300; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .25s; }

/* Печатная смета */
.print-est { display: none; }

/* ================= Адаптив ================= */
@media (max-width: 1400px) {
  .header__contacts .msg { display: none; }
  .nav__link { padding: 10px 9px; font-size: 14.5px; }
}

@media (max-width: 1200px) {
  .header__contacts .msg { display: grid; }
  .nav { margin-left: 0; }
  .header__contacts { margin-left: auto; }
  .burger { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 60; margin: 0; padding: 16px var(--gut) 120px; background: var(--bg); overflow-y: auto; opacity: 0; transform: translateY(-10px); transition: opacity .22s, transform .22s, visibility .22s; visibility: hidden; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-2); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; border-radius: 0; }
  .nav__link:hover, .nav__link.is-on { background: none; }
  .nav__link--hot { justify-content: flex-start; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 12px; display: none; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.is-open:hover .sub { display: block; }
  .sub ul { width: auto; border: 0; box-shadow: none; padding: 0; background: transparent; }
  .sub a { padding: 10px 8px; }
  .nav__mobile-contacts { display: grid; gap: 10px; margin-top: 24px; }
}

@media (max-width: 1180px) {
  .header__phone button { display: none; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__col--cities { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mesh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .topbar__promo { display: none; }
  .topbar__in { justify-content: center; }
  .header__phone { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .phero__in, .split, .cta-band__in { grid-template-columns: 1fr; }
  .phero__media { order: -1; }
  .phero__media img { aspect-ratio: 16 / 9; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .solutions { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .sol--big { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .stat-card { left: 16px; }
  .cfg { grid-template-columns: 1fr; grid-template-areas: "stage" "panel" "result"; }
  .cfg__stage { position: sticky; top: calc(var(--header-h) + 4px); z-index: 4; }
  .cfg__canvas { aspect-ratio: 16 / 10; max-height: 46vh; width: 100%; }
  .est { grid-template-columns: 1fr; }
  .pgroup { grid-template-columns: 160px minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .erklez { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .header__contacts .msg { width: 38px; height: 38px; }
  .logo__text small { display: none; }
  .logo__mark { width: 36px; height: 36px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trust { grid-template-columns: 1fr; }
  .trust li { padding: 14px; }
  .feat { grid-template-columns: 1fr; }
  .mesh-grid { grid-template-columns: 1fr; }
  .mesh-card { grid-template-columns: 96px minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery__cap { font-size: 12.5px; padding: 28px 10px 8px; }
  .steps { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr; }
  .sol, .sol--big { min-height: 300px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__prices { gap: 12px 20px; }
  .hero__card { padding: 18px; }
  .phero__cta .btn { flex: 1 1 100%; }
  .pgroup { grid-template-columns: 1fr; padding: 14px; }
  .pgroup__img { max-width: 200px; }
  .acard { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .acard p { display: none; }
  .acard h2 { font-size: 16px; }
  .series__prices b { font-size: 16px; }
  .promo-card__nums { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .promo-card__nums div { padding: 10px; }
  .nums b { font-size: 24px; }
  .calc-head__ticks { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .info-card--plain { padding: 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--cities { display: block; }
  .stat-card { position: static; margin-top: -40px; margin-left: 16px; position: relative; }
  .cookie { left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 11px 12px; }
  .toc { border-radius: var(--r); overflow-x: auto; flex-wrap: nowrap; }
  .toc a { white-space: nowrap; }
  .seo-text { columns: 1; }
  .lightbox { padding: 56px 8px; }
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }

  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 12px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--bg); }
  .mbar a .i { width: 20px; height: 20px; }
  .mbar__main { background: var(--accent) !important; color: #fff !important; }
  .page-calc .mbar { display: none; }
  .page-calc { padding-bottom: 0; }

  .cfg { --cfg-gap: 12px; padding: 10px; margin-inline: calc(var(--gut) * -1 + 6px); border-radius: var(--r); }
  .cfg__canvas { aspect-ratio: 4 / 3; max-height: 38vh; border-radius: 12px; }
  .cfg__types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { width: 36px; height: 36px; }
  .est__sum { padding: 18px; }
  .est__tbl td { padding: 7px 10px; }
  .est__tbl th { padding: 12px 10px 6px; }
  .est__tbl td:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ================= Печать ================= */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; padding: 0; }
  .topbar, .header, .footer, .mbar, .cookie, .modal, .lightbox, .crumbs, .cta-band, .toc, .price-actions, .btn, .skip { display: none !important; }
  .section { padding: 12px 0; }
  .tbl-wrap { border: 0; overflow: visible; }
  .tbl { min-width: 0; font-size: 11px; }
  .tbl th, .tbl td { padding: 5px 8px; }
  .price-sec { break-inside: avoid-page; margin-bottom: 18px; }
  body.is-printing-est > *:not(.print-est) { display: none !important; }
  body.is-printing-est .print-est { display: block !important; }
  .print-est { font-size: 11.5px; color: #000; }
  .print-est h1 { font-size: 20px; margin: 0 0 4px; }
  .print-est__head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 12px; }
  .print-est__head p { margin: 0; }
  .print-est img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 6px; margin: 8px 0 12px; }
  .print-est table { width: 100%; border-collapse: collapse; }
  .print-est th, .print-est td { padding: 4px 6px; border-bottom: 1px solid #ccc; text-align: left; vertical-align: top; }
  .print-est td:nth-child(n+2), .print-est th:nth-child(n+2) { text-align: right; white-space: nowrap; }
  .print-est .grp th { background: #eee; }
  .print-est .tot td { font-weight: 700; border-bottom: 0; }
  .print-est .big td { font-size: 16px; border-top: 2px solid #000; }
  .print-est__foot { margin-top: 14px; font-size: 10.5px; color: #333; }
}

/* Дополнения калькулятора */
.est__sum .est__meta span { background: rgba(255,255,255,.08); color: var(--on-dark); }
.cfg__loading span { max-width: 280px; text-align: center; }
