/* mebel.odk-perm.ru — третий сайт ООО «ОДК» после okna.odk-perm.ru и bytovki.odk-perm.ru, в том же стиле (вариант A «Светлый каталог»):
   Onest, красный и зелёный из логотипа. Основа взята из Bytovki_Site\src\site.css; своё для мебели — в конце файла. */
:root {
  --red: #AC3606; --red-dark: #8a2b05; --red-soft: #fbeee8; --green: #259D33;
  --ink: #1b1d20; --ink-2: #565b63; --line: #e2e5e9; --bg: #fff; --bg-2: #f4f5f7;
  --accent: var(--red); --accent-ink: #fff; --surface: #fff; --surface-2: #fff; --radius: 16px; --head: 'Onest', sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 'Onest', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }   /* height: auto — у <img> есть width/height от сборки */
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: clamp(64px, 8vw, 110px) 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 60ch; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font: 600 16px 'Onest', sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-main { background: var(--red); color: #fff; }
.btn-main:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.calc-total .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.calc-total .btn-ghost:hover { border-color: #fff; }

.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; }
.logo span { font-size: 13px; line-height: 1.25; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 10px 0; white-space: nowrap; }
/* 7 пунктов + номер + кнопка помещаются в строку от 1380 px; уже — номер прячем, «Рассчитать» остаётся */
@media (min-width: 1061px) and (max-width: 1500px) { .logo span { display: none; } }
@media (min-width: 1061px) and (max-width: 1380px) { .top .phone { display: none; } .nav { gap: 20px; } }
.nav a:hover { color: var(--red); }
.phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
/* Мобильное меню на <details>: работает и без JS (как на okna.odk-perm.ru) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu summary span::before, .menu summary span::after { content: ''; position: absolute; left: 0; }
.menu summary span::before { top: -6px; } .menu summary span::after { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.menu .panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(20,24,30,.14); padding: 10px; display: grid; }
.menu .panel a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu .panel a:hover { background: var(--bg-2); }
.menu .panel .tel { margin-top: 6px; background: var(--red); color: #fff; text-align: center; font-weight: 700; }
.menu .panel .tel:hover { background: var(--red-dark); }
@media (max-width: 1060px) { .nav { display: none; } .phone { margin-left: auto; } .menu { display: block; } }
@media (max-width: 700px) { .top .btn { display: none; } }
@media (max-width: 600px) {
  .logo span, .top .btn, .top .phone { display: none; } .menu { margin-left: auto; }
  .menu .panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}

/* Кнопка звонка на телефоне — появляется после первого экрана (site.js) */
.fab { display: none; }
@media (max-width: 700px) {
  .fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 25; right: 16px; bottom: 16px; padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px rgba(172,54,6,.35); transform: translateY(120px); opacity: 0; transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s; }
  .fab svg { width: 20px; height: 20px; }
  .fab.show { transform: none; opacity: 1; }
}

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); justify-content: start; }
.facts b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--ink-2); }
.hero-pic { position: relative; }
.hero-pic .tag { position: absolute; left: 6%; bottom: 8%; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.08); font-size: 14px; line-height: 1.35; }
.hero-pic .tag b { display: block; font-size: 16px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.type { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.type:hover { border-color: var(--red); box-shadow: 0 14px 34px rgba(0,0,0,.07); }
.type div { padding: 20px 22px 24px; }
.type h3 { font-size: 22px; }
.type p { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; }
.type .go { display: inline-block; margin-top: 14px; color: var(--red); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .types { grid-template-columns: 1fr; } .type { flex-direction: row; } .type .art { width: 42%; aspect-ratio: auto; flex: none; } }
@media (max-width: 520px) { .type { flex-direction: column; } .type .art { width: 100%; } }




#why { background: var(--bg-2); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.why div { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.why b { display: block; font-size: 32px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 14px; }
.why h3 { font-size: 18px; }
.why p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; list-style: none; padding: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; font-size: 15px; color: var(--ink-2); }
.steps li::before { content: "0" counter(s); display: block; font-weight: 800; color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 900px) { .why, .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why, .steps { grid-template-columns: 1fr; } }

.faq { max-width: 860px; margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 28px; font-weight: 300; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.big-phone { display: inline-block; font-size: clamp(30px, 4vw, 48px); font-weight: 800; text-decoration: none; margin-top: 18px; letter-spacing: -.02em; }
.big-phone:hover { color: var(--red); }
.contacts dl { margin: 26px 0 0; display: grid; grid-template-columns: 130px 1fr; gap: 10px 18px; font-size: 16px; }
.contacts dt { color: var(--ink-2); }
.contacts dd { margin: 0; }
.req { margin-top: 28px; background: var(--bg-2); border-radius: var(--radius); padding: 22px 24px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.req b { color: var(--ink); }
/* Карта — OpenStreetMap (как на okna.odk-perm.ru: без рекламы и чужих cookie), поверх — ссылка в Яндекс Карты */
.map { position: relative; min-height: 440px; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-open { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px 9px 10px; border-radius: 10px; box-shadow: 0 4px 16px rgba(20,24,30,.18); }
.map-open svg { width: 18px; height: 18px; color: #fc3f1d; }
.map-open:hover { color: var(--red); }
@media (max-width: 860px) { .contacts { grid-template-columns: minmax(0, 1fr); } .contacts dl { grid-template-columns: 1fr; gap: 2px; } .contacts dd { margin-bottom: 10px; } .map { min-height: 320px; } }

footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer a { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 700px) { footer { padding-bottom: 96px; } }   /* место под кнопку звонка */


/* Страница раздела */
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 8px; opacity: .6; }
.kind-hero { padding: 24px 0 clamp(48px, 6vw, 80px); background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.kind-hero .wrap > .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 22px; }
.kind-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; }
.kind-hero .pic { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kind-hero .pic img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.uses { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
@media (max-width: 860px) { .kind-hero .wrap > .grid { grid-template-columns: minmax(0, 1fr); } }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
@media (max-width: 700px) { .others { grid-template-columns: 1fr; } }

/* Тексты для людей и поиска: о производстве, страницы видов, цены */
.narrow { max-width: 860px; }
.seo-text h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 14px; }
.seo-text > h2:first-child, .seo-text > .eyebrow + h2 { margin-top: 0; }
.seo-text h3 { font-size: 20px; margin-bottom: 10px; }
.seo-text p, .seo-text li { color: var(--ink-2); }
.seo-text p + p { margin-top: 14px; }
.seo-text ul { margin: 12px 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.seo-text li b, .seo-text td b { color: var(--ink); }
.seo-text a { color: var(--red); }
.seo-text .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 26px; }
.seo-text .cols > div:last-child { background: var(--bg-2); border-radius: var(--radius); padding: 24px; }
.cities { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.cities li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14.5px; color: var(--ink); }
@media (max-width: 860px) { .seo-text .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* 404 */
.nf { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.nf b { display: block; font-size: clamp(80px, 14vw, 160px); line-height: 1; color: var(--red); font-weight: 800; }
.nf .lead { margin: 16px auto 28px; }
.nf .hero-cta { justify-content: center; }


/* Поля подбора (как в конструкторе бытовок) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input, .seg input, .checks input { position: absolute; opacity: 0; pointer-events: none; }
.swatches span { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.18); min-height: 36px; max-width: 48px; }
.swatches input:checked + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatches input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatches em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* подпись для экранного диктора */
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seg:first-of-type { margin-top: 0; }
.seg label { cursor: pointer; flex: 1 1 auto; }
.seg span, .checks span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 6px 10px; border-radius: calc(var(--radius) * .6); border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface-2); line-height: 1.25; }
.seg small, .checks small { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.seg input:checked + span, .checks input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.seg input:checked + span small, .checks input:checked + span small { color: inherit; opacity: .85; }
.seg input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checks label { cursor: pointer; position: relative; }
.ct-label { margin: 0; font-size: 14px; opacity: .75; }
.ct-sum { margin: 0; font: 800 40px/1 var(--head); letter-spacing: -.02em; }
.ct-lines { list-style: none; margin: 0; padding: 12px 0; border-block: 1px solid rgba(127,127,127,.3); display: grid; gap: 6px; font-size: 14px; }
.ct-lines li { display: flex; justify-content: space-between; gap: 12px; }
.ct-lines li.empty { opacity: .7; }
.ct-base, .ct-note { margin: 0; font-size: 12.5px; line-height: 1.5; opacity: .72; }
.calc-total .btn { justify-content: center; width: 100%; white-space: normal; text-align: center; }

/* ---------- Своё для мебели ---------- */
/* Рисунки вместо фото (своих фото работ пока нет — README): линии цветом текста, фасады — заливкой */
.art { color: var(--ink); }
.art svg { width: 100%; height: auto; display: block; }
.hero-pic .art { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(14px, 2vw, 26px); box-shadow: 0 30px 60px rgba(20,24,30,.06); }
.type .art { aspect-ratio: 16/10; background: var(--bg-2); padding: 18px 24px; display: grid; place-items: center; }
.type .art svg { max-height: 100%; }
.type ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.type li { font-size: 13.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }

/* Варианты на странице раздела: схема + описание */
.variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.variant { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.variant .art { background: var(--bg-2); padding: 16px 20px; aspect-ratio: 4/3; display: grid; place-items: center; }
.variant div:last-child { padding: 16px 18px 20px; }
.variant h3 { font-size: 18px; }
.variant p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 1000px) { .variants { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .variants { grid-template-columns: 1fr; } .variant { display: grid; grid-template-columns: 40% 1fr; } .variant .art { aspect-ratio: auto; padding: 10px; } }

/* Материалы */
.mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.mats div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.mats h3 { font-size: 18px; margin-bottom: 8px; }
.mats p { font-size: 15px; color: var(--ink-2); }
.chips { display: flex; gap: 6px; margin-bottom: 16px; }
.chips i { width: 30px; height: 30px; border-radius: 8px; background: var(--c); border: 1px solid rgba(0,0,0,.12); }
.mats-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 1000px) { .mats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mats { grid-template-columns: 1fr; } }

/* Группа компаний: окна и бытовки */
.group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.group a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .2s; }
.group a:hover { border-color: var(--red); }
.group b { font-size: 19px; display: block; }
.group span { color: var(--ink-2); font-size: 15px; }
.group em { font-style: normal; color: var(--red); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .group { grid-template-columns: 1fr; } }

/* ---------- Подбор: схема сверху, параметры, итог справа ---------- */
#calc { background: var(--bg-2); }
.calc { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "view total" "form total"; gap: 20px 28px; align-items: start; }
.calc-view { grid-area: view; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 18px; color: var(--ink-2); }
.type-seg { margin-bottom: 8px; }
.type-seg span { font-size: 16px; font-weight: 600; min-height: 46px; }
.calc-draw { display: grid; place-items: center; min-height: 220px; }
.calc-draw svg { width: 100%; max-height: 340px; height: auto; display: block; }
.calc-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-form > div[hidden] { display: none; }
.calc-form { grid-area: form; }
.calc-form fieldset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; background: var(--surface); min-width: 0; }
.calc-form fieldset.wide { grid-column: 1 / -1; }
.calc-form legend { font-weight: 700; font-size: 15px; padding: 0 6px; margin-left: -6px; color: var(--ink); }
.calc-form legend small { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.calc-form .checks { grid-template-columns: repeat(3, 1fr); }
.calc-form .seg + .seg { margin-top: 8px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.num { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--ink-2); }
.num[hidden] { display: none; }
.num span { grid-column: 1 / -1; }
.num input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .6); font: 600 17px var(--head); color: var(--ink); background: #fff; }
.num input:focus { border-color: var(--accent); outline: none; }
.num i { font-style: normal; }
.calc-form textarea { width: 100%; min-height: 110px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .6); font: 400 16px/1.5 var(--head); color: var(--ink); resize: vertical; }
.calc-form textarea:focus { border-color: var(--accent); outline: none; }
.calc-total { grid-area: total; position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.ct-sum { font-size: 28px; line-height: 1.15; }
.ct-lines b { text-align: right; font-weight: 600; }
.ct-lines span { opacity: .75; flex: none; }
.calc-nojs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-size: 17px; grid-column: 1 / -1; }
.calc-nojs b { font-size: 24px; display: block; margin-bottom: 6px; }
@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr; grid-template-areas: "view" "form" "total"; }
  .calc-total { position: static; }
  .calc-draw svg { max-height: min(34vh, 300px); }
}
@media (max-width: 720px) {
  .calc-form > div { grid-template-columns: minmax(0, 1fr); }
  .calc-form .checks { grid-template-columns: 1fr 1fr; }
  .calc-view { padding: 12px 10px 12px; }
}
@media (max-width: 440px) { .nums { grid-template-columns: 1fr 1fr; } .type-seg span { font-size: 15px; padding: 6px; } }

/* Как работаем: пять шагов, под ними — четыре довода */
.steps5 { grid-template-columns: repeat(5, 1fr); margin-top: 36px; }
#how .why { margin-top: 48px; }
#materials { background: var(--bg-2); }
@media (max-width: 1000px) { .steps5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .steps5 { grid-template-columns: 1fr; } }
.kind-hero .pic.art { padding: clamp(14px, 2vw, 24px); display: grid; place-items: center; }
.kind-hero .pic.art svg { max-height: 380px; }
/* Рисунок заполняет карточку целиком (viewBox сохраняет пропорции) */
.type .art, .variant .art { display: block; }
.type .art svg, .variant .art svg { width: 100%; height: 100%; max-height: none; }
@media (max-width: 520px) {
  .variant .art { min-height: 120px; }
  .facts b { font-size: 18px; }
  .facts span { font-size: 13px; }
}
/* Четыре раздела: на главной в ряд, на странице раздела — три других */
.types { grid-template-columns: repeat(4, 1fr); }
.type h3 { font-size: 20px; }
.others { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .others { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .types { grid-template-columns: 1fr; } }

/* Карточки разделов: одинаковая высота рисунка, «Подробнее» прижато к низу (28.10.2026 — было вразнобой) */
.types { align-items: stretch; }
.type .art { aspect-ratio: auto; height: 210px; padding: 24px 28px; }
.type-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.type-body p { margin-top: 8px; }
.type .go { margin-top: auto; padding-top: 16px; }
@media (max-width: 860px) { .type .art { height: auto; min-height: 150px; } }
@media (max-width: 520px) { .type .art { height: 190px; } }

/* ---------- Шапка (28.10.2026): крупнее логотип с подписью «Мебель на заказ», четыре раздела по центру,
   телефон с подписью, кнопка «Рассчитать». Перекрывает правила шапки из основы (сайт бытовок). */
.top .wrap { height: 80px; gap: 28px; }
.logo { gap: 14px; }
.logo img { height: 40px; }
.logo span { display: block; font-size: 13px; line-height: 1.2; color: var(--ink-2); border-left: 2px solid var(--red); padding-left: 14px; }
.logo span b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.nav { margin: 0 auto; gap: 30px; font-size: 16px; }
.nav a { color: var(--ink); position: relative; padding: 26px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.phone { display: grid; line-height: 1.15; font-size: 18px; }
.phone small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.top .btn { min-height: 46px; padding: 10px 24px; }
/* ширины, где всё не помещается: сначала прячем подпись телефона, потом подпись логотипа, потом сам телефон */
@media (min-width: 1061px) and (max-width: 1500px) { .logo span { display: block; } }
@media (min-width: 1061px) and (max-width: 1380px) { .top .phone { display: grid; } .nav { gap: 24px; } }
@media (min-width: 1061px) and (max-width: 1240px) { .logo span { display: none; } }
@media (min-width: 1061px) and (max-width: 1140px) { .top .phone { display: none; } }
@media (max-width: 1060px) { .top .wrap { height: 72px; } .phone { margin-left: auto; } }
@media (max-width: 600px) { .top .wrap { height: 64px; } .logo { gap: 10px; } .logo img { height: 32px; } .logo span { display: block; font-size: 11.5px; padding-left: 10px; } .logo span b { font-size: 15px; } }
@media (max-width: 340px) { .logo span { display: none; } }
/* Два телефона в шапке: мебельный крупно, офисный под ним мельче */
.top .phone { display: grid; gap: 1px; font-size: 17px; line-height: 1.2; }
.top .phone a { text-decoration: none; }
.top .phone a:hover { color: var(--red); }
.top .phone a + a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.menu .panel .tel-2 { margin-top: 0; background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.menu .panel .tel-2:hover { background: var(--bg-2); }
@media (max-width: 600px) { .top .phone { display: none; } .menu { margin-left: auto; } }   /* на телефоне номера — в меню и на кнопке звонка */

/* Телефоны (проверка check-devices.js 28.10.2026) */
@media (max-width: 600px) { .logo span { font-size: 12px; } }
@media (max-width: 700px) {
  .group a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .group em { white-space: normal; overflow-wrap: anywhere; }
}
.variant > div { min-width: 0; }
.variant h3, .type h3 { hyphens: auto; overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Мобильное меню: телефоны сверху (на 320×640 снизу они уходили за край), под ними — разделы */
.menu .panel .tel:first-child { margin-top: 0; }
.menu .panel .tel-2 { margin: 6px 0 8px; }
.menu .panel { max-height: calc(100vh - 80px); overflow-y: auto; }
.contacts dd b { color: var(--ink); }

/* ---------- Конструктор кухни (28.10.2026): модули вдоль стены, рисунок спереди, план формы в углу ---------- */
.calc-view { position: relative; }
.calc-plan { position: absolute; right: 14px; top: 76px; width: min(24%, 150px); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.calc-plan svg { width: 100%; height: auto; display: block; }
.calc-plan[hidden] { display: none; }
.mods { display: grid; gap: 6px; }
.mod { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px 36px 36px; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--surface-2); font-size: 15px; }
.mod b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod select { min-height: 36px; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: 500 15px var(--head); background: #fff; color: var(--ink); }
.mod button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; cursor: pointer; }
.mod button:hover:not(:disabled) { border-color: var(--accent); }
.mod button:disabled { opacity: .3; cursor: default; }
.mod button[data-del] { color: var(--red); }
.mod-sum { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.mod-sum.over { color: var(--red); font-weight: 600; }
.mod-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mod-add button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed var(--accent); background: #fff; color: var(--accent); font: 600 14px var(--head); cursor: pointer; }
.mod-add button:hover { background: var(--red-soft); }
.tops { margin-top: 10px; }
@media (max-width: 720px) {
  .calc-plan { position: static; width: 140px; margin: 8px auto 0; }
  .mod { grid-template-columns: minmax(0, 1fr) auto 36px 36px 36px; padding-left: 10px; font-size: 14px; }
}
@media (max-width: 440px) {
  .type-seg label { flex: 1 1 40%; }
  .mod { grid-template-columns: minmax(0, 1fr) 36px 36px 36px; }
  .mod b { grid-column: 1 / -1; white-space: normal; }
}
/* Стены угловой / П-образной кухни и остров — вкладки над списком модулей */
.wall-seg { margin: 0 0 10px; }
.wall-seg[hidden] { display: none; }
.wall-seg span { font-weight: 600; }
@media (min-width: 721px) { .calc-view.has-plan .calc-draw { padding-right: min(26%, 164px); } }
/* Шкаф: двери отъезжают по нажатию, на кухне шкафчики открываются; выбор секции и наполнения */
.draw-hint { margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.draw-hint span::before { content: '☝ '; }
.link-btn { margin-left: 10px; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); font: 600 14px var(--head); cursor: pointer; }
.link-btn:hover { background: var(--red-soft); }
@media (max-width: 520px) { .draw-hint { display: grid; justify-items: center; gap: 6px; } .link-btn { margin: 0; } }
.draw-hint[hidden] { display: none; }
.slide { animation: leafslide .5s cubic-bezier(.3, .7, .2, 1); }
@keyframes leafslide { from { transform: translateX(var(--dx)); } }
.swing { animation: swing .35s ease-out; }
@keyframes swing { from { transform: scaleX(5); } }
@media (prefers-reduced-motion: reduce) { .slide, .swing { animation: none; } }
[data-secs] .seg + .seg { margin-top: 10px; }
.checks.antres { grid-template-columns: auto; margin-top: 10px; justify-content: start; }

/* ---------- Шапка в две строки (28.10.2026) ----------
   Верхняя полоска (прокручивается): адрес офиса продаж, телефоны, окна и бытовки. Основная строка (прилипает):
   логотип, четыре раздела, кнопка «Конструктор». На планшете полоски нет — телефон в основной строке; на телефоне — меню. */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 38px; }
.topbar a { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--red); }
.topbar svg { width: 15px; height: 15px; color: var(--red); }
.tb-tel { display: flex; gap: 18px; margin-left: auto; }
.tb-tel b { color: var(--ink); font-weight: 700; }
.tb-group { display: flex; gap: 18px; padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 1060px) { .topbar { display: none; } }
.top .wrap { height: 76px; gap: 32px; }
.nav { margin: 0 auto; gap: clamp(22px, 2.6vw, 40px); }
.nav a { padding: 24px 0; }
.nav a::after { bottom: 16px; }
@media (min-width: 1061px) { .top .phone { display: none; } .logo span { display: block; } }
.btn-konstr svg { width: 18px; height: 18px; }
.btn-konstr[aria-current] { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
@media (min-width: 1061px) and (max-width: 1180px) { .logo span { display: none; } .nav { gap: 22px; } }
@media (max-width: 700px) { .top .btn-konstr { display: none; } }
@media (max-width: 1060px) { .top .wrap { gap: 18px; } }   /* iPad mini 768: логотип, телефоны, «Конструктор» и меню в одну строку */
/* Карта постоянной высоты: раньше растягивалась вслед за колонкой контактов уже после загрузки —
   OpenStreetMap внутри не перерисовывался (серые клетки снизу, метка не в центре) */
.contacts .map { height: 520px; min-height: 0; align-self: start; }
@media (max-width: 860px) { .contacts .map { height: 380px; } }

/* Преимущества на первом экране: значок в кружке, жирная строка, пояснение (вместо трёх крупных слов) */
.perks { list-style: none; padding: 26px 0 0; margin: 36px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); gap: 18px 28px; justify-content: start; }
.perks li { display: grid; grid-template-columns: 44px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.perks i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.perks svg { width: 22px; height: 22px; }
.perks b { font-size: 16px; line-height: 1.2; align-self: end; }
.perks span { font-size: 14px; color: var(--ink-2); line-height: 1.3; align-self: start; }
@media (max-width: 1100px) and (min-width: 901px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; gap: 14px; } }
/* на широком экране — значок над текстом, три равные колонки (рядом с текстом подписи ломались на 3–4 строки) */
@media (min-width: 641px) {
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks li { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; align-items: start; }
  .perks i { grid-row: auto; margin-bottom: 8px; }
}
@media (max-width: 1100px) and (min-width: 901px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 641px) { .perks b, .perks span { align-self: auto; } .perks b { white-space: nowrap; } }
@media (min-width: 641px) and (max-width: 1240px) { .perks { gap: 18px 16px; } .perks b { font-size: 15px; } .perks span { font-size: 13.5px; } }
/* значки преимуществ — маленькие картинки в стиле сайта на белой плитке */
.perks i { width: 72px; height: 72px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(20,24,30,.05); }
.perks svg { width: 54px; height: 54px; }
.perks li { grid-template-columns: 72px auto; column-gap: 14px; }
@media (min-width: 641px) { .perks li { grid-template-columns: 1fr; } .perks i { margin-bottom: 10px; } }
@media (max-width: 640px) { .perks i { width: 60px; height: 60px; border-radius: 15px; } .perks svg { width: 46px; height: 46px; } .perks li { grid-template-columns: 60px auto; } }
