:root {
  --ink: #10100f;
  --paper: #f4f2ed;
  --white: #ffffff;
  --muted: #6d6b66;
  --line: #d7d4cd;
  --orange: #ff5c35;
  --orange-dark: #d94220;
  --yellow: #f3db3b;
  --max: 1480px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.prototype-note {
  padding: .48rem 1rem;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid #393936;
  font-size: .78rem;
  letter-spacing: .04em;
  text-align: center;
}

.section-shell, .site-header {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
}
.brand {
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -.08em;
}
.brand span { color: var(--orange); }
.desktop-nav {
  justify-self: center;
  display: flex;
  gap: 2rem;
}
.desktop-nav a, .header-phone {
  text-decoration: none;
  font-size: .94rem;
  font-weight: 680;
}
.desktop-nav a:hover { color: var(--orange-dark); }
.header-phone { white-space: nowrap; }
.menu-button { display: none; }

.button {
  min-height: 52px;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 820;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .choice:focus-visible, .tab:focus-visible, summary:focus-visible, .menu-button:focus-visible,
.kz-tile:focus-visible, .kz-swatch:focus-visible, .kz-pills button:focus-visible, .kz-seg button:focus-visible, .kz-tool:focus-visible, .kz-sec-tabs button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
.button-small { min-height: 42px; padding: .62rem 1rem; }
.button-orange { background: var(--orange); color: #fff; font-size: 1.17rem; }
.button-orange:hover { background: var(--orange-dark); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: var(--orange); }
.text-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 760;
  text-underline-offset: .3rem;
}
.text-link span { font-size: 1.4rem; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  border: 1px solid var(--ink);
  background: var(--white);
}
.hero-copy {
  padding: clamp(3rem, 6vw, 6.5rem) clamp(2rem, 5vw, 5rem) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--orange-dark);
  font-size: .75rem;
  font-weight: 880;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.3rem, 5.65vw, 6.4rem);
  line-height: .91;
  letter-spacing: -.075em;
}
h1 em { color: var(--orange); font-style: normal; }
.hero-lead {
  max-width: 37rem;
  margin: 2rem 0 0;
  color: #454440;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-proof {
  margin-top: auto;
  padding-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-proof div { padding-top: 1rem; border-top: 1px solid var(--line); }
.hero-proof strong { display: block; font-size: 1.45rem; letter-spacing: -.04em; }
.hero-proof span { display: block; margin-top: .2rem; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.hero-media { position: relative; margin: 0; min-height: 600px; overflow: hidden; background: #ddd; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption, .custom-media small {
  position: absolute;
  right: .8rem;
  bottom: .7rem;
  padding: .35rem .55rem;
  color: #fff;
  background: rgba(16,16,15,.78);
  font-size: .7rem;
}
.image-callout {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  width: min(320px, calc(100% - 2.4rem));
  padding: 1rem;
  color: var(--ink);
  background: var(--yellow);
  font-size: .86rem;
  font-weight: 730;
}
.image-callout span { display: block; margin-bottom: .25rem; font-size: .72rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 4.5vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.065em;
}
.compact-heading { display: block; }
.compact-heading h2 { max-width: 18ch; }

.picker { padding-block: clamp(5rem, 9vw, 9rem); }
.picker-panel {
  margin-top: 3rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: #fff;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.picker-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker-panel legend { margin-bottom: 1.3rem; font-size: 1.1rem; font-weight: 790; }
.picker-panel legend span { color: var(--orange); margin-right: .4rem; }
.picker-panel fieldset > p { margin: .85rem 0 0; color: #aaa8a2; font-size: .8rem; }
.width-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.width-control input { accent-color: var(--orange); width: 100%; }
.width-control output { min-width: 84px; color: var(--yellow); font-size: 1.2rem; font-weight: 850; text-align: right; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice {
  min-height: 46px;
  padding: .6rem .7rem;
  border: 1px solid #484844;
  color: #d8d6d0;
  background: transparent;
  font-size: .84rem;
  text-align: left;
  cursor: pointer;
}
.choice:hover, .choice.active { border-color: var(--orange); color: #fff; background: rgba(255,92,53,.16); }
.picker-submit { grid-column: 1 / -1; margin-top: .5rem; }
.picker-result {
  padding: 2rem;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--yellow);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.picker-result[hidden] { display: none; }
.picker-result h3 { margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }
.picker-result p:last-child { margin-bottom: 0; }

.catalog { padding-bottom: clamp(5rem, 10vw, 10rem); }
.catalog-heading > p { max-width: 35rem; margin: 0; color: var(--muted); font-size: 1.1rem; }
.catalog-tabs { margin: 2.5rem 0 1.5rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.tab {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
}
.tab:hover, .tab.active { color: #fff; background: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.product-card { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.product-card[hidden] { display: none; }
.product-card.featured { background: #ebe8df; }
.product-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dedbd3; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.portrait-image img { object-position: center 48%; }
.product-tag { position: absolute; top: 1rem; left: 1rem; padding: .4rem .65rem; background: var(--yellow); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.orange-tag { color: #fff; background: var(--orange); }
.product-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-meta { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.product-body h3 { margin: .45rem 0 .6rem; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.04em; }
.product-body > p:not(.product-meta) { margin: 0; color: var(--muted); }
.product-price { margin: 2rem 0 1.2rem; }
.product-price strong { display: block; font-size: 1.35rem; }
.product-price span { display: block; margin-top: .25rem; color: var(--muted); font-size: .72rem; }
.button-card { margin-top: auto; width: 100%; border-color: var(--ink); background: transparent; }
.button-card:hover { color: #fff; background: var(--ink); }

.why { padding-block: clamp(5rem, 9vw, 9rem); border-top: 1px solid var(--ink); }
.benefit-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--ink); }
.benefit-grid article { min-height: 320px; padding: 2rem; border: 1px solid var(--ink); border-left: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.benefit-grid article:nth-child(2) { color: #fff; background: var(--ink); }
.benefit-grid article > span { margin-bottom: auto; color: var(--orange); font-size: 3.5rem; font-weight: 900; line-height: 1; }
.benefit-grid h3 { margin: 3rem 0 .65rem; font-size: 1.6rem; line-height: 1.08; letter-spacing: -.04em; }
.benefit-grid p { margin: 0; color: var(--muted); }
.benefit-grid article:nth-child(2) p { color: #aaa8a2; }

.custom {
  margin-block: 2rem clamp(5rem, 10vw, 10rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--ink);
  color: #fff;
}
.custom-media { position: relative; min-height: 680px; }
.custom-media img { width: 100%; height: 100%; object-fit: cover; }
.custom-time {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  padding: 1.1rem 1.3rem;
  color: var(--ink);
  background: var(--yellow);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.custom-time strong { display: block; font-size: 3rem; letter-spacing: -.07em; }
.custom-copy { padding: clamp(2rem, 5vw, 5.5rem); display: flex; flex-direction: column; justify-content: center; }
.custom-copy h2 { margin: 0; font-size: clamp(2.5rem, 4.2vw, 5rem); line-height: .95; letter-spacing: -.065em; }
.custom-copy > p:not(.eyebrow) { max-width: 35rem; margin: 1.5rem 0 0; color: #b4b2ac; font-size: 1.08rem; }
.custom-form { margin-top: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.custom-form label { font-size: .8rem; font-weight: 700; }
.custom-form input { margin-top: .45rem; width: 100%; min-height: 52px; padding: .8rem; border: 1px solid #5c5b56; border-radius: 0; color: #fff; background: #1c1c1a; }
.custom-form input::placeholder { color: #77756f; }
.custom-form .button, .custom-form small { grid-column: 1 / -1; }
.custom-form small { color: #85837d; }

.steps { padding-block: 0 clamp(5rem, 10vw, 10rem); }
.steps ol { margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { padding: 1.5rem 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 120px 1fr; align-items: center; }
.steps li > span { color: var(--orange); font-size: 1.1rem; font-weight: 900; }
.steps h3 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.steps p { margin: .25rem 0 0; color: var(--muted); }

.faq { padding-bottom: clamp(5rem, 10vw, 10rem); display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 6vw, 7rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { padding: 1.4rem 2.5rem 1.4rem 0; position: relative; list-style: none; cursor: pointer; font-size: 1.1rem; font-weight: 770; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.1rem; color: var(--orange); font-size: 1.6rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 44rem; margin: 0; padding: 0 2rem 1.5rem 0; color: var(--muted); }

.final-cta { padding: clamp(3rem, 7vw, 7rem); color: #fff; background: var(--ink); text-align: center; }
.final-cta h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2.5rem, 5vw, 5.5rem); line-height: .94; letter-spacing: -.065em; }
.final-cta .button { margin-top: 2.2rem; }
.final-cta > p:last-child { margin: 1.2rem 0 0; color: #aaa8a2; }
.final-cta > p:last-child a { color: #fff; }

.site-footer { padding-block: 3rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: start; }
.footer-brand { font-size: 1.9rem; }
.site-footer p { margin: .35rem 0 0; color: var(--muted); }
.site-footer div { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: flex-end; }
.site-footer div a { font-weight: 690; text-underline-offset: .25rem; }
.site-footer small { grid-column: 1 / -1; color: var(--muted); }

.product-dialog { width: min(1120px, calc(100% - 2rem)); max-height: min(800px, calc(100dvh - 2rem)); padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.product-dialog::backdrop { background: rgba(16,16,15,.72); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 2; top: .8rem; right: .8rem; width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--white); font-size: 1.7rem; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 620px; }
.dialog-image { min-height: 480px; background: #ddd; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.dialog-copy h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4.8rem); line-height: .93; letter-spacing: -.06em; }
.dialog-size { color: var(--muted); }
.dialog-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; }
.dialog-specs span { padding: .45rem .65rem; border: 1px solid var(--line); font-size: .75rem; font-weight: 680; }
.dialog-price { margin: 1rem 0; font-size: 1.7rem; font-weight: 900; }
.dialog-note { color: var(--muted); font-size: .82rem; }
.mobile-sticky { display: none; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .desktop-nav, .header-phone { display: none; }
  .menu-button { min-height: 42px; padding: .5rem .9rem; border: 1px solid var(--ink); background: transparent; display: inline-flex; align-items: center; justify-self: end; color: var(--ink); text-decoration: none; font-weight: 750; }
  .site-header > .button { justify-self: end; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; }
  .hero-media { min-height: 600px; }
  .picker-panel { grid-template-columns: 1fr 1fr; }
  .picker-panel fieldset:first-child { grid-column: 1 / -1; }
  .custom { grid-template-columns: 1fr; }
  .custom-media { min-height: 580px; }
  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .prototype-note { font-size: .68rem; }
  .section-shell, .site-header { width: min(calc(100% - 1.25rem), var(--max)); }
  .site-header { min-height: 64px; gap: .6rem; }
  .site-header > .button { display: none; }
  .brand { font-size: 1.4rem; }
  .hero { width: 100%; border-inline: 0; }
  .hero-copy { min-height: 560px; padding: 3.5rem 1.25rem 1.5rem; }
  h1 { max-width: 11ch; font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero-lead { margin-top: 1.4rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.4rem; align-items: stretch; flex-direction: column; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; justify-content: center; }
  .hero-proof { margin-top: 2.5rem; padding-top: 0; gap: .6rem; }
  .hero-proof strong { font-size: 1.05rem; }
  .hero-proof span { font-size: .75rem; }
  .hero-media { min-height: 420px; }
  .image-callout { display: none; }
  .hero-media figcaption { left: .6rem; right: auto; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .catalog-heading > p { margin-top: 1.2rem; font-size: .95rem; }
  .picker { padding-block: 4.5rem; }
  .picker-panel { margin-top: 2rem; padding: 1.2rem; grid-template-columns: 1fr; gap: 2rem; }
  .picker-panel fieldset:first-child { grid-column: auto; }
  .picker-result { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 44% 56%; }
  .product-image { min-height: 100%; aspect-ratio: auto; }
  .product-body { padding: 1rem; }
  .product-body h3 { font-size: 1.25rem; }
  .product-body > p:not(.product-meta) { font-size: .84rem; }
  .product-price { margin: 1rem 0; }
  .product-price strong { font-size: 1rem; }
  .product-tag { top: .6rem; left: .6rem; font-size: .62rem; }
  .button-card { min-height: 44px; padding: .65rem .8rem; font-size: .85rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 260px; }
  .custom { width: 100%; margin-top: 0; }
  .custom-media { min-height: 440px; }
  .custom-copy { padding: 3rem 1.25rem; }
  .custom-copy h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .custom-form { grid-template-columns: 1fr; }
  .custom-form label, .custom-form .button, .custom-form small { grid-column: auto; }
  .steps li { grid-template-columns: 58px 1fr; }
  .steps h3 { font-size: 1.45rem; }
  .final-cta { width: 100%; padding: 4rem 1.25rem 6rem; }
  .site-footer { padding-bottom: 6rem; grid-template-columns: 1fr; }
  .site-footer div { justify-content: flex-start; }
  .site-footer small { grid-column: auto; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image { min-height: 300px; max-height: 40vh; }
  .dialog-copy { padding: 1.5rem; }
  .dialog-copy h2 { font-size: 2.4rem; }
  .mobile-sticky {
    position: fixed;
    z-index: 10;
    left: .7rem;
    right: .7rem;
    bottom: max(.7rem, env(safe-area-inset-bottom));
    min-height: 58px;
    padding: .75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: var(--orange);
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(0,0,0,.28);
    font-size: .82rem;
  }
  .mobile-sticky strong { font-size: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ───────── Сайт «Шкафы на заказ» со своим 3D-конструктором (25.09.2026) ───────── */
.menu-button { text-decoration: none; }
.button-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.button svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* первый экран: фото + тёмный блок (макет 05_custom_48h) */
.hero-dark { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy media"; background: var(--ink); color: #fff; border-color: var(--ink); min-height: 700px; }
.hero-dark .hero-copy { grid-area: copy; }
.hero-dark .hero-media { grid-area: media; min-height: 100%; }
.hero-dark .hero-media img { position: absolute; inset: 0; }
.hero-dark h1 { max-width: 13ch; font-size: clamp(3rem, 4.9vw, 5.6rem); }
.hero-dark .hero-lead { color: #c9c7c1; }
.eyebrow-line { display: flex; align-items: center; gap: 1rem; color: #e7e4dc; }
.eyebrow-line::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: rgba(255,255,255,.4); }
.badge-48 { position: absolute; left: 1.4rem; bottom: 1.4rem; display: flex; align-items: center; gap: .7rem; padding: .8rem 1.1rem .8rem .9rem; color: var(--ink); background: var(--yellow); font-weight: 900; font-size: 1rem; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.badge-48 svg { width: 30px; height: 30px; fill: var(--ink); flex: none; }
.hero-icons { margin: auto 0 0; padding: 2.5rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hero-icons li { display: flex; align-items: center; gap: .7rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .78rem; font-weight: 750; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.hero-icons svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.hero-actions .button { min-width: 0; }

/* ── 3D-конструктор ── */
.kz { padding-block: clamp(4rem, 8vw, 7rem) clamp(4rem, 8vw, 6rem); }
.kz-head { max-width: 60rem; }
.kz-head h2 { margin: 0; font-size: clamp(2.3rem, 4.2vw, 4.6rem); line-height: .95; letter-spacing: -.065em; }
.kz-head > p:not(.eyebrow) { margin: 1.2rem 0 0; max-width: 42rem; color: var(--muted); font-size: 1.05rem; }
.kz-grid { margin-top: 2.2rem; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(360px, 1fr); border: 1px solid var(--ink); background: var(--white); }
.kz-grid > * { min-width: 0; }
.kz-view { position: sticky; top: 0; align-self: start; height: 100vh; max-height: 900px; display: flex; flex-direction: column; border-right: 1px solid var(--ink); z-index: 2; background: #EFEAE1; }
.kz-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: linear-gradient(180deg, #EFEAE1 0%, #E9E3D8 78%, #DCD5C7 78%, #D5CDBE 100%); touch-action: pan-y; }
.kz-stage .bk-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; }
.kz-stage .bk-canvas:active { cursor: grabbing; }
.kz-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.kz-stage.ready .kz-poster { opacity: 0; pointer-events: none; }
.kz-status { position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); margin: 0; padding: .45rem .8rem; background: rgba(16,16,15,.82); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; z-index: 3; }
.kz-stage.failed .kz-status { white-space: normal; width: min(92%, 420px); text-align: center; top: auto; bottom: 1rem; }
.kz-hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); padding: .5rem .9rem; background: rgba(16,16,15,.78); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; z-index: 3; animation: kzfade 3.5s ease forwards; }
@keyframes kzfade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.bk-dims { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bk-dim { position: absolute; left: 0; top: 0; padding: 1px 6px; border-radius: 6px; background: rgba(245,242,236,.9); color: #8A8478; font: 600 11px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; will-change: transform; }
.bk-dim.big { color: #23211E; font-size: 12.5px; font-weight: 800; }
.kz-toolbar { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-top: 1px solid var(--ink); background: var(--white); }
.kz-tool { min-height: 40px; padding: .45rem .85rem; border: 1px solid var(--ink); background: var(--white); font-weight: 780; font-size: .85rem; white-space: nowrap; flex: none; cursor: pointer; }
.kz-tool[aria-pressed="true"] { color: #fff; background: var(--ink); }
.kz-tool-icon { width: 40px; padding: 0; display: grid; place-items: center; margin-left: auto; }
.kz-tool-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kz-tool[hidden] { display: none; }
.kz-dimline { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.kz-note { margin: 0; padding: .55rem .8rem; background: var(--yellow); font-size: .82rem; font-weight: 750; }

.kz-panel { min-width: 0; display: flex; flex-direction: column; }
.kz-steps { margin: 0; padding: 0; list-style: none; }
.kz-step { padding: 1.5rem clamp(1.1rem, 2.2vw, 2rem); border-bottom: 1px solid var(--line); }
.kz-step h3 { margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; letter-spacing: -.03em; }
.kz-step h3 > span, .kz-num { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-size: 1rem; font-weight: 850; letter-spacing: 0; }
.kz-label { display: block; margin: 0 0 .45rem; font-size: .8rem; font-weight: 750; color: var(--muted); }
.kz-field { display: block; }
.kz-input-wrap { position: relative; display: flex; align-items: center; border: 1px solid var(--ink); background: var(--white); }
.kz-input-wrap:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.kz-input-wrap input { flex: 1; min-width: 0; min-height: 56px; padding: .6rem .9rem; border: 0; outline: 0; background: transparent; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kz-unit { padding-right: .9rem; color: var(--muted); font-weight: 750; }
.kz-input-sm input { min-height: 42px; font-size: 1rem; }
.kz-custom { margin-top: .5rem; max-width: 220px; }
.kz-custom input { min-height: 46px; font-size: 1.15rem; }
.kz-custom[hidden] { display: none; }
.kz-split { margin: .6rem 0 1rem; color: var(--muted); font-size: .85rem; }
.kz-split b { color: var(--ink); }
.kz-row { margin-top: .9rem; }
.kz-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.kz-pills button { min-height: 44px; min-width: 64px; padding: .5rem .8rem; border: 1px solid var(--ink); background: var(--white); font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.kz-pills button.on { color: #fff; background: var(--ink); }
.kz-err { margin: .8rem 0 0; padding: .6rem .8rem; background: var(--yellow); font-size: .85rem; font-weight: 700; }
.kz-err[hidden] { display: none; }
.kz-measure { margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: .8rem; font-size: .88rem; }
.kz-measure summary { cursor: pointer; font-weight: 780; color: var(--orange-dark); }
.kz-measure ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.kz-measure li { margin: .3rem 0; }

.kz-tiles { display: grid; gap: .5rem; }
.kz-tiles-2 { grid-template-columns: 1fr 1fr; }
.kz-tiles-4 { grid-template-columns: 1fr 1fr; }
.kz-tile { min-height: 84px; padding: .8rem .8rem .8rem 3.9rem; position: relative; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--ink); background: var(--white); text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.kz-tile svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 34px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kz-tile b { font-size: .98rem; line-height: 1.15; }
.kz-tile small { margin-top: .2rem; color: var(--muted); font-size: .76rem; line-height: 1.25; }
.kz-tile:hover { border-color: var(--orange); }
.kz-tile.on { color: #fff; background: var(--orange); border-color: var(--orange); }
.kz-tile.on small { color: #fff3ee; }

.kz-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-bottom: 1rem; }
.kz-swatches-f { grid-template-columns: repeat(5, 1fr); margin-bottom: 0; }
.kz-swatch { padding: .3rem; border: 1px solid var(--line); background: var(--white); text-align: center; font-size: .74rem; font-weight: 750; cursor: pointer; }
.kz-swatch img { width: 100%; height: 46px; object-fit: cover; margin-bottom: .3rem; }
.kz-swatch span { display: block; line-height: 1.15; }
.kz-swatch .kz-same { height: 46px; display: grid; place-items: center; margin-bottom: .3rem; background: repeating-linear-gradient(45deg, #efece6 0 6px, #e5e1d9 6px 12px); font-size: 1.4rem; font-weight: 900; color: var(--muted); }
.kz-swatch:hover { border-color: var(--orange); }
.kz-swatch.on { border: 2px solid var(--orange); padding: calc(.3rem - 1px); }
#kz-facade-block[hidden] { display: none; }

.kz-step-more { padding-block: 0; }
.kz-more-toggle { width: 100%; padding: 1.3rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; border: 0; background: transparent; text-align: left; cursor: pointer; }
.kz-more-toggle > span { display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.kz-more-toggle > span::after { content: "+"; margin-left: .2rem; color: var(--orange); font-size: 1.5rem; font-weight: 700; }
.kz-step-more.open .kz-more-toggle > span::after { content: "−"; }
.kz-more-toggle .kz-num { background: var(--ink); }
.kz-more-toggle small { padding-left: calc(34px + .75rem); color: var(--muted); font-size: .82rem; }
.kz-more { padding-bottom: 1.5rem; }
.kz-more[hidden] { display: none; }
.kz-sec-tabs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: stretch; }
.kz-sec-tabs [data-tab] { min-width: 64px; min-height: 48px; padding: .3rem .6rem; border: 1px solid var(--ink); background: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.kz-sec-tabs [data-tab] b { font-size: 1rem; }
.kz-sec-tabs [data-tab] i { font-style: normal; font-size: .7rem; color: var(--muted); }
.kz-sec-tabs [data-tab].on { color: #fff; background: var(--orange); border-color: var(--orange); }
.kz-sec-tabs [data-tab].on i { color: #fff3ee; }
.kz-tab-ctl { display: flex; gap: .35rem; margin-left: auto; }
.kz-tab-ctl button { width: 48px; min-height: 48px; border: 1px solid var(--ink); background: var(--white); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.kz-tab-ctl button:disabled, .kz-stepper button:disabled { opacity: .35; cursor: default; }
.kz-help { margin: .6rem 0 0; color: var(--muted); font-size: .8rem; }
.kz-sec-editor { margin-top: 1rem; display: grid; gap: .9rem; }
.kz-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.kz-kinds button { min-height: 76px; padding: .5rem .3rem; border: 1px solid var(--ink); background: var(--white); display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 750; line-height: 1.15; cursor: pointer; }
.kz-kinds svg { width: 22px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.kz-kinds button.on { color: #fff; background: var(--ink); }
.kz-opt { display: block; }
.kz-opt .kz-label { margin-bottom: .35rem; }
.kz-seg { display: flex; border: 1px solid var(--ink); }
.kz-seg button { flex: 1; min-height: 42px; padding: .35rem .5rem; border: 0; border-right: 1px solid var(--ink); background: var(--white); font-size: .82rem; font-weight: 750; cursor: pointer; }
.kz-seg button:last-child { border-right: 0; }
.kz-seg button.on { color: #fff; background: var(--ink); }
.kz-seg-wrap { flex-wrap: wrap; border: 0; gap: .35rem; }
.kz-seg-wrap button { flex: none; border: 1px solid var(--ink); padding-inline: .8rem; }
.kz-opt select { width: 100%; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--ink); border-radius: 0; background: var(--white); font: inherit; font-weight: 650; }
.kz-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.kz-stepper button { width: 46px; min-height: 42px; border: 0; background: var(--white); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.kz-stepper output { min-width: 46px; text-align: center; font-weight: 850; font-size: 1.05rem; }
.kz-width { display: flex; align-items: center; gap: .8rem; }
.kz-width .kz-input-wrap { max-width: 150px; }
.kz-mini { display: flex; gap: .35rem; flex-wrap: wrap; }
.kz-mini button { min-height: 38px; padding: 0 .7rem; border: 1px solid var(--line); background: var(--white); font-size: .78rem; font-weight: 750; cursor: pointer; }
.kz-mini .kz-mini-sw { width: 38px; padding: 0; background: var(--sw); }
.kz-mini button.on { border: 2px solid var(--orange); }
.kz-common { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line); display: grid; gap: .9rem; }
.kz-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; cursor: pointer; }
.kz-check input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.kz-check[hidden] { display: none; }
.kz-check-block { align-items: flex-start; }
.kz-check-block small { display: block; margin-top: .15rem; color: var(--muted); font-weight: 500; font-size: .8rem; }

.kz-price { margin-top: auto; padding: 1.3rem clamp(1.1rem, 2.2vw, 2rem) 1.4rem; color: #fff; background: var(--ink); }
/* узкая закреплённая полоска «цена + WhatsApp» (компьютер): полный блок цены — в конце шагов */
.kz-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1.1rem, 2.2vw, 2rem); color: #fff; background: var(--ink); border-top: 1px solid #2c2c2a; transition: opacity .2s ease; }
.kz-bar > div > span { display: block; color: #aaa8a2; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kz-bar b { font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kz-bar .button { min-height: 46px; }
.kz-bar.off { opacity: 0; pointer-events: none; }
.kz-price-label { margin: 0; color: #aaa8a2; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kz-price-val { margin: .2rem 0 0; font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .2s ease; }
.kz-price.thinking .kz-price-val { opacity: .45; }
.kz-price-meta { margin: .45rem 0 0; color: #d6d4ce; font-size: .88rem; }
.kz-price .kz-check { margin-top: .8rem; color: #fff; }
.kz-price-note { margin: .7rem 0 1rem; color: #9f9d97; font-size: .8rem; }
.kz-wa { width: 100%; min-height: 58px; }
.kz-link { margin-top: .7rem; padding: .3rem 0; border: 0; background: transparent; color: #d6d4ce; font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; cursor: pointer; }
.kz-copied { margin: .4rem 0 0; color: var(--yellow); font-size: .8rem; word-break: break-all; }
.kz-copied input { width: 100%; margin-top: .3rem; padding: .4rem; border: 0; font: inherit; color: var(--ink); }
.kz-copied[hidden] { display: none; }

/* частые задачи */
.cases { padding-block: 0 clamp(5rem, 9vw, 8rem); }
.case-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.case-card { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.case-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dedbd3; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.case-card:hover .case-image img { transform: scale(1.025); }
.case-tag { position: absolute; top: 1rem; left: 1rem; padding: .4rem .65rem; background: var(--yellow); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.case-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { margin: 0 0 .6rem; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.04em; }
.case-body p { margin: 0 0 1.4rem; color: var(--muted); }

.steps { padding-top: 0; }
.works { padding-bottom: clamp(5rem, 10vw, 9rem); }
/* работы сразу под первым экраном: одна лента, на телефоне листается вбок */
.works-top { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.works-top .works-grid { margin-top: 1.4rem; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.works-wa { display: inline-block; margin-top: .4rem; font-weight: 800; color: var(--wa, #1A8045); text-underline-offset: .2em; }
@media (max-width: 1100px) {
  .works-top .works-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .5rem; scrollbar-width: none; }
  .works-top .works-grid img { flex: 0 0 34%; min-width: 0; scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .works-top .works-grid { margin-inline: -.625rem; padding-inline: .625rem; }
  .works-top .works-grid img { flex-basis: 58%; }
}
.works-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.works-grid img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #dedbd3; }

/* мы живые: видео из Instagram */
.reels { padding-bottom: clamp(5rem, 10vw, 9rem); }
.reels[hidden] { display: none; }
.reels-row { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.reel { margin: 0; position: relative; aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden; }
.reel iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.reel-play { position: absolute; inset: 0; width: 100%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: #fff; background: radial-gradient(circle at 30% 20%, #3a2a24, var(--ink) 70%); font-weight: 800; cursor: pointer; }
.reel-play svg { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--orange); fill: #fff; }
.reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-play svg, .reel-play span { position: relative; z-index: 1; }
.reel-play.has-poster { color: #fff; }
.reel-play.has-poster span { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.reel-play.has-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.55) 100%); }
.reel-play.has-poster svg { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.reel-play.has-poster ~ figcaption a { position: relative; z-index: 2; color: #fff; }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-size: .8rem; }
.reel figcaption a { color: #fff; }
.reel iframe ~ figcaption { display: none; }
.reel-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; border: 2px dashed #b9b5ab; background: transparent; color: var(--muted); text-align: center; font-weight: 800; }
.reel-empty small { font-weight: 500; font-size: .78rem; }

/* нижняя панель на телефоне: цена + WhatsApp */
.mobile-sticky a { text-decoration: none; color: inherit; }
#ms-price small { display: block; font-size: .68rem; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 1100px) {
  .hero-dark { grid-template-columns: 1fr; grid-template-areas: "media" "copy"; }
  .hero-dark .hero-media { min-height: 460px; }
  .hero-dark .hero-copy { min-height: 0; }
  .kz-grid { grid-template-columns: minmax(0, 1.1fr) minmax(330px, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .reels-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kz-grid { grid-template-columns: 1fr; border-inline: 0; }
  .kz { width: 100%; }
  .kz-head { padding-inline: 1.25rem; }
  .kz-view { height: 46vh; height: 46svh; max-height: none; min-height: 300px; border-right: 0; border-bottom: 1px solid var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .kz-toolbar { padding: .4rem .6rem; }
  .kz-tool { min-height: 36px; padding: .35rem .7rem; font-size: .8rem; }
  .kz-tool-icon { width: 36px; }
  .kz-dimline { font-size: .76rem; }
  .kz-bar { display: none; }
}
@media (max-width: 760px) {
  .hero-dark { width: 100%; }
  .hero-dark .hero-media { min-height: 0; aspect-ratio: 16 / 10; overflow: visible; }
  .hero-dark .hero-media img { overflow: hidden; }
  .badge-48 { z-index: 2; left: 1rem; bottom: -1.1rem; font-size: .78rem; padding: .5rem .8rem .5rem .6rem; }
  .badge-48 svg { width: 20px; height: 20px; }
  .hero-dark .hero-copy { padding: 2.2rem 1.25rem 2rem; }
  .hero-dark .eyebrow-line { margin-bottom: .8rem; }
  .hero-dark h1 { max-width: 13ch; font-size: clamp(2.1rem, 9.6vw, 3rem); line-height: .97; }
  .hero-dark .hero-lead { margin-top: .9rem; font-size: .95rem; }
  .hero-dark .hero-actions { margin-top: 1.1rem; gap: .6rem; }
  .hero-icons { grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-top: 2rem; }
  .hero-icons li { flex-direction: column; align-items: flex-start; font-size: .64rem; gap: .5rem; }
  .hero-icons svg { width: 28px; height: 28px; }
  .kz-step { padding: 1.2rem 1rem; }
  .kz-step h3 { font-size: 1.15rem; }
  .kz-tile { min-height: 76px; padding: .6rem .6rem .6rem 3.3rem; }
  .kz-tile svg { left: .6rem; width: 30px; height: 38px; }
  .kz-tile b { font-size: .9rem; }
  .kz-tile small { font-size: .7rem; }
  .kz-input-wrap input { font-size: 1.4rem; }
  .kz-custom input, .kz-input-sm input, .kz-opt select { font-size: 16px; }
  .kz-swatch { font-size: .68rem; }
  .kz-swatch img, .kz-swatch .kz-same { height: 38px; }
  .kz-swatches-f { grid-template-columns: repeat(5, 1fr); gap: .3rem; }
  .kz-price { padding: 1.3rem 1rem 1.5rem; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { display: flex; }
  .case-body { padding: 1rem; }
  .case-body h3 { font-size: 1.2rem; }
  .case-body p { font-size: .84rem; margin-bottom: 1rem; }
  .case-tag { top: .6rem; left: .6rem; font-size: .72rem; }
  .case-note { left: .6rem; bottom: .6rem; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .reels-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .6rem; margin-inline: -.625rem; padding-inline: .625rem; scrollbar-width: none; }
  .reel { flex: 0 0 68%; scroll-snap-align: start; }
  .mobile-sticky { padding: 0; }
  .mobile-sticky a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; font-weight: 850; font-size: 1rem; line-height: 1.1; }
  .mobile-sticky a:first-child { background: var(--ink); }
}

/* итог проекта, город, запасной путь, купе */
.kz-summary { margin-bottom: 1rem; }
.kz-shots { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .8rem; }
.kz-shots[hidden] { display: none; }
.kz-shots img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; background: #2a2a28; }
.kz-sum-title { margin: 0; font-size: 1.15rem; font-weight: 850; letter-spacing: -.02em; }
.kz-sum-fill { margin: .2rem 0 0; color: #c9c7c1; font-size: .85rem; }
.kz-city { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .9rem; font-size: .88rem; font-weight: 700; }
.kz-city select { min-height: 40px; max-width: 60%; padding: .3rem .5rem; border: 1px solid #5c5b56; border-radius: 0; color: #fff; background: #1c1c1a; font: inherit; font-size: 16px; }
.kz-after { margin: .7rem 0 0; color: var(--yellow); font-size: .85rem; }
.kz-after[hidden] { display: none; }
.kz-after a { color: #fff; }
.kz-after .kz-link { margin: 0; padding: 0; color: var(--yellow); font-size: inherit; }
.kz-kupe { margin-top: 1.5rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--yellow); border: 1px solid var(--ink); }
.kz-kupe[hidden] { display: none; }
.kz-kupe p { margin: 0; max-width: 46rem; }
.case-grid { grid-template-columns: repeat(4, 1fr); }
.case-kupe { background: var(--ink); color: #fff; }
.case-kupe .case-body p:not(.eyebrow) { color: #c9c7c1; }
/* купе — полоса на всю ширину под четырьмя проектами */
.case-kupe { grid-column: 1 / -1; }
.case-kupe .case-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: center; }
.case-kupe .case-body > * { grid-column: 1; }
.case-kupe .case-body p:not(.eyebrow) { margin-bottom: 0; }
.case-kupe .button { grid-column: 2; grid-row: 1 / span 3; }
/* цена шкафа с фото + заказ в WhatsApp */
.case-price { margin-top: auto; margin-bottom: .8rem; display: flex; flex-direction: column; gap: .15rem; }
.case-price b { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.case-price b.wait { font-size: 1rem; font-weight: 700; color: var(--muted); }
.case-price small { color: var(--muted); font-size: .78rem; }
.case-order { width: 100%; min-height: 50px; }
.case-body .button-card { margin-top: .5rem; }
/* «живые» фото проектов: внутри / с дверями */
.case-image { aspect-ratio: 3 / 2; }
.case-shots img { position: absolute; inset: 0; }
.case-shots[data-view="open"] img[data-v="closed"], .case-shots[data-view="closed"] img[data-v="open"] { display: none; }
.case-switch { position: absolute; right: .6rem; top: .6rem; display: flex; padding: 3px; gap: 2px; background: rgba(255,255,255,.92); border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.case-switch button { min-height: 32px; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.case-switch button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.case-note { position: absolute; left: 1rem; bottom: .8rem; padding: .2rem .5rem; border-radius: 999px; color: #fff; background: rgba(30,26,22,.45); font-size: .66rem; font-weight: 650; letter-spacing: .02em; pointer-events: none; }
@media (max-width: 1100px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-kupe .case-body { display: flex; flex-direction: column; }
  .case-kupe .button { width: 100%; }
  .kz-kupe { margin-inline: 1.25rem; }
}

/* мини-расчёт на первом экране: одно число → цена */
.hero-calc { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: end; max-width: 560px; }
.hero-calc-field > span:first-child { display: block; margin-bottom: .4rem; color: #c9c7c1; font-size: .78rem; font-weight: 750; }
.hero-calc-input { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.55); background: #1c1c1a; }
.hero-calc-input:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hero-calc-input input { flex: 1; min-width: 0; min-height: 54px; padding: .5rem .9rem; border: 0; outline: 0; color: #fff; background: transparent; font-size: 1.35rem; font-weight: 800; }
.hero-calc-input input::placeholder { color: #77756f; font-weight: 600; }
.hero-calc-input i { padding-right: .9rem; color: #aaa8a2; font-style: normal; font-weight: 750; }
.hero-calc .button { min-height: 56px; }
.hero-calc-err { grid-column: 1 / -1; margin: 0; padding: .5rem .7rem; color: var(--ink); background: var(--yellow); font-size: .85rem; font-weight: 700; }
.hero-calc-err[hidden] { display: none; }
.hero-alt { margin: .9rem 0 0; color: #c9c7c1; font-size: .9rem; }
.hero-alt a { color: #fff; font-weight: 750; text-underline-offset: .25rem; }
/* телефон: открыта клавиатура в конструкторе — 3D сжимается, поле видно */
@media (max-width: 860px) {
  .kz-view.kb { height: 24vh; height: 24svh; min-height: 150px; }
  .kz-view.kb .kz-toolbar { display: none; }
}
@media (max-width: 760px) {
  .hero-calc { margin-top: 1.1rem; }
  .hero-calc-input input { font-size: 1.25rem; min-height: 52px; }
  .hero-calc .button { min-height: 54px; padding-inline: 1rem; }
  .hero-alt { font-size: .85rem; }
}

/* ── правки по проверке 25.09 ── */
.kz-asm-note { margin: .6rem 0 0; color: #c9c7c1; font-size: .85rem; }
.kz-copied input { font-size: 16px; }
.footer-req { color: var(--muted); }
.kz-tile.on small { color: #fff; }
.kz-view { min-height: min(300px, 55svh); }
@media (max-width: 860px) {
  .kz-view.unstick { position: relative; }
  /* нижняя панель «цена + WhatsApp» — на всех узких экранах, включая телефон боком */
  .mobile-sticky { position: fixed; z-index: 10; left: .7rem; right: .7rem; bottom: max(.7rem, env(safe-area-inset-bottom)); min-height: 58px; padding: 0; display: flex; color: #fff; background: var(--orange); box-shadow: 0 12px 35px rgba(0,0,0,.28); transition: transform .25s ease, opacity .25s ease; }
  .mobile-sticky a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; font-weight: 850; font-size: 1.17rem; line-height: 1.1; text-decoration: none; color: inherit; }
  .mobile-sticky a:first-child { background: var(--ink); font-size: 1.05rem; }
  .mobile-sticky.away { transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s; }
  .site-footer, .final-cta { padding-bottom: 6rem; }
  /* зоны нажатия ≥44 px */
  .kz-tool { min-height: 44px; }
  .kz-tool-icon { width: 44px; }
  .kz-seg button, .kz-stepper button, .kz-tab-ctl button, .kz-mini button, .kz-city select, .menu-button, .button-small { min-height: 44px; }
  .kz-mini .kz-mini-sw { width: 44px; }
  .kz-check { min-height: 44px; }
  .kz-check input { width: 22px; height: 22px; }
  .kz-link { padding: .75rem 0; }
  .kz-measure summary { padding: .6rem 0; }
  #kz-sec-tabs { scroll-margin-top: calc(46svh + 12px); scroll-margin-bottom: 100px; }
}
@media (max-width: 760px) {
  .hero-dark .hero-media { aspect-ratio: 2 / 1; }
  .hero-dark .hero-lead { font-size: .92rem; }
}
@media (max-width: 380px) {
  .hero-calc { grid-template-columns: 1fr; }
  .hero-calc .button { width: 100%; }
}

/* ── правки повторной проверки ── */
@media (min-width: 861px) { .mobile-sticky { display: none !important; } }
#ms-price { transition: opacity .2s ease; }
#ms-price.thinking { opacity: .55; }
/* полоска цены на компьютере не оставляет пустоты: у своего места её накрывает блок цены */
.kz-bar { height: 70px; margin-bottom: -70px; }
.kz-price { position: relative; z-index: 3; }
/* клавиатура сжимает 3D, только пока оно липнет */
@media (max-width: 860px) { .kz-view.kb.unstick { height: 46vh; height: 46svh; } }
/* маленький телефон: липкое 3D меньше половины экрана */
@media (max-width: 860px) and (max-height: 700px) { .kz-view { height: 40vh; height: 40svh; min-height: 220px; } }
/* телефон боком (узкая раскладка): 3D не липнет и не съедает экран; фото первого экрана ниже */
@media (max-width: 860px) and (max-height: 520px) and (orientation: landscape) {
  .kz-view, .kz-view.kb { position: relative; height: 80svh; min-height: 0; }
  .hero.hero-dark .hero-media { min-height: 0; aspect-ratio: 21 / 9; max-height: 55svh; }
}

/* итог: один крупный кадр с размерами + переключатель «С дверями / Наполнение» */
.kz-shots { display: block; position: relative; margin-bottom: .9rem; }
.kz-shots img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }
.kz-shot-switch { margin-top: .5rem; display: inline-flex; border: 1px solid var(--ink); background: var(--white); }
.kz-shot-switch button { min-height: 40px; padding: .35rem .8rem; border: 0; background: transparent; color: var(--ink); font-weight: 750; font-size: .82rem; cursor: pointer; }
.kz-shot-switch button.on { color: #fff; background: var(--ink); }

/* ── окно «своя высота / глубина»: снизу, 3D остаётся на экране ── */
.kz-sheet { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; padding: 1rem 1.2rem max(1.1rem, env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--ink); box-shadow: 0 -18px 50px rgba(0,0,0,.22); transform: translateY(105%); transition: transform .25s ease; }
.kz-sheet.on { transform: none; }
.kz-sheet:not(.on), .wa-offer:not(.on) { pointer-events: none; }
.kz-sheet, .wa-offer { touch-action: manipulation; }
.kz-sheet-price { margin-left: auto; margin-right: .2rem; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kz-sheet-hint.err { color: var(--orange-dark, #d94220); font-weight: 650; }
.kz-sheet-hint.err a { color: inherit; font-weight: 800; }
/* ввод с клавиатуры: окно низкое, чтобы над клавиатурой оставался шкаф; закрывается кнопкой «Готово» клавиатуры */
@media (hover: none) and (pointer: coarse) { .kz-sheet:focus-within .kz-sheet-range, .kz-sheet:focus-within .kz-sheet-hint, .kz-sheet:focus-within .kz-sheet-ok { display: none; } }
.kz-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.kz-sheet-head b { font-size: 1.15rem; letter-spacing: -.02em; }
.kz-sheet-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.kz-sheet-val { margin-top: .6rem; display: grid; grid-template-columns: 56px 1fr 56px; gap: .6rem; align-items: center; }
.kz-sheet-step { height: 56px; border: 1px solid var(--ink); background: var(--white); font-size: 1.8rem; font-weight: 700; cursor: pointer; }
.kz-sheet-num { display: flex; align-items: baseline; justify-content: center; gap: .4rem; }
.kz-sheet-num input { width: 5ch; border: 0; border-bottom: 2px solid var(--line); background: transparent; text-align: center; font: inherit; font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; outline: 0; }
.kz-sheet-num input:focus { border-bottom-color: var(--orange); }
.kz-sheet-num i { font-style: normal; font-weight: 750; color: var(--muted); }
.kz-sheet-range { width: 100%; margin: 1rem 0 .3rem; accent-color: var(--orange); height: 32px; }
.kz-sheet-hint { margin: 0 0 .9rem; color: var(--muted); font-size: .85rem; }
.kz-sheet-ok { width: 100%; }
body.sheet-open .mobile-sticky, body.offer-open .mobile-sticky, body.order-open .mobile-sticky { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ── предложение в WhatsApp ── */
.wa-offer { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); margin: 0 auto; max-width: 440px; padding: 1.1rem 1.2rem 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--ink); box-shadow: 0 22px 60px rgba(0,0,0,.3); transform: translateY(130%); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.wa-offer.on { transform: none; }
.wa-offer { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 520px) { .wa-offer-title { font-size: 1.12rem; } }
.wa-offer-x { position: absolute; top: .4rem; right: .4rem; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.wa-offer-text { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.35; color: var(--muted); }
.wa-offer-title { margin: 0 2.4rem .4rem 0; font-size: 1.3rem; font-weight: 900; line-height: 1.12; letter-spacing: -.03em; }
.wa-offer-btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: .55rem; color: #fff; background: #1A8045; font-size: 1.17rem; text-align: center; line-height: 1.2; }
.wa-offer-btn svg { width: 24px; height: 24px; flex: 0 0 auto; fill: #fff; }
.wa-offer-live { margin: 0 2.4rem .5rem 0; display: flex; align-items: center; gap: .4rem; color: #1A7A43; font-size: .82rem; font-weight: 800; }
.wa-offer-live svg { width: 17px; height: 17px; flex: 0 0 auto; fill: #25D366; }
.wa-offer-btn:hover { background: #146B39; }
@media (min-width: 861px) {
  .wa-offer { left: auto; right: 24px; bottom: 24px; }
  .kz-sheet { left: auto; right: 24px; bottom: 24px; width: 420px; margin: 0; border: 1px solid var(--ink); }   /* справа, над панелью — 3D слева не закрываем */
}

/* заказ на сайте: снизу на телефоне, по центру на компьютере */
.kz-order-open { width: 100%; margin-top: .6rem; }
.kz-order { position: fixed; z-index: 70; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(20,16,12,.45); opacity: 0; transition: opacity .2s ease; }
.kz-order[hidden] { display: none; }
.kz-order.on { opacity: 1; }
.kz-order-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1.2rem max(1.2rem, env(safe-area-inset-bottom)); color: var(--ink); background: var(--white); border-radius: 20px 20px 0 0; transform: translateY(40px); transition: transform .25s ease; }
.kz-order.on .kz-order-box { transform: none; }
.kz-order-x { position: absolute; top: .4rem; right: .4rem; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; cursor: pointer; }
.kz-order-title { margin: 0 2.4rem .3rem 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.kz-order-sum { margin: 0 0 .9rem; color: var(--muted); font-size: .88rem; }
.kz-field { display: block; margin-bottom: .7rem; }
.kz-field > span { display: block; margin-bottom: .25rem; font-size: .82rem; font-weight: 750; }
.kz-field small { font-weight: 500; color: var(--muted); }
.kz-field input, .kz-field textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--line-strong, #cfc9bf); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.kz-field textarea { min-height: 64px; resize: vertical; }
.kz-field input:focus, .kz-field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.kz-order .kz-check { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .7rem; font-size: .84rem; }
.kz-order .kz-check input { width: 20px; height: 20px; margin: .05rem 0 0; flex: 0 0 auto; accent-color: var(--orange); }
.kz-order-next { margin: .2rem 0 .7rem; color: var(--muted); font-size: .8rem; }
.kz-consent a { color: inherit; }
.kz-order-err { margin: 0 0 .6rem; color: var(--orange-dark, #d94220); font-size: .85rem; font-weight: 700; }
.kz-order-err[hidden], .kz-order-ok[hidden], #kz-order-form[hidden] { display: none; }
.kz-order-submit { width: 100%; min-height: 54px; }
.kz-order-wa { display: block; margin-top: .7rem; text-align: center; font-weight: 800; color: var(--wa, #1A8045); }
.kz-order-ok p { color: var(--muted); }
.kz-order-ok .button { width: 100%; margin-top: .6rem; }
body.order-open { overflow: hidden; }
@media (min-width: 861px) {
  .kz-order { align-items: center; }
  .kz-order-box { border-radius: 20px; max-height: calc(100dvh - 48px); }
}

/* 05.10.2026, владелец: предложение WhatsApp — всплывающим окном по центру экрана, с затемнением фона */
.wa-offer-bg { position: fixed; inset: 0; z-index: 59; background: rgba(24, 18, 12, .5); opacity: 0; transition: opacity .25s; touch-action: none; }
.wa-offer-bg.on { opacity: 1; }
.wa-offer { top: 50%; left: 50%; right: auto; bottom: auto; width: calc(100% - 32px); max-width: 420px; margin: 0; opacity: 0;
  transform: translate(-50%, -50%) scale(.94); transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .22s; max-height: calc(100dvh - 32px); }
.wa-offer.on { transform: translate(-50%, -50%); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wa-offer, .wa-offer-bg { transition: none; } }
