/* =========================================================
   ПОКРАШУМЕБЕЛЬ.РФ — покраска мебели
   Локальный статический проект. Стили: одна тема, без зависимостей.
   ========================================================= */

:root {
  --paper: #f3f7f5;
  --paper-soft: #e7efea;
  --cream: #fbfdfc;
  --ink: #163044;
  --ink-2: #2a4657;
  --muted: #5d7480;
  --line: #d2dfd8;
  --line-strong: #b3c7bf;
  --olive: #0e7a45;
  --olive-deep: #14384a;
  --gold: #8fd8ae;
  --clay: #118a4f;
  --dark: #132b3b;
  --dark-2: #1b3748;

  --font-display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

::selection { background: var(--olive); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

/* ---------- типографика ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 100%;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--olive);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(17, 138, 79, .16);
}

.eyebrow-light { color: rgba(251, 248, 240, .62); }

.lead {
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 52ch;
}

.section-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

/* ---------- кнопки ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn-dark:hover { --btn-bg: var(--olive); }

.btn-light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  border-color: var(--cream);
}
.btn-light:hover { --btn-bg: var(--gold); border-color: var(--gold); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); border-color: var(--ink); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 58px; font-size: 16px; }
.btn-block { width: 100%; }

.arrow { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color .25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font-size: inherit;
  opacity: .82;
  transition: opacity .2s;
}
.link-btn:hover { opacity: 1; text-decoration: underline; }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 247, 245, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(243, 247, 245, .97);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .5s var(--ease);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand:hover .brand-mark { transform: scale(1.03); }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tld {
  color: var(--olive);
  letter-spacing: 0;
  margin-left: 1px;
}

.brand-light .brand-tld { color: var(--gold); }

.footer-brand .brand-word { font-size: 18px; }\n.footer-brand .brand-mark { width: 64px; height: 64px; }

.brand-light { color: var(--cream); }
.brand-light .brand-mark { color: var(--gold); }

.nav {
  display: flex;
  gap: clamp(14px, 1.7vw, 26px);
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--olive);
  transition: right .3s var(--ease);
}
.nav a:hover { color: var(--olive); }
.nav a:hover::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-tg svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 8px 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
}
.menu-toggle-bars { display: grid; gap: 5px; width: 20px; }
.menu-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle.is-open .menu-toggle-bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* панель мобильного меню */

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding-top: calc(var(--header-h) + 24px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; }

body.menu-open .mobile-bar,
body.menu-open .cookie { display: none; }

.menu-panel-inner { min-height: 100%; display: flex; flex-direction: column; }

.menu-list { display: grid; border-top: 1px solid var(--line); }
.menu-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.menu-list a span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.menu-list a:hover { color: var(--olive); }

.menu-contacts {
  margin-top: auto;
  padding: 28px 0 32px;
  display: grid;
  gap: 8px;
  font-size: 16px;
}
.menu-contacts p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.menu-contacts a:hover { color: var(--olive); }

/* ---------- hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(46px, 6vw, 96px));
  padding-bottom: 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
}

.hero-media { padding-top: clamp(0px, 1vw, 18px); }

.hero-copy { padding-bottom: clamp(46px, 6vw, 84px); }

.hero-copy .eyebrow { margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(2.45rem, 4.85vw, 4.55rem);
  margin-bottom: 28px;
}

.hero .lead { margin-bottom: 34px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-facts li { display: grid; gap: 5px; }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero-facts span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* образцы */

.hero-media { position: relative; }

.hero-portrait {
  position: relative;
  margin: 0;
  min-height: clamp(480px, 50vw, 620px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}


.hero-portrait img {
  position: relative;
  z-index: 1;
  width: auto;
  height: clamp(480px, 50vw, 620px);
  max-width: 100%;
  object-fit: contain;
}

.swatch-stack {
  position: relative;
  min-height: clamp(430px, 46vw, 560px);
  padding-bottom: 64px;
}

.swatch {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  color: var(--cream);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px -30px rgba(22, 22, 15, .55), 0 2px 4px rgba(22, 22, 15, .08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 26px);
  transition: transform .5s var(--ease);
}

.swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 10, .32) 0%, rgba(16, 16, 10, 0) 34%, rgba(16, 16, 10, .08) 62%, rgba(16, 16, 10, .55) 100%);
}

.swatch > * { position: relative; z-index: 1; }

.swatch-a {
  left: 0;
  top: 0;
  width: 72%;
  height: calc(100% - 128px);
  transform: rotate(-2.6deg);
  background-image: url("../img/texture-matte.jpg");
}

.swatch-b {
  right: 0;
  bottom: 56px;
  width: 48%;
  height: calc(52% - 40px);
  transform: rotate(3.4deg);
  color: var(--ink);
  background-image: url("../img/veneer-oak.jpg");
}

.swatch-stack:hover .swatch-a { transform: rotate(-1deg) translateY(-4px); }
.swatch-stack:hover .swatch-b { transform: rotate(1.8deg) translateY(4px); }

.swatch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.swatch-code {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.swatch-tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(251, 248, 240, .4);
  border-radius: 999px;
  white-space: nowrap;
}

.swatch-bottom { display: grid; gap: 10px; }
.swatch-name {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.swatch-b .swatch-name { font-size: clamp(17px, 1.9vw, 22px); }
.swatch-price { font-size: 13px; letter-spacing: .04em; opacity: .82; }

.swatch-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 300px;
}
.caption-line { width: 34px; height: 1px; background: var(--line-strong); flex: none; }

/* ---------- бегущая строка ---------- */

.marquee {
  border-block: 1px solid rgba(255, 255, 255, .14);
  background: var(--olive);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fbfdfc;
  white-space: nowrap;
}
.marquee-track i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */

.section {
  padding: clamp(64px, 9vw, 124px) 0;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head { margin-bottom: clamp(34px, 4.6vw, 60px); }

.section-head .eyebrow { margin-bottom: 22px; }

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  max-width: 20ch;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.section-head-split .section-sub { max-width: 38ch; justify-self: end; }

/* ---------- примерка цвета ---------- */

.tryon { background: linear-gradient(180deg, var(--paper) 0%, #e9f1ec 100%); }

.tryon-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .82fr);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 50px 90px -60px rgba(22, 22, 15, .5);
}

.tryon-stage {
  position: relative;
  aspect-ratio: 4 / 3.15;
  min-height: 420px;
  overflow: hidden;
  background: #ffffff;
}

.commode {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 76%;
  transform: translateX(-50%);
  aspect-ratio: 1500 / 1250;
  transition: clip-path .06s linear;
}

.commode img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.commode-before {
  z-index: 2;
  clip-path: inset(0 calc((100 - var(--split, 50)) * 1%) 0 0);
}

.commode-after {
  z-index: 1;
  isolation: isolate;
}

.paint-layer {
  position: absolute;
  inset: 0;
  background: var(--paint, #1f8a4f);
  mix-blend-mode: multiply;
  opacity: .94;
  pointer-events: none;
  -webkit-mask: url("../img/commode-mask.png?v=8") center / 100% 100% no-repeat;
  mask: url("../img/commode-mask.png?v=8") center / 100% 100% no-repeat;
}

.gloss-sheen {
  position: absolute;
  inset: 5% 7%;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(114deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, .55) 44%, rgba(255, 255, 255, .05) 56%, rgba(255, 255, 255, 0) 70%);
  transition: opacity .4s var(--ease);
}

[data-finish="gloss"] .gloss-sheen { opacity: .9; }
[data-finish="gloss"] .commode-after img { filter: contrast(1.03) saturate(1.04); }
[data-finish="soft"] .commode-after img { filter: saturate(.93) contrast(.97); }

.stage-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(22, 22, 15, .06);
  line-height: 1.2;
}
.stage-badge-code {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.stage-badge-name { font-size: 12.5px; color: var(--muted); }

.tryon-media { position: relative; }

.ba-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}


.ba-knob {
  position: absolute;
  left: var(--split-left, 50%);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(22, 48, 68, .18);
  box-shadow: 0 12px 28px -10px rgba(22, 48, 68, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: ew-resize;
  pointer-events: auto;
}

.ba-knob i {
  display: block;
  width: 1.5px;
  height: 14px;
  background: var(--ink);
  opacity: .55;
}

.ba-tag {
  position: absolute;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, .9);
  background: rgba(19, 43, 59, .62);
  backdrop-filter: blur(6px);
}

.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }

.tryon-stage { touch-action: pan-y; }

.tryon-stage:focus-within .ba-knob {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .ba-knob { width: 38px; height: 38px; }
  .ba-knob i { height: 12px; }
  .ba-tag { bottom: 10px; padding: 5px 8px; font-size: 8.5px; }
}

/* панель управления */

.tryon-controls {
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 1px solid var(--line);
}

.control-block { display: grid; gap: 14px; }

.control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.control-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.control-hint { font-size: 12.5px; color: var(--muted); }

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 10px;
  padding-bottom: 22px;
}

.swatch-btn {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(22, 22, 15, .22);
  background: var(--c);
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.swatch-btn span {
  position: absolute;
  left: 0; right: 0;
  bottom: -19px;
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s;
}
.swatch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(22, 22, 15, .5); }
.swatch-btn:hover span { opacity: 1; }

.swatch-btn.is-active {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--olive);
}

.swatches { margin-bottom: 0; }

.ral-custom {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.ral-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ral-row { display: flex; gap: 8px; }

.ral-field {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 14.5px;
}

.ral-row .btn {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13.5px;
  white-space: nowrap;
}

.ral-hint {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.ral-hint.is-error { color: #b4402f; }
.ral-hint.is-ok { color: var(--olive); }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}

.seg {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.seg:hover { color: var(--ink); }
.seg.is-active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 14px -8px rgba(22, 22, 15, .6);
}

.note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ---------- покрытия ---------- */

.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.finish-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.finish-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -40px rgba(22, 22, 15, .6); }

.finish-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: var(--paper-soft);
}
.finish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.finish-card:hover .finish-media img { transform: scale(1.045); }

.finish-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 22, 15, .18), rgba(22, 22, 15, 0) 36%, rgba(22, 22, 15, .38));
  pointer-events: none;
}

.finish-price {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cream);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 22, 15, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.finish-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 7px 11px;
  border-radius: 999px;
}

.finish-body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.finish-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.finish-body p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.finish-card-cta {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: var(--cream);
  justify-content: center;
}
.finish-cta-inner { padding: clamp(24px, 3vw, 38px); display: grid; gap: 16px; align-content: center; height: 100%; }
.finish-cta-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.finish-cta-inner p { font-size: 14.5px; color: rgba(251, 248, 240, .68); }
.finish-cta-inner .btn { justify-self: start; margin-top: 6px; }

/* ---------- что красим ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  min-height: 300px;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}

.work-card:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  transform: translateY(-3px);
}
.work-card:hover p { color: rgba(251, 248, 240, .65); }
.work-card:hover .work-icon { color: var(--gold); }

.work-num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.work-card:hover .work-num { color: rgba(251, 248, 240, .5); }

.work-icon { width: 54px; height: 54px; color: var(--olive); margin: 6px 0 10px; transition: color .3s; }
.work-icon svg { width: 100%; height: 100%; }
.work-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.work-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-top: auto;
}
.work-card p { font-size: 13.5px; line-height: 1.45; color: var(--muted); transition: color .3s; }

.work-price {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.work-card:hover .work-price { border-color: rgba(251, 248, 240, .18); }

/* ---------- цех ---------- */

.workshop {
  background: var(--dark);
  color: var(--cream);
  padding-bottom: 0;
}

.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.workshop-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: #0d0d09;
}
.workshop-media img { width: 100%; height: 100%; object-fit: cover; }


.workshop-copy .eyebrow { color: rgba(251, 248, 240, .55); margin-bottom: 22px; }
.workshop-copy h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin-bottom: 26px; }
.workshop-copy h2 em { color: var(--gold); }
.workshop-copy p { color: rgba(251, 248, 240, .66); max-width: 50ch; margin-bottom: 16px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(251, 248, 240, .14);
}
.stat-grid dt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--cream);
  line-height: 1.1;
}
.stat-grid dd { font-size: 13px; line-height: 1.45; color: rgba(251, 248, 240, .55); margin-top: 6px; }

.brands-wrap {
  margin-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(48px, 6vw, 74px);
  border-top: 1px solid rgba(251, 248, 240, .12);
  padding-top: 34px;
}

.brands-title,
.effects-title {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, .42);
  margin-bottom: 18px;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-bottom: 34px;
}
.brands li {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(251, 248, 240, .72);
  transition: color .25s;
}
.brands li:hover { color: var(--cream); }

.effects { display: flex; flex-wrap: wrap; gap: 8px; }
.effects li {
  font-size: 12.5px;
  padding: 7px 13px;
  border: 1px solid rgba(251, 248, 240, .18);
  border-radius: 999px;
  color: rgba(251, 248, 240, .68);
  transition: border-color .25s, color .25s;
}
.effects li:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- цены и калькулятор ---------- */

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .78fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.price-row:last-child { border-bottom: 1px solid var(--line); }

.price-name h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.price-name p { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 4px; max-width: 46ch; }

.price-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  letter-spacing: -.01em;
}
.price-value span {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  margin-left: 4px;
}

.calc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--olive-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  gap: 22px;
  overflow: hidden;
  box-shadow: 0 40px 70px -50px rgba(22, 22, 15, .8);
}

.calc::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 168, 110, .35), transparent 65%);
  pointer-events: none;
}

.calc h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.calc-note { font-size: 12.5px; color: rgba(251, 248, 240, .55); margin-top: -12px; }

.calc .field-label { color: rgba(251, 248, 240, .6); }
.calc .field-label output { color: var(--gold); font-weight: 600; }

.calc .select-wrap select {
  width: 100%;
  min-height: 50px;
  padding: 13px 42px 13px 15px;
  background-color: rgba(22, 22, 15, .28);
  border-color: rgba(251, 248, 240, .22);
  border-radius: 12px;
  color: var(--cream);
  font-size: 15px;
  text-overflow: ellipsis;
}
.calc .select-wrap::after { border-color: rgba(251, 248, 240, .65); }
.calc select option { color: var(--ink); background: var(--cream); }

.calc input[type="range"] { accent-color: var(--gold); }

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: rgba(251, 248, 240, .4);
  margin-top: -2px;
}

.calc-total {
  display: grid;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 240, .16);
}
.calc-total > span {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, .5);
}
.calc-total strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--cream);
}
.calc-total small { font-size: 11.5px; line-height: 1.4; color: rgba(251, 248, 240, .5); }

.calc-disclaimer { font-size: 10.5px; line-height: 1.45; color: rgba(251, 248, 240, .38); }

.calc .btn-light:hover { --btn-bg: var(--gold); }

/* ---------- процесс ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  counter-reset: step;
}

.steps li {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  align-content: start;
  gap: 9px;
  transition: border-color .3s var(--ease);
}
.steps li:hover { border-top-color: var(--olive); }

.step-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--clay);
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.steps p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.process-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(38px, 5vw, 60px);
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.process-facts div { display: grid; gap: 4px; }
.process-facts span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.process-facts p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- гарантии ---------- */

.warranty { background: var(--paper-soft); }


.warranty-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: clamp(14px, 1.6vw, 20px);
}

.warranty-card {
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warranty-card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.warranty-card p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: auto; }

.warranty-card-main {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, .42), rgba(10, 18, 24, .8)),
    url("../img/warranty-bg.jpg") center / cover no-repeat,
    #0e2331;
  border-color: rgba(255, 255, 255, .16);
  color: var(--cream);
  justify-content: space-between;
}
.warranty-card-main p { color: rgba(251, 248, 240, .7); margin-top: 0; }
.warranty-big {
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--gold);
}

.warranty-icon { width: 30px; height: 30px; color: var(--olive); }
.warranty-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.warranty-icon-photo { width: 60px; height: 42px; }
.warranty-icon svg { width: 100%; height: 100%; }

/* ---------- до расчёта ---------- */

.precalc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
}
.precalc-list li { display: grid; gap: 10px; align-content: start; }
.precalc-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-2);
}
.precalc-num i { font-style: normal; color: var(--muted); font-weight: 400; }
.precalc-list h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.precalc-list p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 34ch; }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.faq-head .eyebrow { margin-bottom: 22px; }
.faq-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 20px; }
.faq-head .section-sub { margin-bottom: 26px; }

.accordion { border-top: 1px solid var(--line-strong); }

.acc-item { border-bottom: 1px solid var(--line); }

.acc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
  transition: color .2s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--olive); }

.acc-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s, transform .3s;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity .3s, background .3s;
}
.acc-icon::before { width: 9px; height: 1px; }
.acc-icon::after { width: 1px; height: 9px; }
.acc-item[open] .acc-icon { background: var(--olive); border-color: var(--olive); transform: rotate(90deg); }
.acc-item[open] .acc-icon::before,
.acc-item[open] .acc-icon::after { background: var(--cream); }
.acc-item[open] .acc-icon::after { opacity: 0; }

.acc-body { padding: 0 44px 22px 0; }
.acc-body p { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* ---------- контакты и форма ---------- */

.contact {
  background: var(--dark);
  color: var(--cream);
  padding-bottom: clamp(70px, 8vw, 110px);
}

.paint-drip {
  background: #0e2331;
  color: var(--dark);
  line-height: 0;
}
.paint-drip svg {
  display: block;
  width: 100%;
  height: clamp(44px, 6vw, 70px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.contact-copy .eyebrow { margin-bottom: 24px; }
.contact-copy h2 { font-size: clamp(2rem, 4.3vw, 3.6rem); margin-bottom: 24px; }
.contact-copy h2 em { color: var(--gold); }
.contact-copy > p { color: rgba(251, 248, 240, .66); max-width: 46ch; margin-bottom: 36px; }

.contact-list { display: grid; gap: 0; border-top: 1px solid rgba(251, 248, 240, .14); }
.contact-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251, 248, 240, .14);
  align-items: baseline;
}
.contact-list span {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, .45);
}
.contact-list a,
.contact-list p { font-size: 15.5px; line-height: 1.45; color: var(--cream); }
.contact-value { display: grid; gap: 4px; }
.contact-list .contact-note { font-size: 12.5px; line-height: 1.45; color: rgba(251, 248, 240, .62); }
.contact-list a:hover { color: var(--gold); }

.form-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}

.lead-form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.field-label i { font-style: normal; color: var(--clay); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input::placeholder { color: #93a7a5; }
.input:hover { border-color: var(--line-strong); }
.input:focus {
  outline: none;
  border-color: var(--olive);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(78, 90, 65, .12);
}

textarea.input { resize: vertical; min-height: 92px; line-height: 1.5; }

.select-wrap { position: relative; display: block; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.field-error {
  font-size: 12px;
  color: #a33a2a;
  min-height: 0;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error .input,
.checkbox.has-error { border-color: #b4402f; }

.field-note {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload:hover,
.upload.is-dragover {
  border-color: var(--olive);
  background: #ffffff;
}
.upload:focus-within {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
.upload-icon { width: 32px; height: 32px; flex: none; color: var(--olive); }
.upload-icon svg { width: 100%; height: 100%; }
.upload-text { display: grid; gap: 2px; min-width: 0; }
.upload-text strong { font-size: 14px; font-weight: 600; line-height: 1.2; }
.upload-text small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }

.upload-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.upload-preview:empty { display: none; }
.upload-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-status {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  max-width: calc(100% - 8px);
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(22, 48, 68, .82);
  color: #fff;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.upload-status.is-loading { background: var(--olive); }
.upload-status.is-error { background: #b4402f; }
.upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 48, 68, .78);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.upload-remove:hover { background: #b4402f; }
.field.has-error .upload { border-color: #b4402f; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.checkbox input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform .2s var(--ease);
}
.checkbox input:checked { background: var(--olive); border-color: var(--olive); }
.checkbox input:checked::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.checkbox a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.radio-group { display: grid; gap: 8px; }
.radio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.radio:hover { border-color: var(--line-strong); }
.radio:has(input:checked) { border-color: var(--olive); background: color-mix(in srgb, var(--olive) 6%, var(--cream)); }
.radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.radio input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.radio input:checked { border-color: var(--olive); }
.radio input:checked::after { transform: scale(1); }

.form-note { font-size: 11px; line-height: 1.45; color: var(--muted); text-align: center; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 24px; font-size: 12px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--olive); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }

.form-success { display: grid; gap: 14px; padding: 10px 0; justify-items: center; text-align: center; }
.form-success[hidden] { display: none; }
.form-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.form-success p { font-size: 14.5px; color: var(--muted); }
.form-success .btn { justify-self: center; }

/* ---------- подвал ---------- */

.site-footer {
  background: #0e2331;
  color: var(--cream);
  padding: clamp(46px, 6vw, 76px) 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr;
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(251, 248, 240, .12);
}

.footer-brand p { color: rgba(251, 248, 240, .5); font-size: 14px; line-height: 1.55; max-width: 34ch; margin: 18px 0 20px; }

.footer-nav { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.footer-nav p {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, .4);
  margin-bottom: 4px;
}
.footer-nav a, .footer-nav .link-btn { color: rgba(251, 248, 240, .78); font-size: 14px; }
.footer-nav a:hover, .footer-nav .link-btn:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 11.5px;
  color: rgba(251, 248, 240, .38);
}

/* ---------- cookie ---------- */

.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(420px, calc(100vw - 40px));
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 60px -30px rgba(22, 22, 15, .6);
  display: grid;
  gap: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 auto; }

/* ---------- мобильная панель ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--dark);
  border-top: 1px solid rgba(251, 248, 240, .12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.mobile-bar-call { background: var(--cream); color: var(--ink); flex: 1; }
.mobile-bar-tg { background: rgba(251, 248, 240, .08); color: var(--cream); border: 1px solid rgba(251, 248, 240, .2); flex: .8; }

/* ---------- внутренние страницы ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 72px));
  padding-bottom: clamp(32px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), var(--paper-soft));
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 4rem); max-width: 22ch; }
.page-hero p { margin-top: 22px; max-width: 62ch; color: var(--muted); }

.legal { padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 7vw, 100px); }
.prose { max-width: 780px; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 34px;
  line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
}
.prose p, .prose li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.prose .muted { color: var(--muted); font-size: 13px; }

/* ---------- появление при скролле ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.static [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- образец фасада (внутренняя страница) ---------- */

.sample-wrap {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.sample-board {
  position: relative;
  padding: 16px 16px 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  transform: rotate(-1.4deg);
  box-shadow: 0 40px 70px -50px rgba(22, 22, 15, .6);
  transition: transform .5s var(--ease);
}
.sample-board:hover { transform: rotate(0deg); }

.sample-door {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  background-image:
    linear-gradient(var(--sample-paint, #0f8558), var(--sample-paint, #0f8558)),
    url("../img/texture-facade.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--cream);
  overflow: hidden;
}
.sample-door::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -2px 6px rgba(22, 22, 15, .3),
    0 1px 0 rgba(22, 22, 15, .22),
    0 0 26px rgba(22, 22, 15, .14);
  pointer-events: none;
}
.sample-door > * { position: relative; z-index: 1; }

.sample-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 26, 20, .38) 0%, rgba(13, 26, 20, 0) 26%, rgba(13, 26, 20, 0) 55%, rgba(13, 26, 20, .62) 100%);
  pointer-events: none;
}

.sample-color {
  display: flex;
  gap: 8px;
  padding: 14px 0 0;
}

.sample-ral {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 14px;
  background: var(--cream);
}

.sample-color .btn {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13.5px;
  white-space: nowrap;
}

.sample-hint {
  padding: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.sample-hint.is-error { color: #b4402f; }
.sample-hint.is-ok { color: var(--olive); }

.sample-code {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sample-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-shadow: 0 1px 20px rgba(22, 22, 15, .3);
}

.sample-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px 14px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- пояснение в две колонки ---------- */

.split-note {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.split-note-copy p { font-size: 16.5px; line-height: 1.62; color: var(--ink-2); max-width: 50ch; }
.split-note-copy p + p { margin-top: 16px; }

.check-list {
  display: grid;
  gap: 0;
  margin: 28px 0 30px;
  border-top: 1px solid var(--line);
}
.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-size: 10px;
  display: grid;
  place-items: center;
}

.split-note-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-note-media figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.finish-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finish-grid-3 .finish-body .work-num { margin-bottom: 2px; }

.price-footnote {
  margin: 18px 0 22px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cta-band { background: var(--paper-soft); border-top: 1px solid var(--line); }
.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: end;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-band-side { display: grid; gap: 20px; justify-items: start; }
.cta-band-side p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 40ch; }

/* ---------- адаптив ---------- */

@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
  .hero-grid { gap: 40px; }
  .finish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card { min-height: 260px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .warranty-grid { grid-template-columns: 1fr 1fr; }
  .warranty-card-main { grid-row: auto; grid-column: span 2; }
  .warranty-big { font-size: 64px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(2.4rem, 9.4vw, 4rem); }
  .hero-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .swatch-stack { min-height: 420px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 18px 24px; }

  .section-head-split { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .section-head-split .section-sub { justify-self: start; max-width: 52ch; }

  .tryon-panel { grid-template-columns: 1fr; }
  .tryon-controls { border-left: 0; border-top: 1px solid var(--line); }
  .tryon-stage { min-height: 0; aspect-ratio: 4 / 3.4; }
  .commode { width: 64%; bottom: 14%; }
  .note { margin-top: 0; }

  .workshop-grid { grid-template-columns: 1fr; }
  .workshop-media { aspect-ratio: 4 / 3; }

  .price-layout { grid-template-columns: 1fr; }
  .calc { position: static; }

  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }

  .precalc-list { grid-template-columns: 1fr; gap: 28px; }
  .precalc-list p { max-width: 46ch; }

  .contact { padding-bottom: calc(clamp(70px, 8vw, 110px) + 60px); }
  .mobile-bar { display: flex; }
  .cookie { bottom: 84px; }
  .site-footer { padding-bottom: 96px; }
  .warranty-grid { grid-auto-rows: auto; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .header-tg { display: none; }
  .brand-word { font-size: 14.5px; }
  .brand { gap: 8px; }
  .header-inner { gap: 14px; }

  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: baseline; }
  .hero-facts span { font-size: 13px; }

  .hero-cta .btn { width: 100%; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { margin-bottom: 18px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { min-height: 46px; padding: 0 18px; font-size: 13.5px; }
  .swatch-stack { min-height: 380px; }
  .hero-portrait { min-height: 400px; }
  .hero-portrait img { height: 400px; }
  .swatch-a { width: 78%; }
  .swatch-b { width: 52%; height: 46%; }
  .swatch-caption { display: none; }
  .swatch-stack { padding-bottom: 0; }

  .finish-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; }
  .warranty-grid { grid-template-columns: 1fr; }
  .warranty-card-main { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .process-facts { grid-template-columns: 1fr; gap: 16px; }
  .brands { gap: 10px 22px; }

  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 3px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .form-success h3 { font-size: 24px; }
  .cookie { left: 10px; right: 10px; bottom: 78px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- адаптив внутренних страниц ---------- */

@media (max-width: 1120px) {
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish-grid-3 .finish-card-cta { display: none; }
}

@media (max-width: 900px) {
  .split-note { grid-template-columns: 1fr; gap: 30px; }
  .split-note-media { order: -1; }
  .cta-band-inner { grid-template-columns: 1fr; align-items: start; }
  .sample-wrap { max-width: 430px; }
}

@media (max-width: 640px) {
  .finish-grid-3 { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .sample-meta { flex-direction: column; gap: 2px; }
}
