/* ==========================================================================
   32ЛОМ — дизайн-система
   Тёмная индустриальная база + медный акцент, крупные скругления, параллакс.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Токены */
:root {
  /* Поверхности */
  --c-bg:        #0A0E12;
  --c-bg-2:      #0F151B;
  --c-surface:   #151D25;
  --c-surface-2: #1C2731;
  --c-line:      #26333F;
  --c-line-soft: rgba(255, 255, 255, .07);

  /* Текст */
  --c-text:   #EDF3F8;
  --c-muted:  #93A6B6;
  --c-dim:    #6B8095;

  /* Акцент — медь */
  --c-copper:     #E07B39;
  --c-copper-2:   #F4A55F;
  --c-copper-3:   #FFC58A;
  --c-copper-dim: rgba(224, 123, 57, .12);
  --c-copper-mid: rgba(224, 123, 57, .28);

  /* Сталь / успех */
  --c-steel: #5B7A93;
  --c-green: #35C48A;

  --grad-copper: linear-gradient(135deg, #F4A55F 0%, #E07B39 55%, #C2601F 100%);
  --grad-surface: linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 60%);

  /* Скругления */
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-2xl:  56px;
  --r-pill: 999px;

  /* Тени */
  --sh-sm: 0 2px 8px rgba(0,0,0,.3);
  --sh-md: 0 12px 32px rgba(0,0,0,.38);
  --sh-lg: 0 28px 70px rgba(0,0,0,.5);
  --sh-copper: 0 12px 34px rgba(224,123,57,.32);

  /* Ритм */
  --gap:  clamp(16px, 2.2vw, 26px);
  --pad-section: clamp(56px, 8vw, 116px);
  --container: 1240px;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ----------------------------------------------------------- 2. Сброс/база */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Страховка: иконка без своего класса не должна растягиваться на всю колонку.
   Правила ниже (.btn svg, .card__icon svg и т.д.) её переопределяют. */
svg:not([class]) { width: 18px; height: 18px; flex: none; }

a { color: var(--c-copper-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-copper-3); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(31px, 5.4vw, 60px); }
h2 { font-size: clamp(26px, 3.7vw, 43px); }
h3 { font-size: clamp(19px, 2.1vw, 25px); font-weight: 700; }
h4 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--c-copper); color: #12181D; }

:focus-visible {
  outline: 3px solid var(--c-copper-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- 3. Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }
.section--alt { background: var(--c-bg-2); }

.section-head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-muted); font-size: clamp(16px, 1.7vw, 19px); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: var(--c-copper-dim);
  border: 1px solid var(--c-copper-mid);
  color: var(--c-copper-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-copper-2);
  box-shadow: 0 0 0 4px rgba(224,123,57,.2);
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 68ch;
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --------------------------------------------------------------- 4. Кнопки */
.btn {
  --btn-bg: var(--grad-copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: #14191E;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--sh-copper);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.btn:hover {
  color: #14191E;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(224,123,57,.42);
  filter: brightness(1.06);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-line);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  color: var(--c-text);
  border-color: var(--c-copper-mid);
  background: rgba(255,255,255,.04);
  box-shadow: none;
}

.btn--lg { padding: 19px 38px; font-size: 17px; }
.btn--block { width: 100%; }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------- 5. Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 14, 18, .82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--c-line);
  background: rgba(10, 14, 18, .95);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--c-text);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.03em;
}
.logo:hover { color: var(--c-text); }
.logo__mark {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad-copper);
  color: #14191E;
  font-size: 15px;
  font-weight: 900;
  box-shadow: var(--sh-copper);
}
.logo__sub {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-top: 1px;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] {
  color: var(--c-text);
  background: rgba(255,255,255,.06);
}

.header__phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  flex: none;
  color: var(--c-text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.header__phone:hover { color: var(--c-copper-2); }
.header__phone small {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--c-line);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 19px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  position: relative;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 19px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------- 6. Первый экран */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 128px) clamp(60px, 8vw, 110px);
  border-bottom-left-radius: var(--r-2xl);
  border-bottom-right-radius: var(--r-2xl);
  background: radial-gradient(120% 90% at 78% 8%, #1B2A36 0%, #0D1319 52%, #0A0E12 100%);
}

/* Параллакс-слои */
.hero__layer {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.hero__glow {
  inset: -28% 42% 32% -18%;
  background: radial-gradient(circle at 50% 50%, rgba(224,123,57,.3) 0%, transparent 66%);
  filter: blur(28px);
}
.hero__glow--2 {
  inset: 22% -18% -34% 46%;
  background: radial-gradient(circle at 50% 50%, rgba(91,122,147,.3) 0%, transparent 66%);
  filter: blur(34px);
}
.hero__grid-lines {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(72% 62% at 50% 34%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 34%, #000 0%, transparent 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: .42em; }
.hero h1 .accent {
  background: var(--grad-copper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--c-muted);
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero__cta { margin-bottom: 34px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 26px;
  border-top: 1px solid var(--c-line-soft);
  list-style: none;
  margin: 0;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--c-muted);
  font-weight: 600;
}
.hero__facts svg { width: 17px; height: 17px; color: var(--c-copper-2); flex: none; }

/* Карточка-визуал справа */
.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(165deg, rgba(28,39,49,.95) 0%, rgba(16,22,28,.95) 100%);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-lg);
  will-change: transform;
}
.hero__card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--grad-surface);
  pointer-events: none;
}
.hero__card h2 {
  font-size: clamp(19px, 2vw, 23px);
  margin-bottom: 6px;
}
.hero__card > p { color: var(--c-muted); font-size: 14.5px; margin-bottom: 20px; }

.hero__mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  list-style: none;
  padding: 0;
}
.hero__mini li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--c-line-soft);
}
.hero__mini b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.hero__mini span { font-size: 12.5px; color: var(--c-dim); }

/* ------------------------------------------------------- 7. Плитки/карточки */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-surface);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--c-copper-mid);
  box-shadow: var(--sh-md);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--c-muted); font-size: 15.5px; margin-bottom: 0; }

.card__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--c-copper-dim);
  border: 1px solid var(--c-copper-mid);
  color: var(--c-copper-2);
  flex: none;
}
.card__icon svg { width: 27px; height: 27px; }

.card__link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
}
.card__link svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Карточка-ссылка целиком кликабельна */
.card--link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Нумерованные шаги */
.step {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.step__num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
  background: var(--grad-copper);
  color: #14191E;
  font-size: 19px;
  font-weight: 900;
  box-shadow: var(--sh-copper);
}
.step h3 { font-size: 19px; margin-bottom: 7px; }
.step p { color: var(--c-muted); font-size: 15.5px; margin: 0; }

/* -------------------------------------------------------- 8. Что принимаем */
.accepts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0; padding: 0;
}
.accepts li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.accepts li:hover { border-color: var(--c-copper-mid); background: var(--c-surface-2); }
.accepts__check {
  flex: none;
  width: 21px; height: 21px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-copper-dim);
  color: var(--c-copper-2);
}
.accepts__check svg { width: 12px; height: 12px; }
.accepts b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.accepts span { display: block; font-size: 13.5px; color: var(--c-dim); margin-top: 1px; }

/* ------------------------------------------------------------- 9. Прайс */
.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(224,123,57,.14) 0%, rgba(224,123,57,.04) 60%, transparent 100%);
  border: 1px solid var(--c-copper-mid);
}
.price-note__icon {
  flex: none;
  width: 68px; height: 68px;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  background: var(--grad-copper);
  color: #14191E;
  box-shadow: var(--sh-copper);
}
.price-note__icon svg { width: 32px; height: 32px; }
.price-note__body { flex: 1 1 320px; }
.price-note__body h2 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 8px; }
.price-note__body p { color: var(--c-muted); margin-bottom: 0; font-size: 15.5px; }
.price-note .btn { flex: none; }

/* --------------------------------------------------------- 10. Параллакс-полоса */
.parallax-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(64px, 9vw, 120px);
  border-radius: var(--r-2xl);
  background: linear-gradient(140deg, #16212B 0%, #0D1319 100%);
  border: 1px solid var(--c-line);
}
.parallax-band__layer {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.parallax-band__blob {
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.parallax-band__blob--a { top: -32%; left: -12%; background: radial-gradient(circle, rgba(224,123,57,.55), transparent 68%); }
.parallax-band__blob--b { bottom: -42%; right: -12%; background: radial-gradient(circle, rgba(91,122,147,.5), transparent 68%); }
.parallax-band__dots {
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 68%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 68%, transparent);
}

/* ------------------------------------------------------------- 11. Цифры */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0; padding: 0;
}
.stats li {
  text-align: center;
  padding: clamp(20px, 2.4vw, 28px) 16px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-line-soft);
  backdrop-filter: blur(8px);
}
.stats b {
  display: block;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  background: var(--grad-copper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--c-muted); }

/* ---------------------------------------------------------- 12. Типография */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--c-muted); }
.prose strong { color: var(--c-text); font-weight: 700; }

.marker-list, .steps-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.marker-list li, .steps-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  color: var(--c-muted);
}
.marker-list li::before {
  content: "";
  position: absolute; left: 8px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-copper);
  box-shadow: 0 0 0 4px var(--c-copper-dim);
}
.steps-list { counter-reset: st; }
.steps-list li { counter-increment: st; padding-left: 44px; margin-bottom: 17px; }
.steps-list li::before {
  content: counter(st);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--c-copper-dim);
  border: 1px solid var(--c-copper-mid);
  color: var(--c-copper-2);
  font-size: 14px;
  font-weight: 800;
}

/* ---------------------------------------------------------------- 13. FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: var(--c-copper-mid); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(20px, 2.4vw, 28px);
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 12px; height: 12px;
  border-right: 2.4px solid var(--c-copper-2);
  border-bottom: 2.4px solid var(--c-copper-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__body {
  padding: 0 clamp(20px, 2.4vw, 28px) 22px;
  color: var(--c-muted);
  font-size: 15.8px;
}
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- 14. Формы */
.form-card {
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
}
.form-card h2 { font-size: clamp(21px, 2.4vw, 29px); margin-bottom: 8px; }
.form-card > p { color: var(--c-muted); font-size: 15.5px; margin-bottom: 24px; }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .01em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  background: var(--c-bg-2);
  color: var(--c-text);
  font: inherit;
  font-size: 16px; /* не меньше 16px — иначе iOS зумит страницу */
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-copper);
  background: var(--c-surface-2);
}
.field input[aria-invalid="true"] { border-color: #E4574D; }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: #F08079; }
.field input[aria-invalid="true"] ~ .field__error { display: block; }

.form-consent {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 12.8px;
  color: var(--c-dim);
  line-height: 1.5;
}
.form-consent input { flex: none; margin-top: 2px; width: 17px; height: 17px; accent-color: var(--c-copper); }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
}
.form-status.is-ok   { display: block; background: rgba(53,196,138,.12); border: 1px solid rgba(53,196,138,.4); color: #79E0B4; }
.form-status.is-err  { display: block; background: rgba(228,87,77,.12);  border: 1px solid rgba(228,87,77,.4);  color: #F08079; }

/* ------------------------------------------------------------ 15. Контакты */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* строго 2×2 */
  gap: var(--gap);
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.contact-item__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-copper-dim);
  border: 1px solid var(--c-copper-mid);
  color: var(--c-copper-2);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 14px; color: var(--c-dim); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.contact-item p, .contact-item a { font-size: 17px; font-weight: 700; color: var(--c-text); margin: 0; letter-spacing: -.01em; }
.contact-item a:hover { color: var(--c-copper-2); }
.contact-item small { display: block; font-size: 13.5px; font-weight: 500; color: var(--c-dim); margin-top: 3px; letter-spacing: 0; }

.map-wrap {
  margin-top: var(--gap);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: clamp(320px, 44vw, 460px); border: 0; }

/* ------------------------------------------------------------- 16. География */
.geo-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 16 городов = 4×4 */
  gap: 11px;
  list-style: none;
  margin: 0; padding: 0;
}
@media (max-width: 900px) { .geo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .geo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.geo-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 19px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-weight: 700;
  font-size: 15.5px;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.geo-list a:hover {
  transform: translateY(-3px);
  border-color: var(--c-copper-mid);
  background: var(--c-surface-2);
  color: var(--c-text);
}
.geo-list em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--c-dim); white-space: nowrap; }

/* ----------------------------------------------------------- 17. Хлебные крошки */
.crumbs {
  padding-block: 18px 4px;
  font-size: 13.5px;
  color: var(--c-dim);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--c-line); }
.crumbs a { color: var(--c-dim); font-weight: 600; }
.crumbs a:hover { color: var(--c-copper-2); }

/* ------------------------------------------------------------- 18. Подвал */
.footer {
  margin-top: clamp(50px, 7vw, 90px);
  padding-block: clamp(44px, 5.5vw, 70px) 30px;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(26px, 4vw, 52px);
  margin-bottom: 38px;
}
.footer__about p { color: var(--c-muted); font-size: 14.8px; max-width: 42ch; margin: 16px 0 0; }

/* Адрес в подвале: иконка была без размеров и растягивалась на всю колонку */
.footer__addr { display: flex; align-items: flex-start; gap: 10px; }
.footer__addr svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  color: var(--c-copper-2);
}
.footer h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-dim);
  margin-bottom: 15px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--c-muted); font-size: 14.8px; font-weight: 500; }
.footer ul a:hover { color: var(--c-copper-2); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-dim);
}

/* --------------------------------------------------- 19. Мобильная панель */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  gap: 9px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 18, .93);
  backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--c-line);
  /* Спрятана, пока человек не прокрутил первый экран: на нём уже есть
     своя кнопка звонка, и две подряд выглядят навязчиво. */
  transform: translateY(115%);
  opacity: 0;
  visibility: hidden;
  transition: transform .32s var(--ease), opacity .32s var(--ease), visibility .32s;
}
body.is-scrolled .callbar { transform: none; opacity: 1; visibility: visible; }

.callbar .btn {
  flex: 1;
  padding: 15px 12px;
  font-size: 16px;
  letter-spacing: -.01em;
  box-shadow: none;
  white-space: nowrap;   /* номер не должен переноситься на вторую строку */
}
.callbar .btn--ghost { flex: 0 0 auto; padding-inline: 17px; }

/* ------------------------------------------------------- 20. Анимации */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .07s; }
[data-reveal-delay="2"] { transition-delay: .14s; }
[data-reveal-delay="3"] { transition-delay: .21s; }
[data-reveal-delay="4"] { transition-delay: .28s; }

/* ------------------------------------------------------- 21. Адаптив */
@media (max-width: 1080px) {
  .nav__link { padding: 9px 11px; font-size: 14.5px; }
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* H1 всегда первым — и для читателя, и для поисковика */

  .burger { display: grid; margin-left: auto; }
  .header__phone { display: none; }

  .nav {
    position: fixed;
    inset: 74px 0 auto;
    margin: 0;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    padding: 16px clamp(16px, 4vw, 32px) 26px;
    background: rgba(10, 14, 18, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 16px; border-radius: var(--r-md); font-size: 16.5px; }
  .nav__phone {
    display: flex !important;
    margin-top: 14px;
  }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; padding-bottom: 76px; }
  .callbar { display: flex; }
  .hero { border-bottom-left-radius: var(--r-xl); border-bottom-right-radius: var(--r-xl); }
  .hero { padding-block: clamp(28px, 6vw, 44px) clamp(36px, 7vw, 60px); }
  .price-note { flex-direction: column; align-items: flex-start; }
  .price-note .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .callbar .btn { width: auto; }
  .btn-row { flex-direction: column; }
  .callbar .btn--ghost { padding-inline: 15px; }
}

/* --------------------------------------- 22. Уважение к настройкам системы */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__layer, .parallax-band__layer, .hero__card { transform: none !important; }
}

/* -------------------------------------- 23. Первый экран внутренних страниц */
.hero--inner {
  padding-block: clamp(34px, 5vw, 74px) clamp(44px, 6vw, 88px);
}
.hero--inner h1 { font-size: clamp(28px, 4.4vw, 50px); }

/* Карточка с фотографией вместо блока «узнать цену» */
.hero__card--pic {
  padding: 10px;
  background: linear-gradient(165deg, rgba(40,54,66,.9) 0%, rgba(16,22,28,.9) 100%);
}
.hero__card--pic picture,
.hero__card--pic img {
  display: block;
  width: 100%;
  border-radius: calc(var(--r-xl) - 12px);
}
.hero__card--pic img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Первый экран без картинки — текст на всю ширину */
.hero__inner--nopic { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

/* ---------------------------------------------------------- 24. Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gallery__item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  line-height: 0;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: saturate(.92);
}
.gallery__item:hover img { transform: scale(1.05); filter: saturate(1.05); }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__item img { aspect-ratio: 1 / 1; }
  .hero__card--pic img { aspect-ratio: 3 / 2; }
}

/* ------------------------------------------------------------- 25. Печать */
@media print {
  .header, .callbar, .footer, .map-wrap, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
