/* ===== Design tokens (из Figma) ===== */
:root {
  --bg: #191917;
  --gray: #1f1f1c;
  --outline: #292929;
  --green: #135339;
  --white: #ffffff;
  --text-gray: #595959;
  --text-gray-1: #a3a3a3;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

.logo {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--green);
  white-space: nowrap;
}

/* бренд-блок в шапке: логотип + зелёная черта + слоган */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.brand__rule { width: 100%; height: 2px; background: var(--green); }
.brand__slogan { font-size: 12px; font-weight: 500; color: var(--text-gray); white-space: nowrap; }

/* ===== Header ===== */
.header {
  background: var(--bg);
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header__top { position: relative; }
.header__top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px 21px;
  border-bottom: 1px solid var(--gray);
}
.header__slogan {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  text-align: center;
}
.header__phone {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.header__nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}
.nav-link--active {
  color: var(--white);
  border-bottom: 1.6px solid var(--green);
}
.nav-sep { color: var(--text-gray); font-size: 12px; }

/* бургер (мобильное меню) — скрыт на десктопе */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: none;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}
.header.nav-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .header__burger span:nth-child(2) { opacity: 0; }
.header.nav-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Layout ===== */
.page { max-width: 1200px; margin: 0 auto; }
.section {
  padding: 0 40px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section:first-of-type { margin-top: 0; }
.section__title {
  border-left: 3px solid var(--green);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ===== Cover ===== */
.cover {
  position: relative;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  overflow: hidden;
}
.cover__bg { position: absolute; inset: 0; pointer-events: none; }
.cover__bg img { width: 100%; height: 100%; object-fit: cover; }
.cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 31, 18, 0.85),
    rgba(14, 31, 18, 0.3) 70%,
    rgba(14, 31, 18, 0.6)
  );
}
.cover__content { position: relative; display: flex; flex-direction: column; gap: 20px; }
.cover__eyebrow { font-size: 14px; font-weight: 600; color: var(--text-gray-1); }
.cover__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
}
.cover__sub { font-size: 14px; font-weight: 600; color: var(--text-gray-1); }
.cover__actions { display: flex; gap: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--outline { border: 1px solid var(--text-gray-1); color: var(--text-gray-1); }

/* ===== Направления ===== */
.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.direction {
  position: relative;
  height: 200px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.direction__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.direction::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0) 50%, rgba(0,0,0,0.15));
}
.direction__label {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ===== Интерактив (только десктоп): монохром → цвет при наведении ===== */
@media (hover: hover) and (pointer: fine) {
  .directions .direction:not(.direction--service) .direction__img {
    filter: grayscale(1);
    transition: filter 0.45s ease;
  }
  .directions .direction:not(.direction--service):hover .direction__img {
    filter: grayscale(0);
  }
}

/* ===== Продукты ===== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product { display: flex; flex-direction: column; }
.product__img { width: 100%; height: 200px; object-fit: cover; }
.product__text {
  background: var(--gray);
  border: 1px solid var(--outline);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.product__name { color: var(--white); }
.product__price { color: var(--green); }

/* ===== Cover: вариант по центру (Автосалон) ===== */
.cover--center { align-items: center; justify-content: center; gap: 40px; text-align: center; }
.cover--center .cover__content { align-items: center; gap: 10px; }
.cover--center .cover__title { white-space: nowrap; }

/* ===== Слайдер-ряд под товарами ===== */
.series + .series { margin-top: 40px; }
.slider-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.slider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slider__btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  border: none;
  cursor: pointer;
  color: var(--white);
}
.slider__btn svg { width: 15px; height: 15px; }
.slider__dots { width: 90px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.slider__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-gray); }
.slider__dots span.is-active { background: var(--white); width: 18px; border-radius: 3px; }
.btn--series { border: 1px solid var(--text-gray-1); color: var(--text-gray-1); }

/* ===== Карточка товара ===== */
.product-page {
  padding: 40px;
  display: grid;
  grid-template-columns: 743fr 367fr;
  gap: 10px;
  align-items: start;
}
/* галерея */
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery__main {
  position: relative;
  height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery__main img.gallery__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.gallery__main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,31,18,.85), rgba(14,31,18,.3) 70%, rgba(14,31,18,.6));
}
.gallery__main .slider {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: space-between;
}
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumb {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:not(.is-active) img { opacity: 0.2; }

/* правая колонка */
.pc-aside { display: flex; flex-direction: column; }
.pc-head {
  background: var(--gray);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pc-head__title { font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.4; }
.pc-head__sub { font-size: 12px; font-weight: 500; color: var(--text-gray); line-height: 1.4; margin-top: 10px; }

/* описание-аккордеон: по умолчанию максимум 2 строки */
.pc-desc { margin-top: 10px; }
.pc-desc__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.pc-desc__text.is-open {
  -webkit-line-clamp: initial;
  line-clamp: initial;
  overflow: visible;
  display: block;
}
.pc-desc__toggle {
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}
.pc-desc__toggle:hover { text-decoration: underline; }
.pc-desc__toggle[hidden] { display: none; }

/* свёрнутые тех. характеристики: остаётся только заголовок с кнопкой */
.pc-specs__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-specs__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}
.pc-specs__toggle:hover { text-decoration: underline; }
.pc-specs.is-collapsed .pc-specs__list { display: none; }
.pc-specs.is-collapsed .pc-specs__toggle { display: inline-block; }
.pc-head__brand { width: 40px; height: 40px; flex: none; object-fit: contain; }
.pc-specs {
  background: var(--gray);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.pc-specs__title { font-size: 14px; font-weight: 600; color: var(--text-gray); }
.pc-specs__list { display: flex; flex-direction: column; gap: 10px; }
.pc-spec { display: flex; align-items: center; justify-content: space-between; }
.pc-spec .k { font-size: 12px; font-weight: 500; color: var(--text-gray); }
.pc-spec .v { font-size: 14px; font-weight: 600; color: var(--white); }
.pc-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 20px 20px;
}
.pc-buy__price { font-size: 18px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* секция предложений на всю ширину под галереей */
.product-offers { padding: 0 40px; margin-top: 40px; }

@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; }
}

/* ===== Контакты: текстовые блоки ===== */
.contact-text { font-size: 14px; font-weight: 600; color: var(--text-gray); line-height: 1.4; max-width: 520px; }
.contact-text p + p { margin-top: 4px; }

/* ===== Команда: преимущества ===== */
.advantages { display: flex; gap: 10px; }
.advantage {
  flex: 1 1 0;
  min-width: 0;
  background: var(--gray);
  padding: 40px 40px 20px;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.advantage__num { font-size: 18px; font-weight: 700; color: var(--white); }
.advantage__num sup { font-size: 11px; }
.advantage__label { font-size: 12px; font-weight: 500; color: var(--text-gray); margin-top: 60px; }
.advantage__icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  color: var(--outline);
}

/* ===== Команда: состав ===== */
.team { display: flex; gap: 10px; }
.team-member { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.team-member__photo { height: 200px; overflow: hidden; opacity: 0.6; position: relative; }
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member__name { font-size: 18px; font-weight: 700; color: var(--white); line-height: 1.2; }
.team-member__role { font-size: 12px; font-weight: 500; color: var(--text-gray); }

@media (max-width: 760px) {
  .advantages, .team { flex-wrap: wrap; }
  .advantage, .team-member { flex: 1 1 45%; }
}

/* ===== Сервис: плитки направлений (подпись снизу) ===== */
.direction--service { align-items: flex-end; }
.direction--service .direction__label { font-size: 20px; font-weight: 600; line-height: 1.2; }

/* ===== ЭЗС: инфо-блоки (фото + характеристики) ===== */
.ezs-rows { display: flex; flex-direction: column; gap: 20px; }
.ezs-row { display: flex; gap: 0; }
.ezs-photo {
  position: relative;
  width: 565px;
  flex: none;
  min-height: 302px;
  overflow: hidden;
}
.ezs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ezs-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,31,18,.85), rgba(14,31,18,.3) 70%, rgba(14,31,18,.6));
}
.ezs-info {
  flex: 1 1 0;
  background: var(--gray);
  padding: 40px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ezs-info__title { font-size: 18px; font-weight: 700; color: var(--white); line-height: 1.2; }
.ezs-info__list { display: flex; flex-direction: column; gap: 10px; }
.ezs-info__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ezs-info__row .k { font-size: 12px; font-weight: 500; color: var(--text-gray); }
.ezs-info__row .v { font-size: 14px; font-weight: 600; color: var(--white); text-align: right; }

/* партнёры */
.partners { display: flex; gap: 10px; }
.partner {
  flex: 1 1 0;
  min-width: 0;
  height: 120px;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.partner img { max-width: 70%; max-height: 50%; object-fit: contain; opacity: 0.5; }

/* ===== Footer ===== */
.footer {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 40px 40px 20px;
}
.footer__main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--outline);
}
.footer__about {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 597px;
}
.footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 393px; }
.logo--footer { font-size: 18px; }
.footer__desc { font-size: 12px; font-weight: 500; color: var(--text-gray); line-height: 1.4; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 28px 0; }
.footer__nav a { font-size: 14px; font-weight: 600; color: var(--text-gray); }
.footer__contacts { display: flex; flex-direction: column; gap: 20px; }
.footer__contacts-grid { display: grid; grid-template-columns: auto auto; gap: 20px 60px; }
.footer__contacts-title { font-size: 14px; font-weight: 600; color: var(--text-gray); }
.footer__contact-item { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-label { font-size: 12px; font-weight: 500; color: var(--text-gray); }
.footer__contact-value { font-size: 14px; font-weight: 600; color: var(--text-gray-1); }
.footer__social { display: flex; gap: 10px; }
.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-gray);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: var(--text-gray);
}
.footer__bottom p { font-size: 14px; font-weight: 600; }
.footer__legal { display: flex; gap: 40px; font-size: 12px; font-weight: 500; }

/* ===== Адаптив ===== */
/* Бургер-меню на узких экранах */
@media (max-width: 980px) {
  .header__burger { display: flex; }
  .header__slogan { display: none; }
  .header__top { justify-content: space-between; gap: 16px; }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.4);
  }
  .header.nav-open .header__nav { display: flex; }
  .header__nav .nav-sep { display: none; }
  .nav-link { padding: 12px 40px; width: 100%; }
  .nav-link--active { border-bottom: none; color: var(--white); box-shadow: inset 3px 0 0 var(--green); }
}

/* ЭЗС: фиксированное фото перестаёт помещаться рядом с характеристиками */
@media (max-width: 860px) {
  .ezs-row { flex-direction: column; }
  .ezs-photo { width: 100%; min-height: 220px; }
  .partners { flex-wrap: wrap; }
  .partner { flex: 1 1 30%; min-width: 120px; }
}

@media (max-width: 768px) {
  .directions, .products { grid-template-columns: 1fr; }
  .footer__main { flex-direction: column; }
  .footer__nav { flex-wrap: wrap; gap: 20px; }
  .cover__title { font-size: 32px; }

  /* меньше боковых отступов на узких экранах */
  .section, .cover, .product-offers { padding-left: 20px; padding-right: 20px; }
  .cover { padding-top: 48px; padding-bottom: 48px; }
  .footer { padding-left: 20px; padding-right: 20px; }
  .header__top { padding: 16px 20px; }
  .product-page { padding: 20px; }

  /* кнопки обложки переносятся и тянутся на всю ширину */
  .cover__actions { flex-wrap: wrap; width: 100%; }
  .cover__actions .btn { flex: 1 1 auto; }

  /* центрированная обложка: длинный заголовок должен переноситься */
  .cover--center .cover__title { white-space: normal; }

  /* блок цены/кнопки в карточке товара переносится */
  .pc-buy { flex-wrap: wrap; padding: 20px; }
  .pc-buy .btn { flex: 1 1 auto; }

  /* нижняя часть подвала складывается в столбец */
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__legal { flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 520px) {
  .header__phone { display: none; }
  .cover__title { font-size: 28px; }
  .partner { flex: 1 1 45%; }
  .footer__contacts-grid { grid-template-columns: 1fr; gap: 16px; }
  .btn { padding: 11px 24px; }
}

/* ===== Юридические страницы (Политика / Оферта) ===== */
.legal { max-width: 860px; padding: 48px 40px 64px; display: flex; flex-direction: column; gap: 28px; }
.legal__title { font-size: 32px; font-weight: 600; line-height: 1.15; color: var(--white); }
.legal__meta { font-size: 13px; font-weight: 500; color: var(--text-gray); margin-top: -16px; }
.legal__section { display: flex; flex-direction: column; gap: 12px; }
.legal__section h2 { font-size: 18px; font-weight: 600; color: var(--white); }
.legal p, .legal li { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--text-gray-1); }
.legal strong { color: var(--white); font-weight: 600; }
.legal a { color: var(--green); text-decoration: underline; }
.legal ul { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.legal__req { background: var(--gray); border: 1px solid var(--outline); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.legal__req p { color: var(--text-gray-1); }

/* ===== Cookie-баннер ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 16px; display: flex; justify-content: center;
  transform: translateY(120%); transition: transform 0.35s ease;
  pointer-events: none;
}
.cookie-banner.is-visible { transform: translateY(0); pointer-events: auto; }
/* [hidden] должен скрывать даже элементы с display из .btn/.cookie-banner__options */
.cookie-banner [hidden], .lead-modal [hidden] { display: none !important; }
.cookie-banner__box {
  width: 100%; max-width: 1120px; background: var(--gray);
  border: 1px solid var(--outline); border-radius: 16px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cookie-banner__title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.cookie-banner__text p { font-size: 13px; line-height: 1.55; color: var(--text-gray-1); }
.cookie-banner__text a { color: var(--green); text-decoration: underline; }
.cookie-banner__options { display: flex; flex-direction: column; gap: 10px; }
.cookie-opt { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-gray-1); cursor: pointer; }
.cookie-opt input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--green); flex: none; }
.cookie-opt b { color: var(--white); font-weight: 600; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { padding: 10px 24px; cursor: pointer; border: 1px solid transparent; background: none; }
.cookie-banner__actions .btn--primary { border-color: var(--green); }

/* ===== Модальная форма заявки ===== */
body.no-scroll { overflow: hidden; }
.lead-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.lead-modal__box {
  position: relative; width: 100%; max-width: 460px; background: var(--gray);
  border: 1px solid var(--outline); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lead-modal__head { display: flex; align-items: center; justify-content: space-between; }
.lead-modal__title { font-size: 20px; font-weight: 600; color: var(--white); }
.lead-modal__close { background: none; border: none; color: var(--text-gray-1); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; }
.lead-modal__close:hover { color: var(--white); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form__topic { font-size: 13px; font-weight: 600; color: var(--green); }
.lead-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-gray-1); }
.lead-field input, .lead-field textarea {
  background: var(--bg); border: 1px solid var(--outline); border-radius: 8px;
  padding: 11px 13px; color: var(--white); font-family: var(--font); font-size: 14px; font-weight: 400;
}
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--green); }
.lead-field textarea { resize: vertical; }
.lead-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-gray-1); cursor: pointer; padding: 8px; border: 1px solid transparent; border-radius: 8px; }
.lead-consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--green); flex: none; }
.lead-consent a { color: var(--green); text-decoration: underline; }
.lead-consent.is-invalid { border-color: #e3403a; background: rgba(227, 64, 58, 0.08); }
.lead-consent.is-invalid input { outline: 2px solid #e3403a; outline-offset: 1px; }
.lead-form__submit { cursor: pointer; border: none; padding: 12px 24px; }
.lead-form__submit:disabled { opacity: 0.45; cursor: not-allowed; }
.lead-form__status { font-size: 13px; line-height: 1.4; }
.lead-form__status.is-ok { color: #46c08d; }
.lead-form__status.is-err { color: #e3403a; }

@media (max-width: 560px) {
  .legal { padding: 32px 20px 48px; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
}

/* ===== Карта в подвале ===== */
.footer__map {
  margin: 30px 40px 0;
  border: 1px solid var(--outline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray);
  min-height: 280px;
  display: flex;
}
.footer-map__frame {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  filter: grayscale(1);
  transition: filter 0.45s ease;
}
/* на десктопе при наведении карта становится цветной — как плитки направлений */
@media (hover: hover) and (pointer: fine) {
  .footer-map__frame:hover { filter: grayscale(0); }
}
.footer-map__ph {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px 20px;
}
.footer-map__title { font-size: 16px; font-weight: 600; color: var(--white); }
.footer-map__addr { font-size: 14px; font-weight: 600; color: var(--text-gray-1); }
.footer-map__ph .btn { cursor: pointer; border: none; }
.footer-map__note { font-size: 12px; color: var(--text-gray); max-width: 360px; }
.footer-map__note a { color: var(--green); text-decoration: underline; }

@media (max-width: 560px) {
  .footer__map { margin: 24px 20px 0; min-height: 240px; }
  .footer-map__frame { height: 240px; }
}

/* ===== Блог: карточки статей ===== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.post { display: flex; flex-direction: column; background: var(--gray); border: 1px solid var(--outline); }
.post__img { width: 100%; height: 200px; object-fit: cover; background: var(--gray); }
.post__text { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post__date { font-size: 12px; font-weight: 600; color: var(--green); }
.post__title { font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.3; }
.post__excerpt { font-size: 13px; font-weight: 400; color: var(--text-gray-1); line-height: 1.5; }
.post:hover .post__title { color: var(--green); transition: color 0.2s; }
.posts__empty { grid-column: 1 / -1; font-size: 14px; color: var(--text-gray-1); }
.section__more { display: flex; justify-content: center; margin-top: 10px; }

/* ===== Статья ===== */
.article { max-width: 820px; margin: 0 auto; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.article__back { font-size: 13px; font-weight: 600; color: var(--text-gray-1); }
.article__back:hover { color: var(--green); }
.article__date { font-size: 13px; font-weight: 600; color: var(--green); }
.article__title { font-size: 32px; font-weight: 600; line-height: 1.15; color: var(--white); }
.article__cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; background: var(--gray); margin: 6px 0; }
.article__body { display: flex; flex-direction: column; gap: 16px; }
.article__body p { font-size: 15px; font-weight: 400; line-height: 1.7; color: var(--text-gray-1); }
.article__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

@media (max-width: 900px) {
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .posts { grid-template-columns: 1fr; }
  .article { padding: 28px 20px; }
  .article__title { font-size: 26px; }
}

/* ===== Пагинация блога ===== */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pagination:empty { display: none; }
.page-link {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray); border: 1px solid var(--outline);
  color: var(--text-gray-1); font-size: 14px; font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}
.page-link:hover { color: var(--white); border-color: var(--text-gray-1); }
.page-link.is-active { background: var(--green); color: var(--white); border-color: var(--green); }
.page-link.is-disabled { opacity: 0.4; pointer-events: none; }
