/* ==========================================================================
   ТСК Экоспецстрой — вывоз мусора в Казани и пригороде в радиусе 100 км
   Одностраничный лендинг. Стили.
   --------------------------------------------------------------------------
   Структура файла:
   01. Переменные и токены дизайна
   02. База и типографика
   03. Утилиты (контейнер, секции, кнопки, бейджи)
   04. Шапка и мобильное меню
   05. Первый экран (hero)
   06. Наши услуги
   07. Калькулятор
   08. Как заказать + форма заявки
   09. Почему выбирают нас
   10. Автопарк
   11. Зона работы
   12. Баннер о зоне выезда
   13. Подвал
   14. Модальное окно
   15. Мобильная кнопка «Позвонить»
   ========================================================================== */

/* 01. Токены ------------------------------------------------------------- */
:root {
  /* Фирменные цвета: зелёный (основной), оранжевый (действие), жёлтый (акцент) */
  --green-700: #25682b;
  --green-600: #2e7d32;
  --green-500: #43a047;
  --green-300: #8ccf95;
  --green-100: #dcefdd;
  --green-50: #eef7ef;

  --orange-600: #d9551a;
  --orange: #f26522;
  --orange-50: #fff1e9;

  --yellow: #ffd400;

  /* Тёмно-синяя шкала: заголовки, тёмные блоки, подвал */
  --ink-900: #0a1c2e;
  --ink-800: #0f2740;
  --ink: #12293f;
  --text: #33475b;
  --muted: #6b8199;

  --bg: #ffffff;
  --soft: #f3f7f4;
  --soft-blue: #eef3f8;
  --line: #e3ebe6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(15, 39, 64, 0.06);
  --shadow: 0 12px 30px rgba(15, 39, 64, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 39, 64, 0.18);

  --container: 1200px;
  --header-h: 78px;

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* 02. База --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* 03. Утилиты ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section--soft {
  background: var(--soft);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section__title {
  font-size: clamp(26px, 3vw, 40px);
}

.section__subtitle {
  margin-top: 10px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-600);
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.link-more:hover {
  gap: 12px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--lg {
  padding: 18px 30px;
  font-size: 17px;
  border-radius: 14px;
}

.btn--full {
  width: 100%;
}

.btn--orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 26px rgba(242, 101, 34, 0.28);
}

.btn--orange:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
}

.btn--green {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 12px 26px rgba(46, 125, 50, 0.24);
}

.btn--green:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--green-500);
  color: var(--green-700);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

/* Маркер-выделение в заголовке */
.mark {
  display: inline-block;
  padding: 0 0.14em;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink-900);
}

/* 04. Шапка -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 39, 64, 0.08);
  border-bottom-color: var(--line);
}

/* Шапка: логотип слева, меню ровно по центру страницы, контакты справа */
.header__inner {
  display: flex;
  align-items: center;
  /* свободное место делится поровну: промежутки слева и справа от меню равны */
  justify-content: space-between;
  gap: 18px;
  /* контейнер шире обычного ровно на отступы — содержимое 1200 px, как в баннере */
  max-width: calc(var(--container) + 48px);
  min-height: var(--header-h);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.logo__tagline {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.header__nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__nav a:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}

.header__phone {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.header__hours {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.header__cta {
  padding: 13px 18px;
  font-size: 13.5px;
}

.burger {
  display: none;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--soft);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span {
  top: 22px;
}

.burger span::before,
.burger span::after {
  content: "";
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger.is-active span {
  background: transparent;
}

.burger.is-active span::before {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-active span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(360px, 88vw);
  padding: 24px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(10, 28, 46, 0.25);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.28s ease, visibility 0s linear 0s;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  background: var(--soft);
  border: 0;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.mobile-nav__list a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.mobile-nav__list a:hover {
  background: var(--green-50);
}

.mobile-nav__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--soft);
  margin-bottom: 16px;
}

.mobile-nav__contacts a:first-child {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.mobile-nav__contacts span {
  font-size: 13px;
  color: var(--muted);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 28, 46, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* 05. Первый экран ------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(8, 24, 42, 0.95) 0%,
    rgba(8, 24, 42, 0.88) 34%,
    rgba(8, 24, 42, 0.62) 56%,
    rgba(8, 24, 42, 0.12) 100%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  /* ширина содержимого и отступы — как у шапки, чтобы границы совпадали */
  max-width: calc(var(--container) + 48px);
  padding: 84px 24px 92px;
  min-height: 560px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__eyebrow svg {
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(30px, 4.3vw, 58px);
  color: #fff;
  max-width: 15ch;
}

.hero__lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 26px;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.hero__facts svg {
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  text-align: right;
}

.hero__chip {
  max-width: 280px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.hero__chip--orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 40px rgba(242, 101, 34, 0.35);
}

.hero__chip--city {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero__chip--city svg {
  flex-shrink: 0;
}

/* 06. Наши услуги -------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-100);
}

.service__media {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
}

.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service:hover .service__media img {
  transform: scale(1.04);
}

.service__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.service__title {
  font-size: 18px;
}

.service__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.service__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
}

.price small {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.service__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.service__go:hover {
  background: var(--green-700);
  transform: translateX(3px);
}

/* 07. Калькулятор -------------------------------------------------------- */
.calc {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px 38px 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calc__eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc__title {
  margin-top: 6px;
  font-size: clamp(24px, 2.6vw, 32px);
}

.calc__field {
  margin-top: 24px;
}

.calc__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Сегментированный выбор объёма */
.seg {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.seg__btn {
  height: 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.seg__btn:hover {
  border-color: var(--green-300);
}

.seg__btn.is-active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

.field {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.16);
}

select.field {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2312293f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 46px;
  cursor: pointer;
}

.field::placeholder {
  color: #9babbd;
}

/* Чекбокс */
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #cbd6d0;
  border-radius: 6px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check__box svg {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.check input:checked + .check__box {
  background: var(--green-600);
  border-color: var(--green-600);
}

.check input:checked + .check__box svg {
  opacity: 1;
}

.check input:focus-visible + .check__box {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
}

.calc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.calc__total-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.calc__total-value {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.calc__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* 08. Шаги и форма ------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 2px solid var(--green-500);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--green-600);
}

.step__title {
  font-size: 17px;
}

.step__text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Блок заявки */
.request {
  background: linear-gradient(150deg, var(--green-700) 0%, var(--green-600) 55%, #37903c 100%);
  color: #fff;
}

.request__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: center;
}

.request__title {
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
}

.request__lead {
  margin-top: 14px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.9);
}

.request__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.request__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.request__list svg {
  flex-shrink: 0;
}

.form-card {
  padding: 30px 30px 26px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.form-card__title {
  font-size: 22px;
}

.form-card__subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form-card form {
  margin-top: 20px;
}

.form-row {
  margin-bottom: 14px;
}

.field-icon {
  position: relative;
}

.field-icon svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
}

.field-icon .field {
  padding-left: 48px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.consent input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--green-600);
  flex-shrink: 0;
}

.consent a {
  color: var(--green-700);
  text-decoration: underline;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--green-50);
  color: var(--green-700);
}

.form-status.is-error {
  background: var(--orange-50);
  color: var(--orange-600);
}

.field.has-error {
  border-color: #e0532f;
  box-shadow: 0 0 0 3px rgba(224, 83, 47, 0.14);
}

/* 09. Почему выбирают нас ------------------------------------------------ */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.advantage {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advantage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--green-50);
}

.advantage__title {
  font-size: 17px;
}

.advantage__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* 10. Автопарк ----------------------------------------------------------- */
.fleet {
  position: relative;
}

.fleet__viewport {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.fleet__viewport::-webkit-scrollbar {
  display: none;
}

.fleet__card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fleet__media {
  aspect-ratio: 16 / 11;
  background: var(--soft);
}

.fleet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet__body {
  padding: 18px;
}

.fleet__title {
  font-size: 17px;
}

.fleet__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.fleet__controls[hidden] {
  display: none;
}

.fleet__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.fleet__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fleet__nav:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}

.fleet__nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

.fleet__dots {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.fleet__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #cfdcd4;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.fleet__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--green-600);
}

/* 11. Зона работы -------------------------------------------------------- */
.zone__inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.zone__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.zone__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.zone__place::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.zone__place--main {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
}

.zone__place--main::before {
  background: var(--yellow);
}

.zone__more {
  margin-top: 26px;
}

.zone__extra {
  display: none;
  margin-top: 20px;
  padding: 20px 22px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.zone__extra.is-open {
  display: block;
}

.zone__extra strong {
  color: var(--ink);
}

/* Карта зоны: силуэт республики и метка Казани с радиусом выезда 100 км.
   Карта нарисована прямо на фоне секции — без подложки, рамки и скругления. */
.zone__map {
  position: relative;
  aspect-ratio: 1000 / 707;
}

.zone__map-shape {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.zone__map-region {
  fill: #dfe9f0;
  stroke: #bfd2de;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.zone__map-ring {
  fill: none;
  stroke: #2e7d32;
  stroke-width: 2;
  stroke-dasharray: 7 8;
  opacity: 0.75;
  vector-effect: non-scaling-stroke;
}

.zone-point {
  position: absolute;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* Казань: метка остриём в точку, подпись — на белой плашке над меткой */
.zone-point--pin {
  color: var(--orange);
  transform: translate(-50%, -100%);
}

.zone-point--pin svg {
  display: block;
  filter: drop-shadow(0 6px 14px rgba(242, 101, 34, 0.4));
}

.zone-point--pin svg path {
  fill: currentColor;
}

.zone-point--city {
  transform: translate(-50%, calc(-100% - 44px));
}

.zone-point--city b {
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 28, 46, 0.18);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Запасной вариант оформления — тёмная панель (класс .zone__map--dark) */
.zone__map--dark {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #16293f 0%, #0a1c2e 100%);
  border: 1px solid rgba(140, 207, 149, 0.18);
  box-shadow: 0 18px 44px rgba(10, 28, 46, 0.24);
}

.zone__map--dark .zone__map-region {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(140, 207, 149, 0.55);
}

.zone__map--dark .zone__map-ring {
  stroke: #7fd48a;
  opacity: 0.85;
}

/* 12. Баннер ------------------------------------------------------------- */
.coverage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  color: #fff;
}

.coverage__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.coverage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coverage__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(8, 24, 42, 0.9) 0%, rgba(8, 24, 42, 0.6) 55%, rgba(8, 24, 42, 0.28) 100%);
}

.coverage__inner {
  padding: 68px 0;
  max-width: 620px;
}

.coverage__title {
  font-size: clamp(26px, 3.2vw, 42px);
  color: #fff;
}

.coverage__text {
  margin-top: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

.coverage .btn {
  margin-top: 28px;
}

/* 13. Подвал ------------------------------------------------------------- */
.footer {
  padding: 56px 0 0;
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer__brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: inline-flex;
  padding: 7px;
  background: #fff;
  border-radius: 12px;
}

.footer__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.footer__tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__about {
  max-width: 34ch;
  line-height: 1.6;
}

.footer__phone {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.footer__phone:hover {
  color: var(--yellow);
}

.footer__mail {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.footer__mail:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease;
}

.footer__social:hover {
  background: var(--green-600);
}

.footer__heading {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer__list li + li {
  margin-top: 10px;
}

.footer__list a:hover {
  color: #fff;
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  line-height: 1.55;
}

.footer__contact-item + .footer__contact-item {
  margin-top: 14px;
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}

.footer__contact-item a:hover {
  color: #fff;
}

/* Подпись студии: без подчёркивания даже при наведении, при наведении только светлеет */
.footer__credit {
  text-decoration: none;
}

.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(255, 255, 255, 0.55);
}

.footer__bottom a:hover {
  color: #fff;
}

/* 14. Модальное окно ----------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 28, 46, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform 0.24s ease;
}

.modal.is-open .modal__box {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--soft);
  border: 0;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--line);
}

.modal__title {
  font-size: 24px;
  padding-right: 40px;
}

.modal__subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.modal form {
  margin-top: 20px;
}

.modal__summary {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--green-700);
}

.modal__summary.is-visible {
  display: block;
}

/* 15. Плавающая кнопка --------------------------------------------------- */
.call-fab {
  position: fixed;
  /* по центру без transform: он создаёт слой, и содержимое может не прорисоваться */
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-width: 230px;
  max-width: 100%;
  height: 56px;
  margin: 0 auto;
  padding: 0 28px;
  background: var(--green-600);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 32px rgba(46, 125, 50, 0.42);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */
/* Компактная шапка: 1025–1180 px. Полноразмерная раскладка требует 1053 px
   содержимого (окно от 1101 px), поэтому здесь блоки чуть уменьшаются. */
@media (max-width: 1180px) and (min-width: 1025px) {
  .header__inner {
    gap: 14px;
  }

  .logo__mark {
    width: 36px;
    height: 36px;
  }

  .logo__name {
    font-size: 17px;
  }

  .logo__tagline {
    font-size: 11px;
  }

  .header__nav {
    gap: 0;
  }

  .header__nav a {
    padding: 10px 8px;
    font-size: 13px;
  }

  .header__side {
    gap: 14px;
  }

  .header__phone {
    font-size: 15px;
  }

  .header__hours {
    font-size: 10.5px;
  }

  .header__cta {
    padding: 12px 15px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__contacts,
  .header__cta {
    display: none;
  }

  .header__inner {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 64px 24px 68px;
    min-height: 0;
  }

  .hero__side {
    align-items: flex-start;
    text-align: left;
  }

  .services,
  .advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .zone__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .fleet__card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 860px) {
  /* Первый экран: текст на белом, фото под ним — как в мобильном макете */
  .hero {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--text);
  }

  .hero__media {
    position: static;
    order: 2;
    height: 260px;
  }

  .hero__media img {
    object-position: 62% 55%;
  }

  .hero__overlay {
    display: none;
  }

  .hero__inner {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 34px 24px 30px;
  }

  .hero__content {
    order: 1;
  }

  .hero__side {
    display: none;
  }

  .hero__eyebrow {
    background: var(--green-50);
    color: var(--green-700);
  }

  .hero__title {
    color: var(--ink);
    font-size: clamp(28px, 7.4vw, 40px);
    max-width: 20ch;
  }

  .hero__lead {
    color: var(--text);
    font-size: 16px;
  }

  .hero__facts {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .hero__facts li {
    color: var(--ink);
    font-size: 14.5px;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 26px;
  }

  .hero__actions .btn {
    width: 100%;
    /* фиксированная высота: у контурной кнопки рамка 2 px добавляла 4 px */
    height: 56px;
  }

  /* Кнопка «Позвонить» на белом фоне: базовый вид рассчитан на тёмный фон
     и на белом становится невидимым (белый текст на полупрозрачном белом) */
  .hero__actions .btn--ghost-light {
    background: #fff;
    border-color: var(--green-600);
    color: var(--green-700);
    backdrop-filter: none;
  }

  .coverage__inner {
    padding: 52px 24px;
  }

  .calc {
    padding: 24px 20px 22px;
  }

  .calc__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .calc__total {
    text-align: center;
  }

  .form-card {
    padding: 24px 20px 22px;
  }

  .footer {
    padding-top: 44px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Узкие экраны: метку Казани делаем компактнее */

  .zone-point--pin svg {
    width: 24px;
    height: 32px;
  }

  .zone-point--city {
    transform: translate(-50%, calc(-100% - 36px));
  }

  .zone-point--city b {
    padding: 4px 11px;
    font-size: 12.5px;
  }

  .call-fab {
    display: flex;
  }

  .footer {
    padding-bottom: 76px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .coverage__inner {
    padding: 48px 16px;
  }

  .hero__inner {
    padding: 34px 16px 30px;
  }

  .section {
    padding: 48px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
  }

  .services,
  .advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Длинная подпись «Позвонить +7 …» должна помещаться на узких экранах */
  .hero__actions .btn {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 15px;
  }

  .service__body {
    padding: 14px;
  }

  .service__title {
    font-size: 15px;
  }

  .service__desc {
    font-size: 12.5px;
  }

  .price {
    font-size: 16px;
  }

  .service__go {
    width: 34px;
    height: 34px;
  }

  .service__foot {
    padding-top: 14px;
    gap: 8px;
  }

  .seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Ломовоз занимает всю строку: в наборе из пяти позиций он один такой */
  .seg__btn[data-volume="lomovoz"] {
    grid-column: span 2;
  }

  .seg__btn {
    height: 52px;
    font-size: 15px;
  }

  .advantage {
    padding: 20px 16px;
  }

  .advantage__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .advantage__title {
    font-size: 15px;
  }

  .advantage__text {
    font-size: 12.5px;
  }

  .fleet__card {
    flex-basis: 78%;
  }

  .zone__place {
    font-size: 13px;
    padding: 8px 13px;
  }

}
