/* =========================================================
   К-Сервис плюс — Сервисный центр по ремонту и обслуживанию цифровой техники
   Чистый CSS, без фреймворков
   ========================================================= */

/* ---------- Переменные ---------- */
:root {
  --primary: #2f6bff;
  --primary-dark: #1b4fd8;
  --primary-light: #eaf0ff;
  --dark: #0e1a2e;
  --dark-2: #14233d;
  --text: #27364f;
  --muted: #5f6c83;
  --bg: #ffffff;
  --bg-alt: #f4f7fd;
  --border: #e3e9f5;
  --success: #17b26a;
  --danger: #f04438;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(14, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 26, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 26, 46, 0.16);
  --container: 1160px;
  --header-h: 76px;
  
  /* Цвета соцсетей */
  --tg-color: #2AABEE;
  --vk-color: #0077FF;
  --max-color: #111111;
}

/* ---------- Базовые стили ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, p, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

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

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

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

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

/* Социальные кнопки (новое) */
.social-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-social svg { width: 18px; height: 18px; }

.btn-social--tg { background: var(--tg-color); }
.btn-social--tg:hover { box-shadow: 0 6px 16px rgba(42, 171, 238, 0.4); transform: translateY(-2px); }

.btn-social--vk { background: var(--vk-color); }
.btn-social--vk:hover { box-shadow: 0 6px 16px rgba(0, 119, 255, 0.4); transform: translateY(-2px); }

.btn-social--max { background: linear-gradient(135deg, #333, #000); }
.btn-social--max:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); transform: translateY(-2px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
}

.logo em {
  font-style: normal;
  color: var(--primary);
}

.logo--light { color: #fff; }

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { width: 100%; }

.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__phone {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  white-space: nowrap;
}

.header__phone:hover { color: var(--primary); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Секции ---------- */
.section { padding: 90px 0; }

.section__head {
  max-width: 620px;
  margin-bottom: 48px;
}

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

.section__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__head h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--dark);
  margin-bottom: 12px;
}

.section__head p {
  font-size: 17px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: linear-gradient(135deg, #0c1730 0%, #132a56 55%, #1b3b7c 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, #3f7bff, transparent 70%);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, #5b8dff, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #7fb0ff;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero__points svg {
  width: 18px;
  height: 18px;
  color: #6ef0b4;
  stroke-width: 3;
}

/* Статистика */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero__stat {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.hero__stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.1;
}

.hero__stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Карточки услуг ---------- */
.cards { display: grid; gap: 24px; }

.services__grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cdd9f5;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 18px;
}

.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link span { transition: transform 0.2s ease; }
.card__link:hover span { transform: translateX(4px); }

.services__cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 32px;
  border-radius: var(--radius);
  background: var(--primary-light);
}

.services__cta p {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- Преимущества ---------- */
.features { background: var(--bg-alt); }

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

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 18px;
}

.feature__icon svg { width: 26px; height: 26px; }

.feature h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Калькулятор (новое) ---------- */
.calculator-sec { background: var(--bg); }

.calculator-box {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.calc-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-form__group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.calc-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2327364f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 10px auto;
}

.calc-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.calc-select:disabled {
  background-color: var(--bg-alt);
  color: var(--muted);
  cursor: not-allowed;
}

.calc-form__result {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.calc-form__result span {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.calc-form__result strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.calc-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.calc-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}


/* ---------- Цены ---------- */
.prices { background: var(--bg-alt); }

.prices__toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.prices__toggle-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.prices__toggle-btn:hover { color: var(--primary); }

.prices__toggle-btn.is-active {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.prices__table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.prices__row {
  display: grid;
  grid-template-columns: 1fr 140px 150px;
  gap: 16px;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.prices__row:last-child { border-bottom: none; }
.prices__row:not(.prices__row--head):hover { background: #f8faff; }

.prices__row--head {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.prices__name { font-weight: 600; color: var(--dark); }
.prices__time { color: var(--muted); font-size: 14px; }
.prices__price {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
  text-align: right;
}

.prices__note {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: #fff8e8;
  border: 1px solid #ffe0a3;
  color: #7a5a12;
  font-size: 14px;
}

.prices__note svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #e8a500;
}

/* ---------- Этапы ---------- */
.steps { background: var(--dark); color: #fff; }

.steps .section__head h2 { color: #fff; }
.steps .section__head p { color: rgba(255, 255, 255, 0.7); }

.steps__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

.step:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
}

.step b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: rgba(127, 176, 255, 0.9);
  margin-bottom: 14px;
}

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

.step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Отзывы ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review__stars {
  color: #f7b500;
  font-size: 18px;
  letter-spacing: 3px;
}

.review > p {
  font-size: 15px;
  color: var(--text);
  flex-grow: 1;
}

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

.review__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.review__author b { display: block; font-size: 15px; color: var(--dark); }
.review__author small { color: var(--muted); font-size: 13px; }

/* ---------- Контакты / форма / Карты ---------- */
.contacts { background: var(--bg-alt); }

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 60px;
}

.contacts__info h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--dark);
  margin-bottom: 16px;
}

.contacts__text {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 440px;
}

.contacts__list {
  display: grid;
  gap: 20px;
}

.contacts__list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacts__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
}

.contacts__icon svg { width: 22px; height: 22px; }

.contacts__list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contacts__list a,
.contacts__list span:not(.contacts__icon) {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.contacts__list a:hover { color: var(--primary); }

/* Форма */
.form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 22px;
}

.form__field {
  display: block;
  margin-bottom: 18px;
}

.form__field > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__field textarea { resize: vertical; min-height: 100px; }

.form__field input::placeholder,
.form__field textarea::placeholder { color: #a3adc4; }

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.form__field input.has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.10);
}

.form__error {
  display: block;
  min-height: 0;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form__error.is-visible { opacity: 1; }

.form .btn { margin-top: 6px; }

.form__privacy {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form__success {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #eafaf2;
  border: 1px solid #b5ecd2;
  color: #0f7a4b;
  text-align: center;
}

.form__success[hidden] { display: none; }

.form__success svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  color: var(--success);
  stroke-width: 3;
}

.form__success b { display: block; font-size: 16px; }
.form__success p { font-size: 13.5px; margin-top: 4px; }

/* Карты (новое) */
.maps-block {
  margin-top: 20px;
}

.maps-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.map-tab {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.map-tab:hover {
  color: var(--primary);
  border-color: #cdd9f5;
}

.map-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.maps-container {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.map-frame {
  width: 100%;
  height: 100%;
  display: none;
}

.map-frame.is-active {
  display: block;
}


/* ---------- Футер ---------- */
.footer {
  background: var(--dark);
  color: #cdd6e6;
  padding: 64px 0 28px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer__col ul { display: grid; gap: 10px; }

.footer__col a:hover { color: #7fb0ff; }

.footer__desc {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover { color: #7fb0ff; }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 34, 0.65);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__box { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover { background: #feeceb; color: var(--danger); }

.modal__box h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 6px;
}

.modal__sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.form--modal { box-shadow: none; padding: 0; border: none; }

/* ---------- Анимации появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .feature, .review, .step, .hero__stat { transition: none; }
}

/* ---------- Адаптивность ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 860px) {
  .header__phone { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .reviews__grid { grid-template-columns: 1fr; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 20px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 12px 8px; font-size: 17px; }
  .nav__link::after { display: none; }

  .burger { display: flex; }
  
  .calc-form { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero h1 { font-size: 31px; }
  .hero__subtitle { font-size: 16px; }
  .hero__stat b { font-size: 28px; }

  .section__head h2 { font-size: 28px; }
  .contacts__info h2 { font-size: 28px; }

  .services__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }

  .prices__row {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    padding: 16px 18px;
  }

  .prices__row--head { display: none; }

  .prices__time { grid-column: 1; }
  .prices__price { grid-column: 2; grid-row: 1 / span 2; }

  .prices__toggle { width: 100%; }
  .prices__toggle-btn { flex: 1; padding: 10px 12px; font-size: 13px; }

  .services__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__actions .btn { width: 100%; }
  
  .social-actions { justify-content: center; }

  .form, .calculator-box { padding: 26px 20px; }
  .modal__box { padding: 28px 20px; }
  
  .calc-form__result { flex-direction: column; align-items: flex-start; gap: 4px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  
  .maps-container { height: 300px; }
}