/* ============================================================
   ГоризонтПро — бурение скважин на воду МГБУ
   Дизайн-система: светлый молочный фон, глубокий navy,
   синий/teal акценты, песочные детали, мягкие тени.
   ============================================================ */

:root {
  /* Палитра — молочный/голубой фон, navy, синие акценты */
  --bg: #F4F8FC;
  --bg-soft: #EAF1F8;
  --surface: #FFFFFF;

  --navy-900: #0C2438;
  --navy-800: #0E2A44;
  --navy-700: #16395C;
  --navy-600: #1E4A74;

  --blue-600: #2E6FA6;
  --blue-500: #3A82BD;
  --blue-100: #E4EEF6;
  --blue-50: #F0F6FB;

  --teal-600: #17877B;
  --teal-100: #DFF0ED;

  --sand-600: #8A7348;
  --sand-200: #EDE6D8;

  --ink: #22303F;
  --muted: #5D6D7D;
  --line: #DDE6EF;
  --line-strong: #C8D6E4;

  /* Геометрия */
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1240px;

  /* Тени */
  --shadow-card: 0 6px 22px rgba(14, 42, 68, 0.07);
  --shadow-float: 0 14px 40px rgba(14, 42, 68, 0.14);
  --shadow-btn: 0 8px 18px rgba(14, 42, 68, 0.18);

  /* Топографические линии (navy, для светлых секций) */
  --topo-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700' viewBox='0 0 700 700' fill='none' stroke='%2310314F' stroke-opacity='0.04' stroke-width='1.4'%3E%3Cpath d='M-20 120c120-40 220 40 340 10s220-90 400-40'/%3E%3Cpath d='M-20 210c140-50 260 50 380 20s200-80 360-30'/%3E%3Cpath d='M-20 310c120-30 240 60 380 30s220-100 360-50'/%3E%3Cpath d='M-20 430c150-60 260 40 400 10s200-70 320-30'/%3E%3Cpath d='M-20 550c130-40 240 50 380 20s230-90 360-40'/%3E%3Ccircle cx='535' cy='165' r='55'/%3E%3Ccircle cx='535' cy='165' r='92'/%3E%3Ccircle cx='165' cy='505' r='50'/%3E%3C/svg%3E");
  /* Топографические линии (белые, для navy-панелей) */
  --topo-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700' viewBox='0 0 700 700' fill='none' stroke='%23FFFFFF' stroke-opacity='0.07' stroke-width='1.4'%3E%3Cpath d='M-20 120c120-40 220 40 340 10s220-90 400-40'/%3E%3Cpath d='M-20 210c140-50 260 50 380 20s200-80 360-30'/%3E%3Cpath d='M-20 310c120-30 240 60 380 30s220-100 360-50'/%3E%3Cpath d='M-20 430c150-60 260 40 400 10s200-70 320-30'/%3E%3Cpath d='M-20 550c130-40 240 50 380 20s230-90 360-40'/%3E%3Cpath d='M-20 650c140-50 250 40 390 10s210-70 330-30'/%3E%3Ccircle cx='535' cy='165' r='55'/%3E%3Ccircle cx='535' cy='165' r='92'/%3E%3Ccircle cx='535' cy='165' r='132'/%3E%3Ccircle cx='165' cy='505' r='50'/%3E%3Ccircle cx='165' cy='505' r='88'/%3E%3C/svg%3E");
}

/* ---------- Базовое ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
  width: 100%;
}

body.is-menu-open.is-locked {
  position: fixed;
  left: 0;
  right: 0;
}

img, svg { display: block; max-width: 100%; height: auto; }

main { overflow-x: clip; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy-800);
  line-height: 1.18;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--navy-700); }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(46, 111, 166, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Контейнер и секции ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding-block: 88px; }

.section--tight { padding-block: 64px; }

.section--alt {
  background-color: var(--bg-soft);
  background-image: var(--topo-dark);
  background-size: 900px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }

h3 { font-size: 1.25rem; }

.lead {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Сетки ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Иконки ---------- */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon--sm { width: 18px; height: 18px; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--navy-700);
}

.icon-badge--teal { background: var(--teal-100); color: var(--teal-600); }
.icon-badge--sand { background: var(--sand-200); color: var(--sand-600); }
.icon-badge--navy { background: var(--navy-800); color: #fff; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn .icon { width: 19px; height: 19px; }

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  border: 1.5px solid rgba(14, 42, 68, 0.35);
  color: var(--navy-800);
  background: #fff;
}

.btn--outline:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.btn--light:hover { color: var(--navy-600); transform: translateY(-2px); }

.btn--ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 18px; font-size: 14.5px; border-radius: 11px; }

.btn--block { width: 100%; }

/* ---------- Бейджи, чипы ---------- */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--navy-800);
  color: #EAF2F9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-pill .icon { width: 16px; height: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-700);
  font-size: 14px;
  font-weight: 600;
}

.chip .icon { width: 17px; height: 17px; color: var(--teal-600); }

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--blue-100);
  color: var(--navy-700);
}

.tag--sand { background: var(--sand-200); color: #8A6534; }
.tag--teal { background: var(--teal-100); color: var(--teal-600); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
  width: 100%;
  max-width: 100%;
}

.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(14, 42, 68, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-800);
  flex: none;
}

.brand:hover { color: var(--navy-800); }

.brand-logo {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-logo--round { border-radius: 50%; }

.brand-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

.nav-link:hover { background: rgba(14, 42, 68, 0.06); color: var(--navy-800); }

.nav-link.is-active {
  color: var(--blue-600);
  position: relative;
}

.nav-link .icon { width: 15px; height: 15px; transition: transform 0.2s ease; }

/* Выпадающее меню «Услуги» */

.dropdown { position: relative; }

.dropdown.is-open .nav-link .icon { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--navy-800);
}

.dropdown-item:hover { background: var(--blue-100); color: var(--navy-800); }

.dropdown-item .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
}

.dropdown-item-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-phone { text-align: right; }

.phone-number {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-800);
  white-space: nowrap;
  text-decoration: none;
}

a.phone-number:hover { color: var(--blue-600); }

.phone-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-600);
}

.header-cta { flex: none; }

.header-phone-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
  flex: none;
}

.header-phone-btn .icon { width: 20px; height: 20px; }

.header-phone-btn:hover { background: var(--navy-700); color: #fff; }

/* Бургер */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  background: var(--navy-800);
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.is-menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.is-menu-open .burger span:nth-child(2) { opacity: 0; }
body.is-menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  padding: 26px 22px 40px;
  background: #fff;
  background-image: var(--topo-dark);
  background-size: 900px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

body.is-menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav { display: grid; gap: 2px; }

.mobile-nav a {
  display: block;
  padding: 13px 10px;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
}

.mobile-nav a:hover { background: rgba(14, 42, 68, 0.06); }

.mobile-nav .mobile-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-700);
  padding-left: 22px;
}

.mobile-nav-label {
  padding: 14px 10px 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-menu-footer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 14px;
}

.mobile-menu-footer .phone-number { font-size: 22px; }

/* ---------- Hero (главная) ---------- */

.hero {
  position: relative;
  padding: 64px 0 72px;
  background:
    var(--topo-dark),
    linear-gradient(160deg, #F0F6FB 0%, var(--bg) 55%, #E8F0F8 100%);
  background-size: 900px, auto;
  overflow: hidden;
}

/* Hero главной — полноэкранный макет */
.hero--home {
  position: relative;
  padding: 0;
  min-height: 0;
  background:
    linear-gradient(118deg, #F5F9FD 0%, #EDF4FA 42%, #E4EEF7 100%);
  background-size: auto;
  overflow: hidden;
}

.hero--home .hero__visual {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: 0;
}

.hero--home .hero__photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

.hero--home .hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #EDF4FA 0%,
    rgba(237, 244, 250, 0.92) 18%,
    rgba(237, 244, 250, 0.55) 38%,
    rgba(237, 244, 250, 0.08) 58%,
    transparent 72%
  );
  pointer-events: none;
}

.hero--home .hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  min-height: clamp(480px, calc(100vh - var(--header-h) - 40px), 680px);
  padding-block: 36px 44px;
}

.hero--home .hero__content {
  max-width: 560px;
}

.hero--home h1 {
  font-size: clamp(1.72rem, 1.08rem + 2.1vw, 2.48rem);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.17;
  margin: 14px 0 12px;
  text-wrap: balance;
}

.hero--home .hero-subtitle {
  font-size: clamp(0.98rem, 0.92rem + 0.35vw, 1.08rem);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 540px;
}

.hero--home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 8px;
  max-width: 560px;
}

.hero--home .hero-actions .btn {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 14.5px;
}

.hero-hint {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.45;
}

.hero-hint a {
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: none;
}

.hero-hint a:hover { text-decoration: underline; }

.hero--home .hero-offer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 540px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(200, 214, 228, 0.9);
  box-shadow: none;
}

.hero-offer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.hero-offer-icon .icon { width: 17px; height: 17px; }

.hero--home .hero-offer-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.hero--home .hero-offer-text strong {
  color: var(--navy-800);
  font-weight: 700;
}

.hero--home .hero__aside {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 12px;
}

.hero--home .float-card--hero {
  width: min(320px, 100%);
  margin-right: 0;
  box-shadow: 0 12px 36px rgba(14, 42, 68, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.1;
  margin: 18px 0 10px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 18px;
}

.hero-text {
  max-width: 520px;
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-offer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--sand-600);
}

.hero-offer .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.hero-offer-title {
  font-weight: 800;
  color: var(--navy-800);
  font-size: 15px;
}

.hero-offer-text {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Медиа-зона hero (внутренние страницы) */

.hero-media-wrap { position: relative; }

.hero-media-wrap .float-card {
  position: absolute;
  right: -14px;
  top: 22px;
  width: min(300px, 82%);
}

.hero-media-wrap .float-badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
}

.float-card {
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
}

.float-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy-800);
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.float-card-head .icon { color: var(--teal-600); }

.float-card ul { display: grid; gap: 8px; }

.float-card li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.float-card li .icon {
  width: 17px;
  height: 17px;
  color: var(--teal-600);
  margin-top: 1px;
}

.float-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-float);
}

.float-badge .icon { color: #7FD1C6; }

/* ---------- Заглушки под изображения ---------- */

.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    var(--topo-light),
    linear-gradient(140deg, var(--navy-700) 0%, var(--navy-600) 48%, #1E6E7E 100%);
  background-size: 700px, auto;
  color: rgba(255, 255, 255, 0.92);
  min-height: 200px;
}

.ph--photo { aspect-ratio: 4 / 3; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }

.ph--sand {
  background:
    var(--topo-dark),
    linear-gradient(140deg, #E8F0F8 0%, #DDE8F2 100%);
  background-size: 700px, auto;
  color: var(--navy-700);
}

/* Placeholder под hero-фото — не синяя заглушка */
.ph--hero {
  background:
    linear-gradient(180deg, #A8CCE8 0%, #A8CCE8 28%, #C5DBA8 28%, #9BB88A 55%, #8AAF7A 100%);
  min-height: 100%;
}

.ph--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 35%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.ph--service {
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(145deg, #D4E4F2 0%, #B8CFDF 100%);
}

.ph--service::after {
  content: none;
}

.ph-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.ph-inner .icon {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}

.ph-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.ph-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 36, 56, 0.45);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.ph--sand .ph-caption {
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy-700);
}

/* ---------- Реальные изображения ---------- */

.media-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.media-img--hero {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  object-position: center 42%;
}

.media-img--photo {
  aspect-ratio: 4 / 3;
}

.media-img--tall {
  aspect-ratio: 3 / 4;
  min-height: 320px;
  max-height: 560px;
}

.media-img--service {
  aspect-ratio: 1;
  border-radius: 12px;
}

.hero--home .hero__photo {
  overflow: hidden;
}

.service-tile__thumb .media-img--service {
  width: 96px;
  height: 96px;
}

.mgbu-block__visual .media-img--tall {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 12px 36px rgba(14, 42, 68, 0.1);
}

/* ---------- Полоса преимуществ (главная) ---------- */

.benefits-bar {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(14, 42, 68, 0.04);
}

.benefits-bar .container {
  padding-block: 0;
}

.benefits-bar__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  align-items: stretch;
}

.benefits-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 100%;
  padding: 18px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.benefits-bar__item:last-child { border-right: none; }

.benefits-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
}

.benefits-bar__icon .icon { width: 22px; height: 22px; }

.benefits-bar__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.35;
  max-width: 148px;
  text-wrap: balance;
}

.benefits-bar__sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  max-width: 148px;
  text-wrap: balance;
}

/* ---------- Блок услуг (главная) ---------- */

.section--services {
  padding-block: 80px 88px;
  background: #fff;
  background-image: var(--topo-dark);
  background-size: 900px;
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px 48px;
  align-items: end;
  margin-bottom: 40px;
}

.services-intro h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.12;
}

.services-intro .lead {
  margin-top: 0;
  max-width: none;
  font-size: 1.05rem;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 22px rgba(14, 42, 68, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:nth-child(4) { grid-column: 2 / span 2; }

.service-tile:nth-child(5) { grid-column: 4 / span 2; }

.service-tile__head h3 {
  font-size: 0.94rem;
  line-height: 1.32;
  padding-top: 2px;
  text-wrap: balance;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 42, 68, 0.11);
}

.service-tile__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-tile__thumb {
  position: relative;
  flex: none;
  width: 96px;
}

.service-tile__thumb .ph--service {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}

.service-tile__badge {
  position: absolute;
  left: -5px;
  bottom: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 4px 10px rgba(14, 42, 68, 0.2);
}

.service-tile__badge .icon { width: 16px; height: 16px; }

.service-tile__list {
  display: grid;
  gap: 7px;
  padding-left: 0;
}

.service-tile__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.service-tile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* ---------- Блок «Почему МГБУ» ---------- */

.section--mgbu {
  padding-block: 88px;
  background: var(--bg);
}

.mgbu-block {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.mgbu-block__content h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.35rem);
  margin-bottom: 16px;
}

.mgbu-block__content .lead {
  max-width: 580px;
  margin-bottom: 28px;
}

.mgbu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.mgbu-card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(14, 42, 68, 0.05);
}

.mgbu-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-600);
}

.mgbu-card__icon .icon { width: 22px; height: 22px; }

.mgbu-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.mgbu-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.mgbu-block__visual .ph--mgbu {
  aspect-ratio: 4 / 4.6;
  min-height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #C8DCE8 0%, #A8CCE0 35%, #8FB896 65%, #7AA872 100%);
  box-shadow: 0 12px 36px rgba(14, 42, 68, 0.1);
}

/* ---------- Блок «От чего зависит стоимость» ---------- */

.section--cost .section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.cost-factors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cost-factor {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.cost-factor__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.cost-factor__icon .icon { width: 24px; height: 24px; }

.cost-factor h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.cost-factor p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.cost-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  background-image: var(--topo-light);
  background-size: 700px;
  box-shadow: var(--shadow-float);
}

.cost-cta__main { display: grid; gap: 6px; }

.cost-cta__text {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  font-weight: 800;
  color: #fff;
  max-width: 520px;
  line-height: 1.35;
}

.cost-cta__hint {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(143, 212, 202, 0.95);
  max-width: 480px;
  line-height: 1.45;
}

/* ---------- Заглушка калькулятора (главная) ---------- */

.section--calc {
  padding-block: 88px;
  background: #fff;
}

.calc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-card);
  background-image: var(--topo-dark);
  background-size: 900px;
}

.calc-block__info .tag { margin-bottom: 14px; }

.calc-block__info h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  margin-bottom: 14px;
}

.calc-block__info .lead {
  margin-top: 0;
  max-width: 520px;
}

.calc-mock {
  padding: 28px;
  background: linear-gradient(180deg, #F8FBFE 0%, #fff 100%);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.calc-mock__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calc-mock__head::after {
  content: "Предпросмотр";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-50);
}

.calc-mock__fields {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.calc-mock__field { display: grid; gap: 6px; }

.calc-mock__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-700);
}

.calc-mock__input {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: default;
}

.calc-mock__note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* ---------- Блок «Наши работы» (главная) ---------- */

.section--works {
  padding-block: 0 88px;
  background: var(--bg);
}

.works-head {
  padding: 64px 0 48px;
  background:
    var(--topo-dark),
    linear-gradient(135deg, #F0F6FB 0%, #E8F0F8 100%);
  background-size: 900px, auto;
  margin-bottom: 40px;
}

.works-head__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.works-head__text h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.5rem);
  margin-bottom: 14px;
}

.works-head__text .lead {
  margin-top: 0;
  max-width: 540px;
}

.works-geo {
  position: relative;
  padding: 0;
  min-height: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  box-shadow: 0 6px 22px rgba(14, 42, 68, 0.06);
  overflow: hidden;
}

.works-geo__img {
  aspect-ratio: 4 / 3;
  min-height: 180px;
  border-radius: var(--radius-lg);
  object-position: center center;
}

.works-geo__map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(46, 111, 166, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 65% 55%, rgba(23, 135, 123, 0.1) 0%, transparent 40%),
    var(--topo-dark);
  background-size: auto, auto, 600px;
  opacity: 0.9;
}

.works-geo__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 120px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  box-shadow: 0 4px 12px rgba(14, 42, 68, 0.06);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card--home {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card--home:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.work-card--home .ph--work {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #D4E4F2 0%, #B5CFDF 50%, #9BB88A 100%);
}

.work-card--home .work-card-body {
  display: grid;
  gap: 12px;
  padding: 24px 24px 26px;
}

.work-card--home h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.task-card__text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Блок доверия (главная) ---------- */

.section--trust {
  padding-block: 88px;
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.trust-card {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.trust-card h3 {
  font-size: 1rem;
  line-height: 1.32;
  text-wrap: balance;
}

.trust-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.trust-card__link {
  margin-top: auto;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-600);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.trust-card__link:hover { color: var(--navy-700); }

a.trust-card__link { display: inline-block; text-decoration: none; }

/* ---------- Sticky-панель (mobile) ---------- */

.sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(14, 42, 68, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
}

body.is-locked .sticky-bar,
body.is-menu-open .sticky-bar {
  display: none !important;
}

.page-home .site-footer {
  position: relative;
  z-index: 1;
}

.cta-phone a.phone-number { color: #fff; }
.cta-phone a.phone-number:hover { color: #fff; opacity: 0.9; }
.footer-contacts a.phone-number { color: #fff; }
.footer-contacts a.phone-number:hover { color: #fff; opacity: 0.9; }

.sticky-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 8px;
  border-radius: 11px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--navy-800);
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sticky-bar__btn:hover { color: var(--navy-800); background: var(--blue-50); }

.sticky-bar__btn--primary {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.sticky-bar__btn--primary:hover { background: var(--navy-700); color: #fff; }

.sticky-bar__btn--accent {
  border-color: rgba(23, 135, 123, 0.35);
  color: var(--teal-600);
}

.sticky-bar__btn--accent:hover {
  background: var(--teal-100);
  color: var(--teal-600);
}

.ph--mgbu::after,
.ph--work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* ---------- Карточки ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.icon-card {
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.icon-card h3 { font-size: 1.05rem; line-height: 1.3; }

.icon-card p { font-size: 14.5px; color: var(--muted); }

/* Карточка услуги */

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.service-card .ph {
  border-radius: 0;
  aspect-ratio: 16 / 8.4;
  min-height: 0;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 26px;
}

.service-card-body p { color: var(--muted); font-size: 15px; }

.service-card-body .checklist { margin-top: 2px; }

.service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-600);
  padding-top: 8px;
}

.service-card-link .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }

.service-card:hover .service-card-link .icon { transform: translateX(4px); }

/* Мини-карточки «для кого» */

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.mini-card .icon-badge { width: 46px; height: 46px; border-radius: 12px; }

.mini-card-title { font-weight: 800; color: var(--navy-800); font-size: 15px; }

.mini-card-sub { font-size: 13px; color: var(--muted); }

/* Карточка работы */

.work-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.work-card .ph {
  border-radius: 0;
  aspect-ratio: 4 / 2.7;
  min-height: 0;
}

.work-card-body {
  display: grid;
  gap: 12px;
  padding: 22px 24px 24px;
}

.work-card-body h3 { font-size: 1.08rem; }

.params { display: grid; gap: 0; }

.params > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 14px;
}

.params > div:last-child { border-bottom: none; }

.params dt { color: var(--muted); margin: 0; }

.params dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy-800);
  text-align: right;
}

/* Чек-лист */

.checklist { display: grid; gap: 11px; }

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
}

.checklist li .icon {
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  margin-top: 2px;
}

.checklist--strong li { font-weight: 600; color: var(--ink); }

/* Нумерованные шаги */

.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
}

.step {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.step h3 { font-size: 1.03rem; }

.step p { font-size: 14.5px; color: var(--muted); }

/* Сплит-секция */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.split-content .section-head { margin-bottom: 24px; }

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Карточка-«документ» (гарантия и договор) */

.doc-card {
  position: relative;
  padding: 30px;
  display: grid;
  gap: 18px;
  background: #fff;
}

.doc-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-card-title { font-weight: 800; color: var(--navy-800); }

.doc-card-sub { font-size: 13px; color: var(--muted); }

.doc-lines { display: grid; gap: 10px; }

.doc-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #E9E2D4, #F2EDE2);
}

.doc-line:nth-child(1) { width: 92%; }
.doc-line:nth-child(2) { width: 100%; }
.doc-line:nth-child(3) { width: 78%; }
.doc-line:nth-child(4) { width: 88%; }

.doc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-600);
  font-weight: 800;
  font-size: 14px;
}

.doc-stamp {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: none;
  border: 2px dashed var(--teal-600);
  border-radius: 50%;
  color: var(--teal-600);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.35;
  transform: rotate(-8deg);
  opacity: 0.85;
}

/* ---------- Блок «цены / факторы» ---------- */

.factor-card {
  display: grid;
  gap: 13px;
  align-content: start;
}

.factor-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--sand-600);
}

.price-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--navy-800);
  background-image: var(--topo-light);
  background-size: 700px;
  color: #E7EFF7;
}

.price-note .icon-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #8FD4CA;
}

.price-note strong { color: #fff; }

.price-note p { font-size: 14.5px; }

/* Таблица цен (стр. Цены) */

.price-table { display: grid; gap: 0; padding: 8px 26px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.price-row:last-child { border-bottom: none; }

.price-row-name { font-weight: 700; color: var(--navy-800); font-size: 15.5px; }

.price-row-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.price-row-value {
  flex: none;
  font-weight: 800;
  color: var(--teal-600);
  font-size: 14.5px;
  text-align: right;
}

/* ---------- Заглушка калькулятора ---------- */

.calc-teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  padding: 0;
}

.calc-teaser-main {
  padding: 40px 44px;
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: start;
}

.calc-teaser-main .tag--sand { margin-bottom: -4px; }

.calc-teaser-side {
  padding: 40px 44px;
  background: var(--navy-800);
  background-image: var(--topo-light);
  background-size: 700px;
  color: #DCE7F1;
  display: grid;
  gap: 14px;
  align-content: center;
}

.calc-teaser-side-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.calc-steps-preview { display: grid; gap: 10px; }

.calc-steps-preview li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
}

.calc-steps-preview .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-800);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .icon {
  width: 20px;
  height: 20px;
  color: var(--blue-600);
  transition: transform 0.25s ease;
}

.faq-item[open] summary .icon { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

/* ---------- CTA-панель ---------- */

.cta-panel {
  position: relative;
  padding: 56px;
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    var(--topo-light),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 70%, #175A66 100%);
  background-size: 800px, auto;
  color: #D9E4EE;
  overflow: hidden;
}

.cta-panel h2 { color: #fff; max-width: 640px; }

.cta-panel .lead { color: rgba(224, 234, 243, 0.85); max-width: 560px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.cta-phone { margin-left: 6px; }

.cta-phone .phone-number { color: #fff; font-size: 21px; }

.cta-phone .phone-note { color: #8FD4CA; }

/* ---------- Заметка-заглушка раздела ---------- */

.placeholder-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1.5px dashed var(--sand-600);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 14.5px;
}

.placeholder-note .icon { color: var(--sand-600); margin-top: 2px; }

.placeholder-note strong { color: var(--navy-800); }

/* ---------- Hero внутренних страниц ---------- */

.page-hero {
  position: relative;
  padding: 52px 0 64px;
  background:
    var(--topo-dark),
    linear-gradient(155deg, #F0F6FB 0%, var(--bg) 60%, #E8F0F8 100%);
  background-size: 900px, auto;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  line-height: 1.12;
  margin: 14px 0 14px;
}

.page-hero .lead { max-width: 560px; }

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.breadcrumbs a { color: var(--muted); font-weight: 600; }

.breadcrumbs a:hover { color: var(--blue-600); }

.breadcrumbs .sep { opacity: 0.55; }

.breadcrumbs .current { font-weight: 700; color: var(--navy-700); }

/* ---------- Формы ---------- */

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }

.field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-800);
}

.field-label .req { color: #C4553B; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea { resize: vertical; min-height: 96px; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(46, 111, 166, 0.14);
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-600);
  flex: none;
}

.form-success {
  display: none;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--teal-100);
  color: var(--teal-600);
  text-align: center;
  font-weight: 700;
}

.form.is-sent .form-success { display: block; }

.form.is-sent .form-fields { display: none; }

.form-fields { display: grid; gap: 16px; }

/* ---------- Модальное окно ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 36, 56, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 32px;
  background: var(--bg);
  background-image: var(--topo-dark);
  background-size: 700px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(14, 42, 68, 0.07);
  color: var(--navy-800);
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.modal-close:hover { background: rgba(14, 42, 68, 0.14); }

.modal-title { font-size: 1.35rem; margin-bottom: 6px; }

.modal-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }

/* ---------- Футер ---------- */

.site-footer {
  background:
    var(--topo-light),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  background-size: 800px, auto;
  color: #B9C9D8;
  margin-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}

.footer-brand .brand { color: #fff; margin-bottom: 16px; }

.footer-brand .brand-tagline { color: rgba(196, 211, 224, 0.75); }

.footer-about {
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 18px;
}

.footer-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-regions .chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #D5E1EC;
  font-size: 12.5px;
  padding: 7px 12px;
}

.footer-regions .chip .icon { color: #8FD4CA; }

.footer-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-nav { display: grid; gap: 10px; }

.footer-nav a { color: #B9C9D8; font-size: 14.5px; }

.footer-nav a:hover { color: #fff; }

.footer-contacts { display: grid; gap: 14px; justify-items: start; }

.footer-contacts .phone-number { color: #fff; font-size: 20px; }

.footer-contacts .phone-note { color: #8FD4CA; }

.footer-note { font-size: 13px; color: rgba(185, 201, 216, 0.75); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(185, 201, 216, 0.75);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal a { color: rgba(185, 201, 216, 0.9); }

.footer-legal a:hover { color: #fff; }

/* ---------- Юридические страницы ---------- */

.prose {
  max-width: 780px;
  display: grid;
  gap: 16px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 22px;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: var(--ink); font-size: 15.5px; }

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  list-style: disc;
}

.prose .muted { color: var(--muted); font-size: 14px; }

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1080px) {
  .main-nav { display: none; }

  .burger { display: flex; }

  .header-contacts .header-cta { display: none; }

  .header-phone-btn { display: inline-flex; }

  .header-inner {
    justify-content: space-between;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 108px);
  }

  .brand > span {
    min-width: 0;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tagline {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-contacts {
    flex-shrink: 0;
    gap: 10px;
    margin-left: auto;
  }

  .header-phone-btn,
  .burger {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 11px;
    flex-shrink: 0;
  }

  .mobile-menu {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(var(--header-h) + 6px) 16px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 55;
  }

  body.is-menu-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 70;
  }

  .mobile-nav {
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
  }

  .mobile-nav a {
    padding: 9px 8px;
    font-size: 18px;
    line-height: 1.2;
    border-radius: 10px;
  }

  .mobile-nav .mobile-sub {
    font-size: 15px;
    font-weight: 600;
    padding: 7px 8px 7px 16px;
  }

  .mobile-nav-label {
    padding: 6px 8px 2px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .mobile-menu-footer {
    margin-top: 8px;
    padding-top: 10px;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-menu-footer .phone-number {
    font-size: 20px;
    line-height: 1.2;
  }

  .mobile-menu-footer .phone-note {
    font-size: 11px;
  }

  .mobile-menu-footer .btn {
    min-height: 52px;
    max-height: 54px;
    padding: 11px 16px;
    font-size: 15px;
  }

  .services-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
  }

  .service-tile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    transform: none;
  }

  .service-tile:nth-child(4),
  .service-tile:nth-child(5) {
    grid-column: 1 / -1;
  }

  .service-tile__head {
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
  }

  .service-tile__thumb {
    width: 100%;
    max-width: 100%;
    height: 176px;
    overflow: hidden;
    border-radius: 12px;
  }

  .service-tile__thumb .media-img--service {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .service-tile__badge {
    left: 10px;
    bottom: 10px;
  }

  .service-tile__head h3 {
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow-wrap: break-word;
    word-break: normal;
    padding-top: 0;
  }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .hero-grid,
  .page-hero-grid { gap: 40px; }

  .benefits-bar__list { grid-template-columns: repeat(3, 1fr); }

  .benefits-bar__item:nth-child(3) { border-right: none; }

  .benefits-bar__item:nth-child(4),
  .benefits-bar__item:nth-child(5),
  .benefits-bar__item:nth-child(6) {
    border-top: 1px solid var(--line);
  }

  .benefits-bar__item:nth-child(6) { border-right: none; }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }

  .mgbu-block { grid-template-columns: 1fr; gap: 36px; }

  .mgbu-block__visual { order: -1; }

  .mgbu-block__visual .ph--mgbu { min-height: 280px; aspect-ratio: 16 / 9; }

  .mgbu-block__visual .media-img--tall {
    min-height: 0;
    max-height: 420px;
    height: clamp(300px, 52vh, 420px);
    aspect-ratio: auto;
    object-fit: cover;
  }

  .cost-factors { grid-template-columns: repeat(2, 1fr); }

  .calc-block { grid-template-columns: 1fr; padding: 36px 32px; }

  .works-head__inner { grid-template-columns: 1fr; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .section { padding-block: 64px; }

  .hero { padding: 44px 0 56px; }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-hero { padding: 36px 0 52px; }

  /* Hero главной — мобильный макет */
  .hero--home {
    display: grid;
    grid-template-areas:
      "content"
      "visual"
      "aside";
    min-height: auto;
    max-height: none;
    background: linear-gradient(180deg, #F5F9FD 0%, #EDF4FA 100%);
  }

  .hero--home .hero__inner {
    display: contents;
  }

  .hero--home .hero__content {
    grid-area: content;
    max-width: none;
    padding: 28px 22px 0;
  }

  .hero--home .hero__visual {
    grid-area: visual;
    position: relative;
    inset: auto;
    height: 200px;
    margin-inline: 0;
  }

  .hero--home .hero__fade {
    background: linear-gradient(
      180deg,
      #EDF4FA 0%,
      rgba(237, 244, 250, 0.65) 14%,
      transparent 32%
    );
  }

  .hero--home .hero__aside {
    grid-area: aside;
    justify-content: stretch;
    padding: 0 22px 24px;
    margin-top: -56px;
    position: relative;
    z-index: 4;
  }

  .hero--home .float-card--hero {
    width: 100%;
    margin-inline: 0;
  }

  .hero--home h1 {
    font-size: clamp(1.48rem, 1.05rem + 1.8vw, 1.82rem);
    line-height: 1.2;
  }

  .hero--home .hero-subtitle {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-hint { font-size: 12px; margin-bottom: 12px; }

  .hero--home .hero-offer {
    padding: 10px 12px;
  }

  .hero--home .hero-offer-text { font-size: 12px; }

  .hero--home .hero-actions .btn {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    font-size: 15px;
  }

  .hero--home {
    overflow-x: clip;
    max-width: 100%;
  }

  .section--services { padding-top: 56px; }

  .benefits-bar {
    margin-top: -28px;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(14, 42, 68, 0.08);
    overflow: hidden;
  }

  .benefits-bar__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-bar__item:nth-child(3n) { border-right: none; }

  .benefits-bar__item:nth-child(n+4) { border-top: 1px solid var(--line); }

  .benefits-bar__title,
  .benefits-bar__sub { max-width: none; font-size: 11px; }

  .benefits-bar__title { font-size: 11.5px; }

  .services-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }

  .service-tile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    padding: 18px;
    gap: 14px;
    transform: none;
  }

  .service-tile:nth-child(4),
  .service-tile:nth-child(5) {
    grid-column: 1 / -1;
  }

  .service-tile:hover {
    transform: none;
  }

  .service-tile__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
  }

  .service-tile__thumb {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 176px;
    flex: none;
    overflow: hidden;
    border-radius: 12px;
  }

  .service-tile__thumb .media-img--service {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    border-radius: 12px;
    object-fit: cover;
  }

  .service-tile__badge {
    left: 10px;
    bottom: 10px;
  }

  .service-tile__head h3 {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 1rem;
    line-height: 1.32;
    text-wrap: pretty;
    overflow-wrap: break-word;
    word-break: normal;
    padding-top: 0;
  }

  .service-tile__list {
    min-width: 0;
    width: 100%;
  }

  .section--services {
    overflow-x: clip;
  }

  .section--services .container {
    max-width: 100%;
    overflow-x: clip;
  }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .section--services { padding-block: 56px 64px; }

  .section--mgbu { padding-block: 64px; }

  .mgbu-block { grid-template-columns: 1fr; gap: 32px; }

  .mgbu-block__visual { order: -1; }

  .mgbu-block__visual .ph--mgbu {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }

  .mgbu-block__visual .media-img--tall {
    height: clamp(300px, 52vh, 420px);
    max-height: 420px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
  }

  .media-img--hero { object-position: center 35%; }

  .sticky-bar {
    display: grid;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
  }

  .sticky-bar__btn {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 13px;
    min-width: 0;
  }

  .mgbu-cards { grid-template-columns: 1fr; }

  .cost-factors { grid-template-columns: 1fr; }

  .cost-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 22px;
  }

  .cost-cta .btn { width: 100%; }

  .cost-cta__main { text-align: center; }

  .trust-grid { grid-template-columns: 1fr; }

  .section--trust { padding-block: 64px; }

  body.page-home { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  body.page-home.is-locked { padding-bottom: 0; }

  .section--calc { padding-block: 64px; }

  .calc-block {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 28px;
  }

  .works-head { padding: 48px 0 36px; margin-bottom: 32px; }

  .works-head__inner { grid-template-columns: 1fr; gap: 24px; }

  .works-geo { min-height: 140px; }

  .works-geo__label { margin-top: 80px; font-size: 12px; }

  .works-grid { grid-template-columns: 1fr; }

  .section--works { padding-bottom: 64px; }

  .hero-media-wrap .float-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .hero-media-wrap .float-badge {
    position: absolute;
    left: 14px;
    bottom: auto;
    top: 14px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .calc-teaser { grid-template-columns: 1fr; }

  .calc-teaser-main,
  .calc-teaser-side { padding: 32px 28px; }

  .cta-panel { padding: 40px 30px; }

  .brand-logo { width: 40px; height: 40px; }

  .brand-name { font-size: 18px; }

  .header-phone .phone-number { font-size: 15px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }

  .section { padding-block: 52px; }

  .section-head { margin-bottom: 30px; }

  .grid { gap: 16px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .hero h1 { letter-spacing: 0.01em; }

  .hero-actions .btn { width: 100%; }

  .hero--home .hero__content { padding: 20px 16px 0; }

  .hero--home .hero__visual { height: 150px; }

  .media-img--hero { object-position: center 30%; }

  .hero--home .hero__aside { padding: 0 16px 16px; margin-top: -28px; }

  .hero--home .hero-actions { flex-direction: column; }

  .hero--home .hero-actions .btn {
    width: 100%;
    flex: none;
    min-height: 52px;
  }

  .benefits-bar {
    margin-top: -20px;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  .benefits-bar__list { grid-template-columns: repeat(2, 1fr); }

  .benefits-bar__item {
    padding: 14px 8px;
    gap: 6px;
  }

  .benefits-bar__item:nth-child(3n) { border-right: 1px solid var(--line); }

  .benefits-bar__item:nth-child(2n) { border-right: none; }

  .benefits-bar__item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .benefits-bar__title { font-size: 11px; }

  .benefits-bar__sub { font-size: 10px; line-height: 1.3; }

  .sticky-bar {
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .sticky-bar__btn {
    font-size: 12px;
    min-height: 42px;
    padding: 8px 4px;
  }

  .media-img--tall {
    height: clamp(280px, 50vh, 380px);
    max-height: 380px;
  }

  .split .media-img--tall,
  .split .media-img--photo {
    max-width: 100%;
  }

  .mgbu-block__content .split-actions { flex-direction: column; }

  .mgbu-block__content .split-actions .btn { width: 100%; }

  .calc-block { padding: 24px 18px; }

  .calc-mock { padding: 22px 18px; }

  .works-head { padding: 40px 0 28px; }

  .works-geo__label { margin-top: 64px; }

  .page-hero-actions .btn { width: 100%; }

  .cta-actions { flex-direction: column; align-items: stretch; }

  .cta-phone { margin-left: 0; text-align: center; }

  .card { padding: 22px; }

  .service-card-body { padding: 22px; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-phone { display: none; }

  .modal-card { padding: 26px 22px; }

  .doc-card-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .section--services {
    padding-block: 48px 56px;
  }

  .section--services .container {
    padding-inline: 16px;
  }

  .services-row {
    gap: 18px;
  }

  .service-tile {
    padding: 20px;
  }

  .service-tile__thumb {
    height: 180px;
  }
}

@media (max-width: 420px) {
  .brand-tagline { display: none; }

  .brand {
    max-width: calc(100% - 100px);
  }

  .header-phone-btn,
  .burger {
    width: 42px;
    height: 42px;
  }
}
