/* ==========================================================================
   TactixFire — оформление сайта
   Фирменный красный взят из логотипа: #F83A40
   Направление: строгое, светлое, много воздуха. Красный — только акцент.
   ========================================================================== */

/* --- 1. Основы ----------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 2. Переменные ------------------------------------------------------ */

:root {
  /* Цвет
     Фирменный красный из логотипа — #F83A40. Для текста и кнопок он не годится:
     белый текст на нём даёт контраст 3.70:1, а норма — 4.5:1. Поэтому в работе
     используем чуть более тёмный оттенок (4.69:1), а исходный оставляем для
     крупных графических элементов, где норма мягче. */
  --red-brand: #F83A40;
  --red: #D8262D;
  --red-dark: #BF1F25;
  --red-soft: #FFF1F1;

  --ink: #14161A;
  --ink-2: #3C434C;
  --ink-3: #646C78;

  --line: #E6E8EC;
  --line-2: #F0F1F3;

  --bg: #FFFFFF;
  --bg-2: #F7F8F9;
  --bg-3: #F1F2F4;

  /* Фон карточек, полей и панелей. Вынесен отдельно, чтобы тему можно было
     переключить одним файлом (см. оформление/theme-dark.css). */
  --surface: #FFFFFF;
  --header-bg: rgba(255, 255, 255, .92);

  --dark: #15171B;
  --dark-2: #1D2026;
  --dark-line: #2A2E35;
  --dark-text: #A7AEB8;

  /* Шрифт */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-body: 16.5px;
  --fs-lead: 19px;

  /* Размеры */
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(64px, 7.5vw, 108px);
  /* Скругления уменьшены 14.10.2026 по ответу заказчика: он назвал «детским
     видом» именно скруглённые углы. Выбранный им вариант — «почти
     прямоугольные», это 4 точки на кнопках и карточках. */
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;

  /* Тени убраны по той же причине — заказчик отметил «мягкие тени
     и объёмные блоки». Блоки разделяем тонкими линиями: они и так есть
     у карточек и полей. */
  --shadow-sm: none;
  --shadow: none;

  --header-h: 74px;
}

/* --- 3. Типографика ----------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h2 { font-size: clamp(27px, 3.2vw, 40px); }

h3 { font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -0.014em; }

h4 { font-size: 17px; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
}

.muted { color: var(--ink-3); }

/* Надзаголовок раздела */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red-brand);
  border-radius: 2px;
}

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

/* --- 4. Сетка ----------------------------------------------------------- */

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

.container--narrow { max-width: 880px; }

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

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

.section--gray { background: var(--bg-2); }

.section--dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

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

.section__head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }

.section__head--center { margin-inline: auto; text-align: center; }

.section__head p { margin-bottom: 0; }

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

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* --- 5. Кнопки ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  white-space: nowrap;
}

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

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

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

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.btn--link {
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  border: 0;
  background: none;
}
.btn--link:hover { color: var(--red); }

/* На тёмном фоне обычный цвет ссылки почти чёрный и её не видно.
   Здесь берём белый, а на наведение — фирменный красный: он на тёмном
   фоне проходит проверку контраста (4.87:1). */
.page-head .btn--link,
.section--dark .btn--link,
.cta-band .btn--link { color: #fff; }

.page-head .btn--link:hover,
.section--dark .btn--link:hover,
.cta-band .btn--link:hover { color: var(--red-brand); }

.btn--lg { padding: 17px 32px; font-size: 16.5px; }

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

/* Короткая надпись кнопки — показывается только на узких экранах,
   иначе кнопка в шапке не помещается. */
.btn__short { display: none; }

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

/* --- 6. Шапка сайта ----------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.header__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.header__logo img { height: 30px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header__link {
  position: relative;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: color .15s ease, background-color .15s ease;
}

.header__link:hover { color: var(--ink); background: var(--bg-2); }

.header__link.is-active { color: var(--ink); font-weight: 600; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
  flex: none;
}

.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone:hover { color: var(--red); }

/* Выпадающее меню услуг */
.has-menu { position: relative; }

.header__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 302px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.has-menu:hover .header__menu,
.has-menu:focus-within .header__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-2);
}

.header__menu a:hover { background: var(--bg-2); color: var(--ink); }

.header__menu .header__menu-all {
  margin-top: 6px;
  border-top: 1px solid var(--line-2);
  padding-top: 12px;
  color: var(--red);
  font-weight: 600;
}

/* Кнопка мобильного меню */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  margin-left: auto;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .18s ease, opacity .18s ease;
}

.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- 7. Первый экран ---------------------------------------------------- */

.hero { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 4 / 3.35;
}

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

.hero__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(21, 23, 27, .86);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

.hero__badge svg { flex: none; }

/* Полоса доверия */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.trust__item { display: flex; align-items: baseline; gap: 11px; }

.trust__value {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  flex: none;
}

.trust__label { font-size: 14.5px; color: var(--ink-3); line-height: 1.35; }

/* Цифры о компании: год основания, техники, объекты.
   Появились 14.10.2026 — заказчик дал их во второй форме. */
.section--facts { padding-block: clamp(40px, 5vw, 64px); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.fact { display: flex; flex-direction: column; gap: 6px; }

.fact__value {
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.fact__label { font-size: 15px; color: var(--ink-3); }

/* --- 8. Преимущества ---------------------------------------------------- */

.feature {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.feature:hover { border-color: #D6DAE0; box-shadow: var(--shadow-sm); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 18px;
}

.feature h3 { margin-bottom: 8px; font-size: 18px; }

.feature p { font-size: 15.5px; color: var(--ink-3); margin: 0; }

/* --- 9. Шаги ------------------------------------------------------------ */

.steps { counter-reset: step; }

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}

.step__num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }

.step p { font-size: 15.5px; color: var(--ink-3); margin: 0; }

.section--dark .step { border-top-color: var(--dark-line); }
.section--dark .step p { color: var(--dark-text); }

/* --- 10. Карточки услуг ------------------------------------------------- */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.service-card:hover {
  border-color: #D6DAE0;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card h3 { margin-bottom: 10px; }

.service-card p { font-size: 15.5px; color: var(--ink-3); margin-bottom: 22px; }

.service-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
}

.service-card__more svg { transition: transform .18s ease; }
.service-card:hover .service-card__more svg { transform: translateX(3px); }

/* Крупная карточка главной услуги (монтаж).
   Заказчик просил показать её первой и заметнее остальных.
   Ставится над сеткой: фотография слева, текст справа. */
.service-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 26px;
  transition: border-color .18s ease;
}

.service-featured:hover { border-color: #C9CED6; }

.service-featured__media { background: var(--bg-3); }
.service-featured__media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

.service-featured__body {
  padding: clamp(28px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-featured__tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.service-featured h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 14px;
}

.service-featured p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 22px;
}

.service-featured__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .service-featured { grid-template-columns: 1fr; }
  .service-featured__media img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* --- 11. Карточки объектов --------------------------------------------- */

.project-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.project-card:hover {
  border-color: #D6DAE0;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card__media { aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }

.project-card__body { padding: 24px 24px 26px; }

.project-card__tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.project-card h3 { margin-bottom: 8px; }

.project-card p { font-size: 15.5px; color: var(--ink-3); margin: 0; }

/* --- 12. Полоса призыва ------------------------------------------------ */

.cta-band { background: var(--dark); color: var(--dark-text); }

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin-bottom: 10px; }

.cta-band p { margin: 0; max-width: 44em; }

.cta-band__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.cta-band__phone { color: #fff; font-weight: 600; }
.cta-band__phone:hover { color: var(--red); }

/* --- 13. Внутренние страницы ------------------------------------------ */

.page-head {
  background: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(52px, 6vw, 84px) clamp(44px, 5vw, 66px);
}

.page-head h1 { color: #fff; margin-bottom: 16px; max-width: 20em; }

.page-head p { margin: 0; max-width: 46em; font-size: var(--fs-lead); }

.crumbs { font-size: 14px; color: #8A929D; margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin-inline: 8px; opacity: .5; }

.article { max-width: 760px; }

.article h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.8em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.6em; }

/* Картинка внутри текста. Пропорция совпадает с той, в которой подготовлены
   файлы (16 к 9), поэтому ничего лишнего не скачивается и не обрезается. */
.article-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-img--spaced { margin: 32px 0 8px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }

.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23DE2A31' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* Нумерованный список — для пошаговых инструкций: там важнее порядок. */
.article ol {
  padding-left: 24px;
  margin: 0 0 1.1em;
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-2);
}

.article ol li { padding-left: 4px; }

.article ol li::marker {
  color: var(--red);
  font-weight: 600;
}

/* Боковая панель страницы услуги */
.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.aside-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.aside-card h3 { font-size: 19px; margin-bottom: 10px; }
.aside-card p { font-size: 15px; color: var(--ink-3); }

.aside-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 4px; }

.aside-list a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.aside-list a:hover { color: var(--red); }
.aside-list li:last-child a { border-bottom: 0; }

/* --- 14. Формы ---------------------------------------------------------- */

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

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(248, 58, 64, .12);
}

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

.field__hint { font-size: 13.5px; color: var(--ink-3); }

.form__note { font-size: 14px; color: var(--ink-3); margin: 0; }

.form__status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: none;
}

.form__status.is-visible { display: block; }
.form__status--warn { background: var(--red-soft); color: #9C2026; }

/* --- 15. Подвал --------------------------------------------------------- */

.footer { background: var(--dark); color: var(--dark-text); padding-block: clamp(48px, 5vw, 72px) 28px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--dark-line);
}

.footer__brand img { height: 30px; width: auto; margin-bottom: 20px; }

.footer__about { font-size: 15px; max-width: 34em; margin-bottom: 22px; }

.footer h2,
.footer .footer__title {
  color: #fff;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.4;
}

.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }

.footer__links a { font-size: 15px; }
.footer__links a:hover { color: #fff; }

.footer__contact { display: grid; gap: 8px; font-size: 15px; }
.footer__contact a:hover { color: #fff; }
.footer__contact strong { color: #fff; font-weight: 600; display: block; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 14px;
  color: #7C848E;
}

.footer__bottom a:hover { color: #fff; }

/* --- 16. Адаптивность --------------------------------------------------- */

@media (max-width: 1080px) {
  .header__nav { display: none; }
  .burger { display: grid; }

  .header__nav.is-open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px;
    gap: 2px;
  }

  .header__nav.is-open .header__link { padding: 13px 4px; font-size: 16.5px; }

  .header__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 8px 6px;
    padding: 2px 0 2px 12px;
    min-width: 0;
  }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .with-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --fs-body: 16px; --header-h: 66px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band__inner { gap: 26px; }

  /* Шапка на узком экране: уменьшаем всё, что занимает ширину,
     и меняем длинную надпись кнопки на короткую. Иначе она вылезает. */
  .header__inner { gap: 12px; }
  .header__logo img { height: 26px; }
  .burger { width: 38px; height: 38px; }
  .header__phone { display: none; }
  .header__actions { gap: 10px; margin-left: 0; }
  .header__actions .btn { padding: 11px 14px; font-size: 14.5px; width: auto; }
  .btn__long { display: none; }
  .btn__short { display: inline; }

  /* Кнопки растягиваем только там, где они стоят в ряд или в форме. */
  .btn-row { gap: 12px; }
  .btn-row .btn,
  .form > .btn { width: 100%; }
}

/* --- 17. Печать --------------------------------------------------------- */

@media print {
  .header, .footer, .cta-band, .form { display: none; }
  body { color: #000; }
}

/* --- 18. Служебное ------------------------------------------------------ */

/* Ссылка «перейти к содержанию» — нужна для доступности */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 19. Админка объектов ---------------------------------------------- */

.admin-note {
  display: none;
  padding: 13px 16px;
  margin-bottom: 22px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
}

/* Заметное предупреждение в админке: показывается, когда текущий файл
   объектов не загрузился. Нужно, чтобы заказчик не залил на сайт пустой
   список и не стёр все объекты. Поэтому выглядит тревожно, а не как заметка. */
.admin-warning {
  padding: 18px 20px;
  margin-bottom: 26px;
  border: 2px solid var(--red);
  border-left-width: 6px;
  background: var(--red-soft);
  border-radius: var(--radius-sm);
}

.admin-warning strong { display: block; margin-bottom: 8px; font-size: 17px; }
.admin-warning p { margin: 0; font-size: 15px; color: var(--ink-2); }

.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}

.admin-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
}

.admin-card__head:hover { background: var(--bg-2); }

.admin-card__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.admin-card__hint {
  margin-left: auto;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
}

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

.admin-block {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-remove { justify-self: start; font-size: 14.5px; }

.field__check input { width: auto; }
