/* ============================================================
   Клин&Клеар — дизайн-система (один файл, без внешних зависимостей)
   Палитра: фон #F8FAFC, текст #0F172A, градиент teal→emerald,
   янтарный CTA #F59E0B. Радиусы 12–16px, мягкие тени.
   ============================================================ */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --line: #E2E8F0;
  --accent: #14B8A6;
  --accent-dark: #0F766E;
  --accent-2: #10B981;
  --amber: #F59E0B;
  --amber-dark: #B45309;
  --amber-text: #451A03;
  --grad: linear-gradient(135deg, #14B8A6, #10B981);
  --grad-dark: linear-gradient(120deg, #0F766E 0%, #14B8A6 55%, #10B981 100%);
  --radius: 14px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .07), 0 16px 40px -16px rgba(15, 23, 42, .22);
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 38px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: inline-block; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 860px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(16, 185, 129, .7);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(16, 185, 129, .8); }

.btn-amber {
  background: var(--amber);
  color: var(--amber-text);
  box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .8);
}
.btn-amber:hover { color: var(--amber-text); background: #FBBF24; transform: translateY(-2px); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .24); }

.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.logo-word em { font-style: normal; color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: #F0FDFA; color: var(--accent-dark); }

.nav-caret { display: inline-flex; color: var(--text-muted); transition: transform .2s ease; }
.has-dropdown:hover .nav-caret,
.has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown-right { left: auto; right: 0; }

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

.dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.dropdown-link:hover { background: #F0FDFA; color: var(--accent-dark); }
.dropdown-link-all { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }

.header-side {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.city-switch-btn .city-pin { display: inline-flex; color: var(--accent); }
.city-name { font-weight: 600; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--text);
  white-space: nowrap;
}
.header-phone svg { color: var(--accent); }
.header-phone:hover { color: var(--accent-dark); background: #F0FDFA; }

.btn-cta { white-space: nowrap; margin-left: 4px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.breadcrumbs { padding-top: 22px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: #94A3B8; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(8, 74, 68, .92) 0%, rgba(15, 118, 100, .78) 45%, rgba(16, 185, 129, .38) 100%),
    url("/assets/img/hero/hero1.webp") center / cover no-repeat,
    #0F766E;
  color: #fff;
  padding: 84px 0;
}
.hero-decor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { font-size: 46px; margin-bottom: 18px; }
.hero .lead { font-size: 19px; color: rgba(255, 255, 255, .92); margin-bottom: 26px; max-width: 520px; }

.hero-points { display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hero-points svg { color: #A7F3D0; flex: none; }

.hero-form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  color: var(--text);
}

/* ----------------------------- Секции ----------------------------- */

.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.breadcrumbs + .section { padding-top: 40px; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h1, .section-head h2 { margin-bottom: 10px; }
.section-sub { font-size: 17.5px; color: var(--text-muted); margin: 0; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.section-more { margin: 32px 0 0; }

.h2-block { margin: 48px 0 20px; font-size: 24px; }

.empty-note { color: var(--text-muted); }

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

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

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #99F6E4;
}

.card-icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(16, 185, 129, .12));
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}
.card-icon-lg { width: 64px; height: 64px; border-radius: 16px; }

.card-title { font-size: 17.5px; font-weight: 700; line-height: 1.35; }
.card-desc { font-size: 14.5px; color: var(--text-muted); flex: 1; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, .1);

  transition: background .18s ease, color .18s ease, transform .18s ease;
  margin-left: auto;
}
a.card:hover .card-arrow { background: var(--grad); color: #fff; transform: translateX(3px); }

/* Карточки с фото */
.card-img { display: block; margin: -24px -24px 6px; }
.card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

/* -------------------- Карта «География» -------------------- */
.geo-map {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #E8EEF2;
}
.geo-map [class*='ymaps'] { font-family: var(--font); }

.geo-marker {
  position: relative;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
  cursor: pointer;
  border-radius: 50% 50% 50% 4px;
  rotate: -45deg;
  background: var(--grad);
  border: 2.5px solid #fff;
  box-shadow: 0 4px 10px rgba(15, 118, 100, .45);
  transition: scale .15s ease;
}
.geo-marker::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}
.geo-marker::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  rotate: 45deg;
  transform: translateX(-50%) translateY(6px);
  transform-origin: left bottom;
  white-space: nowrap;
  background: #0F172A;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.geo-marker:hover, .geo-marker:focus-visible { scale: 1.15; z-index: 20; }
.geo-marker:hover::after, .geo-marker:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.geo-marker-main { width: 38px; height: 38px; }

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.city-chip svg { color: var(--accent-dark); }
.city-chip:hover { border-color: var(--accent); color: var(--accent-dark); box-shadow: var(--shadow-sm); }

@media (max-width: 720px) {
  .geo-map { height: 340px; }
}

.price-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FEF3C7;
  color: var(--amber-dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.price-chip-lg { font-size: 16px; padding: 7px 16px; }

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.meta-chip svg { color: var(--accent); }
.meta-rating svg { color: var(--amber); }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-img { display: block; margin: -26px -24px 0; }
.step-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 16px;
  position: relative;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

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

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.review-stars { display: inline-flex; gap: 2px; }
.star { color: #CBD5E1; display: inline-flex; }
.star-on { color: var(--amber); }
.review-text { margin: 0; flex: 1; }
.review-meta { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #E2E8F0; }
.review-who { min-width: 0; }
.review-author { display: block; font-weight: 700; }
.review-tags { font-size: 13.5px; color: var(--text-muted); }

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

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: #99F6E4; box-shadow: var(--shadow); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { display: inline-flex; color: var(--accent-dark); transition: transform .2s ease; flex: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 20px 18px; color: var(--text-muted); }

/* --------------------------- Прайс-таблица --------------------------- */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  overflow-x: auto;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 14px 20px; text-align: left; vertical-align: top; }
.price-table thead th {
  background: #F0FDFA;
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-table tbody tr:nth-child(even) { background: #F8FAFC; }
.price-table tbody tr + tr { border-top: 1px solid var(--line); }
.price-table a { font-weight: 600; color: var(--text); }
.price-table a:hover { color: var(--accent-dark); }

.price-col { text-align: right !important; white-space: nowrap; }
.price-value { font-weight: 800; white-space: nowrap; }
.price-note { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; }
.price-col .price-chip { margin-right: 8px; }
.table-note { margin-top: 12px; font-size: 14px; color: var(--text-muted); }

.requisites-table tbody th {
  width: 260px;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}
.requisites-table tbody tr:first-child th, .requisites-table tbody tr:first-child td { border-top: 0; }
.requisites-table tbody td { border-top: 1px solid var(--line); }

/* ------------------------- Страница услуги ------------------------- */

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

.service-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.service-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 24px; }

.service-aside { position: sticky; top: 96px; }

.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}
.aside-title { margin: 0 0 16px; font-size: 18px; font-weight: 800; line-height: 1.35; }

/* ------------------------------ Каталог ------------------------------ */

.catalog-block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.catalog-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.catalog-block-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.catalog-block-head h2 { margin-bottom: 6px; }
.catalog-block-head h2 a { color: var(--text); }
.catalog-block-head h2 a:hover { color: var(--accent-dark); }
.catalog-block-head p { margin: 0; color: var(--text-muted); }
.catalog-subhead { margin: 28px 0 16px; font-size: 19px; }
.pills-indent { margin-bottom: 22px; }

/* ------------------------------- Чипы ------------------------------- */

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent-dark); background: #F0FDFA; transform: translateY(-2px); }

/* ------------------------------ Контакты ------------------------------ */

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: start;
}
.contacts-info { display: grid; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item p { margin: 0; }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.contact-value { font-size: 19px; font-weight: 800; color: var(--text); }
a.contact-value:hover { color: var(--accent-dark); }
.contact-note { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

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

.lead-form { display: grid; gap: 14px; }
.form-title { margin: 0; font-size: 18px; font-weight: 800; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.req { color: #DC2626; }

.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}
.field textarea { resize: vertical; min-height: 96px; }

.hp { position: absolute; left: 0; top: 0; height: 1px; width: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.form-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.form-note a { text-decoration: underline; }

.form-error {
  padding: 11px 14px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 14px;
  font-weight: 600;
}

.form-success {
  padding: 26px 20px;
  text-align: center;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
}
.form-success strong { display: block; font-size: 18px; margin-bottom: 6px; color: #065F46; }
.form-success p { margin: 0; color: #047857; font-size: 14.5px; }

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

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: 24px;
  background: var(--grad-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; position: relative; z-index: 1; }

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cta-inline p { margin: 0; font-weight: 600; }

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

.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 64px 0 26px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer-title { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { color: #CBD5E1; }
.footer-list a:hover { color: #5EEAD4; }
.footer-phone { font-size: 18px; font-weight: 800; color: #fff !important; }
.footer-phone:hover { color: #5EEAD4 !important; }
.footer-legal { color: #64748B; font-size: 13px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid #1E293B;
  color: #64748B;
  font-size: 13.5px;
}
.footer-docs { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-docs a { color: #94A3B8; }
.footer-docs a:hover { color: #5EEAD4; }

/* --------------------------- Cookie-баннер --------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100% - 32px));
  padding: 16px 20px;
  background: #0F172A;
  color: #E2E8F0;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #5EEAD4; text-decoration: underline; }
.cookie-banner .btn { flex: none; padding: 10px 18px; }

/* ------------------------------ Модалка ------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--line); color: var(--text); }

.modal-title { font-size: 24px; margin-bottom: 6px; padding-right: 40px; }
.modal-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.modal-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.modal-alt a { font-weight: 700; }

body.modal-lock { overflow: hidden; }

/* ------------------------------- Prose ------------------------------- */

.prose { max-width: 760px; color: #1E293B; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 2px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(16, 185, 129, .18));
  box-shadow: inset 0 0 0 4px var(--accent);
}
.prose h2, .prose h3 { margin-top: 28px; }
.prose > :last-child { margin-bottom: 0; }

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

.not-found { text-align: center; padding: 48px 24px; }
.not-found-code {
  margin: 0 0 6px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 { font-size: 30px; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

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

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  h1 { font-size: 30px; }
  .hero {
    padding: 56px 0;
    background:
      linear-gradient(180deg, rgba(8, 74, 68, .92) 0%, rgba(15, 118, 100, .88) 100%),
      url("/assets/img/hero/hero1-m.webp") center / cover no-repeat,
      #0F766E;
  }
  .hero h1 { font-size: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead { max-width: none; }

  .burger { display: flex; }
  .btn-cta { display: none; }
  .header-inner { gap: 10px; }
  .header-side { gap: 2px; }
  .header-phone { display: none; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-115%);
    transition: transform .25s ease;
    margin-left: 0;
  }
  body.nav-open .main-nav { transform: translateY(0); }
  .main-nav .nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 16px; }

  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
    display: none;
  }
  .main-nav .has-dropdown.open .dropdown { display: block; }
  .main-nav .has-dropdown.open .nav-caret { transform: rotate(180deg); }

  .city-switch .dropdown {
    position: absolute;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .city-switch.open .dropdown { display: block; }
  .city-switch .nav-link { justify-content: center; }

  .service-layout, .contacts-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .service-head { flex-direction: column; gap: 14px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-banner .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .cards-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .city-switch-btn { padding: 8px 10px; }
  .city-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .price-table th, .price-table td { padding: 12px 14px; }
  .requisites-table tbody th { width: auto; }
}
