/* КаркасБаш — металлоконструкции и сэндвич-панели, Уфа.
   Тёмная индустриальная сетка: графит #12141A, акцент #FFC800.
   Шрифты: Manrope (текст) + Unbounded (заголовки). */

:root {
  --bg: #12141A;
  --panel: #171B23;
  --panel-2: #1D222B;
  --line: #2A313B;
  --line-strong: #3A424E;
  --text: #E9ECF1;
  --muted: #98A1AC;
  --accent: #FFC800;
  --accent-ink: #12141A;
  --white: #FFFFFF;
  --container: 1240px;
  --pad: 24px;
  --radius: 16px;
  --radius-lg: 22px;
  --font-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }
figure, picture { display: block; }

/* Платформенный бейдж «Сделано в Спру» в правом нижнем углу — скрыт по просьбе заказчика */
#spru-pages-badge-host { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(26px, 4vw, 46px); hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(23px, 3.2vw, 36px); }
h3 { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.28; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }
strong { font-weight: 700; color: var(--white); }

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

.ico { flex: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding: clamp(44px, 6vw, 88px) 0; }
.section--tight { padding: clamp(28px, 3.6vw, 52px) 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--page { padding: clamp(48px, 6vw, 90px) 0; }

.section-head { margin-bottom: clamp(22px, 2.6vw, 36px); }
.section-head p { color: var(--muted); max-width: 760px; }
.section-head h2 { margin-bottom: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.grid { display: grid; gap: 20px; }
.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)); }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #12141A;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header.is-scrolled { background: #0D0F14; border-bottom-color: var(--line-strong); }

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

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { flex: none; display: block; }
.logo__mark svg { width: 32px; height: 32px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-family: var(--font-head); font-size: 19px; letter-spacing: -0.02em; }
.logo__text i { font-style: normal; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); border-bottom-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.burger:hover { border-color: var(--accent); }
.burger svg { width: 18px; height: 18px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #FFD633; color: var(--accent-ink); transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--max { background: var(--accent); color: var(--accent-ink); }
.btn--max:hover { background: #FFD633; color: var(--accent-ink); }

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

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

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

.cta__hint { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

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

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 78% -10%, rgba(255, 200, 0, 0.10), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(36px, 5.4vw, 78px);
  padding-bottom: clamp(36px, 5.4vw, 78px);
}
.hero h1 { margin-bottom: 18px; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; width: 100%; }
.hero__text > * { max-width: 100%; min-width: 0; }
.hero__text .lead { margin-bottom: 24px; }
.hero__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--muted);
  font-size: 14px;
}
.hero__facts li { margin: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero__facts li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__media { min-width: 0; }

/* ---------- Фото ---------- */

.photo { display: block; }
.photo__img { width: 100%; height: 100%; object-fit: cover; }
.photo__cap {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.ph-45 { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.ph-45 > img { width: 100%; height: 100%; object-fit: cover; }
.ph-wide { aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); }
.ph-wide > img { width: 100%; height: 100%; object-fit: cover; }
.ph-video { aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-lg); background: #000; }


/* Видео-блок: одно вертикальное видео по центру */
.video-block { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.video-frame {
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }

.media-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Карточки ---------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}
.card-media { position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.ph-45 { border-radius: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; gap: 12px; }
.card-title { font-family: var(--font-head); font-size: 18px; line-height: 1.26; margin: 0; min-height: 46px; }
.card-desc { color: var(--muted); font-size: 15px; margin: 0; }
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.card-price { font-family: var(--font-head); font-size: 17px; color: var(--accent); display: block; overflow-wrap: break-word; }
.card-note { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.card-link { font-size: 14px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.card-link svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.card-link:hover { color: var(--accent); }

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.step-media { border-radius: 12px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 4 / 5; }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Таблица цен ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.price-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th {
  font-family: var(--font-head);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--panel-2);
  white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--panel-2); }
.price-table td.price { font-family: var(--font-head); color: var(--accent); white-space: nowrap; }
.price-table td.unit { color: var(--muted); white-space: nowrap; }
.price-table td.source { color: var(--muted); font-size: 14px; }
.cell-note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Таблица цен на узких экранах: строки превращаются в карточки,
   чтобы не было горизонтальной прокрутки. */
@media (max-width: 700px) {
  .price-table { min-width: 0; width: 100%; display: block; }
  .price-table thead { display: none; }
  .price-table tbody { display: block; }
  .price-table tr {
    display: block; padding: 16px 18px; border-bottom: 1px solid var(--line);
  }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table td {
    display: block; padding: 0; border: 0; white-space: normal;
  }
  .price-table td::before {
    content: attr(data-label);
    display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px;
  }
  .price-table td:not(:first-child) { margin-top: 10px; }
  .price-table td.price { white-space: normal; }
}

/* ---------- Расчёт ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: stretch;
}
.calc-formula {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
}
.calc-formula .formula {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--accent);
  margin: 0 0 12px;
  overflow-wrap: break-word;
}
.calc-examples { display: grid; gap: 14px; }
.calc-example {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
}
.calc-example p { margin: 0; }
.calc-tag {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Отзывы ---------- */

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.reviews-score { font-family: var(--font-head); font-size: 44px; color: var(--accent); line-height: 1; }
.reviews-stars { display: inline-flex; gap: 3px; }
.reviews-stars svg { width: 26px; height: 26px; color: var(--accent); }
.stars { display: inline-flex; gap: 2px; flex: none; }
.stars svg { width: 14px; height: 14px; color: var(--accent); }
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-head > div { min-width: 0; }
.review-name { font-family: var(--font-head); font-size: 16px; margin: 0; overflow-wrap: break-word; }
.review-date { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.review-text { color: var(--text); font-size: 15px; margin: 0; }

/* ---------- География ---------- */

.geo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.geo-cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.geo-cell h3 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.geo-cell h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.geo-cell p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
}
.faq-icon::before { width: 11px; height: 2px; }
.faq-icon::after { width: 2px; height: 11px; transition: transform 0.2s ease; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-a { display: none; padding: 0 44px 22px 0; color: var(--muted); }
.faq-item.is-open .faq-a { display: block; }

/* ---------- Контакты / реквизиты ---------- */

.contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card__ico { color: var(--accent); }
.contact-card__ico svg { width: 24px; height: 24px; }
.contact-card__title { font-family: var(--font-head); font-size: 17px; color: var(--text); overflow-wrap: anywhere; }
.contact-card__text { font-size: 14px; color: var(--muted); }
.contact-card--accent { background: var(--panel-2); border-color: var(--accent); }

.contacts-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.contacts-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.contacts-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.contacts-info h2 { font-size: 22px; }
.contact-line { margin-bottom: 14px; font-size: 15px; overflow-wrap: anywhere; }
.contact-line b { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 18px;
}
.facts > div { background: var(--panel); padding: 16px 18px; }
.facts dt { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Блоки-преимущества ---------- */

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 { font-size: 17px; margin: 0 0 10px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- О компании ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.about__text h2 { margin-bottom: 16px; }
.about__text p { color: var(--muted); }
.about__media { min-width: 0; }

/* ---------- Кейсы ---------- */

.case-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(22px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.case-block:first-of-type { border-top: 0; }
.case-block__media { min-width: 0; }
.case-block__text h2 { font-size: clamp(21px, 2.4vw, 30px); margin-bottom: 12px; }
.case-block__text p { color: var(--muted); }

.tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags--top { margin-bottom: 0; }
.tag {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.gallery { align-items: start; }

/* ---------- Заголовок страницы ---------- */

.page-head { padding: clamp(34px, 4.4vw, 64px) 0 clamp(6px, 1vw, 14px); }
.page-head h1 { margin-bottom: 14px; }

/* ---------- Цена услуги ---------- */

.price-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 32px);
}
.price-hero__value { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 38px); color: var(--accent); margin: 0 0 8px; line-height: 1.1; }

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
}
.cta h2 { margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0; max-width: 640px; }
.cta__text { flex: 1 1 320px; min-width: 0; }
.cta__actions { flex: 0 0 auto; display: flex; align-items: center; }
.cta__actions .btn { white-space: nowrap; }
.cta--accent { background: linear-gradient(120deg, rgba(255, 200, 0, 0.10), var(--panel-2) 58%); border-color: rgba(255, 200, 0, 0.4); }

.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

/* ---------- Хлебные крошки ---------- */

.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; color: var(--line-strong); }
.crumbs a { white-space: nowrap; }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- Футер ---------- */

.footer { background: #0E1015; border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.footer__col h3 { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
.footer__brand { font-family: var(--font-head); font-size: 19px; margin: 0 0 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list li { margin: 0; }
.footer__list a { color: var(--text); font-size: 15px; }
.footer__list .muted { font-size: 15px; }
.footer__prices { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.footer__prices li { margin: 0; display: grid; gap: 2px; }
.footer__prices span { font-size: 13px; color: var(--muted); }
.footer__prices b { font-family: var(--font-head); font-size: 15px; color: var(--accent); }
.footer__contacts a { overflow-wrap: anywhere; }
.footer__cta { margin-top: 18px; }
.footer__bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer__bottom p { margin: 0; }

/* ---------- Мобильная панель ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 15, 20, 0.97);
  border-top: 1px solid var(--line-strong);
  gap: 10px;
}
.mobile-bar__inner { display: flex; gap: 10px; align-items: center; }
.mobile-bar__inner .btn { flex: 1; }
.mobile-bar__call {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
}
.mobile-bar__call:hover { border-color: var(--accent); }

/* ---------- 404 ---------- */

.error-page { max-width: 720px; }
.error-links { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.error-links li { margin: 0; }
.error-links a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
}
.error-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .contacts-split { grid-template-columns: minmax(0, 1fr); }
  .case-block { grid-template-columns: minmax(0, 1fr); }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 18px;
    margin: 0;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open { display: flex; }
  .nav__link { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; width: 100%; }
  .nav__link.is-active { border-bottom-color: var(--accent); }
  .burger { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .mobile-bar { display: block; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; justify-content: flex-start;
         gap: 18px; padding: 26px 20px; }
  .cta__text { flex: 0 0 auto; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; justify-content: center; }
  .price-hero { flex-direction: column; align-items: flex-start; }
  .header__inner { min-height: 66px; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .header__actions .btn--max { display: none; }
  .mobile-bar .btn { font-size: 13px; padding: 12px 14px; gap: 6px; }
  .grid-4, .features { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .geo { grid-template-columns: minmax(0, 1fr); }
  .logo__text b { font-size: 17px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .card-title { min-height: 0; }
  .price-hero__value { font-size: 24px; }
}

@media (max-width: 380px) {
  .hero__facts { gap: 8px 16px; font-size: 13px; }
  .hero__facts { flex-direction: column; gap: 10px; }
  .reviews-score { font-size: 38px; }
  .logo__text i { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-icon::after { transition: none; }
}
