/* Арчибокс — лендинг под Яндекс Директ.
   Концепция: заводская документация в тёплой гамме «капучино»: кофейный основной, эспрессо для тёмных блоков,
   карамельный акцент для кнопок и сигнальной ленты; «шильдик» изделия на первом экране, моноширинный шрифт для характеристик.
   Имена токенов --moss* остались от первой (зелёной) версии — это основной фирменный цвет. */
:root {
  --paper: #f5efe7;
  --paper-2: #ebe1d4;
  --card: #fffcf8;
  --ink: #2b1e16;
  --ink-2: #5b4a3d;
  --muted: #8a7868;
  --line: #dccfbf;
  --moss: #7b5436;
  --moss-deep: #3d2a1e;
  --moss-ink: #f0e4d4;
  --signal: #e8a33d;
  --signal-ink: #2b1e16;
  --danger: #b3261e;

  --font-display: "Unbounded", "Arial Black", Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.5rem, 1.1rem + 1.7vw, 2.375rem);
  --fs-h1: clamp(1.7rem, 1.2rem + 2vw, 2.75rem);

  --radius: 6px;
  --gutter: 16px;
  --header-h: 120px;
  color-scheme: light;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--moss);
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.hidden {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 28px;
  }
}

/* ---------- Типографика и общие элементы ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--on-dark {
  color: var(--signal);
}

.section {
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.section--tint {
  background: var(--paper-2);
}

.section--steel {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--moss-deep);
  color: var(--moss-ink);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section__title--sm {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.section--dark .section__title {
  color: #fff;
}

.section__sub {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--fs-md);
  max-width: 62ch;
}

.section--dark .section__sub {
  color: var(--moss-ink);
  opacity: 0.85;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 var(--fs-sm) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  min-height: 56px;
  padding: 0.9rem 1.6rem;
  font-size: var(--fs-md);
}

.btn--block {
  width: 100%;
}

.btn--signal {
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: 0 3px 0 #b97a1f;
}

.btn--signal:hover {
  background: #f2b456;
}

.btn--dark {
  background: var(--moss);
  color: #fff;
}

.btn--dark:hover {
  background: var(--moss-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.site-header.nav--scrolled {
  box-shadow: 0 6px 20px rgba(43, 30, 22, 0.08);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand__mark {
  color: var(--moss);
  display: inline-flex;
  flex: none;
}

.brand__cut {
  fill: var(--paper);
}

.brand--footer .brand__cut {
  fill: #1f1510;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  white-space: nowrap;
}

.site-header__contact {
  display: none;
  align-items: center;
  gap: 0.9rem;
}

.site-header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-header__tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__hours {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.site-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.site-header__bar {
  display: none;
  border-top: 1px solid var(--line);
}

.site-header__menu {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
}

.site-header__menu a {
  padding-block: 0.7rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-header__menu a:hover {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.nav-mobile {
  border-top: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.25rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.nav-mobile > a {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-mobile__foot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
}

.nav-mobile__tel {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .site-header__contact,
  .site-header__bar {
    display: flex;
  }
  .site-header__burger,
  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 76px;
  }
}

/* ---------- Первый экран ---------- */
.hero {
  padding-block: clamp(2rem, 1.25rem + 3vw, 4rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.hero__text {
  min-width: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lg);
  color: var(--ink-2);
  max-width: 54ch;
}

.hero__points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero__points li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--fs-md);
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  background: var(--moss)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__trust {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.hero__trust li::before {
  content: "■ ";
  color: var(--signal);
}

.hero__visual {
  position: relative;
  min-width: 0;
  padding-bottom: 8.5rem;
}

@media (max-width: 559px) {
  .hero__visual {
    padding-bottom: 0;
  }
  .hero__visual .plate {
    position: relative;
    right: auto;
    width: auto;
    margin: -2rem 0.75rem 0;
  }
}

.hero__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Шильдик изделия: металлическая табличка с заклёпками */
.plate {
  position: absolute;
  right: clamp(0px, 2vw, 24px);
  bottom: 0;
  width: min(300px, 82%);
  padding: 1.1rem 1.25rem 1rem;
  background: linear-gradient(160deg, #fbf7f1 0%, #e4d8ca 55%, #f1e9df 100%);
  border: 1px solid #c9b6a2;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(43, 30, 22, 0.18), inset 0 1px 0 #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink);
}

.plate__rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #a38f7b 70%);
}

.plate__rivet--tl { top: 7px; left: 7px; }
.plate__rivet--tr { top: 7px; right: 7px; }
.plate__rivet--bl { bottom: 7px; left: 7px; }
.plate__rivet--br { bottom: 7px; right: 7px; }

.plate__title {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid #c9b6a2;
}

.plate__rows {
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.plate__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.plate__rows dt {
  color: var(--muted);
}

.plate__rows dd {
  margin: 0;
  text-align: right;
}

.plate__price {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid #c9b6a2;
  font-size: var(--fs-sm);
}

.plate__price b {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Сигнальная лента, как на бортах бункеров */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 18px, var(--signal-ink) 18px 36px);
}

.hazard--thin {
  height: 8px;
}

/* ---------- Каталог ---------- */
.catalog {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

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

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

.product {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.product.is-match {
  border-color: var(--moss);
  box-shadow: 0 0 0 2px var(--moss);
}

.product.is-match .product__title::before {
  content: "Вы искали";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.35rem;
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--paper-2);
}

.product__stock {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.55rem;
  background: var(--moss);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 3px;
}

.product__stock--order {
  background: var(--ink-2);
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  flex: 1;
}

.product__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
}

.specs {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-sm);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--line);
}

.specs dt {
  color: var(--muted);
  flex: none;
}

.specs dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding-top: 0.1rem;
}

.product__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product__price {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.product__price b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.catalog__custom {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--moss-deep);
  color: var(--moss-ink);
}

.catalog__custom p {
  max-width: 70ch;
  min-width: 0;
}

.catalog__custom b {
  color: #fff;
}

/* Галерея с образцами цвета вместо точек */
.gallery {
  cursor: zoom-in;
}

.gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__swatches {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.gallery-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--line);
  cursor: pointer;
  padding: 0;
}

/* Фото без образцов цвета — обычные точки */
.gallery-dot:not([style]) {
  width: 12px;
  height: 12px;
  border: 0;
  box-shadow: none;
  margin: 5px;
}

.gallery-dot:not([style]).is-active {
  background: var(--moss);
  box-shadow: none;
}

.gallery-dot.is-active {
  box-shadow: 0 0 0 2px var(--ink);
}

/* ---------- Качество: углы ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.split__text {
  min-width: 0;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.checks li {
  padding-left: 1rem;
  border-left: 3px solid var(--signal);
  color: var(--ink-2);
}

.checks b {
  color: var(--ink);
}

.seam {
  margin: 0;
  min-width: 0;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
}

.seam svg {
  width: 100%;
  height: auto;
  display: block;
}

.seam__label {
  font: 700 18px var(--font-display);
  fill: var(--muted);
}

.seam__label--ok {
  fill: var(--moss);
}

.seam__note {
  font: 13px var(--font-mono);
  fill: var(--ink-2);
}

.seam__wall {
  fill: none;
  stroke: var(--muted);
  stroke-width: 14;
  stroke-linecap: square;
}

.seam__wall--ok {
  stroke: var(--moss);
}

.seam__wall--lap {
  stroke: #a57c58;
  stroke-width: 10;
}

.seam__weld {
  fill: var(--signal);
  stroke: var(--signal-ink);
  stroke-width: 2;
}

.seam__weld--ok {
  fill: var(--signal);
}

.seam__crack {
  fill: none;
  stroke: var(--danger);
  stroke-width: 3;
}

.seam figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------- Склады ---------- */
/* Завод + 4 региона: телефон 2 колонки (завод во всю ширину), планшет 4, десктоп 5 в ряд */
.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city--plant {
  grid-column: 1 / -1;
}

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

@media (min-width: 1024px) {
  .cities {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .city--plant {
    grid-column: auto;
  }
}

.city {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.city__name {
  font-weight: 600;
  min-width: 0;
}

.city--plant .city__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.city__note {
  font-size: var(--fs-xs);
  color: var(--moss-ink);
  opacity: 0.9;
}

.city__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.city--plant {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}

.city--plant .city__role {
  color: var(--signal);
}

.delivery-row {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px dashed var(--muted);
  border-radius: var(--radius);
}

@media (min-width: 960px) {
  .delivery-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }
}

.delivery-row p {
  color: var(--ink-2);
}

.delivery-row b {
  color: var(--ink);
  display: block;
}

/* ---------- Производство ---------- */
.shop {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

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

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

.shop__item {
  margin: 0;
  min-width: 0;
}

.shop__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.shop__item figcaption {
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  color: var(--moss-ink);
  opacity: 0.9;
}

.shop__item b {
  color: #fff;
  opacity: 1;
}

/* ---------- Цифры (в блоке «Производство») ---------- */
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

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

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1;
  color: var(--moss);
  font-variant-numeric: tabular-nums;
}

.stats--on-dark {
  margin-top: 2.5rem;
  border-top-color: rgba(240, 228, 212, 0.35);
}

.stats--on-dark .stat {
  border-bottom-color: rgba(240, 228, 212, 0.15);
}

.stats--on-dark .stat dd {
  color: var(--signal);
}

.stats--on-dark .stat dt {
  color: var(--moss-ink);
}

.stat dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------- Оплата и гарантия ---------- */
.pay {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .pay {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.pay__col {
  min-width: 0;
}

.pay__groups {
  display: grid;
  gap: 1.5rem;
}

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

.pay__groups h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

.dash {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.dash li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-2);
}

.dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 2px;
  background: var(--moss);
}

.warranty {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.warranty__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.warranty__big span {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--moss);
  margin-right: 0.35rem;
}

.warranty__lead {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.warranty__note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 3rem;
  }
}

.faq__list {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.qa {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 600;
  position: relative;
}

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

.qa summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--moss);
}

.qa[open] summary::after {
  content: "−";
}

.qa p {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ---------- Финальный блок ---------- */
.section--final {
  position: relative;
  padding-top: 0;
  background: var(--ink);
  color: #f1e8dd;
}

.final {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(3rem, 2.5rem + 3vw, 5rem);
}

@media (min-width: 960px) {
  .final {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
  }
}

.final__intro {
  min-width: 0;
}

.final__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: #fff;
}

.final__sub {
  margin: 1rem 0 1.75rem;
  color: #d9c9b7;
}

.final__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.final__tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  color: #fff;
  text-decoration: none;
}

.final__mail {
  color: var(--signal);
  font-weight: 600;
}

.final__hours,
.final__addr {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: #d9c9b7;
}

/* ---------- Подвал ---------- */
.footer {
  background: #1f1510;
  color: #b3a493;
  padding-block: 2.5rem 6rem;
  font-size: var(--fs-xs);
}

@media (min-width: 1024px) {
  .footer {
    padding-bottom: 2.5rem;
  }
}

.footer__grid {
  display: grid;
  gap: 1.75rem;
}

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

.footer p {
  margin-bottom: 0.3rem;
}

.brand--footer {
  color: #fff;
  margin-bottom: 0.75rem;
}

.brand--footer .brand__mark {
  color: var(--signal);
}

.footer__req {
  font-family: var(--font-mono);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__links a {
  color: #eadfd2;
}

/* ---------- Мобильная панель ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(43, 30, 22, 0.08);
}

.mobile-bar__call,
.mobile-bar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  font: 600 var(--fs-sm) var(--font-body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.mobile-bar__call {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.mobile-bar__cta {
  background: var(--signal);
  color: var(--signal-ink);
}

@media (min-width: 1024px) {
  .mobile-bar {
    display: none;
  }
}

/* ---------- Форма-шторка ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(31, 21, 16, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(460px, 100%);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  visibility: hidden;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer__inner {
  position: relative;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

.drawer__close {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.drawer__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  padding-right: 2.5rem;
}

.drawer__subtitle {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.req {
  color: var(--danger);
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cdbba8;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 400 var(--fs-md) var(--font-body);
}

.input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(123, 84, 54, 0.22);
}

.input.is-invalid {
  border-color: var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: var(--fs-xs);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0.05rem 0 0;
  accent-color: var(--moss);
}

.check input.is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 1px;
}

.thanks-inline {
  text-align: center;
  padding-top: 3rem;
}

.thanks-inline__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-size: 2rem;
}

.thanks-inline__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.thanks-inline__text {
  margin: 0.75rem 0 1.75rem;
  color: var(--ink-2);
}

/* ---------- Cookie ---------- */
.cookie-consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(43, 30, 22, 0.15);
  font-size: var(--fs-xs);
}

@media (min-width: 1024px) {
  .cookie-consent {
    bottom: 1.25rem;
    left: auto;
    right: 1.25rem;
    margin: 0;
  }
}

.cookie-consent__inner {
  display: grid;
  gap: 0.75rem;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 14, 10, 0.92);
}

.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  width: auto;
  border-radius: var(--radius);
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

/* ---------- Служебные страницы ---------- */
.page-simple {
  max-width: 820px;
  padding-block: 3rem 4rem;
}

.page-simple h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-bottom: 1.5rem;
}

.page-simple h2 {
  font-size: var(--fs-lg);
  margin: 2rem 0 0.75rem;
}

.page-simple p,
.page-simple li {
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

.page-center {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 3rem;
}

.page-center h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
}

.page-center p {
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}

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