:root {
  --paper: #e8e0d2;
  --paper-2: #f4eee4;
  --sheet: #fbf7f0;
  --ink: #1a1612;
  --ink-soft: #4a433b;
  --mute: #7a7268;
  --line: #d4cbbd;
  --timber: #9a4a1a;
  --timber-dk: #6e3010;
  --graphite: #2c2f33;
  --good: #2c5a38;
  --shadow: 0 18px 50px -28px rgba(26, 22, 18, .45);
  --radius: 2px;
  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --text: "Golos Text", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--sheet);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
}
.section-head,
.section-head h2,
.hero h1,
.product h3,
.third h3 {
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
  font-size: 15px;
}
.brand-place {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.header-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}
.header-nav a:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-link {
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 14px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--sheet);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--sheet);
  padding: 12px 0 calc(18px + env(safe-area-inset-bottom));
}
.mobile-menu-nav {
  display: grid;
  gap: 0;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-actions {
  width: min(1360px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  gap: 12px;
}
.mobile-menu-actions .phone-link {
  font-size: 18px;
}
.mobile-menu-actions .btn {
  width: 100%;
  min-height: 48px;
}
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(26, 22, 18, .35);
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .site-header {
  z-index: 45;
  background: var(--sheet);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.btn:active { transform: translateY(0); }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, .08) 35%,
    rgba(255, 255, 255, .38) 50%,
    rgba(255, 255, 255, .08) 65%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.btn-ghost::after {
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(26, 22, 18, .04) 35%,
    rgba(26, 22, 18, .14) 50%,
    rgba(26, 22, 18, .04) 65%,
    transparent 100%
  );
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover::after {
    animation: btn-glint-fast .7s var(--ease) 1;
  }
}
.btn-ink {
  background: var(--ink);
  color: var(--sheet);
}
.btn-ink:hover { background: #000; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-timber {
  background: var(--timber);
  color: #fff;
}
.btn-timber:hover { background: var(--timber-dk); }
.btn-wide { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn-timber::after,
  .btn-ink::after {
    animation: btn-glint 3.6s ease-in-out infinite;
  }
  .hero-actions .btn-timber::after { animation-delay: .5s; }
  .header-cta::after { animation-delay: 1s; }
  .quiz-section .btn-timber::after { animation-delay: 1.6s; }
  .mobile-cta .btn-ink::after { animation-delay: .8s; }
}
@keyframes btn-glint {
  0%, 48%, 100% {
    transform: translateX(-160%) skewX(-18deg);
    opacity: 0;
  }
  54% { opacity: 1; }
  78% {
    transform: translateX(280%) skewX(-18deg);
    opacity: 1;
  }
  84% {
    transform: translateX(300%) skewX(-18deg);
    opacity: 0;
  }
}
@keyframes btn-glint-fast {
  0% {
    transform: translateX(-160%) skewX(-18deg);
    opacity: .35;
  }
  100% {
    transform: translateX(280%) skewX(-18deg);
    opacity: 1;
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: end;
  padding: 56px 0 72px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--timber);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--timber);
}
.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.trust div {
  padding: 16px 14px 0 0;
}
.trust b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.trust span {
  font-size: 12px;
  color: var(--mute);
}
.trust-deal b {
  color: var(--timber);
}
.trust-deal span {
  margin-top: 4px;
  display: block;
  color: var(--timber-dk);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}
.hero-frame {
  position: relative;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-frame img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.92) contrast(1.04);
}
.stamp {
  position: absolute;
  right: 14px;
  bottom: 40px;
  z-index: 2;
  width: 136px;
  height: 136px;
  line-height: 0;
  filter: drop-shadow(0 12px 22px rgba(26, 22, 18, .34));
  transform: translate3d(0, 0, 0) rotate(-10deg);
  backface-visibility: hidden;
}
.stamp svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}
.stamp-spin {
  transform-origin: 68px 68px;
  transform-box: view-box;
}
@media (prefers-reduced-motion: no-preference) {
  .stamp-spin {
    animation: stamp-ring-spin 14s linear infinite;
  }
}
@keyframes stamp-ring-spin {
  to { transform: rotate(360deg); }
}
.drawing-note {
  display: none;
}

/* Sections */
.section {
  padding: 84px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.num {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--timber);
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.04em;
  margin: 0;
  line-height: 1.05;
  font-weight: 500;
}
.section-head p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
  max-width: 28em;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.split-solo {
  grid-template-columns: 1fr;
  max-width: 640px;
}
.product {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product h3 {
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -.03em;
  font-weight: 500;
}
.product .use {
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.spec-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}
.spec-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.spec-list li span { color: var(--mute); }

.third {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  background: var(--graphite);
  color: #efe8dc;
  padding: 28px;
}
.third h3 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.third p { margin: 0 0 16px; color: #cfc6b8; max-width: 38em; }
.note-chip {
  display: inline-block;
  border: 1px solid #6b655c;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.third-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.third-photos img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  filter: saturate(.85);
}

/* Services */
.services-lead {
  margin: -18px 0 28px;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.45;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--sheet);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
a.service:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.service-visual {
  display: block;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efe8dc;
  line-height: 0;
}
.service-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.92) contrast(1.03);
}
.service-cap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.service b {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--timber);
  font-weight: 500;
}
.service h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.service p,
.service-link {
  display: none;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.step {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 500;
}
.step h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }

/* Materials */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mat {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 20px;
}
.mat h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.02em;
}
.mat p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.gallery-side {
  display: grid;
  gap: 10px;
}
.gallery figure { margin: 0; position: relative; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery .big img { height: 540px; }
.gallery .small img { height: 265px; }
.gallery-side:has(> :only-child) .small img { height: 540px; }

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.gallery-row figure { margin: 0; }
.gallery-row img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Continuous photo marquee — та же ширина .wrap и язык галереи хозблоков */
.works-marquee {
  width: 100%;
  overflow: hidden;
}
.works-marquee-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: works-marquee 48s linear infinite;
  will-change: transform;
}
.works-marquee-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(480px, 58vw);
  position: relative;
}
.works-marquee-track img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
}
.works-marquee:hover .works-marquee-track {
  animation-play-state: paused;
}
@keyframes works-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 980px) {
  .works-marquee-track img { height: 280px; }
}
@media (max-width: 720px) {
  .works-marquee-track figure { width: min(300px, 82vw); }
  .works-marquee-track img { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .works-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
  .works-marquee-track figure[aria-hidden="true"] {
    display: none;
  }
}

/* Live configurator */
.calc-head {
  grid-template-columns: 88px 1fr;
  align-items: start;
}
.calc-head-copy {
  min-width: 0;
}
.calc-head-copy h2 {
  margin: 0;
}
.calc-head-copy p {
  margin: 10px 0 0;
  max-width: 36em;
  text-align: left;
  color: #b8b0a6;
  font-size: 15px;
}
.calc-panel {
  background: #241f1b;
  border: 1px solid #3c352e;
  padding: 28px;
  min-width: 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 28px 32px;
  align-items: start;
}
.calc-options,
.calc-side {
  min-width: 0;
}
.calc-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}
.calc-field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.calc-field:last-child { margin-bottom: 0; }
.calc-field legend {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b8b0a6;
}
.calc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.calc-panel .opts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.calc-panel .opts.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calc-panel .opts.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .calc-panel .opts.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.calc-panel .opts.sizes {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.calc-panel .opt {
  width: 100%;
  min-width: 0;
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.25;
}
.calc-panel .opts.sizes .opt {
  text-align: center;
  padding: 12px 6px;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
.calc-panel .opts.colors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.calc-panel .color-opt {
  display: grid;
  gap: 8px;
  padding: 8px;
  text-align: left;
  align-content: start;
}
.calc-panel .color-opt img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ddd;
}
.calc-panel .color-opt span {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
}
.calc-panel .color-opt.picked img {
  border-color: var(--ink);
}
@media (max-width: 720px) {
  .calc-panel .opts.colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.calc-price {
  margin: 0;
  padding: 18px 18px 16px;
  background: #1a1612;
  border: 1px solid #4a433b;
}
.calc-price-lbl {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b8b0a6;
}
.calc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.calc-price-nums {
  min-width: 0;
  flex: 0 1 auto;
}
.calc-price-was {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #9a9086;
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #c4b5a5;
}
.calc-price-was small {
  font-size: .45em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
  opacity: .85;
  text-decoration: none;
}
.calc-price-val {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-top: 4px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc-price-val small {
  font-size: .4em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
  opacity: .85;
}
.calc-price-save {
  margin: 0;
  flex: 1 1 11em;
  max-width: 13em;
  display: grid;
  gap: 2px;
  padding: 10px 12px 10px 14px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(154, 74, 26, .28) 0%, rgba(42, 28, 20, .55) 100%);
  border: 1px solid rgba(196, 120, 64, .45);
  border-left: 3px solid var(--timber);
  box-shadow: inset 0 1px 0 rgba(255, 232, 210, .08);
  opacity: .72;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.calc-price-save.is-on {
  opacity: 1;
}
.calc-price-save.is-pop {
  animation: calc-save-pop .45s var(--ease);
}
.calc-price-save-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d9b08a;
}
.calc-price-save-sum {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #ffe8d2;
  font-variant-numeric: tabular-nums;
}
.calc-price-save-cta {
  font-size: 12px;
  line-height: 1.3;
  color: #f0d4b8;
}
@keyframes calc-save-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.calc-discount {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #3a2418 0%, #2a1c14 100%);
  border: 1px solid #8a4e28;
}
.calc-discount-pct {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 10px;
  background: var(--timber);
  color: #fff7ef;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-discount-txt {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #f0e6da;
}
.calc-price-sub {
  margin-top: 10px;
  font-size: 13px;
  color: #d9d1c5;
  line-height: 1.45;
}
.calc-price-val-soft {
  font-size: clamp(28px, 3.2vw, 36px);
  color: #f3ebe3;
}
.calc-price-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #cfc4b8;
  max-width: 18em;
}
.calc-lead {
  padding: 16px;
  border: 1px solid #3c352e;
  background: #1f1a16;
}
.calc-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}
.calc-actions .btn { width: 100%; min-height: 48px; }
@media (max-width: 900px) {
  .calc-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  /* цена и форма — прямые дети сетки: цена сверху и всегда на экране */
  .calc-side {
    display: contents;
    position: static;
  }
  .calc-price {
    order: -1;
    position: sticky;
    top: calc(64px + env(safe-area-inset-top, 0px));
    z-index: 25;
    margin: 0 -4px;
    padding: 12px 14px 12px;
    background: #1a1612;
    border-color: #5a5046;
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .65);
  }
  .calc-price-row {
    gap: 12px;
  }
  .calc-price-was {
    font-size: 18px;
    margin-top: 0;
  }
  .calc-price-val {
    font-size: 30px;
    margin-top: 2px;
  }
  .calc-price-save {
    max-width: 11.5em;
    padding: 8px 10px 8px 12px;
  }
  .calc-price-save-sum {
    font-size: 17px;
  }
  .calc-price-save-cta {
    font-size: 11px;
  }
  .calc-discount {
    margin-top: 10px;
    padding: 8px 10px;
    gap: 10px;
  }
  .calc-discount-pct {
    min-width: 48px;
    padding: 6px 8px;
    font-size: 14px;
  }
  .calc-discount-txt {
    font-size: 12px;
  }
  .calc-options {
    order: 0;
  }
  .calc-lead {
    order: 1;
  }
  .calc-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calc-panel {
    padding: 18px 16px 20px;
  }
  .calc-panel .opts.sizes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Quiz (legacy styles still used by opts/fields) */
.quiz-section {
  background: var(--ink);
  color: var(--sheet);
}
.quiz-section .section-head {
  border-bottom-color: #3a3530;
}
.quiz-section .section-head p { color: #b8b0a6; }
.quiz-section .btn-ghost {
  color: var(--sheet);
  border-color: #5a534a;
}
.quiz-section .btn-ghost:hover { border-color: #c4b8a8; }
.quiz-box {
  background: #241f1b;
  border: 1px solid #3c352e;
  padding: 28px;
}
.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.quiz-progress i {
  height: 3px;
  flex: 1;
  background: #3c352e;
}
.quiz-progress i.on { background: var(--timber); }
.quiz-step h3 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.opts.sizes { grid-template-columns: repeat(4, 1fr); }
.opts.sizes .opt {
  text-align: center;
  padding: 12px 8px;
  min-height: 48px;
}
.opt {
  text-align: left;
  background: transparent;
  color: var(--sheet);
  border: 1px solid #4a433b;
  padding: 16px;
  cursor: pointer;
  min-height: 48px;
  transition: border-color .15s, background .15s;
}
.opt:focus-visible { border-color: #c4b8a8; }
@media (hover: hover) {
  .opt:hover { border-color: #c4b8a8; }
}
.opt.picked {
  border-color: var(--timber);
  background: color-mix(in srgb, var(--timber) 18%, transparent);
}
.opt small {
  display: block;
  color: #b8b0a6;
  margin-top: 4px;
  font-size: 12px;
}
.quiz-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.quiz-nav #quiz-back { margin-right: auto; }
.fields {
  display: grid;
  gap: 12px;
}
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b8b0a6;
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: #1a1612;
  border: 1px solid #4a433b;
  color: var(--sheet);
  padding: 12px 12px;
  font-size: 16px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--timber);
  outline-offset: 1px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #d9d1c5;
}
.check input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--timber); }
.quiz-section .check a { color: #e0b48a; }
.quiz-section .check a:hover { color: #fff; }
.contacts-send {
  display: grid;
  gap: 6px;
}
.quiz-send,
.quiz-back-inline {
  width: 100%;
  min-height: 48px;
}
#quiz-form.is-contacts .quiz-nav {
  display: none;
}
#quiz-form.is-contacts .err:empty {
  display: none;
  min-height: 0;
  margin: 0;
}
.summary {
  background: #1a1612;
  border: 1px dashed #4a433b;
  padding: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  color: #d9d1c5;
  margin-bottom: 16px;
}
.success {
  text-align: left;
}
.success h3 { margin-bottom: 10px; }
.success p { color: #d9d1c5; }
.hidden { display: none !important; }
.err { color: #e8b4a8; font-size: 13px; min-height: 1.2em; }

/* Footer */
.site-footer {
  padding: 40px 0 80px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}
.site-footer strong {
  font-family: var(--display);
  font-weight: 500;
}
.site-footer p { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.site-footer .footer-disclaimer {
  max-width: 28em;
  font-size: 12px;
  line-height: 1.45;
}
.site-footer a { color: var(--ink-soft); }

.legal {
  padding: 48px 0 80px;
  max-width: 720px;
}
.legal h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 0 0 12px;
}
.legal .meta { color: var(--mute); margin: 0 0 28px; font-size: 14px; }
.legal h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  margin: 28px 0 8px;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--timber-dk); }
.legal ul { padding-left: 1.2em; }

.thanks {
  padding: 56px 0 100px;
  max-width: 720px;
}
.thanks-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.thanks h1 {
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: -.045em;
  font-weight: 600;
  line-height: .95;
  margin: 0 0 18px;
}
.thanks-lead {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
}
.thanks-summary {
  margin-bottom: 22px;
  background: var(--sheet);
  border: 1px dashed var(--line);
  color: var(--ink-soft);
}
.thanks-actions,
.thanks-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.thanks-note {
  margin: 16px 0 28px;
  font-size: 13px;
  color: var(--mute);
}
@media (max-width: 720px) {
  .thanks { padding: 32px 0 88px; }
  .thanks-lead { font-size: 16px; }
  .thanks-actions,
  .thanks-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .thanks-actions .btn,
  .thanks-footer .btn {
    width: 100%;
    min-height: 48px;
  }
}

.float-msg {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-msg-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  isolation: isolate;
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.float-msg-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.float-msg-btn img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 0;
}
.float-msg-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, .7) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 240% 100%;
  background-position: 130% 0;
  mix-blend-mode: soft-light;
  opacity: 0;
}
.float-msg-btn span {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(4px, -50%);
  padding: 7px 11px;
  white-space: nowrap;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.float-msg-btn span::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
@media (hover: hover) {
  .float-msg-btn:hover span,
  .float-msg-btn:focus-visible span {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
.float-msg-tg {
  filter: drop-shadow(0 8px 18px rgba(29, 147, 210, .42));
}
.float-msg-tg:hover {
  filter: drop-shadow(0 12px 24px rgba(29, 147, 210, .52)) brightness(1.05);
}
.float-msg-wa {
  filter: drop-shadow(0 8px 18px rgba(35, 179, 58, .42));
}
.float-msg-wa:hover {
  filter: drop-shadow(0 12px 24px rgba(35, 179, 58, .52)) brightness(1.05);
}
.float-msg-max {
  filter: drop-shadow(0 8px 18px rgba(71, 26, 255, .38));
}
.float-msg-max:hover {
  filter: drop-shadow(0 12px 24px rgba(71, 26, 255, .48)) brightness(1.05);
}
@media (prefers-reduced-motion: no-preference) {
  .float-msg-btn {
    animation: float-msg-bob 3.6s var(--ease) infinite;
  }
  .float-msg-wa { animation-delay: .5s; }
  .float-msg-max { animation-delay: 1s; }
  .float-msg-btn::before {
    animation: float-msg-shine 3.8s ease-in-out infinite;
  }
  .float-msg-wa::before { animation-delay: .9s; }
  .float-msg-max::before { animation-delay: 1.8s; }
  .float-msg-btn:hover,
  .float-msg-btn:focus-visible {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.06);
  }
  .float-msg-btn:hover::before,
  .float-msg-btn:focus-visible::before {
    animation: float-msg-shine-fast .85s var(--ease) 1;
    opacity: 1;
  }
}
@keyframes float-msg-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes float-msg-shine {
  0%, 45%, 100% {
    background-position: 130% 0;
    opacity: 0;
  }
  52% { opacity: .95; }
  72% {
    background-position: -30% 0;
    opacity: .95;
  }
  80% {
    background-position: -40% 0;
    opacity: 0;
  }
}
@keyframes float-msg-shine-fast {
  0% {
    background-position: 130% 0;
    opacity: .2;
  }
  100% {
    background-position: -40% 0;
    opacity: .9;
  }
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  gap: 8px;
}
.mobile-cta .btn {
  min-height: 48px;
  flex: 1;
  transform: none;
}

@media (max-width: 980px) {
  .third,
  .gallery,
  .section-head,
  .footer-row {
    grid-template-columns: 1fr;
  }
  .split { grid-template-columns: 1fr 1fr; }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(5) {
    grid-column: 1 / -1;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .mat-grid { grid-template-columns: 1fr 1fr; }
  .opts.sizes { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 32px 0 48px; gap: 28px; }
  .hero-frame img { height: 420px; }
  .gallery .big img, .gallery .small img { height: 280px; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-row img { height: 240px; }
  .section-head p { text-align: left; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: block; }
  .menu-backdrop:not([hidden]) { display: block; }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .step { border-right: 0; border-bottom: 0; }
  .step:nth-child(1),
  .step:nth-child(3) { border-right: 1px solid var(--line); }
  .step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stamp { width: 112px; height: 112px; }
  .mobile-cta { display: flex; }
  body:has(.mobile-cta) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .float-msg {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom) + 12px);
    gap: 8px;
  }
  .float-msg-btn {
    width: 50px;
    height: 50px;
  }
  .float-msg-btn img {
    width: 50px;
    height: 50px;
  }
  .float-msg-btn span { display: none; }
}

@media (max-width: 720px) {
  .wrap { width: min(1360px, calc(100% - 32px)); }
  .header-row {
    min-height: 56px;
    gap: 10px;
  }
  .brand-place,
  .header-actions .phone-link { display: none; }
  .brand-mark { font-size: 14px; }

  .services-grid { grid-template-columns: 1fr; }

  .hero {
    grid-template-columns: 1fr;
    padding: 16px 0 36px;
    gap: 18px;
  }
  .hero-visual { order: -1; }
  .drawing-note { display: none; }
  .hero-frame img { height: 280px; object-position: center center; }
  .stamp {
    width: 100px;
    height: 100px;
    right: 10px;
    bottom: 14px;
  }
  .hero-kicker { margin-bottom: 12px; }
  .hero h1 {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: .96;
    margin-bottom: 14px;
  }
  .hero-lead {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 22px;
  }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  .hero-actions .btn-ghost { display: none; }
  .trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .trust div { padding: 12px 8px 0 0; }
  .trust b { font-size: 15px; }
  .trust span { font-size: 11px; line-height: 1.25; }

  .section { padding: 48px 0; }
  .section-head {
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 12px;
  }
  .section-head h2 {
    font-size: clamp(22px, 6.2vw, 30px);
    line-height: 1.12;
  }

  .split,
  .steps,
  .mat-grid,
  .opts {
    grid-template-columns: 1fr;
  }
  .opts.sizes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .opts.sizes .opt {
    padding: 10px 4px;
    font-size: 13px;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .step:last-child { border-bottom: 0; }
  .product { padding: 20px; }
  .product h3 { font-size: 24px; }
  .product .btn { width: 100%; min-height: 48px; }
  .spec-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }
  .third { padding: 20px; gap: 16px; }
  .third h3 { font-size: 22px; margin-bottom: 12px; }
  .third .btn { width: 100%; min-height: 48px; }
  .third-photos img { height: 120px; }
  .mat { padding: 16px; }
  .gallery .big img, .gallery .small img { height: 220px; }
  .gallery-row img { height: 200px; }

  .quiz-box { padding: 18px 16px; }
  .quiz-step h3 { font-size: 22px; }
  .quiz-nav {
    display: grid;
    grid-template-columns: 1fr;
  }
  .quiz-nav #quiz-back { margin-right: 0; }
  .quiz-nav .btn { width: 100%; min-height: 48px; }
  .quiz-section { padding-bottom: 56px; }
  .success .hero-actions .btn { width: 100%; }

  .site-footer { padding: 28px 0 24px; }
  .legal { padding: 32px 0 48px; }
}

@media (max-width: 400px) {
  .opts.sizes { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-kicker, .hero-actions, .trust {
    animation: rise .8s var(--ease) both;
  }
  .hero-lead { animation-delay: .08s; }
  .hero-actions { animation-delay: .14s; }
  .trust { animation-delay: .2s; }
  .hero-frame { animation: rise .9s var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--graphite) 96%, #000);
  color: #f3ebe0;
  border-top: 1px solid #4a3f35;
  box-shadow: 0 -18px 40px -28px rgba(0, 0, 0, .55);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.cookie-bar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #d4c4b0;
  max-width: 62ch;
}
.cookie-bar a {
  color: #f3ebe0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar a:hover { color: #fff; }
.cookie-bar-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.cookie-bar .btn {
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
}
.cookie-bar .btn-ink {
  background: #f3ebe0;
  color: var(--ink);
}
.cookie-bar .btn-ink:hover { background: #fff; }
.cookie-bar .btn-ghost {
  border-color: #6a5a4a;
  color: #f3ebe0;
  background: transparent;
}
.cookie-bar .btn-ghost:hover {
  border-color: #f3ebe0;
  background: rgba(255, 255, 255, .06);
}
body.cookie-open .float-msg { display: none !important; }

@media (max-width: 980px) {
  body.cookie-open .mobile-cta { display: none !important; }
  body.cookie-open {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-bar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-bar .btn { width: 100%; }
}
