/* Сгенерировано scripts/fetch-fonts.mjs — самохостинг шрифтов. Не редактировать вручную. */

/* Golos Text · cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic-var.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Golos Text · latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/golos-text-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono · cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Mono · latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono · cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Mono · latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Основа: токены, сброс, типографика, кнопки, поля.
   Тёмная инженерная база: уголь, дерево, латунь. */

:root {
  --bg: #111312;
  --bg-2: #151816;
  --surface: #191d1a;
  --surface-2: #202521;
  --line: #2c322e;
  --line-2: #3b423d;
  --text: #f1ede6;
  --text-soft: #9aa19b;
  --text-dim: #6f7671;
  --wood: #c08a52;
  --brass: #d9b268;
  --brass-hi: #e7c57e;
  --danger: #d2704a;

  --font-sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1320px;
  --pad: 20px;
  --section: clamp(56px, 7.5vw, 116px);
  --radius: 3px;
  --d-bg: var(--bg-2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection {
  background: var(--brass);
  color: #17190f;
}

/* --- типографика --- */

.display {
  font-size: clamp(31px, 5.1vw, 62px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.display em {
  font-style: normal;
  color: var(--brass);
}

h2,
.h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h3,
.h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.58;
  color: var(--text-soft);
}

.text-soft {
  color: var(--text-soft);
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.measure {
  max-width: 62ch;
}

/* --- сетка --- */

.container {
  width: min(100% - var(--pad) * 2, var(--container));
  margin-inline: auto;
}

/* Сетки всегда с minmax(0, …): иначе авто-колонка растягивается
   по самому длинному слову и страница едет вбок на телефоне. */
.grid-safe,
.hero__grid,
.head,
.cards,
.facts,
.promises,
.split,
.footer__grid,
.tool__stage,
.cta__grid,
.steps {
  grid-template-columns: minmax(0, 1fr);
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 72px);
}

.rule {
  border-top: 1px solid var(--line);
}

/* --- кнопки --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--brass);
  color: #17190f;
}

.btn--primary:hover {
  background: var(--brass-hi);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgb(255 255 255 / 4%);
}

.btn--small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.link {
  color: var(--brass);
  border-bottom: 1px solid rgb(217 178 104 / 35%);
  transition: border-color 0.2s ease;
}

.link:hover {
  border-color: var(--brass);
}

/* --- поля --- */

.field {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.field::placeholder {
  color: var(--text-dim);
}

.field:hover {
  border-color: var(--text-dim);
}

.field:focus {
  border-color: var(--brass);
  outline: none;
}

.field--area {
  min-height: 110px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brass);
}

/* --- служебное --- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brass);
  color: #17190f;
}

.skip:focus {
  top: 16px;
}

@media (min-width: 768px) {
  :root {
    --pad: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --pad: 48px;
  }
}

/* Шапка, подвал, секции-обёртки. */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(17 19 18 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brass);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brass);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-size: 17px;
}

.logo__note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav {
  display: none;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  position: relative;
  padding-block: 6px;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--brass);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header__phone {
  display: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.header__phone:hover {
  color: var(--brass);
}

.header__cta {
  display: none;
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease;
}

.burger span + span {
  margin-top: 5px;
}

.burger[aria-expanded='true'] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* мобильное меню */

.menu {
  position: fixed;
  inset: 69px 0 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--pad) 40px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.menu[data-open='true'] {
  visibility: visible;
  opacity: 1;
}

.menu a {
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.menu__foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
  color: var(--text-soft);
}

/* подвал */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(40px, 5vw, 72px) 28px;
}

.footer__grid {
  display: grid;
  gap: 36px;
}

.footer__col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer__col li + li {
  margin-top: 9px;
}

.footer__col a:hover {
  color: var(--brass);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.footer__demo {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.footer__demo svg {
  flex: none;
  margin-top: 2px;
  color: var(--wood);
}

@media (min-width: 900px) {
  .nav,
  .header__phone,
  .header__cta {
    display: flex;
  }

  .burger {
    display: none;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

/* Чертёж, первый экран, панель конфигуратора, карточки, секции. */

/* --- чертёж --- */

.draw {
  position: relative;
}

.draw__svg,
.plan__svg {
  width: 100%;
  height: auto;
  max-height: 460px;
}

.draw__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.draw__label--wide {
  transform: translate(-50%, -50%);
}

.d-line {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
}

.d-line.d-dash {
  stroke-dasharray: 5 5;
  opacity: 0.6;
}

.d-floor {
  stroke: var(--line-2);
  stroke-width: 2;
}

.d-dim {
  stroke: var(--text-dim);
  stroke-width: 1;
  opacity: 0.75;
}

.d-handle {
  stroke: rgb(0 0 0 / 32%);
  stroke-width: 2;
}

.d-tap {
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 2;
}

/* --- первый экран --- */

.hero {
  padding-block: clamp(28px, 3.4vw, 52px) clamp(44px, 5vw, 84px);
}

.hero__grid {
  display: grid;
  gap: 34px;
}

.hero__label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero__label::before {
  width: 26px;
  height: 1px;
  background: var(--wood);
  content: '';
}

.hero h1 {
  margin-top: 18px;
}

.hero__lead {
  max-width: 46ch;
  margin-top: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.facts {
  display: grid;
  gap: 20px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.facts__item strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.facts__item span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-dim);
}

/* --- панель инструмента --- */

.tool {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.tool__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.tool__badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tool__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.tool__stage {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.tool__plan {
  display: none;
  width: 156px;
}

.tool__plan figcaption {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tool__controls {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.tool__total {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.tool__note {
  padding: 0 16px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* --- элементы управления --- */

.control__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.control__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.segmented button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  font-size: 13.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.segmented button + button {
  border-left: 1px solid var(--line-2);
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--brass);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.swatch {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.swatch:hover {
  transform: translateY(-2px);
}

.swatch[aria-pressed='true'] {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.range {
  width: 100%;
  height: 44px;
  accent-color: var(--brass);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* --- цена --- */

.total__value {
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.total__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* --- секции --- */

.head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}

.head__aside {
  max-width: 48ch;
  color: var(--text-soft);
}

.head--row {
  align-items: end;
}

.cards {
  display: grid;
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.card__body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.card__price {
  color: var(--brass);
}

/* --- шаги --- */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wood);
}

.step p {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 56ch;
}

/* --- вопросы --- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex: none;
  font-family: var(--font-mono);
  color: var(--wood);
  content: '+';
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  max-width: 70ch;
  padding-bottom: 22px;
  color: var(--text-soft);
}

/* --- призыв --- */

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: clamp(28px, 4vw, 56px);
}

.cta__grid {
  display: grid;
  gap: 28px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 48px;
    align-items: start;
  }

  .head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
  }

  .head--row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .tool__stage {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 20px;
  }

  .tool__plan {
    display: block;
  }

  .cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
  }
}

@media (min-width: 1200px) {
  /* Полный конфигуратор на широком экране: чертёж слева, параметры справа. */
  .tool[data-full='true'] {
    display: grid;
    grid-template-areas:
      'head head'
      'stage controls'
      'total total'
      'note note';
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }

  .tool[data-full='true'] .tool__head {
    grid-area: head;
  }

  .tool[data-full='true'] .tool__stage {
    grid-area: stage;
    align-content: center;
    padding: 28px;
  }

  .tool[data-full='true'] .tool__plan {
    width: 190px;
  }

  .tool[data-full='true'] .tool__controls {
    grid-area: controls;
    align-content: start;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 24px;
  }

  .tool[data-full='true'] .tool__total {
    grid-area: total;
  }

  .tool[data-full='true'] .tool__note {
    grid-area: note;
  }

  .tool[data-full='true'] .draw__svg {
    max-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Блоки страниц: обещания, разборы, чертежи в карточках, окна, cookie. */

/* --- обещания --- */

.promises {
  display: grid;
  gap: 24px;
}

.promise {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.promise__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--wood);
}

.promise h3 {
  font-size: 18px;
}

.promise p {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--text-soft);
}

/* --- две колонки: разбор и врезка --- */

.split {
  display: grid;
  gap: 34px;
}

.split__aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plain-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.plain-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--brass);
}

/* --- чертёж в карточке проекта --- */

.card__draw {
  padding: 16px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.card__draw .draw__svg {
  max-height: 210px;
}

.draw--compact .draw__svg {
  max-height: 210px;
}

.tool__plan .plan__svg {
  max-height: 190px;
}

/* --- хлебные крошки --- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.crumbs a:hover {
  color: var(--brass);
}

/* --- внутренние страницы --- */

.page-head {
  padding-block: clamp(20px, 2.6vw, 36px) clamp(28px, 3.6vw, 52px);
}

.page-head h1 {
  margin-top: 16px;
}

.page-head .lead {
  max-width: 58ch;
  margin-top: 18px;
}

/* --- опции в конфигураторе --- */

.checks {
  display: grid;
  gap: 13px;
}

/* --- поля с подписью --- */

.field-label {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field-label .field {
  font-family: var(--font-sans);
  font-size: 15.5px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

/* --- окно заявки --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(8 9 8 / 78%);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 32px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  color: var(--text-soft);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--text);
  border-color: var(--text);
}

.modal__summary {
  padding: 13px 15px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-soft);
  white-space: pre-line;
}

.modal__status {
  min-height: 1.2em;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--brass);
}

.modal__done {
  padding: 18px 0 4px;
  font-size: 15.5px;
  color: var(--brass);
}

/* --- cookie --- */

.cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  max-width: 64ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- появление при скролле --- */

/* :where() обнуляет специфичность списка, иначе правило .js .is-in
   не перебивает скрытое состояние у вложенных элементов вроде .faq details. */
.js :where(.head, .card, .promise, .step, .cta, .facts__item, .faq details, .split__aside, .note-line) {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 48px;
    align-items: start;
  }

  .cookie {
    right: 24px;
    bottom: 24px;
    left: auto;
    max-width: 760px;
  }
}

@media (min-width: 1100px) {
  .promises {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- конфигуратор --- */

.container--wide {
  width: min(100% - var(--pad) * 2, 1480px);
}

.tool-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.tool-bar .label {
  margin-left: auto;
}

/* --- фильтр каталога --- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: none;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.chip:hover {
  color: var(--text);
}

.chip[aria-pressed='true'] {
  border-color: var(--brass);
  background: var(--surface-2);
  color: var(--brass);
}

.chip__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.card[hidden] {
  display: none;
}

/* --- страница проекта --- */

.project-stage {
  display: grid;
  gap: 26px;
}

.project-stage__draw {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.project-plan {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.project-plan figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- спецификация --- */

.spec {
  display: grid;
  margin: 0;
}

.spec div {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt,
.spec dd {
  margin: 0;
}

.spec dt {
  flex: none;
  font-size: 13.5px;
  color: var(--text-dim);
}

.spec dd {
  max-width: 62%;
  font-size: 14px;
  text-align: right;
}

.spec--wide div {
  padding: 15px 0;
}

/* --- расчёт --- */

.money {
  display: grid;
  border-top: 1px solid var(--line);
}

.money__row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.money__row span:first-child {
  color: var(--text-soft);
}

.money__row--total {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.money__row--total span:first-child {
  color: var(--text);
}

.note-line {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* --- текст --- */

.prose {
  display: grid;
  gap: 18px;
  max-width: 68ch;
  font-size: 16.5px;
  color: var(--text-soft);
}

/* --- документ --- */

.doc {
  display: grid;
  gap: 34px;
  max-width: 74ch;
}

.doc__section h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2vw, 26px);
}

.doc__section p {
  font-size: 15.5px;
  color: var(--text-soft);
}

.doc__section p + p {
  margin-top: 12px;
}

.doc__foot {
  display: grid;
  gap: 9px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}

/* --- контакты --- */

.contact-grid {
  display: grid;
  gap: 18px;
}

.contact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--wood);
}

.contact__value {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--text);
  overflow-wrap: anywhere;
}

a.contact__value:hover {
  color: var(--brass);
}

.contact__note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .project-stage {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
