/* TAUFIQ — сайт. Направление по референсам владельца (Cosentino, Orac Decor, WallTerra, Decocity):
   тёплая песочная гамма, фото как главный материал, тонкий спокойный шрифт, арки, тёмные кнопки-«пилюли».
   До фотосъёмки на местах фото — подписанные заглушки в нужных пропорциях. */
@font-face { font-family: 'Inter Display'; src: url('/fonts/inter-display-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --sand: #EEE8DF;
  --linen: #F7F3EE;
  --clay: #E3DACE;
  --ink: #26221E;
  --stone: #665D54;   /* второстепенный текст: контраст 5,3:1 к фону (было 3,4 — ниже нормы WCAG AA) */
  --line: #DAD0C3;
  --walnut: #6B4A33;
  --bad: #A4342A;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 18px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 'Inter', system-ui, sans-serif; font-feature-settings: 'cv11', 'ss03'; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; }
/* Заголовки: короткие, заглавными, средний вес. Заглавные быстрее читаются в коротких словах «с одного взгляда»,
   но мешают в длинном тексте — поэтому только крупные заголовки; подписи, кнопки и текст — обычным регистром. */
h1, h2, h3 { margin: 0; font-family: 'Inter Display', 'Inter', system-ui, sans-serif; font-weight: 500; line-height: 1.04; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.005em; }
.price b, .card-price, .arch-price, .planner-out .count, .planner-out .sum, .foot-phone { font-variant-numeric: tabular-nums; }
p { margin: 0; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--linen); padding: 10px 14px; z-index: 50; border-radius: 999px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 860px; }
.lead-text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--stone); max-width: 52ch; margin-top: 22px; line-height: 1.55; }

/* ---------- Кнопки, поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 28px; border-radius: 999px; border: 1px solid var(--ink); font: 500 16px/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn-dark { background: var(--ink); color: var(--linen); }
.btn-dark:hover { background: #3A342E; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--linen); }
.btn[disabled] { opacity: .55; cursor: progress; }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--stone); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--linen); color: var(--ink); font: 400 17px/1.3 'Inter', system-ui, sans-serif; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- Заглушки фото (до съёмки) ---------- */
.ph-label { position: absolute; left: 18px; bottom: 16px; font-size: 12px; color: rgba(38, 34, 30, .62); background: rgba(247, 243, 238, .78); padding: 5px 12px; border-radius: 999px; }

/* ---------- Шапка: меню слева, логотип по центру, действия справа ---------- */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 12px var(--gut); background: rgba(238, 232, 223, .92); backdrop-filter: blur(10px); }
.brand img { width: 74px; height: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); opacity: .8; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; }
.top-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lang { font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.lang:hover { background: var(--linen); }
.btn-wa { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger::before { top: 17px; } .burger::after { bottom: 17px; }
.burger[aria-expanded="true"]::before { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Главный экран: заголовок + «до / после» в арке ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(20px, 3vw, 36px) var(--gut) clamp(56px, 8vw, 110px); }
.meta-row { list-style: none; margin: 0 0 clamp(36px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); font-size: 13px; color: var(--stone); }
.meta-row li:nth-child(2) { text-align: center; } .meta-row li:nth-child(3) { text-align: right; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.ba { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--clay); isolation: isolate; }
.ba-pane { position: absolute; inset: 0; }
.ba-before { background: linear-gradient(180deg, #F4EFE8 0 88%, #DED3C5 88% 100%); }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-fill { position: absolute; inset: 0 0 12% 0; display: block; }
.ba-after::before { content: "";  position: absolute; inset: 88% 0 0 0; background: #DED3C5; }
.ba-fill::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(33.3% - 1px), rgba(255, 255, 255, .45) calc(33.3% - 1px) 33.3%); }
.ba .ph-label { bottom: 16%; }
.ba-after .ph-label { left: auto; right: 18px; }
.ba-tag { position: absolute; top: 34%; font-size: 13px; letter-spacing: .02em; color: var(--ink); background: rgba(247, 243, 238, .86); padding: 6px 14px; border-radius: 999px; z-index: 2; }
.ba-tag-l { left: 18px; } .ba-tag-r { right: 18px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--linen); z-index: 2; pointer-events: none; }
.ba-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--linen); color: var(--ink); display: grid; place-items: center; font-size: 16px; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(38, 34, 30, .18); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.ba:has(.ba-range:focus-visible) .ba-handle::after { outline: 2px solid var(--walnut); outline-offset: 3px; }

/* ---------- Секции ---------- */
.arches-sec, .calc-sec, .grid-sec, .steps-sec, .faq-sec, .cta-sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut); }
.sec-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { color: var(--stone); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; }
.calc-sec, .steps-sec { background: var(--linen); max-width: none; }
.calc-sec > *, .steps-sec > * { max-width: calc(var(--wrap) - 2 * var(--gut)); margin-inline: auto; }

/* Декоры в арках, внахлёст — как витрина образцов */
.arches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.arches li { margin-left: -12%; } .arches li:first-child { margin-left: 0; }
.arches li:nth-child(odd) { margin-top: 48px; }
.arches a { position: relative; display: block; text-decoration: none; }
.arch { display: block; aspect-ratio: 1150 / 2300; border-radius: 999px 999px 0 0; box-shadow: -14px 0 28px rgba(38, 34, 30, .12); transition: transform .35s ease; }
.arches a:hover .arch { transform: translateY(-10px); }
.arch-code, .arch-price { position: absolute; left: 22%; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.arch-code { top: 42%; font-size: 13px; }
.arch-price { top: calc(42% + 22px); font-size: 13px; opacity: .85; }

/* Карточки товаров */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card a { display: grid; gap: 6px; text-decoration: none; }
.card-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--linen); border-radius: var(--r); overflow: hidden; margin-bottom: 10px; }
.card-img .swatch { width: 38%; aspect-ratio: 1150 / 2900; border-radius: 3px; box-shadow: 10px 14px 24px rgba(38, 34, 30, .18); transition: transform .35s ease; }
.card a:hover .card-img .swatch { transform: translateY(-6px) rotate(-1.5deg); }
.card-name { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 500; }
.card-price { color: var(--ink); font-size: 16px; }
.card-price small { font-size: 13px; }
.cards-all { padding-block: 8px clamp(56px, 8vw, 110px); }

/* Образцы декоров: тон до съёмки (без нарисованной «фактуры») */
.swatch, .arch, .color, .ba-fill, .interior-wall { background: linear-gradient(160deg, hsl(var(--h) var(--s) calc(var(--l) + 6%)), hsl(var(--h) var(--s) calc(var(--l) - 6%))); }
.metal { background: linear-gradient(110deg, hsl(var(--h) var(--s) calc(var(--l) - 8%)), hsl(var(--h) var(--s) calc(var(--l) + 18%)) 45%, hsl(var(--h) var(--s) calc(var(--l) - 4%)) 60%, hsl(var(--h) var(--s) calc(var(--l) + 10%))); }

/* Калькулятор стены */
.planner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.planner-form { display: grid; gap: 26px; }
.planner-dims { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.planner-x { padding-bottom: 14px; color: var(--stone); }
.decors { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.decors legend { font-size: 13px; color: var(--stone); margin-bottom: 10px; padding: 0; }
.decor { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--sand); cursor: pointer; font-size: 14px; }
.decor input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.decor:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--linen); }
.decor:has(input:focus-visible) { outline: 2px solid var(--walnut); outline-offset: 3px; }
.chip { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.planner-wall { margin: 0; background: var(--sand); border-radius: var(--r); padding: clamp(16px, 2.6vw, 32px); }
.wall-svg { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.wall-svg .dim { stroke: var(--stone); stroke-width: 1; }
.wall-svg .dim-t { fill: var(--ink); font: 500 14px 'Inter', sans-serif; }
.wall-svg .floor { stroke: var(--stone); stroke-width: 1; }
.wall-svg .seam { stroke: var(--linen); stroke-width: 2; }
.wall-svg .edge { fill: none; stroke: none; }
.planner-out { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 4px 24px; }
.planner-out .count { grid-row: span 2; font-family: 'Inter Display', 'Inter', sans-serif; font-size: clamp(3.4rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.planner-out .count small { display: block; font-size: 1rem; letter-spacing: 0; margin-top: 10px; color: var(--stone); }
.planner-out .sum { font-size: 1.2rem; }
.planner-out .note { font-size: 14px; color: var(--stone); max-width: 46ch; }
.planner-out .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.planner-out .err { grid-column: 1 / -1; color: var(--bad); }
.planner.compact { margin-top: 26px; }

/* Как купить — реальная последовательность, поэтому с номерами */
.steps { list-style: none; counter-reset: s; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font-family: 'Inter Display', 'Inter', sans-serif; font-size: 3rem; font-weight: 400; line-height: 1; margin-bottom: 18px; }
.steps p { color: var(--stone); margin-top: 8px; font-size: 15px; }

/* Вопросы */
.faq { margin-top: 32px; max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; font-size: 1.15rem; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 250; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--stone); max-width: 70ch; }

/* Заявка */
.lead { background: var(--linen); border-radius: 28px; padding: clamp(24px, 4.5vw, 56px); display: grid; gap: 20px; max-width: 920px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead .field input, .lead .field textarea { background: var(--sand); }
.lead-consent { font-size: 13px; color: var(--stone); }
.lead-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-status:empty { display: none; }
.lead-status.ok { color: #2F5D46; font-size: 1.1rem; }
.lead-status.bad { color: var(--bad); }
.lead.sent .lead-row, .lead.sent .field, .lead.sent .lead-consent, .lead.sent button[type="submit"] { display: none; }

/* Отзывы: колонки как в журнале, размер цитаты зависит от длины, без одинаковых карточек */
.reviews-sec, .tips-sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut); }
.reviews { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: clamp(28px, 4vw, 56px); }
.rev { break-inside: avoid; display: grid; gap: 18px; padding: 28px 0 34px; border-top: 1px solid var(--line); }
.rev blockquote { margin: 0; position: relative; }
.rev blockquote::before { content: '“'; display: block; font: 500 64px/0.6 'Inter Display', 'Inter', sans-serif; color: var(--walnut); opacity: .55; margin-bottom: 14px; }
.rev blockquote p { color: var(--ink); text-wrap: pretty; }
.rev-xl blockquote p { font: 500 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 'Inter Display', 'Inter', sans-serif; letter-spacing: -0.01em; }
.rev-l blockquote p { font-size: 1.3rem; line-height: 1.4; }
.rev-m blockquote p { font-size: 1.08rem; line-height: 1.6; }
.rev-author { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.rev-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.rev-name { font-weight: 500; }
.rev-src { margin-left: auto; font-size: 13px; color: var(--stone); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.rev-src:hover { color: var(--ink); border-color: var(--ink); }
.reviews-sec .reviews { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.reviews-page { padding-block: 8px clamp(56px, 8vw, 110px); display: grid; gap: 36px; justify-items: start; }
.reviews-page .reviews { width: 100%; }

/* Советы */
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tips a { display: grid; gap: 12px; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: background .2s; }
.tips a:hover { background: var(--linen); }
.tips h3 { font-size: 1.3rem; line-height: 1.25; }
.tips p { color: var(--stone); }
.tips .link { font-weight: 500; text-decoration: underline; }
.tips-page { padding-block: 24px clamp(56px, 8vw, 110px); }
.article-h { font-size: clamp(2rem, 4vw, 3.2rem) !important; }
.updated { font-size: 13px; color: var(--stone); margin-top: 14px; }
.article-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.table { overflow-x: auto; margin: 18px 0; }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.table th { font-weight: 500; color: var(--stone); font-size: 14px; }
.table td { font-variant-numeric: tabular-nums; }

/* Расчёт */
.calc-page { padding-block: 16px 48px; }
.calc-page .planner-wall { background: var(--linen); }
.project { padding-block: 48px; border-top: 1px solid var(--line); }
.project > div { max-width: 720px; display: grid; gap: 16px; }
.project p { color: var(--stone); }
.who { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who legend { font-size: 13px; color: var(--stone); margin-bottom: 10px; padding: 0; }
.who label { position: relative; }
.who input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.who span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; }
.who input:checked + span { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.who input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 3px; }
.get { margin-top: 26px; }
.get .small-h { margin: 0 0 8px; }
.get p { color: var(--stone); max-width: 52ch; font-size: 15px; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-top: clamp(24px, 4vw, 56px); padding-bottom: 16px; }
.page-head.slim { padding-top: 18px; padding-bottom: 0; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.crumbs { display: flex; flex-wrap: wrap; font-size: 13px; color: var(--stone); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:not(:last-child)::after { content: '/'; margin: 0 10px; opacity: .5; }
.crumbs a:hover { text-decoration: underline; }
.filters { display: grid; gap: 12px; margin-top: 28px; }
.filters[hidden] { display: none; }
.fsearch input { width: 100%; max-width: 440px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--linen); font: 400 16px 'Inter', system-ui, sans-serif; color: var(--ink); }
.fsearch input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup:empty { display: none; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fchip span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); cursor: pointer; }
.fchip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--linen); }
.fchip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.fcount { margin: 0; font-size: 13px; color: var(--stone); }
.filters-empty { margin: 8px 0 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--stone); }
.filters-empty[hidden] { display: none; }
.cards li[hidden] { display: none; }
.card-stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #3F6B4A; }
.card-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3F8A55; }
.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--stone); }
.sorter button { min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: 400 14px 'Inter', system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.sorter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--linen); }
.cat-tiles { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; padding-block: 32px clamp(56px, 8vw, 110px); }
.cat-tile { display: grid; gap: 8px; text-decoration: none; background: var(--linen); border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.cat-strip { display: flex; height: clamp(160px, 22vw, 280px); overflow: hidden; padding-right: 8%; }
.cat-strip .arch { flex: 0 0 22%; height: 100%; aspect-ratio: auto; margin-left: -6%; box-shadow: -8px 0 18px rgba(38, 34, 30, .12); }
.cat-strip .arch:first-child { margin-left: 0; }
.cat-tile, .cat-other { min-width: 0; }
.cat-name { font-family: 'Inter Display', 'Inter', sans-serif; font-size: 2rem; font-weight: 500; text-transform: uppercase; margin-top: 18px; }
.cat-meta { color: var(--stone); }
.cat-other { align-self: start; display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 28px; }
.cat-other p { color: var(--stone); }

.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); padding-block: 8px 64px; align-items: start; }
.product-photo { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 6; background: var(--linen); border-radius: 28px; overflow: hidden; }
.product-photo .swatch.big { height: 86%; aspect-ratio: 1150 / 2900; border-radius: 3px; box-shadow: 18px 22px 40px rgba(38, 34, 30, .2); }
.small-h { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--stone); margin: 30px 0 14px; }
.colors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.colors a { display: grid; justify-items: center; gap: 6px; text-decoration: none; font-size: 12px; color: var(--stone); }
.colors .color { width: 52px; height: 52px; border-radius: 50%; transition: transform .2s; }
.colors a:hover .color { transform: scale(1.08); }
.product-info h1 { font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; }
.product-info h1 .kind { display: block; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--stone); margin-bottom: 14px; }
.price { margin-top: 26px; }
.price b { font-family: 'Inter Display', 'Inter', sans-serif; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price span { color: var(--stone); }
.price-m2 { color: var(--stone); font-size: 14px; margin-top: 2px; }
.desc { margin-top: 22px; color: var(--stone); max-width: 46ch; }
.specs { margin: 28px 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.specs div { padding: 16px 0 16px 18px; border-left: 1px solid var(--line); }
.specs div:first-child { padding-left: 0; border-left: 0; }
.specs dt { font-size: 13px; color: var(--stone); }
.specs dd { margin: 4px 0 0; font-size: 15px; }
.use { margin: 0 0 28px; font-size: 15px; }
.use span { color: var(--stone); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.interior-ph { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #F4EFE8; }
.interior-ph .interior-wall { position: absolute; inset: 0 30% 24% 0; display: block; }
.interior-ph::after { content: ''; position: absolute; inset: 76% 0 0 0; background: #D8CCBC; }
.product-calc { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.product-calc .planner-wall { background: var(--linen); }

.prose { padding-block: 12px 40px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: #4A443E; max-width: 68ch; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.points { list-style: none; padding: 0 !important; margin: 20px 0 0; display: grid; gap: 12px; }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--walnut); }
.prose ul.showrooms { list-style: none; padding: 0; margin: 20px 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.showrooms li { background: var(--linen); border: 1px solid var(--line); border-radius: 120px 120px 16px 16px; padding: 44px 24px 24px; display: grid; gap: 6px; text-align: center; }
.showrooms b { font-family: 'Inter Display', 'Inter', sans-serif; font-weight: 500; font-size: 20px; color: var(--ink); }
.showrooms span { color: var(--stone); font-size: 15px; }
.contacts { margin: 8px 0 18px; border-top: 1px solid var(--line); }
.contacts div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts dt { color: var(--stone); }
.contacts dd { margin: 0; }

/* ---------- Подвал ---------- */
.foot { background: var(--ink); color: #CFC6BB; margin-top: 40px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gut) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand img { width: 96px; height: auto; margin-bottom: 18px; }
.foot-nav, .foot-contacts { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-phone { font-family: 'Inter Display', 'Inter', sans-serif; font-size: 1.5rem; font-weight: 500; color: #F7F3EE; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gut) 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: #988D81; border-top: 1px solid #3A342E; }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards:not(.cards-all) li:nth-child(n+7) { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; }
  .brand { grid-row: 1; grid-column: 1; }
  .top-tools { grid-column: 2; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: var(--sand); border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ba { max-width: 520px; width: 100%; margin-inline: auto; }
  .planner, .product, .cat-tiles { grid-template-columns: minmax(0, 1fr); }
  .arches { grid-template-columns: repeat(5, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-wa { display: none; }
  .meta-row { grid-template-columns: 1fr 1fr; gap: 4px; }
  .meta-row li:nth-child(2) { text-align: right; } .meta-row li:nth-child(3) { display: none; }
  .hero-acts .btn { flex: 1 1 100%; }
  .arches li:nth-child(odd) { margin-top: 28px; }
  .arch-code { font-size: 11px; left: 26%; } .arch-price { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .cards:not(.cards-all) li:nth-child(n+5) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .reviews-sec .reviews { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
  .specs div:first-child { border-top: 0; }
  .contacts div { grid-template-columns: 1fr; gap: 2px; }
  .foot-in { grid-template-columns: 1fr; }
  .planner-out .count { font-size: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Панель «Позвонить / WhatsApp» на телефоне и окно согласия на cookies ---------- */
.mbar { display: none; }
.consent { position: fixed; z-index: 60; right: 16px; bottom: 16px; max-width: 460px; background: var(--linen); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: 0 12px 40px rgba(38, 34, 30, .14); font-size: 14px; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; color: var(--stone); }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }
@media (max-width: 900px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .btn-wa { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 243, 238, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
  .mbar .mbar-wa { background: var(--ink); color: var(--linen); }
  .consent { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
}

/* ---------- Настоящие фото из админки ---------- */
.card-img.has-photo img, .product-photo.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card a:hover .card-img.has-photo img { transform: scale(1.03); }
.card-img.has-photo img { transition: transform .35s ease; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; height: auto; }
.stock { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; color: #3F6B4A; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3F8A55; }

/* Фильтры каталога на телефоне: ряды кнопок листаются вбок, чтобы декоры были видны сразу */
@media (max-width: 560px) {
  .filters { gap: 10px; margin-top: 20px; }
  .fgroup, .sorter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  .fgroup::-webkit-scrollbar, .sorter::-webkit-scrollbar { display: none; }
  .fchip span, .sorter button { white-space: nowrap; min-height: 38px; padding: 6px 14px; font-size: 14px; }
  .sorter { margin-top: 6px; }
  .sorter span { flex: none; }
}
