/* Мастерская «Шестьсот» — Материалотека */
@property --fc { syntax: '<color>'; inherits: true; initial-value: #CFC3AE; }

:root {
  --bg: #EEEAE3;
  --surface: #F8F6F2;
  --surface-2: #E2DCD1;
  --dark: #2A221C;
  --text: #1E1C19;
  --muted: #67625A;
  --line: #D6CFC3;
  --accent: #1E4B39;
  --accent-h: #173C2D;
  --accent-ink: #F8F6F2;
  --accent-on-dark: #A9D3BE;
  --text-on-dark: #EEE7DC;
  --ff-d: "Tenor Sans", "Trebuchet MS", sans-serif;
  --ff-t: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1320px, calc(100% - 120px));
  --mod: calc(min(1320px, 100vw - 120px) / 12);
  --hdr: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec: 128px;
}
@media (max-width: 1100px) { :root { --wrap: calc(100% - 64px); --mod: calc((100vw - 64px) / 12); } }
@media (max-width: 767px) { :root { --wrap: calc(100% - 32px); --mod: calc((100vw - 32px) / 6); --hdr: 56px; --sec: 72px; } }
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--ff-t);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--ff-d); font-weight: 400; font-synthesis: none; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.m-only { display: none !important; }
@media (max-width: 767px) {
  body { font-size: 16px; }
  .m-only { display: inline-flex !important; }
  .d-only { display: none !important; }
}

.wrap { width: var(--wrap); margin-inline: auto; position: relative; }
.modgrid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(214,207,195,.55) 0) right / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(214,207,195,.55) 0 1px, transparent 1px calc(100% / 12));
}
@media (max-width: 767px) {
  .modgrid { background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(214,207,195,.55) 0) right / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(214,207,195,.55) 0 1px, transparent 1px calc(100% / 6)); }
}

/* типографика */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 12px/1.4 var(--ff-t); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; flex: none; }
h2 { font-size: 56px; line-height: 1.06; letter-spacing: -.01em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 34em; margin-top: 24px; }
@media (max-width: 1100px) { h2 { font-size: 40px; } }
@media (max-width: 767px) { h2 { font-size: 30px; line-height: 1.12; } .lead { font-size: 16px; margin-top: 16px; } }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 2px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--ff-t); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s var(--ease); flex: none; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--surface); }
.btn-wide { width: 100%; }
@media (max-width: 767px) { .btn { min-height: 48px; padding: 0 18px; } }
.tbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; font: 600 15px/1.35 var(--ff-t); color: var(--text); text-align: left;
}
.tbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tbtn-u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tbtn-m { font-weight: 400; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 14px; }
.tlink { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; min-height: 44px; align-items: center; }
.inl { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; cursor: pointer; border-radius: 2px; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(238,234,227,.94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 32px; height: var(--hdr); }
.logo { display: inline-grid; justify-items: stretch; align-content: center; min-height: 44px; text-decoration: none; color: var(--text); gap: 3px; }
.logo-word { font: 400 20px/1 var(--ff-d); letter-spacing: .12em; font-synthesis: none; margin-right: -.12em; }
.logo-dim { width: 100%; height: 7px; display: block; }
.logo-dim path { stroke: currentColor; stroke-width: 1; fill: none; opacity: .7; }
.logo-sub { font: 400 12px/1.2 var(--ff-t); color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent); }
.hdr-contact { display: grid; line-height: 1.2; text-align: right; }
.hdr-phone { font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.hdr-hours { font-size: 12px; color: var(--muted); }
.hdr-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hdr-icon { order: 1; } .hdr-cta { order: 2; } .hdr-menu { order: 3; }
/* круглая трубка и кнопка меню: трубка вместо номера до 1240, меню вместо навигации до 1023 */
.hdr-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--text); align-items: center; justify-content: center; transition: background .2s, color .2s; }
.hdr-icon:hover { background: var(--text); color: var(--surface); }
.hdr-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hdr-menu { min-height: 44px; padding: 0 16px; background: var(--text); color: var(--surface); border: 0; border-radius: 22px; font-weight: 600; font-size: 15px; cursor: pointer; align-items: center; }
@media (max-width: 1240px) {
  .hdr-contact { display: none; } .nav { gap: 20px; }
  .hdr-in { gap: 16px; }
  .hdr-icon.m-only { display: inline-flex !important; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .hdr-icon { margin-left: auto; }
  .hdr-menu.m-only { display: inline-flex !important; }
  .hdr .mmenu { padding-inline: 32px; }
}
@media (max-width: 767px) {
  .hdr-in { gap: 8px; }
  .hdr-cta { display: none; }
  .logo-word { font-size: 17px; }
  .logo-sub { font-size: 11px; }
  .hdr .mmenu { padding-inline: 16px; }
}
.mmenu { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: 0 20px 40px rgba(42,34,28,.14); }
.mmenu-top { display: flex; align-items: center; justify-content: space-between; }
.mmenu-t { font: 600 12px/1 var(--ff-t); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mmenu nav { display: grid; margin: 4px 0 16px; }
.mmenu nav a { font: 400 26px/1.2 var(--ff-d); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mmenu nav a.is-active { color: var(--accent); }
.mmenu-phone { display: block; text-align: center; padding: 14px 0 0; font-weight: 600; text-decoration: none; }

/* первый экран */
.hero { position: relative; }
.hero-in { display: grid; grid-template-columns: repeat(12, 1fr); min-height: calc(100svh - var(--hdr) - 36px); max-height: 940px; }
.hero-text { grid-column: 1 / span 6; position: relative; z-index: 1; padding: 56px 12px 40px; display: flex; flex-direction: column; justify-content: center; }
.dim600 { position: absolute; top: 28px; left: 0; width: var(--mod); display: grid; justify-items: center; color: var(--muted); }
.dim600 svg { width: 100%; height: 9px; }
.dim600 path { stroke: currentColor; fill: none; stroke-width: 1; }
.dim600 span { font-size: 11px; line-height: 1; margin-top: 4px; letter-spacing: .06em; }
.hero h1 { font-size: clamp(56px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero-sub { margin-top: 28px; max-width: calc(var(--mod) * 5 - 24px); font-size: 19px; line-height: 1.55; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.facts li { padding: 2px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; max-width: 236px; }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font: 400 18px/1.25 var(--ff-d); font-synthesis: none; white-space: nowrap; }
.facts span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.hero-photo { grid-column: 7 / span 6; margin: 0; position: relative; padding: 12px 0 12px 12px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
/* подпись фото — карточка с планом этой кухни, как в расчёте */
.hcard { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 18px; background: var(--surface); padding: 14px 20px 14px 14px; max-width: calc(100% - 48px); box-shadow: 0 18px 40px rgba(42,34,28,.16); }
.hc-plan { width: 132px; height: 104px; flex: none; overflow: visible; }
.hc-dim { stroke: var(--muted); stroke-width: .8; fill: none; }
.hc-dt { font: 600 8.5px var(--ff-t); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.hc-mod { fill: #1E4B39; stroke: #B3A999; stroke-width: .8; }
.hc-sep { stroke: rgba(248,246,242,.35); stroke-width: .8; fill: none; }
.hc-wall { stroke: var(--text); stroke-width: 4; fill: none; stroke-linecap: square; }
.hc-txt { display: grid; gap: 2px; font-size: 13px; line-height: 1.35; }
.hc-t { font-weight: 600; font-size: 15px; }
.hc-s { color: var(--muted); }
.hc-p { font: 400 24px/1.2 var(--ff-d); font-synthesis: none; margin-top: 4px; }
.hc-p small { font: 400 12px var(--ff-t); color: var(--muted); }
.hc-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; justify-self: start; margin: -8px 0 -12px; }
/* план рисуется при загрузке */
html.js .hc-wall, html.js .hc-dim { stroke-dasharray: 260; stroke-dashoffset: 260; animation: hcDraw 1.4s .5s var(--ease) forwards; }
html.js .hc-mod, html.js .hc-sep, html.js .hc-dt { opacity: 0; animation: hcFade .6s 1.3s var(--ease) forwards; }
@keyframes hcDraw { to { stroke-dashoffset: 0; } }
@keyframes hcFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.js .hc-wall, html.js .hc-dim { animation: none; stroke-dashoffset: 0; }
  html.js .hc-mod, html.js .hc-sep, html.js .hc-dt { animation: none; opacity: 1; }
}
/* фото уходит под обрез справа */
@media (min-width: 768px) {
  .hero-photo { padding: 0 0 0 12px; margin-right: calc(-1 * var(--bleed, 32px)); }
}
@media (min-width: 1101px) { .hero-photo { --bleed: calc((100vw - min(1320px, 100vw - 120px)) / 2); } }
@media (max-width: 1100px) {
  .hero-text { grid-column: 1 / span 7; }
  .hero-photo { grid-column: 8 / span 5; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .facts li { border-left: 0; padding: 0; }
  .hcard { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hc-plan { width: 100px; height: 79px; }
}
/* планшет: в кадре фасады и столешница, а не только полки; карточка компактнее */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-photo img { object-position: 72% 50%; }
  .hcard { left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 12px 14px; }
  .hc-plan { width: 80px; height: 63px; }
  .hc-s { display: none; }
  .hc-p { font-size: 22px; }
}
@media (max-width: 767px) {
  .hero-in { grid-template-columns: repeat(6, 1fr); min-height: 0; max-height: none; }
  .hero-text { grid-column: 1 / -1; padding: 28px 0 28px; }
  .dim600 { display: none; }
  .hero h1 { font-size: 38px; line-height: 1.08; }
  .hero h1 em { display: inline; }
  .hero-sub { margin-top: 16px; font-size: 16px; max-width: none; }
  .hero-btns { margin-top: 22px; gap: 4px; }
  .hero-btns .btn-primary { width: 100%; }
  .hero-btns .btn-ghost { display: none; }
  .facts { margin-top: 20px; gap: 0; border-top: 1px solid var(--line); }
  .facts li { grid-template-columns: 170px 1fr; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); max-width: none; }
  .facts b { font-size: 16px; white-space: nowrap; }
  .facts span { font-size: 13px; }
  .hero-photo { grid-column: 1 / -1; padding: 0; aspect-ratio: 4 / 5; }
  .hcard { left: 10px; bottom: 10px; max-width: calc(100% - 20px); flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; }
  .hc-plan { width: 76px; height: 60px; }
  .hc-t { font-size: 14px; }
  .hc-s { font-size: 12px; }
  .hc-p { font-size: 20px; margin-top: 2px; }
}

/* секции */
.sec { padding: var(--sec) 0; position: relative; }
.sec-alt { background: var(--surface-2); }
.sec-dark { background: var(--dark); color: var(--text-on-dark); }
.sec-dark .eyebrow { color: var(--text-on-dark); }
.sec-head { max-width: calc(var(--mod) * 8); padding-inline: 12px; margin-bottom: 64px; position: relative; z-index: 1; }
@media (max-width: 767px) { .sec-head { padding-inline: 0; margin-bottom: 36px; max-width: none; } }

/* reveal */
html.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }

/* КОНФИГУРАТОР */
.cfg-sec { background: var(--bg); border-top: 1px solid var(--line); }
.nojs { display: none; position: relative; z-index: 1; padding: 24px; background: var(--surface); max-width: 720px; margin: 0 12px; }
html:not(.js) .nojs { display: block; }
html:not(.js) .cfg { display: none; }
.cfg { display: grid; grid-template-columns: repeat(12, 1fr); position: relative; z-index: 1; align-items: start; scroll-margin-top: 16px; }
@media (min-width: 1024px) {
  .cfg-sec { padding-top: 96px; }
  .cfg-sec .sec-head { max-width: none; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; margin-bottom: 40px; padding-inline: 0; }
  .cfg-sec .sec-head .eyebrow, .cfg-sec .sec-head h2 { grid-column: 1 / span 7; padding-inline: 12px; }
  .cfg-sec .sec-head .lead { grid-column: 8 / span 5; grid-row: 2; margin-top: 0; padding-inline: 12px; }
}
.cfg-left { grid-column: 1 / span 7; padding: 0 12px; position: sticky; top: var(--stick, 88px); }
.cfg-right { grid-column: 8 / span 5; padding: 0 12px; display: grid; gap: 36px; }
.scheme { background: var(--surface); border: 1px solid var(--line); position: relative; }
#schemeSvg { display: block; width: 100%; height: 380px; }
.scheme-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.scheme-legend { display: inline-flex; align-items: center; gap: 6px; }
.scheme-legend i { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--muted); }
.lg-mod { background: var(--fc); margin-left: 0; }
.lg-dob { margin-left: 10px; background: repeating-linear-gradient(45deg, var(--muted) 0 1px, transparent 1px 4px); }
.scheme-warn { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }

/* svg-схема: толщины и кегли задаются атрибутами в масштабе схемы */
.scheme { transition: --fc .25s; }
.s-grid { stroke: var(--line); opacity: .6; }
.s-wall { stroke: var(--text); stroke-linecap: square; fill: none; }
.s-mod { fill: var(--fc); stroke: #B3A999; }
.is-veneer .s-mod, .is-veneer .s-island { fill: url(#pVeneer); }
.s-sym { fill: none; stroke: rgba(30,28,25,.55); }
.s-dark .s-sym { stroke: rgba(248,246,242,.7); }
.s-lbl { font-family: var(--ff-t); font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-linejoin: round; }
.s-dim { stroke: var(--muted); fill: none; }
.s-dimt { font-family: var(--ff-t); fill: var(--muted); font-variant-numeric: tabular-nums; }
.s-dob .dob-f { fill: url(#pHatch); stroke: #B3A999; }
.s-dob .dob-t { opacity: 0; transition: opacity .15s; pointer-events: none; }
.s-dob:hover .dob-t, .s-dob:focus .dob-t { opacity: 1; }
.s-dob { cursor: help; outline: none; }
.s-dob:focus-visible .dob-f { stroke: var(--text); }
.s-pass { stroke: var(--muted); fill: none; }
.s-pass-t { font-family: var(--ff-t); fill: var(--muted); }
.s-pass-t.tight { fill: var(--text); font-weight: 600; }
.s-island { fill: var(--fc); stroke: #B3A999; }
.s-enter { animation: sEnter .4s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes sEnter { from { opacity: 0; transform: scale(.85); } }
.s-fade { animation: sFade .3s var(--ease) both; }
@keyframes sFade { from { opacity: .35; } }

/* блок цены */
.price { background: var(--surface); border: 1px solid var(--line); border-top: 0; padding: 28px 28px 24px; }
.price-top { display: none; }
.price-lbl { font: 600 12px/1.4 var(--ff-t); letter-spacing: .12em; text-transform: uppercase; }
.price-val { font: 400 44px/1.1 var(--ff-d); color: var(--accent); margin-top: 6px; white-space: nowrap; display: flex; font-synthesis: none; }
.pv-c { display: inline-block; white-space: pre; }
.price-val { --dh: 1.1em; }
.pv-d { display: inline-block; height: var(--dh); overflow: hidden; position: relative; }
.pv-col { display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.pv-col span { height: var(--dh); line-height: var(--dh); display: block; text-align: center; }
.pv-sp { display: inline-block; width: .22em; }
.pv-d, .pv-c, .pv-sp { flex: none; }
.price-incl { margin-top: 8px; font-size: 15px; color: var(--muted); }
.bd { margin-top: 20px; border-top: 1px solid var(--line); }
.bd summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 15px; }
.bd summary::-webkit-details-marker { display: none; }
.bd summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
.bd[open] summary svg { transform: rotate(180deg); }
.bd-list { list-style: none; margin: 0; padding: 0 0 8px; }
.bd-list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.4; }
.bd-list li span:last-child { white-space: nowrap; font-weight: 600; }
.price-days { margin-top: 14px; font-size: 15px; font-weight: 600; }
.price-note { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.price-cta { margin-top: 22px; display: grid; justify-items: start; gap: 2px; }
.price-cta-row { display: flex; width: 100%; gap: 8px; }
.price-go { flex: 1; }
.price-go .m-lbl { display: none; }
.price-toggle { display: none; }
.price-small { font-size: 13px; color: var(--muted); margin: 10px 0 6px; }

/* группы управления */
.grp-t { font: 600 12px/1.4 var(--ff-t); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.grp-t::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-b { position: relative; display: grid; gap: 6px; height: 100%; background: var(--surface); border: 1px solid var(--line); padding: 12px 12px; border-radius: 2px; transition: border-color .2s; }
.opt:hover .opt-b { border-color: #B9AFA0; }
.opt input:checked + .opt-b { border: 2px solid var(--accent); padding: 11px; }
.opt input:checked + .opt-b::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.opt input:focus-visible + .opt-b { outline: 2px solid var(--text); outline-offset: 3px; }
.opt input:disabled + .opt-b { opacity: .45; cursor: not-allowed; }
.shape-b { justify-items: center; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 14px 6px 10px; min-height: 84px; }
.opt input:checked + .shape-b { padding: 13px 5px 9px; }
.shape-b svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dim-row { padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.dim-row + .dim-row { margin-top: 6px; }
.dim-top { display: flex; align-items: center; gap: 8px; }
.dim-l { flex: 1; font-size: 15px; }
.step { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 2px; cursor: pointer; display: grid; place-items: center; }
.step svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.step:hover:not(:disabled) { border-color: var(--text); }
.step:disabled { opacity: .35; cursor: not-allowed; }
.dim-v { font: 400 22px/1 var(--ff-d); min-width: 78px; text-align: center; font-synthesis: none; }
.range { width: 100%; margin: 2px 0 -8px; height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--text) var(--p, 50%), var(--line) 0); }
.range::-moz-range-track { height: 2px; background: var(--line); }
.range::-moz-range-progress { height: 2px; background: var(--text); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--text); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--text); }
.dim-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.isl-seg { margin-top: 10px; margin-bottom: 16px; }
.isl-seg .isl-l { font-size: 15px; display: block; margin-bottom: 8px; }
.isl-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.isl-opts .opt-b { text-align: center; font-weight: 600; font-size: 15px; min-height: 44px; place-items: center; padding: 8px; }
.isl-opts .opt input:checked + .opt-b { padding: 7px; }
.isl-hint { font-size: 13px; color: var(--text); margin-top: 8px; }

/* веер фасадов */
.fan { display: flex; align-items: flex-end; padding: 22px 0 0 26px; height: 240px; }
.fan-g { display: flex; align-items: flex-end; }
.fan-g + .fan-g { margin-left: 4px; }
.sw { position: relative; width: 56px; height: 200px; margin-left: -14px; cursor: pointer; transform-origin: bottom center; transform: rotate(calc(var(--i) * 3deg)); transition: transform .18s var(--ease); }
.fan-g:first-child .sw:first-child { margin-left: 0; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.sw-face { position: absolute; inset: 0; border-radius: 3px 3px 1px 1px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(30,28,25,.12); transition: transform .18s var(--ease), box-shadow .18s; }
.sw-n { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(30,28,25,.7); white-space: nowrap; pointer-events: none; }
.sw.dk .sw-n { color: rgba(248,246,242,.85); }
.sw:hover .sw-face, .sw input:focus-visible ~ .sw-face { transform: translateY(-10px); }
.sw input:focus-visible ~ .sw-face { outline: 2px solid var(--text); outline-offset: 2px; }
.sw.is-on { transform: rotate(0deg); z-index: 3; }
.sw.is-on .sw-face { transform: translateY(-16px); box-shadow: inset 0 0 0 1px rgba(30,28,25,.12), 0 8px 16px rgba(42,34,28,.18); }
/* узкая правая колонка сразу после 1100 px: выкраски чуть уже, чтобы веер не вылезал */
@media (min-width: 1101px) and (max-width: 1220px) { .sw { width: 50px; } }
.fan-cap { margin-top: 16px; font-size: 15px; line-height: 1.45; }
.fan-cap b { font-weight: 600; }

/* карточки столешница/фурнитура */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cards3 { grid-template-columns: 1fr; }
.card-b { padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.opt input:checked + .card-b { padding: 13px 15px; }
.card-b b { font-size: 15px; font-weight: 600; padding-right: 14px; }
.card-p { font-weight: 600; font-size: 14px; }
.card-n { color: var(--muted); font-size: 13px; }
.card-x { font-size: 12px; color: var(--text); border-top: 1px dashed var(--line); padding-top: 6px; }

@media (max-width: 1100px) {
  .cfg-left { grid-column: 1 / span 6; }
  .cfg-right { grid-column: 7 / span 6; }
  .price-val { font-size: 36px; }
}
/* до 1023 px (планшет и телефон) — одна колонка, цена липнет к низу экрана */
@media (max-width: 1023px) {
  .cfg { --gut: 32px; display: flex; flex-direction: column; align-items: stretch; }
  .cfg-left, .cfg-right { padding: 0; position: static; }
  .cfg-left { display: contents; }
  .scheme { order: 1; }
  .cfg-right { order: 2; margin-top: 28px; gap: 30px; }
  .price { order: 3; }

  /* липкий блок цены */
  .price { position: sticky; bottom: 0; z-index: 30; margin: 28px 0 0 calc(-1 * var(--gut)); width: calc(100% + 2 * var(--gut)); border: 0; border-top: 1px solid var(--line); padding: 5px var(--gut) calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(42,34,28,.08); }
  .price-lbl, .price-incl, .price-more, .price-small, .price-cta > .tbtn { display: none; }
  .price-val { font-size: 30px; margin: 0; line-height: 1; --dh: 1em; }
  .price-cta { margin-top: 4px; }
  .price-go { min-height: 44px; white-space: nowrap; }
  .price-go .d-lbl { display: none; }
  .price-go .m-lbl { display: inline; }
  .price-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--text); background: transparent; border-radius: 2px; font-weight: 600; font-size: 14px; cursor: pointer; }
  .price-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .price.is-open { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; padding-top: 0; }
  .price.is-open .price-top { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); font-weight: 600; font-size: 15px; }
  .price.is-open .price-lbl, .price.is-open .price-incl, .price.is-open .price-small, .price.is-open .price-cta > .tbtn { display: block; }
  .price.is-open .price-cta > .tbtn { display: inline-flex; }
  .price.is-open .price-lbl { margin-top: 12px; }
  .price.is-open .price-more { display: block; }
  .price.is-open .bd summary { display: none; }
  .price.is-open .bd { margin-top: 12px; }
  .price.is-open .price-toggle { display: none; }
}
/* планшет: схема на всю ширину, веер крупнее, в липкой панели цена слева, кнопки справа */
@media (min-width: 768px) and (max-width: 1023px) {
  #schemeSvg { height: 420px; }
  .fan { height: 280px; padding-left: 36px; }
  .sw { width: 78px; height: 236px; margin-left: -12px; }
  .sw-n { font-size: 12px; bottom: 14px; }
  .price:not(.is-open) { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .price:not(.is-open) .price-main { flex: 1; min-width: 0; }
  .price:not(.is-open) .price-lbl { display: block; font-size: 11px; margin-bottom: 6px; color: var(--muted); }
  .price:not(.is-open) .price-cta { margin-top: 0; flex: none; }
  .price:not(.is-open) .price-go { flex: none; padding: 0 22px; }
  .price-val { font-size: 32px; }
}
@media (max-width: 767px) {
  .cfg { --gut: 16px; }
  #schemeSvg { height: 240px; }
  .scheme-cap { padding: 8px 12px; }
  .shapes { grid-template-columns: repeat(2, 1fr); }
  .shape-b { grid-template-columns: 32px 1fr; justify-items: start; text-align: left; align-items: center; min-height: 56px; padding: 8px 12px; }
  .opt input:checked + .shape-b { padding: 7px 11px; }
  .fan { height: 150px; padding: 20px 0 0; justify-content: space-between; }
  .fan-g { gap: 5px; }
  .fan-g + .fan-g { margin-left: 5px; }
  /* 8 выкрасок, 4 зазора в группах и 3 между группами по 5 px — ширина от экрана, не больше 40 px */
  .sw { width: min(40px, calc((100vw - 2 * var(--gut) - 35px) / 8)); height: 120px; margin-left: 0; transform: none; }
  .sw.is-on { transform: none; }
  .sw-n { font-size: 10px; bottom: 6px; }
  .cards2 { grid-template-columns: 1fr; }
  .price-go { font-size: 15px; padding: 0 14px; }
}
@media (max-width: 374px) {
  .price-toggle { padding: 0; width: 44px; }
  .price-toggle .pt-l { display: none; }
}
/* 320–359: подпись логотипа в две строки, иначе «Меню» уезжает за край */
@media (max-width: 359px) {
  .hdr .logo-sub { white-space: normal; max-width: 128px; line-height: 1.15; }
  .gar .gar-q { font-size: 22px; }
}

/* МАТЕРИАЛЫ */
.mat { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.mat-left { grid-column: 1 / span 6; padding: 0 12px; position: relative; padding-bottom: 150px; }
.mat-photo { width: calc(100% - var(--mod)); aspect-ratio: 4 / 5; object-fit: cover; }
.bigfan { position: absolute; left: calc(var(--mod) * 2.2); bottom: 0; display: flex; align-items: flex-end; height: 330px; }
.bf { position: relative; width: 80px; height: 280px; margin-left: -14px; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: bottom center; transform: rotate(calc(var(--i) * 4deg)); transition: transform .2s var(--ease); }
.bf:first-child { margin-left: 0; }
.bf-face { position: absolute; inset: 0; background: var(--c); border-radius: 3px 3px 1px 1px; box-shadow: inset 0 0 0 1px rgba(30,28,25,.12), 0 1px 2px rgba(42,34,28,.08); transition: transform .2s var(--ease), box-shadow .2s; }
.bf-face.veneer { background: repeating-linear-gradient(92deg,#5E3F2B 0 3px,#6E4B34 3px 7px,#7B563C 7px 9px,#6B4A33 9px 14px); }
.bf-l { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(30,28,25,.75); white-space: nowrap; }
.bf-face.dark + .bf-l { color: rgba(248,246,242,.9); }
.bf-l { transition: transform .2s var(--ease); }
.bf:hover .bf-l { transform: translate(-50%, -10px) rotate(180deg); }
.bf[aria-selected="true"] .bf-l { transform: translate(-50%, -16px) rotate(180deg); }
.bf:hover .bf-face { transform: translateY(-10px); }
.bf[aria-selected="true"] { transform: rotate(0); z-index: 2; }
.bf[aria-selected="true"] .bf-face { transform: translateY(-16px); box-shadow: inset 0 0 0 1px rgba(30,28,25,.12), 0 8px 16px rgba(42,34,28,.18); }
.mat-right { grid-column: 8 / span 5; padding: 0 12px; }
.mp h3 { font-size: 40px; line-height: 1.1; }
.mp-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-weight: 600; font-size: 15px; }
.mp-meta span + span { padding-left: 24px; border-left: 1px solid #C4BCAE; }
.mp dl { margin: 28px 0 32px; }
.mp dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #CFC7BA; }
.mp dl > div:last-child { border-bottom: 1px solid #CFC7BA; }
.mp dt { font-weight: 600; font-size: 15px; }
.mp dd { margin: 0; font-size: 16px; line-height: 1.55; }
@media (max-width: 1100px) {
  .mat-left { grid-column: 1 / span 6; }
  .mat-right { grid-column: 7 / span 6; }
}
/* планшет: веер не помещается рядом с таблицей — фото и веер сверху, описание под ними */
@media (min-width: 768px) and (max-width: 1023px) {
  .mat { display: block; }
  .mat-left { padding: 0 12px 32px; }
  .mat-photo { width: 100%; aspect-ratio: 16 / 10; }
  .bigfan { position: relative; left: auto; bottom: auto; justify-content: center; height: 320px; margin-top: -120px; }
  .mat-right { padding: 0 12px; }
}
/* десктоп: лид справа от заголовка, как в «Расчёте» */
@media (min-width: 1024px) {
  #materialy .sec-head { max-width: none; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; padding-inline: 0; }
  #materialy .sec-head .eyebrow, #materialy .sec-head h2 { grid-column: 1 / span 7; padding-inline: 12px; }
  #materialy .sec-head .lead { grid-column: 8 / span 5; grid-row: 2; margin-top: 0; padding-inline: 12px; }
}
@media (max-width: 767px) {
  .mat { display: block; }
  .mat-left { padding: 0 0 20px; }
  .mat-photo { width: 100%; aspect-ratio: 4 / 3; }
  .bigfan { position: relative; left: auto; bottom: auto; justify-content: center; height: 250px; margin-top: -40px; }
  .bf { width: 72px; height: 220px; }
  .mat-right { padding: 0; }
  .mp h3 { font-size: 30px; }
  .mp-meta { flex-direction: column; gap: 2px; }
  .mp-meta span + span { padding-left: 0; border-left: 0; font-weight: 400; }
  .mp dl > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .mp .btn { width: 100%; }
}

/* ГАЛЕРЕЯ */
.filters { display: grid; gap: 10px; padding: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.gal-count { padding: 24px 12px 20px; font-size: 14px; color: var(--muted); }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.kc { padding: 0 12px 24px; display: flex; }
.kc-in { background: var(--surface); display: flex; flex-direction: column; width: 100%; transition: opacity .2s, transform .2s; }
.kc.leaving .kc-in { opacity: 0; transform: scale(.98); }
.kc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kc-b { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.kc h3 { font: 600 17px/1.35 var(--ff-t); }
.kc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.kc th, .kc td { text-align: left; padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.kc th { font-weight: 400; color: var(--muted); width: 44%; padding-right: 10px; }
.kc tr:last-child th, .kc tr:last-child td { border-bottom: 1px solid var(--line); }
.kc-note { font-style: italic; font-size: 15px; line-height: 1.5; margin: 14px 0 20px; }
.kc-f { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kc-p small { display: block; font-size: 13px; color: var(--muted); }
.kc-p b { font: 400 28px/1.1 var(--ff-d); font-synthesis: none; white-space: nowrap; }
.kc-f .tbtn { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
/* 768–1240: карточки узкие — цена и ссылка всегда в две строки, низ у всех одинаковый */
@media (min-width: 768px) and (max-width: 1240px) { .kc-f { flex-direction: column; align-items: flex-start; gap: 4px; } }
.gal-empty { margin: 0 12px; padding: 40px; background: var(--surface); max-width: 720px; }
.gal-empty p { font-size: 19px; line-height: 1.5; }
.gal-empty-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 1100px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .filters { padding: 0; margin: 0 -16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  .gal-count { padding: 16px 0 14px; }
  .gal { grid-template-columns: 1fr; }
  .kc { padding: 0 0 16px; }
  .kc-b { padding: 16px 16px 18px; }
  .kc-f { flex-wrap: wrap; }
  .gal-empty { margin: 0; padding: 24px; }
  .gal-empty .btn { width: 100%; }
}

/* КАК ПРОХОДИТ ЗАКАЗ */
.sec-line { border-top: 1px solid var(--line); }
.proc { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.proc-main { grid-column: 1 / span 7; }
.proc-main .sec-head { max-width: none; }
.tl { list-style: none; margin: 0; padding: 0 12px; position: relative; }
.tl li { display: grid; grid-template-columns: calc(var(--mod) * 2.4) 1fr; gap: 24px; padding: 0 0 36px; position: relative; }
.tl li::before { content: ""; position: absolute; left: calc(var(--mod) * 2.4 + 5px); top: 10px; bottom: -10px; width: 1px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: calc(var(--mod) * 2.4 + 1px); top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); }
.tl li > div { padding-left: 24px; }
.tl-when { font: 400 20px/1.3 var(--ff-d); font-synthesis: none; padding-right: 16px; }
.tl h3 { font: 600 18px/1.4 var(--ff-t); margin-bottom: 6px; }
.tl p { color: var(--text); }
.tl-foot { padding: 0 12px; margin-left: calc(var(--mod) * 2.4 + 48px); }
.proc-photo { grid-column: 9 / span 4; margin: 0; padding: 0 12px; position: sticky; top: calc(var(--hdr) + 24px); }
.proc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.proc-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 1100px) { .proc-main { grid-column: 1 / span 8; } .proc-photo { grid-column: 9 / span 4; } }
/* планшет: таймлайн на всю ширину, фото под ним */
@media (min-width: 768px) and (max-width: 1023px) {
  .proc-main { grid-column: 1 / -1; }
  .proc-photo { grid-column: 1 / span 8; position: static; margin-top: 40px; }
  .proc-photo img { aspect-ratio: 4 / 3; }
  .tl li { grid-template-columns: calc(var(--mod) * 3.2) 1fr; }
  .tl li::before { left: calc(var(--mod) * 3.2 + 5px); }
  .tl li::after { left: calc(var(--mod) * 3.2 + 1px); }
  .tl-foot { margin-left: calc(var(--mod) * 3.2 + 48px); }
}
@media (max-width: 767px) {
  .proc { display: block; }
  .tl { padding: 0; }
  .tl li { grid-template-columns: 1fr; gap: 4px; padding: 0 0 28px 28px; }
  .tl li::before { left: 4px; top: 12px; }
  .tl li::after { left: 0; top: 8px; }
  .tl li > div { padding-left: 0; }
  .tl-when { font-size: 18px; }
  .tl-foot { margin-left: 28px; padding: 0; }
  .proc-photo { margin-top: 32px; padding: 0; position: static; }
  .proc-photo img { aspect-ratio: 4 / 3; }
}

/* ГАРАНТИИ */
.gar { display: grid; grid-template-columns: repeat(3, 1fr); }
.gar-i { padding: 32px 12px 40px; border-top: 1px solid rgba(238,231,220,.18); margin: 0 12px; }
.gar-i h3 { font-size: 22px; line-height: 1.25; margin-bottom: 14px; color: var(--text-on-dark); }
.gar-i p { font-size: 16px; line-height: 1.6; color: rgba(238,231,220,.85); }
.gar-i:first-child h3 { font-size: 22px; }
.gar-link { display: flex; flex-direction: column; align-items: flex-start; }
.gar-q { margin: 0; font: 400 26px/1.3 var(--ff-d); font-synthesis: none; color: var(--text-on-dark); max-width: 22ch; }
.gar-i .gar-src { margin: 12px 0 auto; padding-bottom: 20px; font-size: 14px; color: rgba(238,231,220,.6); }
.link-dark { background: none; border: 0; padding: 0; min-height: 44px; font: 600 17px/1.4 var(--ff-t); color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; cursor: pointer; }
.sec-dark :focus-visible { outline-color: var(--text-on-dark); }
@media (max-width: 1100px) { .gar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .gar { grid-template-columns: 1fr; }
  .gar-i { margin: 0; padding: 24px 0 28px; }
  .gar-link { padding-top: 20px; }
}

/* МАСТЕРСКАЯ */
.ws { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.ws-text { grid-column: 1 / span 5; }
.ws-text .sec-head { margin-bottom: 32px; }
.ws-p { padding: 0 12px; display: grid; gap: 18px; }
.ws-photo { grid-column: 7 / span 6; margin: 0; padding: 0 12px; }
.ws-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nums { grid-column: 1 / -1; list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.nums li { padding: 24px 12px 0; margin: 0 12px; border-top: 1px solid var(--text); display: grid; gap: 10px; align-content: start; }
.nums b { font: 400 40px/1 var(--ff-d); font-synthesis: none; white-space: nowrap; }
.nums span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.ws-tour { grid-column: 1 / span 8; padding: 36px 12px 0; font-size: 17px; }
.ws-tour a { font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .ws-text { grid-column: 1 / span 6; } .ws-photo { grid-column: 7 / span 6; } .nums { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (max-width: 767px) {
  .ws { display: block; }
  .ws-p { padding: 0; }
  .ws-photo { padding: 0; margin-top: 32px; }
  .nums { margin-top: 40px; grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .nums li { margin: 0; padding: 16px 8px 0 0; }
  .nums li:nth-child(odd) { margin-right: 8px; }
  .nums b { font-size: 32px; }
  .nums span { font-size: 14px; }
  .ws-tour { padding: 28px 0 0; font-size: 16px; }
}

/* ОТЗЫВЫ */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); }
.rev { background: var(--surface); padding: 28px 28px 32px; margin: 0 12px; }
.rev h3 { font: 600 17px/1.35 var(--ff-t); }
.rev-k { color: var(--muted); font-size: 14px; margin: 4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rev p:last-child { font-size: 16px; line-height: 1.6; }
@media (max-width: 1100px) { .revs { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 767px) { .rev { margin: 0; padding: 22px 20px 24px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: repeat(12, 1fr); }
.faq-wrap .sec-head { grid-column: 1 / span 4; }
.faq { grid-column: 6 / span 7; padding: 0 12px; border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 400 21px/1.35 var(--ff-d); font-synthesis: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 18px; height: 18px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--text); transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 48px 24px 0; font-size: 17px; line-height: 1.6; max-width: 40em; }
@media (max-width: 1100px) { .faq-wrap .sec-head { grid-column: 1 / -1; } .faq { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .faq-wrap { display: block; }
  .faq { padding: 0; }
  .faq summary { font-size: 18px; padding: 18px 0; }
  .faq details p { padding: 0 0 20px; font-size: 16px; }
}

/* ЗАМЕР */
.zm { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.zm-left { grid-column: 1 / span 5; padding: 0 12px; }
.zm-left h2 { color: var(--text-on-dark); }
.zm-lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: rgba(238,231,220,.85); }
.zm-calc { margin-top: 28px; padding: 16px 18px; background: rgba(248,246,242,.1); font-size: 15px; line-height: 1.5; }
.zm-calc-l { display: block; font: 600 12px/1.4 var(--ff-t); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.zm-calc a { display: inline-block; margin-top: 6px; color: var(--text-on-dark); font-weight: 600; text-underline-offset: 4px; min-height: 28px; }
.zm-contacts { list-style: none; padding: 0; margin: 36px 0 0; font-size: 16px; }
.zm-contacts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(238,231,220,.16); }
.zm-contacts span { color: rgba(238,231,220,.65); font-size: 14px; }
.zm-contacts a { text-decoration: none; font-weight: 600; }
.map { display: block; width: 100%; margin-top: 28px; aspect-ratio: 4 / 3; height: auto; }
.map-bg { fill: rgba(248,246,242,.04); stroke: rgba(238,231,220,.2); }
.map-st path { stroke: rgba(214,207,195,.2); stroke-width: 6; fill: none; stroke-linecap: round; }
.map-blk rect { fill: rgba(214,207,195,.07); }
.map-river { stroke: rgba(169,211,190,.18); stroke-width: 18; fill: none; }
.map-halo { fill: rgba(238,231,220,.14); }
.map-dot { fill: var(--text-on-dark); }
.map-t { font: 600 14px var(--ff-t); fill: var(--text-on-dark); }
.map-r { font: italic 400 12px var(--ff-t); fill: rgba(238,231,220,.55); }
.zm-right { grid-column: 7 / span 6; padding: 0 12px; }
@media (max-width: 1100px) { .zm-left { grid-column: 1 / span 6; } .zm-right { grid-column: 7 / span 6; } }
@media (max-width: 767px) {
  .zm { display: block; }
  .zm-left, .zm-right { padding: 0; }
  .zm-right { margin-top: 32px; }
  .zm-lead { font-size: 16px; }
  .zm-contacts li { grid-template-columns: 90px 1fr; }
}

/* ФОРМЫ */
.form { background: var(--surface); color: var(--text); padding: 40px; display: grid; gap: 20px; }
.form-t { font-size: 28px; line-height: 1.15; }
.f { display: grid; gap: 8px; }
.f > label, .f > legend { font-weight: 600; font-size: 15px; margin-bottom: 0; }
.f > legend { margin-bottom: 8px; }
.f input[type=text], .f input[type=tel], .f select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #BFB6A8; border-radius: 2px; background: #fff; color: var(--text); font: 400 17px/1.2 var(--ff-t);
}
.f select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231E1C19' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.f input:focus, .f select:focus { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
.f input[aria-invalid="true"] { border-color: #9B2C1F; }
.f-err { color: #9B2C1F; font-size: 14px; line-height: 1.4; min-height: 0; }
.f-err:empty { display: none; }
.f-hint { font-size: 13px; color: var(--muted); }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.days::-webkit-scrollbar { display: none; }
.day, .seg label { position: relative; flex: none; }
.day input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span, .seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid #BFB6A8; border-radius: 2px; background: #fff; font-size: 15px; white-space: nowrap; cursor: pointer; }
.day input:checked + span, .seg input:checked + span { background: var(--text); color: var(--surface); border-color: var(--text); }
.day input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.seg { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.seg label { flex: 1; }
.seg span { width: 100%; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; }
.check .inl { padding: 12px 0; margin: -12px 0; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--text); cursor: pointer; }
.f-check { padding: 2px 0; }
.f-demo { font-size: 12px; color: var(--muted); }
.form-ok { gap: 14px; }
.form-ok p { font-size: 17px; line-height: 1.55; }
.sum { background: var(--surface-2); padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.sum-l { display: block; font: 600 12px/1.4 var(--ff-t); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 767px) { .form { padding: 24px 20px; } .form-t { font-size: 24px; } }

/* ПОДВАЛ */
.ftr { background: var(--dark); color: var(--text-on-dark); padding: 64px 0 40px; border-top: 1px solid rgba(238,231,220,.12); }
.ftr-in { display: grid; grid-template-columns: repeat(12, 1fr); row-gap: 32px; }
.ftr-brand { grid-column: 1 / span 4; padding: 0 12px; }
.ftr-brand p { margin-top: 16px; font-size: 15px; color: rgba(238,231,220,.75); }
.logo-light { color: var(--text-on-dark); }
.logo-light .logo-sub { color: rgba(238,231,220,.65); }
.ftr-c { grid-column: 5 / span 4; list-style: none; margin: 0; padding: 0 12px; font-size: 15px; display: grid; gap: 6px; }
.ftr-c a { text-decoration: none; }
.ftr-nav { grid-column: 9 / span 4; padding: 0 12px; display: grid; gap: 2px; justify-items: start; font-size: 15px; }
.ftr-nav a, .ftr-nav .inl { min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(238,231,220,.35); text-align: left; }
.ftr-copy { grid-column: 1 / -1; padding: 24px 12px 0; border-top: 1px solid rgba(238,231,220,.12); margin: 0 12px; font-size: 13px; color: rgba(238,231,220,.6); }
@media (max-width: 767px) {
  .ftr { padding: 48px 0 32px; }
  .ftr-in { display: block; }
  .ftr-brand, .ftr-c, .ftr-nav { padding: 0; margin-bottom: 28px; }
  .ftr-nav a, .ftr-nav .inl { min-height: 44px; min-width: 44px; }
  .ftr-copy { margin: 0; padding: 20px 0 0; }
}

/* липкая панель */
.mbar { display: none; }
@media (max-width: 767px) {
  .pl-demo-foot { padding-bottom: calc(14px + 64px + env(safe-area-inset-bottom)); }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(64px + env(safe-area-inset-bottom)); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); border-radius: 2px; }
  .mbar-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .mbar-p { min-height: 48px; padding: 0 10px; }
}

/* МОДАЛКИ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(30,28,25,.55); animation: fadeIn .2s both; }
.modal-box { position: relative; width: min(600px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--surface); box-shadow: 0 30px 80px rgba(20,16,12,.35); animation: popIn .25s var(--ease) both; overscroll-behavior: contain; }
.modal-sm { width: min(520px, 100%); padding: 40px; display: grid; gap: 18px; justify-items: start; }
.modal-box > .form, .modal-box > .form-ok { padding: 40px; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.modal-t { font-size: 30px; line-height: 1.15; padding-right: 40px; }
.modal-t:focus { outline: none; }
.contract { margin: 0; padding: 0; list-style: none; width: 100%; }
.contract li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.contract li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 1px; background: var(--text); }
.ok-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 767px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-box { width: 100%; max-height: 92vh; max-height: 92dvh; }
  .modal-sm { width: 100%; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal-box > .form, .modal-box > .form-ok { padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal-t { font-size: 24px; }
}
body.no-scroll { overflow: hidden; }

/* тост */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--surface); padding: 14px 20px; max-width: min(520px, calc(100% - 32px)); font-size: 15px; line-height: 1.45; transition: opacity .25s, transform .25s var(--ease); box-shadow: 0 12px 30px rgba(20,16,12,.25); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) { .toast { bottom: 110px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  html.js .rv { opacity: 1; transform: none; }
}
