@charset "utf-8";

/* ===========================================================================
   BM Group-2022 — главная страница
   Палитра и шрифт — из брендбука клиента (Гайд ВМ.pdf):
     #014838 PANTONE 3435 C · #92C682 PANTONE 359 C · #2B2A29 · Montserrat
   Раскладка и порядок блоков — по макету «главная бм груп цветная.pdf».
   =========================================================================== */

/* ── Шрифт ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-latin.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 {
  --green: #014838;
  --green-deep: #01311f;
  --green-mid: #14614a;
  --lime: #92c682;
  --lime-soft: #c6d6bb;
  --lime-pale: #eaf1e5;
  --ink: #2b2a29;
  --ink-mute: #6f6e6c;
  --ink-faint: #b6b5b1;
  --paper: #f4f4f4;
  --line: #e3e3df;
  --line-dark: rgba(255, 255, 255, 0.18);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(16px, 2.8vw, 46px);
  --maxw: 1720px;
  --sec-y: clamp(56px, 6.4vw, 108px);
  --topbar-h: clamp(64px, 6vw, 96px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── База ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.95vw, 17px);
  line-height: 1.62;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  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: 3px solid var(--lime);
  outline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 999;
  translate: -50% 0;
  padding: 12px 22px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

/* ── Типографика ───────────────────────────────────────────────────────── */
.display {
  font-weight: 600;
  font-size: clamp(30px, 4.3vw, 62px);
  line-height: 1.03;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.display__accent {
  color: var(--green);
}

.sec-title {
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 50px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sec-title span {
  display: block;
}

.sec-title span + span {
  color: var(--ink-faint);
}

.sec-lead {
  font-weight: 600;
  font-size: clamp(16px, 1.32vw, 22px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sec-text {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--ink-mute);
}

.num {
  font-family: var(--mono);
  font-size: clamp(13px, 0.95vw, 16px);
  letter-spacing: 0.06em;
  color: var(--green);
}

/* Шапка секции: слева заголовок, справа подзаголовок с абзацем (как в макете) */
.sec-head {
  display: grid;
  gap: clamp(20px, 2.4vw, 40px);
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: clamp(28px, 3.4vw, 54px);
}

@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 56px);
  }
  .sec-head--right > *:last-child {
    padding-top: clamp(4px, 0.8vw, 14px);
  }
}

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

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

.section--dark {
  background: var(--green);
  color: #fff;
}

.section--dark .sec-title span + span {
  color: rgba(255, 255, 255, 0.42);
}

.section--dark .sec-text {
  color: rgba(255, 255, 255, 0.74);
}

.section--dark .num {
  color: var(--lime);
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: clamp(12px, 0.86vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn:hover {
  --btn-bg: var(--green-deep);
  --btn-bd: var(--green-deep);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
}

.btn--lime {
  --btn-bg: var(--lime);
  --btn-fg: var(--green-deep);
  --btn-bd: var(--lime);
}

.btn--lime:hover {
  --btn-bg: #fff;
  --btn-bd: #fff;
}

.btn--wide {
  display: flex;
  width: 100%;
  min-height: clamp(54px, 4.2vw, 66px);
}

/* Широкая кнопка-полоса под секцией — как в макете */
.band-cta {
  margin-top: clamp(18px, 1.8vw, 28px);
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 1.5vw, 22px) var(--gutter);
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease), padding 0.28s var(--ease);
}

.topbar--stuck {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0, 0, 0, 0.45);
  padding-block: clamp(8px, 1vw, 14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.22s var(--ease);
}

.brand:hover {
  background: var(--green-deep);
}

.brand__mark {
  width: auto;
  height: clamp(26px, 2.3vw, 34px);
  flex: none;
}

.brand__word {
  width: clamp(84px, 7.6vw, 116px);
  height: auto;
  flex: none;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 18px);
}

.topbar__phone {
  display: none;
  font-weight: 600;
  font-size: clamp(13px, 0.95vw, 16px);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__phone:hover {
  color: var(--green);
}

.lang {
  display: none;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lang a,
.lang span {
  padding: 7px 9px;
  text-decoration: none;
}

.lang span {
  background: var(--green);
  color: #fff;
}

.lang a:hover {
  color: var(--green);
}

@media (min-width: 860px) {
  .topbar__phone,
  .lang {
    display: flex;
  }
}

.burger {
  position: relative;
  z-index: 80;
  width: clamp(46px, 3.6vw, 54px);
  height: clamp(46px, 3.6vw, 54px);
  flex: none;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: var(--green);
  cursor: pointer;
  transition: background-color 0.22s var(--ease);
}

.burger:hover {
  background: var(--green-deep);
}

.burger i {
  display: block;
  width: clamp(18px, 1.4vw, 22px);
  height: 2px;
  background: #fff;
  transition: translate 0.26s var(--ease), rotate 0.26s var(--ease), opacity 0.16s var(--ease);
}

.nav-open .burger i:nth-child(1) {
  translate: 0 7px;
  rotate: 45deg;
}

.nav-open .burger i:nth-child(2) {
  opacity: 0;
}

.nav-open .burger i:nth-child(3) {
  translate: 0 -7px;
  rotate: -45deg;
}

/* ── Меню-оверлей ──────────────────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: center;
  gap: clamp(22px, 3vw, 44px);
  padding: calc(var(--topbar-h) + 24px) var(--gutter) 32px;
  background: var(--green);
  color: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  translate: 0 -12px;
  transition: opacity 0.28s var(--ease), translate 0.28s var(--ease), visibility 0.28s;
}

.nav-open .menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.menu__list {
  display: grid;
  gap: clamp(4px, 0.7vw, 10px);
}

.menu__list a {
  display: inline-block;
  padding: 4px 0;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease), translate 0.2s var(--ease);
}

.menu__list a:hover {
  color: var(--lime);
  translate: 10px 0;
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line-dark);
}

.menu__foot a {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.menu__foot a:hover {
  color: var(--lime);
}

.menu__lang {
  display: flex;
  gap: 2px;
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.menu__lang a,
.menu__lang span {
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  text-decoration: none;
}

.menu__lang span {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--green-deep);
}

/* ── Первый экран ──────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
}

.hero__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-deep);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__caption {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 2vw, 30px);
  right: clamp(14px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 30px);
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 26px);
  padding: clamp(14px, 1.5vw, 22px);
  background: linear-gradient(120deg, rgba(1, 49, 31, 0.62), rgba(43, 42, 41, 0.5));
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero__check {
  display: grid;
  place-content: center;
  width: clamp(44px, 3.6vw, 58px);
  height: clamp(44px, 3.6vw, 58px);
  background: #fff;
  color: var(--green);
}

.hero__check svg {
  width: 55%;
  height: auto;
}

.hero__captext {
  font-weight: 600;
  font-size: clamp(13px, 1.02vw, 17px);
  line-height: 1.32;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__arrows {
  position: absolute;
  z-index: 2;
  right: clamp(14px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 30px);
  display: flex;
  gap: 6px;
}

.hero__arrow {
  display: grid;
  place-content: center;
  width: clamp(42px, 3.2vw, 50px);
  height: clamp(38px, 2.9vw, 44px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(43, 42, 41, 0.28);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.hero__arrow:hover {
  background: #fff;
  color: var(--green);
}

.hero__arrow svg {
  width: 14px;
  height: 14px;
}

.hero__body {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.4vw, 58px) var(--gutter) clamp(30px, 3.4vw, 52px);
}

.hero__title {
  margin-top: clamp(4px, 1vw, 18px);
}

.hero__chip {
  align-self: start;
  margin-top: clamp(18px, 2.4vw, 40px);
  padding: 9px 16px;
  border: 1px solid var(--ink);
  font-weight: 500;
  font-size: clamp(10px, 0.78vw, 13px);
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__lead {
  margin-top: clamp(16px, 1.8vw, 28px);
  max-width: 62ch;
  color: var(--ink-mute);
}

.hero__actions {
  display: grid;
  gap: 10px;
  margin-top: clamp(26px, 3vw, 46px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 49.3% minmax(0, 1fr);
    min-height: min(100svh, 62vw);
  }
  .hero__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .hero__body {
    justify-content: flex-start;
    padding-top: calc(var(--topbar-h) + clamp(12px, 1.8vw, 34px));
    padding-inline: clamp(26px, 3vw, 58px);
  }
  .hero__actions {
    margin-top: auto;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .hero__chip {
    margin-top: 18px;
  }
}

/* ── Карточки задач ────────────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: clamp(10px, 0.9vw, 16px);
  grid-template-columns: 1fr;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  min-height: clamp(230px, 21vw, 320px);
  padding: clamp(18px, 1.5vw, 26px);
  background: #fff;
  border: 1px solid var(--line);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(20px, 2vw, 34px);
}

.card__icon {
  width: clamp(66px, 5.4vw, 92px);
  height: auto;
  flex: none;
}

.card__title {
  margin-top: auto;
  font-weight: 600;
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.24;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.card__text {
  margin-top: 8px;
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.5;
  color: var(--ink-mute);
}

/* ── Разрез здания с точками ───────────────────────────────────────────── */
.object__figure {
  position: relative;
  background: #eceeee;
}

.object__figure img {
  width: 100%;
  height: auto;
}

.object__spots {
  display: none;
}

@media (min-width: 900px) {
  .object__spots {
    display: block;
    position: absolute;
    inset: 0;
  }
}

.spot {
  position: absolute;
  translate: -50% -50%;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.spot__num {
  display: grid;
  place-content: center;
  width: clamp(46px, 3.6vw, 62px);
  height: clamp(38px, 3vw, 52px);
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(43, 42, 41, 0.34);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.04em;
  color: #fff;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.spot__body {
  display: grid;
  align-content: center;
  gap: 2px;
  width: 0;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(1, 49, 31, 0.96), rgba(43, 42, 41, 0.92));
  color: #fff;
  opacity: 0;
  transition: width 0.34s var(--ease), opacity 0.24s var(--ease), padding 0.34s var(--ease);
}

.spot__title {
  font-weight: 600;
  font-size: clamp(14px, 1.06vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spot__text {
  font-size: clamp(12px, 0.84vw, 14px);
  line-height: 1.3;
  color: var(--lime);
  white-space: nowrap;
}

.spot:hover,
.spot:focus-visible,
.spot.is-active {
  z-index: 3;
}

.spot:hover .spot__num,
.spot:focus-visible .spot__num,
.spot.is-active .spot__num {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}

.spot:hover .spot__body,
.spot:focus-visible .spot__body,
.spot.is-active .spot__body {
  width: clamp(210px, 17vw, 300px);
  padding: 12px clamp(14px, 1.2vw, 22px);
  opacity: 1;
}

/* Точка у правого края раскрывается влево, чтобы не уезжать за картинку */
.spot--flip {
  flex-direction: row-reverse;
}

.object__hint {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

@media (min-width: 900px) {
  .object__hint {
    display: block;
  }
}

/* Мобильная замена точкам — обычный список узлов */
.object__list {
  display: grid;
  gap: 1px;
  margin-top: clamp(16px, 2vw, 26px);
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .object__list {
    display: none;
  }
}

.object__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 16px;
  background: #fff;
}

.object__item .num {
  grid-row: span 2;
  align-self: center;
}

.object__item b {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.object__item span {
  grid-column: 2;
  font-size: 14px;
  color: var(--ink-mute);
}

/* ── Системы ───────────────────────────────────────────────────────────── */
.systems {
  display: grid;
  gap: clamp(10px, 0.9vw, 16px);
  grid-template-columns: 1fr;
}

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

@media (min-width: 1100px) {
  .systems {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .systems > * {
    grid-column: span 2;
  }
  .systems > *:nth-child(4),
  .systems > *:nth-child(5) {
    grid-column: span 3;
  }
}

.system {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}

.system__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.system__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease);
}

.system:hover .system__media img {
  scale: 1.04;
}

.system__num {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 12px;
  background: #fff;
}

.system__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(18px, 1.5vw, 26px);
}

.system__title {
  font-weight: 600;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.system__text {
  margin-top: 10px;
  font-size: clamp(13px, 0.9vw, 15px);
  color: var(--ink-mute);
}

.system__list {
  display: grid;
  gap: 7px;
  margin-top: clamp(14px, 1.4vw, 22px);
  padding-top: clamp(14px, 1.4vw, 22px);
  border-top: 1px solid var(--line);
  font-size: clamp(12px, 0.86vw, 14px);
}

.system__list li {
  position: relative;
  padding-left: 20px;
}

.system__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--green);
}

/* ── Сегменты ──────────────────────────────────────────────────────────── */
.segments {
  display: grid;
  gap: clamp(10px, 0.9vw, 16px);
  grid-template-columns: 1fr;
}

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

.segment {
  display: flex;
  flex-direction: column;
  min-height: clamp(200px, 17vw, 270px);
  padding: clamp(20px, 1.8vw, 32px);
  background: var(--green);
  color: #fff;
  transition: background-color 0.26s var(--ease);
}

.segment:nth-child(2) {
  background: var(--green-mid);
}

.segment:nth-child(3) {
  background: var(--ink);
}

.segment .num {
  color: var(--lime);
}

.segment h3 {
  margin-top: auto;
  font-weight: 600;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.segment p {
  margin-top: 10px;
  font-size: clamp(13px, 0.9vw, 15px);
  color: rgba(255, 255, 255, 0.76);
}

/* ── Преимущества ──────────────────────────────────────────────────────── */
.why {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}

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

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

.why__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 1.8vw, 32px);
  background: #fff;
}

.why__item h3 {
  margin-top: clamp(18px, 2vw, 34px);
  font-weight: 600;
  font-size: clamp(15px, 1.12vw, 19px);
  line-height: 1.24;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.why__item p {
  font-size: clamp(13px, 0.9vw, 15px);
  color: var(--ink-mute);
}

/* ── Процесс ───────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  grid-template-columns: 1fr;
}

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

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

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: clamp(160px, 13vw, 220px);
  padding: clamp(18px, 1.6vw, 28px);
  background: var(--green);
}

.step h3 {
  margin-top: auto;
  font-weight: 600;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.24;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.step p {
  font-size: clamp(12px, 0.86vw, 14px);
  color: rgba(255, 255, 255, 0.72);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq__item {
  background: #fff;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: clamp(16px, 1.5vw, 26px) clamp(16px, 1.5vw, 28px);
  border: 0;
  background: none;
  font-weight: 600;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
}

.faq__q:hover {
  color: var(--green);
}

.faq__sign {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: var(--green);
  transition: rotate 0.28s var(--ease), opacity 0.28s var(--ease);
}

.faq__sign::after {
  rotate: 90deg;
}

.faq__q[aria-expanded='true'] .faq__sign::after {
  rotate: 0deg;
  opacity: 0;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq__q[aria-expanded='true'] + .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 clamp(16px, 1.5vw, 28px) clamp(18px, 1.6vw, 28px);
  max-width: 82ch;
  color: var(--ink-mute);
}

/* ── Заявка и контакты ─────────────────────────────────────────────────── */
.lead-grid {
  display: grid;
  gap: clamp(24px, 2.6vw, 44px);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1000px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  }
}

.contact-list {
  display: grid;
  gap: 1px;
  margin-top: clamp(24px, 2.6vw, 40px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

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

.contact-list > div {
  padding: clamp(14px, 1.3vw, 22px);
  background: var(--green);
}

.contact-list dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lime);
}

.contact-list dd {
  margin: 6px 0 0;
  font-weight: 600;
  font-size: clamp(14px, 1.02vw, 17px);
  letter-spacing: 0.01em;
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid rgba(146, 198, 130, 0.5);
}

.contact-list a:hover {
  color: var(--lime);
}

.form {
  padding: clamp(20px, 2vw, 36px);
  background: #fff;
  color: var(--ink);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field > span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font-size: 16px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #b3261e;
  background: #fdf3f2;
}

.field__err {
  min-height: 0;
  font-size: 12.5px;
  color: #b3261e;
}

.field__err:empty {
  display: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--green);
}

.consent a {
  color: var(--green);
}

.form__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-mute);
}

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

.form__ok {
  display: none;
  gap: 10px;
  padding: clamp(20px, 2vw, 32px);
  background: var(--lime-pale);
  border: 1px solid var(--lime);
}

.form.is-sent .form__ok {
  display: grid;
}

.form.is-sent .form__fields {
  display: none;
}

.form__ok h3 {
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.form__ok p {
  font-size: 14px;
  color: var(--ink-mute);
}

/* ── Подвал ────────────────────────────────────────────────────────────── */
.footer {
  padding-block: clamp(40px, 4.4vw, 72px) clamp(24px, 2.4vw, 36px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 0.9vw, 15px);
}

.footer__top {
  display: grid;
  gap: clamp(26px, 3vw, 48px);
  grid-template-columns: 1fr;
  padding-bottom: clamp(26px, 3vw, 44px);
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 820px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.footer__brand .brand__mark {
  height: 40px;
}

.footer__brand .brand__word {
  width: 130px;
}

.footer__tagline {
  margin-top: 16px;
  max-width: 34ch;
}

.footer h4 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--lime);
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--lime);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: clamp(18px, 2vw, 26px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:last-child {
  margin-inline-start: auto;
}

/* ── Виджет WhatsApp ───────────────────────────────────────────────────── */
.wa {
  position: fixed;
  right: clamp(12px, 1.6vw, 26px);
  bottom: clamp(12px, 1.6vw, 26px);
  z-index: 55;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.wa__bubble {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.35;
}

.wa.is-open .wa__bubble {
  display: flex;
}

.wa__close {
  padding: 0 2px;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
}

.wa__btn {
  display: grid;
  place-content: center;
  width: clamp(52px, 4.2vw, 62px);
  height: clamp(52px, 4.2vw, 62px);
  flex: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(37, 211, 102, 0.9);
  transition: scale 0.22s var(--ease);
}

.wa__btn:hover {
  scale: 1.06;
}

.wa__btn svg {
  width: 55%;
  height: auto;
}

/* ── Появление блоков при скролле ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ── Служебные страницы ────────────────────────────────────────────────── */
.legal {
  padding: calc(var(--topbar-h) + clamp(30px, 4vw, 70px)) 0 clamp(50px, 6vw, 90px);
}

.legal .container {
  max-width: 900px;
}

.legal h1 {
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.legal__updated {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.legal h2 {
  margin-top: clamp(28px, 3vw, 44px);
  font-weight: 600;
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.legal p {
  margin-top: 12px;
  color: var(--ink-mute);
}

.legal__back {
  display: inline-block;
  margin-top: clamp(32px, 3.4vw, 50px);
}

/* ── Доступность и печать ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    translate: none;
  }
}

@media print {
  .topbar,
  .menu,
  .wa,
  .hero__arrows,
  .band-cta {
    display: none !important;
  }
}
