/* Каталог-шоурум SGM: светлые витрины и тёмно-синие полосы из логотипа, красный только на действиях, акции и цене.
   Структура и ритм fcspro.ru (капс-заголовки, плитки, бегущая строка), механики продаж kmfasad.ru (цены со скидкой, вкладки фактур, этапы, квиз). */
:root {
  --navy: #1e2533;      /* полосы, футер, тёмные плитки (из #232c3f логотипа) */
  --navy-2: #2a3245;    /* линии и подложки на тёмном */
  --red: #e63a35;       /* фирменный красный (#eb3f3b), кнопки и акцент */
  --red-ink: #c92f2a;   /* красный для текста и наведения */
  --paper: #ffffff;
  --mist: #f1f3f6;      /* холодный светлый фон витрин */
  --line: #dde2ea;
  --ink: #1b2130;
  --muted: #5f6878;
  --on-navy: #eef1f6;
  --on-navy-muted: #a3adbf;
  --ok: #2f7d4f;

  --f-display: "Geologica", "Onest", "Arial", sans-serif;
  --f-body: "Onest", "Segoe UI", "Arial", sans-serif;

  --t-hero: clamp(38px, 4.6vw, 66px);
  --t-h2: clamp(30px, 3.7vw, 54px);
  --t-h3: clamp(20px, 1.7vw, 26px);
  --t-lead: clamp(17px, 1.35vw, 20px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 12px;

  --wrap: 1280px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --sec: clamp(64px, 8vw, 120px);
  --r: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: calc(var(--wrap) + 64px); margin: 0 auto; padding-left: max(32px, var(--gut)); padding-right: max(32px, var(--gut-r)); }
@media (max-width: 640px) { .wrap { padding-left: var(--gut); padding-right: var(--gut-r); } }
.sec { padding-block: var(--sec); }
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-mist { background: var(--mist); }

.h1, .h2 { overflow-wrap: break-word; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.012em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h1 { font-size: var(--t-hero); }
.h2 { font-size: var(--t-h2); }
.h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-h3); line-height: 1.2; margin: 0; text-wrap: balance; }
.hl { color: var(--red); }
.lead { font-size: var(--t-lead); line-height: 1.5; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red); }
.band-navy .eyebrow { color: var(--on-navy-muted); }
.muted { color: var(--muted); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head > div { display: grid; gap: 18px; }
.sec-head p { margin: 0; max-width: 46ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* кнопки: красная с квадратной стрелкой как у fcspro */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-ink); }
.btn-arrow { padding-right: 6px; }
.btn-arrow .ar { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; color: var(--red); border-radius: 2px; transition: transform .2s; }
.btn-arrow:hover .ar { transform: translate(2px, -2px); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.band-navy .btn-line { color: #fff; border-color: rgba(255,255,255,.5); }
.band-navy .btn-line:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #111621; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* шапка */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.topbar { background: var(--mist); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; gap: 8px 28px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar .metro { display: inline-flex; gap: 6px; align-items: center; }
.topbar .metro b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.topbar .sp { margin-left: auto; }
@media (max-width: 900px) { .topbar { display: none; } }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.logo img { width: 168px; height: auto; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-color: var(--red); }
.head-r { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.phone { display: grid; text-decoration: none; line-height: 1.2; }
.phone b { font: 600 19px var(--f-display); letter-spacing: .01em; white-space: nowrap; }
.phone span { font-size: 12px; color: var(--muted); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: var(--r); }
@media (max-width: 1180px) { .nav { gap: 18px; font-size: 14px; } .head-r .btn { display: none; } }
@media (max-width: 1000px) { .nav { display: none; } .burger { display: grid; place-items: center; } .header .wrap { min-height: 64px; } .logo img { width: 140px; } }
@media (max-width: 520px) { .phone span { display: none; } .phone b { font-size: 16px; } .head-r { gap: 10px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--on-navy-muted); margin: 0 0 28px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs.light { color: var(--muted); }
.crumbs.light a:hover { color: var(--ink); }

/* первый экран */
.hero { padding-block: clamp(40px, 6vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero-side { display: grid; gap: 28px; padding-bottom: 6px; }
.hero-side .lead { color: var(--on-navy); }
.hero-offer { display: flex; gap: 16px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--navy-2); }
.hero-offer b { font: 600 clamp(40px, 4.2vw, 56px)/1 var(--f-display); color: var(--red); letter-spacing: -.02em; }
.hero-offer span { font-size: 15px; color: var(--on-navy); max-width: 22ch; line-height: 1.35; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-note { font-size: 12px; color: var(--on-navy-muted); margin: 0; }
.hero-photo { position: relative; margin: clamp(36px, 5vw, 64px) 0 0; }
.hero-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 58%; }
.hero-photo figcaption { position: absolute; left: max(32px, var(--gut)); bottom: 24px; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; max-width: calc(100% - 64px); background: var(--paper); color: var(--ink); padding: 14px 18px; font-size: 14px; }
.hero-photo figcaption b { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .h1 { font-size: clamp(28px, 8vw, 64px); } .hero-photo img { aspect-ratio: 4 / 3; } .hero-photo figcaption { position: static; max-width: none; } }

/* цифры */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { padding: 30px 24px 30px 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { font: 600 clamp(32px, 3.4vw, 48px)/1 var(--f-display); letter-spacing: -.02em; }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact, .fact + .fact { padding: 22px 16px 22px 0; border-left: 0; border-top: 1px solid var(--line); } .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } .fact:last-child { grid-column: 1 / -1; } }

/* бегущая строка */
.marquee { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 15px; }
.marquee-track { display: inline-flex; gap: 48px; padding-block: 15px; animation: run 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; background: #fff; transform: rotate(45deg); }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* фильтры каталога */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 40px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.chip small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] small { color: var(--on-navy-muted); }
.chips.brands .chip { border-radius: var(--r); font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.sort { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.sort select { min-height: 40px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; background: var(--paper); color: var(--ink); }
.count-line { font-size: 14px; color: var(--muted); }

/* карточка серии */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; min-width: 0; }
.card:hover { border-color: #c4cbd6; box-shadow: 0 14px 30px -18px rgba(30, 37, 51, .35); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-img.contain img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.card:hover .card-img img { transform: scale(1.03); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 8px; background: var(--paper); color: var(--ink); border-radius: 2px; }
.badge.sale { background: var(--red); color: #fff; }
.card-body { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 18px 18px 18px; min-width: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { font: 500 21px/1.15 var(--f-display); margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red-ink); }
.color-name { font-size: 13px; color: var(--muted); min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); position: relative; }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--ink); border-radius: 50%; }
.sw-more { font-size: 12px; color: var(--muted); align-self: center; padding-left: 2px; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 600 24px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.price small { font: 500 14px var(--f-body); color: var(--muted); }
.old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.card-actions .btn { min-height: 44px; font-size: 14px; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }

/* вкладки фактур */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1 0 auto; padding: 18px 22px; background: none; border: 0; border-bottom: 3px solid transparent; font: 500 17px var(--f-display); cursor: pointer; color: var(--muted); white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--red); }
.tex-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; background: var(--paper); margin-top: 24px; }
.tex-img { position: relative; min-height: 420px; background: var(--mist); }
.tex-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tex-strip { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tex-strip img { position: static; aspect-ratio: 4 / 3; height: auto; border: 3px solid var(--paper); }
.tex-body { padding: clamp(28px, 4vw, 56px); display: grid; gap: 24px; align-content: start; }
.tex-body p { margin: 0; }
.tex-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tex-stats div { background: var(--paper); padding: 16px 18px; display: grid; gap: 4px; }
.tex-stats b { font: 600 26px/1.1 var(--f-display); }
.tex-stats span { font-size: 13px; color: var(--muted); }
.tex-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .tex-panel { grid-template-columns: 1fr; } .tex-img { min-height: 300px; } }

/* выгоды: плитки как у fcspro */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { padding: clamp(22px, 2.4vw, 32px); display: grid; align-content: space-between; gap: 40px; min-height: 260px; background: var(--mist); position: relative; }
.tile .idx { position: absolute; top: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px); font-size: 13px; color: var(--red-ink); font-weight: 600; }
.tile p { margin: 0; font-size: 15px; color: var(--muted); max-width: 40ch; }
.tile.dark { background: var(--navy); color: var(--on-navy); }
.tile.dark p { color: var(--on-navy-muted); }
.tile.red { background: var(--red); color: #fff; }
.tile.red .btn { background: #fff; color: var(--ink); justify-self: start; }
.tile.photo { padding: 0; overflow: hidden; background: var(--navy); color: #fff; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tile.photo .in { position: relative; padding: clamp(22px, 2.4vw, 32px); display: grid; align-content: space-between; gap: 40px; height: 100%; }
.tile.photo p { color: #e3e7ee; }
.tile big { font: 600 clamp(44px, 4.6vw, 68px)/0.95 var(--f-display); letter-spacing: -.02em; display: block; }
.c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c6 { grid-column: span 6; }
@media (max-width: 960px) { .c7, .c5, .c4, .c3, .c6 { grid-column: span 6; } }
@media (max-width: 600px) { .c7, .c5, .c4, .c3, .c6 { grid-column: 1 / -1; } .tile { min-height: 200px; } }

/* этапы */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step { background: var(--paper); padding: 26px 22px 28px; display: grid; gap: 14px; align-content: start; border-top: 3px solid var(--navy); position: relative; }
.step::before { counter-increment: st; content: "0" counter(st); font: 600 44px/1 var(--f-display); color: var(--line); }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.step em { font-style: normal; font-size: 13px; color: var(--ink); background: var(--mist); padding: 8px 10px; }
.step:last-child { border-color: var(--red); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* квиз */
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px 64px; align-items: start; }
.calc-side { display: grid; gap: 24px; }
.calc-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.calc-side li { display: flex; gap: 12px; align-items: baseline; color: var(--on-navy); }
.calc-side li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); transform: translateY(-1px); }
.quiz { background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.bar { height: 3px; background: var(--mist); }
.bar i { display: block; height: 100%; background: var(--red); transition: width .3s; }
.q-title { font: 500 24px/1.2 var(--f-display); margin: 0; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; align-items: center; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.opt span:hover { border-color: var(--ink); }
@media (max-width: 640px) { .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.range { display: grid; gap: 10px; }
.range output { font: 600 40px/1 var(--f-display); }
.range input { width: 100%; accent-color: var(--red); }
.range .scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input { min-height: 52px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--paper); }
.field input:focus { border-color: var(--navy); outline: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 2px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.done { display: grid; gap: 10px; padding: 20px; background: var(--mist); border-left: 3px solid var(--ok); }
.done b { font: 600 20px var(--f-display); }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }

/* объекты */
.obj { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; align-items: stretch; }
.obj-photo { position: relative; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.obj-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.obj-info { display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.obj-info .h3 { font-size: clamp(22px, 2vw, 28px); }
.obj-cost { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); align-self: start; }
.obj-cost span { font-size: 13px; color: var(--muted); }
.obj-cost b { font: 600 clamp(30px, 3vw, 42px)/1 var(--f-display); }
.obj-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.obj-count { font: 600 22px var(--f-display); }
.obj-count span { color: var(--muted); font-weight: 400; }
.segs { display: flex; gap: 4px; flex: 1; min-width: 160px; }
.segs i { flex: 1; height: 2px; background: var(--line); }
.segs i.on { background: var(--red); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 56px; height: 56px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; border-radius: var(--r); }
.arrows button.next { background: var(--red); border-color: var(--red); color: #fff; }
.arrows button:hover { border-color: var(--ink); }
@media (max-width: 900px) { .obj { grid-template-columns: 1fr; } }

/* вопросы */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px 64px; }
.faq details { border-top: 1px solid var(--navy-2); }
.faq details:last-child { border-bottom: 1px solid var(--navy-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; cursor: pointer; font: 500 clamp(17px, 1.4vw, 20px)/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--on-navy-muted); max-width: 64ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* контакты */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office { background: var(--mist); padding: 26px; display: grid; gap: 10px; align-content: start; }
.office .metro { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.office .metro i { width: 10px; height: 10px; border-radius: 50%; }
.office b { font: 500 20px/1.25 var(--f-display); }
.office span { font-size: 14px; color: var(--muted); }
.contact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.contact-row div { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 4px; }
.contact-row span { font-size: 13px; color: var(--muted); }
.contact-row b { font-weight: 500; font-size: 17px; }
@media (max-width: 900px) { .offices, .contact-row { grid-template-columns: 1fr; } }

/* футер */
.footer { padding-block: 72px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--on-navy-muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-logo img { width: 180px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-2); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--on-navy-muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* окно заявки */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(17, 22, 33, .6); }
.modal-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; position: relative; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; line-height: 1; }
.modal-sub { margin: 0; color: var(--muted); font-size: 15px; }
.modal-pick { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--mist); font-size: 14px; }
.modal-pick i { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }

/* мобильная панель */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3); }
  .mbar .btn { min-height: 48px; }
  body { padding-bottom: 72px; }
}

.demo-note { font-size: 12px; color: var(--muted); }

/* карточка товара */
.pd-top { padding-block: 28px clamp(48px, 6vw, 88px); }
.pd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.pd-gal { display: grid; gap: 12px; min-width: 0; }
.pd-main { position: relative; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main.contain img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.pd-main .badges { top: 16px; left: 16px; }
.pd-main figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--paper); padding: 8px 12px; font-size: 13px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pd-thumbs button { aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: var(--mist); cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-buy { position: sticky; top: 104px; display: grid; gap: 22px; min-width: 0; }
.pd-brand { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--muted); }
.pd-brand b { font: 600 14px var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pd-h1 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.pd-h1 small { display: block; font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags span { font-size: 13px; padding: 5px 10px; background: var(--mist); }
.pd-color { display: grid; gap: 12px; }
.pd-color-name { font-size: 15px; }
.pd-color-name b { font-weight: 600; }
.pd-sw { display: grid; grid-template-columns: repeat(7, 40px); gap: 10px; }
.pd-sw .sw { width: 40px; height: 40px; }
@media (max-width: 400px) { .pd-sw { grid-template-columns: repeat(7, 36px); gap: 8px; } .pd-sw .sw { width: 36px; height: 36px; } }
.pd-price { display: grid; gap: 6px; padding-block: 18px; border-block: 1px solid var(--line); }
.pd-price .row { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.pd-price .price { font-size: clamp(36px, 3.4vw, 46px); }
.pd-price .badge { align-self: center; }
.pd-price p { margin: 0; font-size: 14px; color: var(--muted); }
.pd-calc { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 18px; align-items: end; }
.pd-calc .field input { min-height: 48px; }
.pd-calc output { display: grid; gap: 2px; font-size: 14px; color: var(--muted); padding-bottom: 4px; }
.pd-calc output b { font: 600 22px var(--f-display); color: var(--ink); }
.pd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-offer { background: var(--mist); padding: 18px 20px; display: grid; gap: 8px; font-size: 14px; }
.pd-offer b { font: 600 18px var(--f-display); }
.pd-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); }
.pd-offer li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--red); margin-right: 10px; transform: translateY(-2px); }
@media (max-width: 1000px) { .pd { grid-template-columns: 1fr; } .pd-buy { position: static; } }
@media (max-width: 480px) { .pd-btns, .pd-calc { grid-template-columns: 1fr; } .pd-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pd-thumbs button:nth-child(n+5) { display: none; } }

.pd-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); z-index: 30; background: var(--paper); border-block: 1px solid var(--line); }
.pd-nav .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.pd-nav a { padding: 16px 0; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.pd-nav a:hover { border-color: var(--red); }
@media (max-width: 1000px) { .pd-nav { top: calc(env(safe-area-inset-top, 0px) + 64px); } }

.pd-two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px 64px; }
@media (max-width: 900px) { .pd-two { grid-template-columns: 1fr; } }
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 16px; }
.specs dd { font-weight: 500; }
.prose { display: grid; gap: 16px; max-width: 64ch; }
.prose p { margin: 0; font-size: 17px; }
.vs { display: grid; border-top: 2px solid var(--ink); }
.vs-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.vs-row span:first-child { font-weight: 600; }
.vs-row span:last-child { color: var(--ink); }
.vs-row span:nth-child(2) { color: var(--muted); }
.vs-head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vs-head span { color: var(--muted) !important; font-weight: 600; }
@media (max-width: 560px) { .vs-row { grid-template-columns: 1fr; gap: 4px; } .vs-head { display: none; } }

.nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.node { background: var(--navy-2); padding: 28px; display: grid; gap: 16px; align-content: start; }
.node p { margin: 0; font-size: 15px; }
.node-do { color: var(--on-navy); }
.node-no { color: var(--on-navy-muted); padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.node-no b { color: #ff7a74; font-weight: 600; }
.node-do b { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .nodes { grid-template-columns: 1fr; } }

.case { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 56px; }
.case-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 460px; }
.case-photos img { width: 100%; height: 100%; object-fit: cover; }
.case-photos img:first-child { grid-row: span 2; }
.case-info { display: grid; gap: 22px; align-content: start; }
.case-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-sum div { background: var(--paper); padding: 16px 18px; display: grid; gap: 4px; }
.case-sum b { font: 600 24px/1.1 var(--f-display); }
.case-sum span { font-size: 13px; color: var(--muted); }
.case-sum .total { grid-column: 1 / -1; background: var(--navy); color: #fff; }
.case-sum .total span { color: var(--on-navy-muted); }
.case-sum .total b { font-size: 32px; }
.case-inc { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.case-inc li { font-size: 13px; padding: 6px 10px; background: var(--mist); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-photos { min-height: 320px; } }
.objs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.objs a { display: grid; gap: 12px; text-decoration: none; }
.objs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.objs b { font: 500 18px/1.25 var(--f-display); }
.objs span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .objs { grid-template-columns: 1fr !important; } }

.cta-band { background: var(--red); color: #fff; padding-block: clamp(40px, 5vw, 64px); }
.cta-in { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-in .h2 { font-size: clamp(26px, 3vw, 40px); max-width: 20ch; }
.cta-in .hero-cta { align-items: center; gap: 24px; }

/* ===== Доводка до рабочего сайта ===== */
html.lock { overflow: hidden; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.done.err { border-left-color: var(--red); }
.done a { color: inherit; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--ink); }
.contact-row a { text-decoration: none; color: inherit; }

/* мобильное меню */
.burger { cursor: pointer; color: var(--ink); }
.drawer { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 64px); overflow: auto; background: var(--paper); border-top: 1px solid var(--line); padding: 8px var(--gut-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gut); display: grid; align-content: start; gap: 28px; }
.drawer[hidden] { display: none; }
.drawer nav { display: grid; }
.drawer nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 20px var(--f-display); text-decoration: none; color: var(--ink); }
.drawer-foot { display: grid; gap: 18px; justify-items: start; }
.drawer-foot .phone b { font-size: 22px; }
.drawer-foot p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (min-width: 1001px) { .drawer { display: none !important; } }

/* страница 404 */
.nf { min-height: 60vh; display: grid; align-content: center; gap: 24px; padding-block: var(--sec); }
.nf big { font: 600 clamp(80px, 14vw, 180px)/1 var(--f-display); color: var(--red); }
.seo-list { grid-column: 1 / -1; columns: 3 260px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 2; }
