/* ============================================================================
   СеткаПро - стили лендинга москитных сеток
   Палитра: тёплый off-white + природный зелёный акцент + графитовый текст.
   Один акцент на всю страницу. Тема единая (светлая), с поддержкой системной
   тёмной темы через prefers-color-scheme. Радиусы: карточки 20px, поля 12px,
   кнопки - таблетка (pill). Шрифт - Onest.
   ============================================================================ */

/* -------------------- Токены -------------------- */
:root {
  --bg:            #f6f8f4;
  --surface:       #ffffff;
  --surface-2:     #eef4ec;   /* мягкий зелёный тинт секций */
  --text:          #16201a;   /* графит, не чистый чёрный */
  --text-muted:    #5a6660;
  --border:        #e3e8e1;
  --border-strong: #d3dbd1;

  --accent:        #1a8048;   /* основной зелёный (контраст с белым ~5:1, AA) */
  --accent-strong: #136036;   /* hover */
  --accent-soft:   #e4f2e8;   /* фоновый тинт акцента */
  --accent-ink:    #0f3d23;   /* тёмно-зелёный для текста на soft */
  --on-accent:     #ffffff;   /* текст поверх акцента */

  --tg:            #2098d6;

  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22, 32, 26, .06), 0 2px 8px rgba(22, 32, 26, .04);
  --shadow-md: 0 8px 28px rgba(22, 40, 26, .10);
  --shadow-lg: 0 24px 60px rgba(15, 61, 35, .14);

  --container: 1180px;
  --header-h: 72px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);     /* сильный ease-out: вход, появление */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* для движения по экрану */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0e1411;
    --surface:       #161d19;
    --surface-2:     #1b241f;
    --text:          #e8eee9;
    --text-muted:    #9daaa2;
    --border:        #28332c;
    --border-strong: #344039;

    --accent:        #2bb36a;
    --accent-strong: #36c578;
    --accent-soft:   #15281d;
    --accent-ink:    #bdebcd;
    --on-accent:     #08130d;   /* тёмный текст поверх яркого зелёного в тёмной теме */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* -------------------- Кнопки -------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn i { font-size: 1.15em; }
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(0.97); }

.btn--primary { box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--accent); }

.btn--lg { padding: 15px 28px; font-size: 17px; }
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--block { width: 100%; }

/* -------------------- Eyebrow / заголовки секций -------------------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--surface-2); }

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.section__lead {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 60ch;
}

/* -------------------- Шапка -------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 20px;
}
.brand__name { color: var(--text); white-space: nowrap; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav__link {
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 16px; color: var(--text);
  white-space: nowrap;
}
.header__phone i { color: var(--accent); font-size: 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  justify-content: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle i { font-size: 22px; color: var(--accent); }
.nav-toggle__label { line-height: 1; }
.nav-toggle:hover { border-color: var(--accent); }

/* -------------------- Герой -------------------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 7vw, 88px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* фото крупнее текста на десктопе */
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
}
.hero__subtitle {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 46ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  height: auto; /* перебивает HTML-атрибут height, иначе aspect-ratio не работает */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
/* мягкий брендовый отблеск за фото, чтобы любое фото вписалось */
.hero__media::before {
  content: "";
  position: absolute;
  inset: auto 0 -10% 12%; /* не вылезаем за правый край (давало гор. скролл на телефоне) */
  height: 60%;
  background: radial-gradient(60% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}

/* -------------------- Преимущества -------------------- */
.benefits { padding-bottom: clamp(8px, 2vw, 24px); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.benefit { background: var(--surface); padding: 28px 24px; }
.benefit__icon {
  font-size: 30px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.benefit__title { font-size: 18px; font-weight: 700; }
.benefit__text { margin-top: 6px; color: var(--text-muted); font-size: 15.5px; }

/* -------------------- Каталог -------------------- */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
  .card__link:hover i { transform: translateX(3px); }
}

.card__media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--accent-soft);
}
/* разные тинты для разнообразия плиток (пока стоят фото-плейсхолдеры) */
.card__media[data-tint="1"] { background: linear-gradient(135deg, #e4f2e8, #d5ebdd); }
.card__media[data-tint="2"] { background: linear-gradient(135deg, #e7f1ef, #d6e8e4); }
.card__media[data-tint="3"] { background: linear-gradient(135deg, #eef3e6, #dfead0); }
.card__media[data-tint="4"] { background: linear-gradient(135deg, #e6f0f2, #d4e6ea); }
.card__media[data-tint="5"] { background: linear-gradient(135deg, #edeee6, #dde1d0); }
.card__media[data-tint="6"] { background: linear-gradient(135deg, #e9f2e6, #d8ecd4); }
.card__icon { font-size: 56px; color: var(--accent-ink); opacity: .55; }
/* фото вида сетки заполняет плитку (тинт остаётся фоном-подложкой) */
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 21px; font-weight: 700; }
.card__text { margin-top: 8px; color: var(--text-muted); font-size: 15.5px; flex: 1; }
.card__foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__price { font-size: 20px; font-weight: 800; color: var(--accent); }
.card__link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.card__link i { transition: transform .2s var(--ease); }

/* -------------------- Калькулятор -------------------- */
.calc__intro { max-width: 640px; margin-bottom: 40px; }
.calc__panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.calc__form { padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.calc__result {
  padding: clamp(24px, 3vw, 36px);
  background: var(--accent-soft);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.calc__result-label { font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.calc__price { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; color: var(--text); }
.calc__note { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.calc__hint {
  display: flex; gap: 9px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.calc__hint i { color: var(--accent); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.calc__result .btn { margin-top: auto; }
.calc__result .btn:not(:only-child) { margin-top: 22px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* -------------------- Поля форм -------------------- */
.field { display: grid; gap: 7px; }
.field__label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.field__req { color: var(--accent); }
.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: color-mix(in srgb, var(--text-muted) 85%, transparent); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.field__input { appearance: none; background-image: none; cursor: pointer; }
textarea.field__input { resize: vertical; min-height: 56px; }
.field__error { color: #c0392b; font-size: 13.5px; }
@media (prefers-color-scheme: dark) { .field__error { color: #ff8d7a; } }

/* -------------------- Этапы работы -------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.step__num {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-soft);
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
}
@media (prefers-color-scheme: dark) {
  .step__num { color: transparent; }
}
.step__icon { font-size: 32px; color: var(--accent); display: block; margin-bottom: 16px; }
.step__title { font-size: 19px; font-weight: 700; }
.step__text { margin-top: 8px; color: var(--text-muted); font-size: 15.5px; }

/* -------------------- Почему мы -------------------- */
.why {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.why__img {
  width: 100%;
  height: auto; /* перебивает HTML-атрибут height, иначе aspect-ratio не работает */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.why__list { display: grid; gap: 20px; margin: 26px 0 30px; }
.why__item { display: flex; gap: 14px; font-size: 16.5px; color: var(--text-muted); }
.why__item strong { color: var(--text); font-weight: 700; }
.why__item i {
  font-size: 22px; color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--accent-soft);
  border-radius: 12px;
}

/* -------------------- Отзывы -------------------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 0;
}
.review__stars { color: #f5a623; font-size: 17px; display: flex; gap: 2px; margin-bottom: 14px; }
.review__text { font-size: 16.5px; line-height: 1.55; color: var(--text); }
.review__author { margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--text-muted); }

/* -------------------- FAQ -------------------- */
.faq { max-width: 820px; }
.faq__list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-size: 17.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q i { color: var(--accent); font-size: 22px; transition: transform .25s var(--ease); flex-shrink: 0; }
.faq__item[open] .faq__q i { transform: rotate(180deg); }
.faq__a { padding: 0 24px 22px; color: var(--text-muted); font-size: 16px; max-width: 65ch; }

/* -------------------- Заявка / CTA -------------------- */
.cta-section { background: var(--surface-2); }
.cta {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.cta__channels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Нейтральные чипы с фирменными иконками: текст всегда читаемый (AA),
   а узнаваемость даёт цветная иконка мессенджера. */
.channel {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: transform .15s var(--ease), border-color .2s, box-shadow .2s;
}
.channel:active { transform: translateY(1px); }
.channel:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.channel i { font-size: 21px; }
.channel--tg i { color: var(--tg); }
.channel--call i { color: var(--accent); }

.cta__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-md);
}
.cta__form-note { font-size: 12.5px; color: var(--text-muted); text-align: center; }
.cta__success {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
}
.cta__success i { font-size: 22px; }

/* -------------------- Футер -------------------- */
.footer { background: var(--text); color: #cfd8d2; padding-top: 56px; }
@media (prefers-color-scheme: dark) { .footer { background: #0a0f0c; } }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.brand--footer .brand__name { color: #fff; }
.footer__tagline { margin-top: 14px; color: #9fb0a6; font-size: 15px; max-width: 32ch; }
.footer__title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.01em; }
.footer__link {
  display: flex; align-items: center; gap: 9px;
  color: #c2cdc6;
  font-size: 15.5px;
  padding: 5px 0;
  transition: color .15s;
}
.footer__link i { color: var(--accent); font-size: 18px; }
.footer__link:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  font-size: 13.5px;
  color: #8a9990;
}

/* -------------------- Плавающие кнопки -------------------- */
.fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.fab__btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 26px;
  box-shadow: var(--shadow-md);
  transition: transform .15s var(--ease);
}
.fab__btn:active { transform: scale(0.95); }
.fab__btn--call { background: #1a8048; } /* фикс. тёмно-зелёный: белая иконка читаема в любой теме */

/* -------------------- Анимации (появление, вход героя, стаггер) -------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Появление при скролле. Сильный ease-out, вход быстрый и отзывчивый. */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    transition-delay: calc(var(--stagger, 0) * 55ms);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* Вход героя при загрузке: каскад eyebrow -> заголовок -> текст -> кнопки. */
  .hero__content > * { animation: heroIn .6s var(--ease-out) both; }
  .hero .eyebrow  { animation-delay: .05s; }
  .hero__title    { animation-delay: .12s; }
  .hero__subtitle { animation-delay: .20s; }
  .hero__cta      { animation-delay: .28s; }
  /* Фото въезжает из scale(.96), а не из нуля - объект не возникает из ничего. */
  .hero__media    { animation: heroMedia .8s var(--ease-out) both; animation-delay: .12s; }

  /* Раскрытие ответа в FAQ (нечастое действие - можно анимировать). */
  .faq__item[open] .faq__a { animation: faqReveal .22s var(--ease-out); }
}

@keyframes heroIn    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroMedia { from { opacity: 0; transform: scale(.96); }       to { opacity: 1; transform: none; } }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Уважение к prefers-reduced-motion: убираем движение, цвет/тень/прозрачность остаются. */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .card__link:hover i, .btn:active, .fab__btn:active, .channel:active { transform: none; }
}

/* ============================================================================
   АДАПТИВ
   ============================================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__img { aspect-ratio: 16 / 11; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; gap: 18px; }
  .calc__panel { grid-template-columns: 1fr; }
  .calc__result { border-left: none; border-top: 1px solid var(--border); }
  .why { grid-template-columns: 1fr; }
  .why__media { max-width: 480px; }
  .cta { grid-template-columns: 1fr; }
}

/* на средних экранах прячем телефон в шапке, чтобы меню не теснилось */
@media (max-width: 1200px) {
  .header__phone { display: none; }
}

@media (max-width: 1024px) {
  /* мобильная навигация (бургер) - раньше, чтобы шапка не переполнялась */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px;
    margin: 0;
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 14px 16px; font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .header__phone, .header__cta { display: none; }
  .fab { display: flex; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================================
   БЕЗОПАСНОСТЬ И ЮР. БЛОКИ (honeypot, согласие, заглушка отзывов, реквизиты)
   ============================================================================ */
/* honeypot: уводим поле за экран. Реальные люди его не видят и не заполняют. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* чекбокс согласия на обработку персональных данных */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.consent input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--accent);
}
.consent a { color: var(--accent); text-decoration: underline; }

/* честная заглушка вместо отзывов (пока нет реальных) */
.reviews__placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 24px;
}
.reviews__placeholder i { font-size: 42px; color: var(--accent); }
.reviews__placeholder p { max-width: 560px; color: var(--text-muted); font-size: 16px; }
/* реальный рейтинг с Яндекс Карт */
.reviews__rating { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reviews__score { font-size: 42px; font-weight: 800; line-height: 1; color: var(--text); }
.reviews__stars { color: #f5a623; font-size: 22px; letter-spacing: 2px; }
.reviews__count { font-size: 14px; color: var(--text-muted); }
.reviews__links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* реквизиты ИП в подвале */
.footer__legal { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.footer__bottom a { color: inherit; text-decoration: underline; }

/* ============================================================================
   СТРАНИЦА «ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ» (privacy.html)
   ============================================================================ */
.legal { max-width: 820px; margin: 0 auto; padding: 36px 0 64px; }
.legal h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.65; }
.legal ul { margin: 8px 0 8px 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal .muted { color: var(--text-muted); font-size: 14px; }
.legal a { color: var(--accent); }
.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 30px 0 0; color: var(--accent); font-weight: 600;
}

/* ============================================================================
   ДОБАВЛЕНО: тонировка, cookie, фикс скрытых элементов
   ============================================================================ */
/* Скрытые элементы действительно скрыты (перебивает display из компонентов).
   Чинит «вечно висящую» плашку успеха и баннер cookie. */
[hidden] { display: none !important; }

/* доп. услуга: тонировка */
.promo { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.promo__list { display: grid; gap: 12px; margin: 18px 0 26px; }
.promo__list li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 16.5px; }
.promo__list i { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.promo__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--accent-soft); border-radius: var(--r-lg); }
.promo__media i { font-size: 96px; color: var(--accent); opacity: .6; }
.promo__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }

/* плавающая кнопка Telegram (вместо MAX) */
.fab__btn--tg { background: var(--tg); }

/* уведомление о cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 14px;
}
.cookie a { color: var(--accent); text-decoration: underline; }
.cookie .btn { flex-shrink: 0; }

@media (max-width: 980px) { .promo { grid-template-columns: 1fr; } .promo__media { max-width: 420px; } }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; text-align: center; } }

/* блок «Что мы делаем» */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.service__icon { font-size: 40px; color: var(--accent); }
.service__title { font-size: 19px; font-weight: 700; }
.service__text { color: var(--text-muted); font-size: 15.5px; flex: 1; }
.service__link { margin-top: 8px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.service__link i { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .service:hover .service__link i { transform: translateX(3px); }
}

/* плашка «Замер бесплатный» в каталоге */
.freemer {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 14px;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: var(--pill); font-weight: 600; font-size: 14.5px;
}
.freemer i { font-size: 18px; color: var(--accent); }

@media (max-width: 980px) { .services { grid-template-columns: 1fr; } }

/* ===== каталог: подпись под заголовком ===== */
.catalog__note { margin-top: 8px; font-size: 14px; color: var(--text-muted); max-width: 64ch; }

/* ===== калькулятор: погашенное поле (полотно/цвет для вставной/плиссе) ===== */
.field--off { opacity: .45; }
.field--off .field__input { cursor: not-allowed; }

/* ===== зелёная CTA-полоса ===== */
.band { background: linear-gradient(120deg, var(--accent-strong), var(--accent)); color: #fff; padding: clamp(34px, 5vw, 54px) 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.band__title { font-size: clamp(21px, 2.6vw, 29px); font-weight: 800; line-height: 1.15; }
.band__sub { margin-top: 8px; font-size: 16px; opacity: .92; max-width: 62ch; }
.btn--on-band { background: #fff; color: var(--accent-strong); flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) { .btn--on-band:hover { background: #eef6f0; } }

/* ===== галерея «Наши работы» ===== */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.works__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-sm); display: block; background: var(--accent-soft); }
@media (max-width: 900px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .works { grid-template-columns: repeat(2, 1fr); } }

/* ===== тонкий фирменный узор-сетка на тонированных секциях ===== */
.section--tint { position: relative; isolation: isolate; }
.section--tint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(26, 128, 72, .045) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(26, 128, 72, .045) 15px 16px);
}

/* цена не переносит знак ₽ на новую строку */
.card__price, .calc__price { white-space: nowrap; }
