/* ==========================================================================
   Светлые окна — стили публичного сайта
   Концепция: «дневной свет». Светлый холодный фон, глубокий невский синий
   для текста и акцентов, солнечный жёлтый — только для главных действий.
   ========================================================================== */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  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("../fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* цвет */
  --paper: #f3f5f6;
  --card: #ffffff;
  --ink: #102030;
  --ink-2: #374653;
  --muted: #6a7782;
  --line: #e0e6ea;
  --line-2: #cbd4da;
  --brand: #1b4c77;
  --brand-ink: #0e2c47;
  --brand-soft: #e6eef5;
  --sun: #f5b838;
  --sun-hover: #ffc64f;
  --sun-ink: #2b1d00;
  --sun-soft: #fff3d6;
  --ok: #2c7a4b;
  --ok-soft: #e4f3ea;
  --danger: #b8392a;

  /* оттенки, которые меняются в тёмной теме */
  --solid: var(--ink);
  --on-solid: #ffffff;
  --glass: rgba(255, 255, 255, .88);
  --skeleton: #e1e8ec;
  --placeholder: #9aa6b0;
  --link-hover: var(--brand-ink);
  --sun-deep: #9a6a00;
  --danger-soft: #fdecea;
  --footer-bg: #0b2238;
  --media-bg: linear-gradient(180deg, #eef2f4, #e2e8ec);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23374653' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;

  /* типографика */
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);

  /* геометрия */
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 1px rgba(16, 32, 48, .04);
  --shadow: 0 14px 34px -18px rgba(16, 32, 48, .28), 0 2px 6px rgba(16, 32, 48, .05);
  --shadow-lg: 0 30px 70px -30px rgba(16, 32, 48, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* ---------- тёмная тема ----------
   Включается атрибутом data-theme="dark" на <html> (выбор посетителя или настройка
   «Всегда тёмная») либо автоматически, если в системе посетителя включён тёмный режим
   и тема не закреплена светлой. Меняются только переменные цвета. */
:root[data-theme="dark"] {
  --paper: #0c1319;
  --card: #141e27;
  --ink: #e9eff4;
  --ink-2: #c2cdd6;
  --muted: #8e9ca8;
  --line: #22303b;
  --line-2: #33424e;
  --brand: #84b6e2;
  --brand-ink: #10283f;
  --brand-soft: #1a2d40;
  --sun-soft: #3a2e10;
  --ok: #6fd09a;
  --ok-soft: #14301f;
  --danger: #ff8a7a;
  --danger-soft: #3a1b18;
  --solid: #e9eff4;
  --on-solid: #0c1319;
  --glass: rgba(20, 30, 39, .86);
  --skeleton: #1c2833;
  --placeholder: #6f7e8a;
  --link-hover: #b9d6f0;
  --sun-deep: #f5c55c;
  --footer-bg: #081018;
  --media-bg: linear-gradient(180deg, #1a2531, #141e27);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c2cdd6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1319;
    --card: #141e27;
    --ink: #e9eff4;
    --ink-2: #c2cdd6;
    --muted: #8e9ca8;
    --line: #22303b;
    --line-2: #33424e;
    --brand: #84b6e2;
    --brand-ink: #10283f;
    --brand-soft: #1a2d40;
    --sun-soft: #3a2e10;
    --ok: #6fd09a;
    --ok-soft: #14301f;
    --danger: #ff8a7a;
    --danger-soft: #3a1b18;
    --solid: #e9eff4;
    --on-solid: #0c1319;
    --glass: rgba(20, 30, 39, .86);
    --skeleton: #1c2833;
    --placeholder: #6f7e8a;
    --link-hover: #b9d6f0;
    --sun-deep: #f5c55c;
    --footer-bg: #081018;
  --media-bg: linear-gradient(180deg, #1a2531, #141e27);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 14px 34px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c2cdd6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; font-weight: 750; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun-soft); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--white { background: var(--card); }
.section--ink { background: var(--brand-ink); color: #c9d6e2; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__text { max-width: 680px; display: grid; gap: 14px; }
.section-head p { font-size: var(--fs-lg); color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
  border: 2px solid currentColor; border-radius: 3px;
}
.section--ink .eyebrow { color: var(--sun); }

/* ---------- кнопки ---------- */
.btn {
  --btn-bg: var(--card); --btn-fg: var(--ink); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 650; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); border-color: var(--solid); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--sun-ink); --btn-bd: var(--sun); box-shadow: 0 8px 20px -10px rgba(214, 150, 20, .7); }
.btn--sun:hover { --btn-bg: var(--sun-hover); border-color: var(--sun-hover); }
.btn--ink { --btn-bg: var(--brand-ink); --btn-fg: #fff; --btn-bd: var(--brand-ink); }
.btn--ink:hover { --btn-bg: var(--brand); border-color: var(--brand); color: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--brand); padding-inline: 12px; }
.btn--ghost:hover { --btn-bg: var(--brand-soft); border-color: transparent; color: var(--link-hover); }
.btn--glass { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-md); border-radius: 14px; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-xs); border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  font-size: var(--fs-sm); font-weight: 550; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--solid); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.chip__count { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count, .chip[aria-current="page"] .chip__count { color: var(--on-solid); opacity: .65; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
.chips--scroll::-webkit-scrollbar { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--card); color: var(--ink);
}
.badge--sun { background: var(--sun); color: var(--sun-ink); }
.badge--sale { background: var(--danger); color: #fff; }
.badge--muted { background: var(--brand-soft); color: var(--brand); }
.badge--3d { background: rgba(16,32,48,.78); color: #fff; backdrop-filter: blur(6px); }

/* ---------- поля ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 44px; background: var(--card) var(--select-arrow) no-repeat right 18px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.input::placeholder { color: var(--placeholder); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar { background: var(--brand-ink); color: #b7c6d4; font-size: var(--fs-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__info { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: #dce6ef; text-decoration: none; }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 6px; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: inherit; }
.socials a:hover { background: rgba(255,255,255,.1); }
.socials .icon { width: 17px; height: 17px; }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(16,32,48,.4); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo__name b { color: var(--brand); font-weight: 800; }
.logo__sub { font-size: 0.6875rem; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ink-2); font-weight: 560; font-size: var(--fs-sm); white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--sun); }
.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { display: grid; text-align: right; line-height: 1.2; text-decoration: none; }
.header__phone strong { color: var(--ink); font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.header__phone span { font-size: 0.75rem; color: var(--muted); }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); place-items: center; }
.burger .icon { width: 22px; height: 22px; }

.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(9, 20, 32, .45); animation: fade .25s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--card);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 22px calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex; flex-direction: column; gap: 22px; overflow-y: auto; animation: slide-in .3s var(--ease);
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.125rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: var(--paper); }
.drawer__foot { margin-top: auto; display: grid; gap: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }

/* ==========================================================================
   Герой
   ========================================================================== */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__text { display: grid; gap: 24px; align-content: start; }
.hero h1 span { color: var(--brand); }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; }
.hero__photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg); background: var(--skeleton);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(14,44,71,.35)); }
.hero__note {
  position: absolute; left: -22px; bottom: 28px; z-index: 2; display: flex; gap: 14px; align-items: center;
  background: var(--card); border-radius: 18px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow);
}
.hero__note-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-deep); }
.hero__note strong { display: block; color: var(--ink); font-size: 1.0625rem; line-height: 1.2; }
.hero__note span { font-size: var(--fs-xs); color: var(--muted); }
.hero__chip {
  position: absolute; right: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); color: var(--ink); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 650; color: var(--ink);
}
.hero__chip i { width: 8px; height: 8px; border-radius: 50%; background: #3cb371; box-shadow: 0 0 0 4px rgba(60,179,113,.2); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 64px); background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); }
.stat { padding: 22px 24px; display: grid; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; color: var(--ink); letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .55em; color: var(--sun); margin-left: 2px; }
.stat__label { font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   Направления (категории)
   ========================================================================== */
.directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.direction {
  position: relative; display: flex; flex-direction: column; min-height: 300px; border-radius: 20px; overflow: hidden;
  background: var(--card); text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.direction:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink-2); }
.direction__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--skeleton); }
.direction__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.direction:hover .direction__img img { transform: scale(1.04); }
.direction__body { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; align-content: start; }
.direction__body h3 { font-size: 1.1875rem; }
.direction__body p { font-size: var(--fs-sm); color: var(--muted); }
.direction__price { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.direction__price b { color: var(--ink); font-weight: 750; }
.direction__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .2s, transform .3s var(--ease); }
.direction:hover .direction__arrow { background: var(--sun); transform: translateX(3px); }

/* ==========================================================================
   Карточки товаров
   ========================================================================== */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard[hidden] { display: none !important; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--media-bg); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.pcard__media img + img { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pcard__media img + img { opacity: 1; }
.pcard:hover .pcard__media img:only-of-type { transform: scale(1.04); }
.pcard__schematic { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; }
.pcard__schematic svg { width: 100%; height: 100%; }
.pcard__badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.pcard__cat { font-size: 0.75rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pcard__title { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.015em; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--muted); }
.pcard__specs span { display: inline-flex; align-items: center; gap: 6px; }
.pcard__specs .icon { width: 15px; height: 15px; }
.pcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price { display: grid; line-height: 1.15; }
.price__now { font-size: 1.3125rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__now small { font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price__old { font-size: var(--fs-xs); color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pcard__calc { position: relative; z-index: 2; }
.empty { padding: 48px 24px; text-align: center; background: var(--card); border-radius: 18px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }

/* ==========================================================================
   Подбор по серии дома
   ========================================================================== */
.series { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.series__more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   Конструктор + калькулятор
   ========================================================================== */
.cfg { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 20px; align-items: start; }
.cfg__stage-wrap { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.cfg__stage { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #e7e3dc; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.cfg__stage canvas { width: 100%; height: 100%; cursor: grab; }
.cfg__stage canvas:active { cursor: grabbing; }
.cfg__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; background: #f2f4f5; }
.cfg__fallback svg { max-height: 100%; }
.cfg__loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-sm); color: var(--muted); }
.cfg__toolbar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.seg { pointer-events: auto; display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { background: rgba(16,32,48,.06); }
.seg button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.cfg__hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(16,32,48,.6); color: #fff; font-size: 0.75rem; padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.cfg__stage.is-touched .cfg__hint { opacity: 0; }
.cfg__caption { font-size: var(--fs-sm); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cfg__panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; }
.cfg__types { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.cfg__type { border: 0; background: transparent; padding: 14px 6px 12px; display: grid; justify-items: center; gap: 6px; font-size: 0.75rem; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; line-height: 1.2; text-align: center; }
.cfg__type svg { width: 30px; height: 30px; }
.cfg__type:hover { color: var(--ink); background: var(--paper); }
.cfg__type[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--sun); background: linear-gradient(180deg, transparent, var(--sun-soft)); }
.cfg__body { padding: 6px 20px 8px; }
@media (min-width: 1025px) {
  .cfg--compact .cfg__body { max-height: min(62vh, 640px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.series-more[hidden] { display: none; }
.opt { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.opt:last-child { border-bottom: 0; }
.opt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.opt__title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.opt__note { font-size: 0.75rem; color: var(--muted); }
.opt[hidden] { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line-2); background: var(--card); border-radius: 10px; padding: 8px 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); line-height: 1.25; text-align: left; }
.pill:hover { border-color: var(--solid); }
.pill[aria-pressed="true"] { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }
.pill small { display: block; font-weight: 500; opacity: .7; }
.pills--count .pill { min-width: 44px; text-align: center; font-size: var(--fs-sm); }
.radios { display: grid; gap: 6px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: var(--fs-xs); transition: border-color .2s, background .2s; }
.radio-row:hover { border-color: var(--line-2); }
.radio-row input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; margin: 0; }
.radio-row b { color: var(--ink); font-weight: 650; font-size: var(--fs-sm); display: block; }
.radio-row span { color: var(--muted); }
.radio-row__price { margin-left: auto; white-space: nowrap; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.radio-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); position: relative; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch:hover { transform: scale(1.06); }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size { display: grid; gap: 6px; }
.size label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.size__row { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--card); }
.size__row input[type=number] { width: 100%; border: 0; padding: 10px 0 10px 14px; font-weight: 700; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; min-width: 0; -moz-appearance: textfield; }
.size__row input[type=number]::-webkit-inner-spin-button { display: none; }
.size__row span { padding: 0 12px; font-size: 0.75rem; color: var(--muted); }
.size__row:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.size input[type=range] { width: 100%; accent-color: var(--brand); margin: 2px 0 0; }
.size__err { font-size: 0.75rem; color: var(--danger); }
.toggles { display: grid; gap: 4px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 8px 2px; font-size: var(--fs-xs); cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.toggle-row b { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.toggle-row span { color: var(--muted); }
.toggle-row__price { margin-left: auto; color: var(--ink-2); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--card); font-size: 1.2rem; color: var(--ink); }
.stepper button:hover { background: var(--paper); }
.stepper output { min-width: 42px; text-align: center; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.inline-select { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-select .select { min-height: 42px; width: auto; flex: 1; font-size: var(--fs-sm); }

.schema { display: grid; gap: 8px; }
.schema__svg { width: 100%; height: auto; max-height: 220px; background: var(--paper); border-radius: 14px; }
.schema__svg .sash { cursor: pointer; }
.schema__svg .sash:hover .sash-bg { fill: #fff7e0; }
.schema__help { font-size: 0.75rem; color: var(--muted); }
.sash-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.sash-type { display: grid; gap: 4px; }
.sash-type label { font-size: 0.6875rem; color: var(--muted); font-weight: 600; }
.sash-type select { min-height: 38px; padding: 6px 30px 6px 10px; font-size: var(--fs-xs); background-position: right 10px center; border-radius: 10px; }

.cfg__result { background: var(--brand-ink); color: #c3d1de; padding: 20px; display: grid; gap: 14px; }
.cfg__total { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.cfg__total-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: #93a8bb; }
.cfg__total-value { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); font-weight: 800; color: #fff; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.cfg__total-value small { font-size: .45em; color: #93a8bb; font-weight: 600; letter-spacing: 0; }
.cfg__per { font-size: var(--fs-xs); color: #93a8bb; text-align: right; }
.breakdown { font-size: var(--fs-xs); border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.breakdown summary { cursor: pointer; color: #dce6ef; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::after { content: "+"; margin-left: auto; font-size: 1rem; }
.breakdown[open] summary::after { content: "–"; }
.breakdown dl { margin: 10px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.breakdown dt { color: #a8bccd; }
.breakdown dd { margin: 0; color: #fff; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown dd.sum { font-weight: 700; border-top: 1px solid rgba(255,255,255,.12); padding-top: 6px; }
.breakdown dt.sum { font-weight: 700; color: #fff; border-top: 1px solid rgba(255,255,255,.12); padding-top: 6px; }
.cfg__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cfg__actions .btn { white-space: normal; text-align: center; }
.cfg__note { font-size: 0.75rem; color: #93a8bb; }
.cfg__send { display: grid; gap: 8px; }
.cfg__send[hidden] { display: none; }
.cfg__send .input { min-height: 46px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.cfg__send .input::placeholder { color: #8ea3b6; }
.cfg__send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfg__msg { font-size: var(--fs-sm); padding: 10px 12px; border-radius: 10px; background: rgba(60,179,113,.16); color: #bff0d3; }
.cfg__msg--err { background: rgba(220,80,60,.18); color: #ffd0c8; }

/* ==========================================================================
   Наши работы
   ========================================================================== */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work { display: block; width: 100%; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--skeleton); border: 0; padding: 0; text-align: left; cursor: zoom-in; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work__over { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, rgba(8, 22, 36, .82)); color: #d7e1ea; display: grid; gap: 4px; }
.work__over h4 { color: #fff; font-size: 1.0625rem; }
.work__over p { font-size: var(--fs-xs); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work__tag { position: absolute; left: 14px; top: 14px; }
.work[hidden] { display: none; }

/* ==========================================================================
   Этапы, преимущества, отзывы, FAQ
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 20px 16px 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; align-content: start; }
.step__num { font-size: 0.75rem; font-weight: 700; color: var(--sun); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.step h4 { font-size: 1.0625rem; }
.step p { font-size: var(--fs-xs); line-height: 1.5; color: #a9bccd; }
.guarantee { margin-top: 18px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: rgba(245, 184, 56, .1); border: 1px solid rgba(245, 184, 56, .3); color: #f3dfb3; }
.guarantee .icon { width: 28px; height: 28px; color: var(--sun); }

.advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv { padding: 26px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start; }
.adv__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.adv__icon .icon { width: 24px; height: 24px; }
.adv p { font-size: var(--fs-sm); color: var(--muted); }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.cert { width: 100%; border: 0; padding: 10px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; cursor: zoom-in; text-align: left; }
.cert img { aspect-ratio: 1.41; object-fit: cover; border-radius: 8px; width: 100%; }
.cert span { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); padding: 0 4px 2px; }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { padding: 24px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); display: grid; gap: 14px; align-content: start; }
.review__head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: var(--brand); background: var(--brand-soft); flex: none; }
.review__head h4 { font-size: 1rem; }
.stars { color: #e7a400; letter-spacing: 2px; font-size: .9rem; line-height: 1; }
.review p { font-size: var(--fs-sm); color: var(--ink-2); }
.review time { font-size: var(--fs-xs); color: var(--muted); }
.rating-card { padding: 24px; border-radius: 20px; background: var(--brand-ink); color: #c3d1de; display: grid; gap: 10px; align-content: center; }
.rating-card strong { font-size: 3.2rem; color: #fff; line-height: 1; letter-spacing: -0.04em; }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 650; color: var(--ink); font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.faq__answer { padding: 0 22px 20px; color: var(--ink-2); font-size: var(--fs-sm); display: grid; gap: 10px; }
.faq__answer ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ==========================================================================
   Заявка
   ========================================================================== */
.lead { position: relative; overflow: hidden; border-radius: 28px; background: var(--brand-ink); color: #c3d1de; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead__text { padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; align-content: center; }
.lead__text h2 { color: #fff; }
.lead__points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.lead__points li { display: flex; gap: 12px; align-items: center; color: #dbe5ee; }
.lead__points .icon { color: var(--sun); }
.lead__form { margin: 12px; background: var(--card); color: var(--ink-2); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.lead__form h3 { font-size: 1.25rem; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.cm { position: relative; }
.cm input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cm span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 600; }
.cm input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--link-hover); }
.cm input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.cm .icon { width: 16px; height: 16px; }
.form-note { font-size: 0.75rem; color: var(--muted); }
.form-msg { padding: 12px 14px; border-radius: 12px; font-size: var(--fs-sm); background: var(--ok-soft); color: var(--ok); }
.form-msg--err { background: var(--danger-soft); color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Контакты, подвал
   ========================================================================== */
.contacts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.contacts__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.ccard { padding: 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); display: grid; gap: 6px; align-content: start; }
.ccard .icon { color: var(--brand); width: 22px; height: 22px; }
.ccard h4 { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ccard p, .ccard a { color: var(--ink); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.map { border-radius: 20px; overflow: hidden; min-height: 380px; background: var(--skeleton); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.footer { background: var(--footer-bg); color: #9fb2c4; padding-block: 56px 28px; margin-top: clamp(56px, 7vw, 104px); }
.footer a { color: #d1dde8; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .logo { color: #fff; }
.footer .logo__name b { color: var(--sun); }
.footer .logo__sub { color: #7f95a9; }
.footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: 14px; letter-spacing: 0; }
.footer__col { display: grid; gap: 8px; align-content: start; font-size: var(--fs-sm); }
.footer__about { display: grid; gap: 18px; align-content: start; font-size: var(--fs-sm); }
.footer .socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); color: #d1dde8; }
.footer .socials a:hover { background: rgba(255,255,255,.14); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: #7f95a9; }
.footer__contact { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 3px; color: #7f95a9; width: 16px; height: 16px; }

/* ==========================================================================
   Каталог и страница товара
   ========================================================================== */
.page-head { padding-block: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 30px); display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head p { color: var(--muted); font-size: var(--fs-lg); max-width: 720px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar__filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .select { min-height: 42px; width: auto; font-size: var(--fs-sm); padding-block: 8px; }
.toolbar__count { font-size: var(--fs-sm); color: var(--muted); }
.cat-text { margin-top: 48px; max-width: 820px; }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--skeleton); box-shadow: var(--shadow-sm); }
.gallery__slides { position: absolute; inset: 0; }
.gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.gallery__slide.is-active { opacity: 1; z-index: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transform: scale(1.02); transition: transform 6s linear; }
.gallery__slide.is-active img { transform: scale(1.06); }
.gallery__slide--3d { background: #e7e3dc; }
.gallery__slide--3d .cfg__stage { position: absolute; inset: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.gallery__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--glass); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.14); opacity: 0; transition: opacity .25s; }
.gallery__main:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__progress { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.gallery__progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); overflow: hidden; }
.gallery__progress span i { display: block; height: 100%; width: 0; background: #fff; }
.gallery__progress span.is-done i { width: 100%; }
.gallery__progress span.is-active i { animation: progress var(--slide-ms, 5000ms) linear forwards; }
.gallery.is-paused .gallery__progress span.is-active i { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.gallery__badges { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; gap: 6px; }
.gallery__zoom { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--glass); display: grid; place-items: center; color: var(--ink); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumb { flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--skeleton); opacity: .7; transition: opacity .2s, border-color .2s; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--solid); opacity: 1; }
.thumb--3d { display: grid; place-items: center; font-weight: 800; color: var(--brand); background: var(--brand-soft); font-size: .95rem; }
.pinfo { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.pinfo__head { display: grid; gap: 12px; }
.pinfo__cat { display: flex; gap: 8px; flex-wrap: wrap; }
.pinfo h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
.pinfo__lead { font-size: var(--fs-lg); color: var(--ink-2); }
.buybox { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox__price .price__now { font-size: 2.2rem; letter-spacing: -0.035em; }
.buybox__price .price__old { font-size: var(--fs-md); }
.buybox__note { font-size: var(--fs-xs); color: var(--muted); }
.buybox__actions { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.buybox__perks { display: grid; gap: 8px; font-size: var(--fs-sm); padding-top: 14px; border-top: 1px solid var(--line); }
.buybox__perks div { display: flex; gap: 10px; align-items: center; }
.buybox__perks .icon { color: var(--ok); }
.specs { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 46%; padding-right: 16px; }
.specs td { color: var(--ink); font-weight: 600; }
.ptabs { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); }
.prose { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 3px solid var(--sun); background: var(--sun-soft); border-radius: 0 12px 12px 0; }
.prose code { background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose strong { color: var(--ink); }
.box { background: var(--card); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.box h2 { font-size: 1.5rem; margin-bottom: 14px; }
.preview-banner { background: var(--sun); color: var(--sun-ink); font-weight: 650; font-size: var(--fs-sm); text-align: center; padding: 10px 16px; }
.hidden-banner { background: #3a2b00; color: #ffe6a8; font-size: var(--fs-sm); text-align: center; padding: 10px 16px; }

/* ==========================================================================
   Лайтбокс, тосты, плавающие элементы
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 14, 22, .94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; font-size: var(--fs-sm); color: #b8c6d3; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox__caption { text-align: center; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); color: #c8d4df; font-size: var(--fs-sm); }
.lightbox button { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

.admin-quickbar { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.admin-quickbar a { display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--solid); color: var(--on-solid); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); box-shadow: var(--shadow); }
.admin-quickbar a:hover { background: var(--brand); color: #fff; }

.mobile-cta { display: none; }
.reveal { animation: reveal .8s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.error-page__code { font-size: clamp(5rem, 14vw, 10rem); font-weight: 850; letter-spacing: -0.06em; color: var(--brand-soft); line-height: 1; -webkit-text-stroke: 2px var(--brand); }
.error-page__inner { display: grid; gap: 18px; justify-items: center; max-width: 520px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1720px) {
  .nav__extra { display: none; }
}
@media (max-width: 1600px) {
  .nav__contacts { display: none; }
}
@media (max-width: 1440px) {
  .header__inner { gap: 20px; }
  .nav a { padding: 10px 10px; }
  .nav a[aria-current="page"]::after { left: 10px; right: 10px; }
}
@media (max-width: 1320px) {
  .header__phone span { display: none; }
  .header__actions { gap: 12px; }
  .header__inner { gap: 14px; }
}
@media (max-width: 1180px) {
  .nav a { padding: 10px 7px; }
  .logo__sub { display: none; }
  .header__cta { padding-inline: 16px; }
  .nav a[aria-current="page"]::after { left: 7px; right: 7px; }
  .header__phone strong { font-size: 1rem; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .nav__minor { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: -1; }
  .hero__photo { aspect-ratio: 16 / 9; border-radius: 22px; }
  .hero__note { left: 14px; bottom: 14px; }
  .directions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .direction:last-child:nth-child(odd) .direction__img { aspect-ratio: 16 / 7; }
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg__stage-wrap { position: relative; top: 0; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantages, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .product, .ptabs { grid-template-columns: minmax(0, 1fr); }
  .pinfo { position: static; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 0.9688rem; }
  .topbar__info > span:not(:first-child) { display: none; }
  .hero__chip { display: none; }
  .header__phone { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: minmax(0, 1fr); }
  .advantages, .reviews { grid-template-columns: minmax(0, 1fr); }
  .contacts__cards { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cfg__types { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg__type { grid-auto-flow: column; justify-content: start; align-items: center; padding-inline: 14px; text-align: left; }
  .cfg__type svg { width: 24px; height: 24px; }
  .cfg__type:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cfg__stage { aspect-ratio: 1 / 1; }
  .cfg__toolbar { flex-direction: column; align-items: flex-start; }
  .buybox__actions { grid-template-columns: minmax(0, 1fr); }
  .gallery__nav { opacity: 1; width: 38px; height: 38px; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px); background: var(--glass);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; min-height: 46px; }
  body:has(.mobile-cta) { padding-bottom: 72px; }
  .admin-quickbar { bottom: 84px; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -56px; transform: none; }
}
@media (max-width: 480px) {
  .directions { grid-template-columns: minmax(0, 1fr); }
  .direction:last-child:nth-child(odd) .direction__img { aspect-ratio: 16 / 11; }
  .direction { min-height: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ---------- переключатель темы и мелочи для тёмной темы ---------- */
.theme-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: grid; place-items: center; flex: none; cursor: pointer; }
.theme-btn:hover { border-color: var(--solid); }
.theme-btn .icon { width: 20px; height: 20px; }
.theme-btn__sun { display: none; }
:root[data-theme="dark"] .theme-btn__sun { display: block; }
:root[data-theme="dark"] .theme-btn__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn__sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn__moon { display: none; }
}
/* чертёжные схемы и 3D-сцена остаются светлыми — так их проще читать */
:root[data-theme="dark"] .schema__svg { background: #e9eef1; }
:root[data-theme="dark"] img { filter: brightness(.94); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schema__svg { background: #e9eef1; }
  :root:not([data-theme="light"]) img { filter: brightness(.94); }
}

/* поле с ошибкой (например, неполный телефон) */
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }

/* фактура на образцах цвета: дерево — волокна, металлик — блик, камень — разводы */
.swatch--wood::after, .swatch--metallic::after, .swatch--metal::after, .swatch--stone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.swatch--wood::after { background: repeating-linear-gradient(100deg, rgba(0,0,0,.18) 0 2px, transparent 2px 5px, rgba(255,255,255,.08) 5px 6px, transparent 6px 9px); }
.swatch--metallic::after, .swatch--metal::after { background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 45%, rgba(0,0,0,.18) 80%); }
.swatch--stone::after { background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.35) 0 2px, transparent 3px), radial-gradient(circle at 65% 60%, rgba(0,0,0,.15) 0 3px, transparent 4px), linear-gradient(160deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%); }

.color-pick { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; }

/* согласие на обработку персональных данных */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.consent a { color: inherit; text-decoration: underline; }
.consent--dark { color: #a9bccd; }
.consent--dark a:hover { color: #fff; }

/* кнопка «Написать нам» */
.msg-fab { position: fixed; right: 18px; bottom: 18px; z-index: 58; display: grid; justify-items: end; gap: 10px; }
.msg-fab__btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: var(--fs-sm); box-shadow: 0 12px 30px -10px rgba(16, 32, 48, .55); transition: transform .2s var(--ease); }
.msg-fab__btn:hover { transform: translateY(-2px); }
.msg-fab__btn .icon { width: 22px; height: 22px; }
.msg-fab__close { display: none; }
.msg-fab.is-open .msg-fab__close { display: block; }
.msg-fab.is-open .msg-fab__open { display: none; }
.msg-fab__menu { display: grid; gap: 8px; background: var(--card); padding: 10px; border-radius: 18px; box-shadow: var(--shadow-lg); min-width: 220px; animation: fab-in .2s var(--ease); }
.msg-fab__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.msg-fab__item:hover { background: var(--paper); color: var(--ink); }
.msg-fab__item .icon { width: 22px; height: 22px; }
.msg-fab__item--tg .icon { color: #229ed9; }
.msg-fab__item--wa .icon { color: #25d366; }
.msg-fab__item--max .icon { color: #7a4cff; }
.msg-fab__item--vk .icon { color: #0077ff; }
.msg-fab__item--phone .icon { color: var(--brand); }
@keyframes fab-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 720px) {
  body:has(.mobile-cta) .msg-fab { bottom: 84px; }
  .msg-fab { right: 12px; }
  .msg-fab__btn { padding: 14px; }
  .msg-fab__btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .msg-fab__menu { animation: none; } }
