/**
 * style.css — Все стили сайта Климат Коннект · klimcon.ru
 * Порядок: переменные → сброс → типографика → утилиты → layout → компоненты → страницы → media
 * Mobile-first: базовые стили для мобилки, desktop через @media (min-width: 768px)
 * Inline style="..." запрещены — всё только здесь
 */

/* ===================================================================
   1. ПЕРЕМЕННЫЕ
   =================================================================== */
:root {
  --green:           #0F6E56;
  --green-dark:      #0D6050;
  --green-light:     #1D9E75;
  --green-bg:        #EAF5F0;
  --dark:            #0D1117;
  --dark-2:          #161C24;
  --text:            #333;
  --text-secondary:  #555;
  --text-muted:      #666666;
  --border:          #E8ECF0;
  --bg-alt:          #F8FAFB;
  --white:           #fff;

  --radius:          12px;
  --radius-sm:       9px;
  --radius-lg:       16px;

  --transition:      .2s ease;
  --shadow-card:     0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-nav:      0 1px 12px rgba(0,0,0,.08);

  --container-width: 1160px;
  --container-px:    20px;
}

/* ===================================================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ===================================================================
   3. ТИПОГРАФИКА
   =================================================================== */
h1 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

p {
  line-height: 1.7;
}

/* ===================================================================
   4. УТИЛИТЫ
   =================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-green    { color: var(--green-light); }
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.section-title { margin-bottom: 32px; }

/* ===================================================================
   5. КНОПКИ
   =================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-dark);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}

.btn-ghost--dark {
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost--dark:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===================================================================
   6. НАВИГАЦИЯ
   =================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-px);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

/* Логотип */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  transition: color var(--transition);
}

.nav.scrolled .nav__logo-name {
  color: var(--dark);
}

.nav__logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.75);
  line-height: 1.2;
  transition: color var(--transition);
}

.nav.scrolled .nav__logo-sub {
  color: var(--text-muted);
}

/* Центральные ссылки (скрыты на мобилке) */
.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}

/* Правая часть nav */
.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__phone {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.nav.scrolled .nav__phone {
  color: var(--text);
}

.nav__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #25D366;
  border-radius: 50%;
  transition: background var(--transition);
}

.nav__wa:hover {
  background: rgba(37,211,102,.1);
}

.nav__cta {
  display: none;
}

/* Ссылки в меню */
.nav__link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav.scrolled .nav__link {
  color: var(--text-secondary);
}

.nav__link:hover,
.nav__link--active {
  color: var(--green);
  background: var(--green-bg);
}

.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link--active {
  color: var(--green);
  background: var(--green-bg);
}

/* Дропдаун */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 200;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  display: block;
}

.nav__dropdown .nav__link {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.nav__dropdown .nav__link:hover {
  color: var(--green);
  background: var(--green-bg);
}

.nav__arrow {
  font-size: 10px;
  transition: transform var(--transition);
}

/* Бургер */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav.scrolled .nav__burger span {
  background: var(--dark);
}

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

/* Мобильное меню */
.nav__links.nav__links--open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 20px;
  overflow-y: auto;
  z-index: 99;
  gap: 4px;
  align-items: flex-start;
}

.nav__links--open .nav__link {
  color: var(--text-secondary);
  width: 100%;
  font-size: 15px;
  padding: 12px 16px;
}

.nav__links--open .nav__dropdown {
  display: block;
  position: static;
  box-shadow: none;
  border: none;
  background: var(--bg-alt);
  margin: 4px 0;
  border-radius: var(--radius-sm);
}

/* ===================================================================
   7. ХЛЕБНЫЕ КРОШКИ
   =================================================================== */
.breadcrumbs-wrap {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-top: 60px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  font-size: 13px;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '→';
  margin: 0 8px;
  color: var(--border);
  font-size: 11px;
}

.breadcrumbs__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--green);
}

.breadcrumbs__item:last-child {
  color: var(--text-secondary);
}

/* ===================================================================
   8. HERO — ГЛАВНАЯ
   =================================================================== */
.hero {
  min-height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a1e 100%);
  /* ЗАМЕНИТЬ: реальное фото загородного дома */
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px var(--container-px);
}

.hero__content {
  max-width: 540px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-light);
  margin-bottom: 16px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__title .accent {
  color: var(--green-light);
}

.hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,.80);
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

/* Цифры доверия в Hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 380px;
}

.hero__stat {
  background: rgba(0,0,0,.25);
  padding: 14px 16px;
  text-align: center;
}

.hero__stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero__stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
}

/* CSS-only 3D блок справа */
.hero__device-wrap {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.hero__device {
  width: 260px;
  height: 56px;
  background: linear-gradient(180deg, #f0eeec, #e2dfdc);
  border-radius: 14px;
  box-shadow: 0 2px 0 #c8c5c2, 0 4px 0 #b8b5b2, 0 8px 32px rgba(0,0,0,.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  animation: float 4s ease-in-out infinite;
}

.hero-bg {
  background-image: url('/assets/images/hero-bg.webp');
  background-size: cover;
  background-position: center;
}

.hero__device::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: #faf8f6;
  border-radius: 12px 12px 0 0;
}

.hero__device::after {
  content: '';
  position: absolute;
  top: 0;
  right: -9px;
  bottom: 0;
  width: 9px;
  background: linear-gradient(90deg, #d0cdc9, #b8b5b2);
  border-radius: 0 4px 4px 0;
}

.hero__device-label {
  font-size: 10px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero__device-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero__device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.hero__device-dot--active {
  background: var(--green-light);
  animation: pulse 2s ease-in-out infinite;
}

/* Плавающие карточки */
.hero__card {
  position: absolute;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 160px;
  animation: floatCard 3s ease-in-out infinite;
}

.hero__card--1 {
  top: -80px;
  left: -60px;
  animation-delay: 0s;
}

.hero__card--2 {
  top: 50px;
  left: -140px;
  animation-delay: 0.9s;
}

.hero__card--3 {
  bottom: -60px;
  right: -20px;
  animation-delay: 1.8s;
}

.hero__card-label {
  font-size: 11px;
  color: rgba(255,255,255,.80);
  margin-bottom: 2px;
}

.hero__card-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
}

.hero__card-sub {
  font-size: 10px;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}

.hero__card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Скролл-индикатор */
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.60);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bounce 2.5s ease-in-out infinite;
}

/* ===================================================================
   9. СЕКЦИИ — ОБЩИЕ ПАТТЕРНЫ
   =================================================================== */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section__link-all {
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.section__link-all:hover {
  opacity: .75;
}

/* ===================================================================
   10. ПОЛОСА СЕГМЕНТОВ
   =================================================================== */
.segments {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.segments__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.segments__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 16px;
  border-right: 0.5px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}

.segments__item:nth-child(2n) {
  border-right: none;
}

.segments__item:hover {
  background: var(--green-bg);
}

.segments__icon {
  width: 36px;
  height: 36px;
  background: var(--green-bg);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.segments__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.segments__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===================================================================
   11. КАРТОЧКИ УСЛУГ
   =================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  display: block;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(15,110,86,.1);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  background: var(--green-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 14px;
}

.service-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.service-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-card__link {
  font-size: 12px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================================
   12. БЛОК "ДЛЯ КОГО"
   =================================================================== */
.segments-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.segment-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--transition);
}

.segment-card:hover {
  box-shadow: var(--shadow-card);
}

.segment-card__img {
  height: 160px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  position: relative;
}

.segment-card__img svg {
  position: absolute;
  opacity: .3;
}

.segment-card__body {
  padding: 18px;
  border-top: 0.5px solid var(--border);
}

.segment-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.segment-card__tag--home    { background: #EAF5F0; color: var(--green); }
.segment-card__tag--comm    { background: #EEF2FF; color: #4F46E5; }
.segment-card__tag--ind     { background: #FEF3C7; color: #B45309; }

.segment-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.segment-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   13. КЕЙСЫ
   =================================================================== */
.cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.case-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-card);
}

.case-card__img {
  height: 130px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

.case-card__body {
  padding: 16px;
}

.case-card__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.case-card__tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 20px;
}

.case-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.case-card__result {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.case-card__result-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.case-card__result-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===================================================================
   14. БЛОК "ПОЧЕМУ МЫ"
   =================================================================== */
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.advantage-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.advantage-card__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--green-bg);
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
}

.advantage-card__title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.advantage-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   15. ФОРМА КВИЗА (CTA блок)
   =================================================================== */
.quiz-section {
  background: var(--dark);
  padding: 64px var(--container-px);
}

.quiz-section__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.quiz-section__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-light);
  margin-bottom: 12px;
}

.quiz-section__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}

.quiz-section__sub {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  margin-bottom: 24px;
}

.quiz-section__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--transition);
}

.quiz-contact-link:hover {
  color: var(--white);
}

/* Форма квиза */
.quiz-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 26px;
}

.quiz-form__group {
  margin-bottom: 20px;
}

.quiz-form__label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Radio-пилюли */
.quiz-form__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quiz-form__pill {
  display: none;
}

.quiz-form__pill + label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.quiz-form__pill:checked + label {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.quiz-form__pill + label:hover {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}

/* Текстовые поля формы */
.quiz-form__input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  transition: border-color var(--transition);
}

.quiz-form__input::placeholder {
  color: rgba(255,255,255,.55);
}

.quiz-form__input:focus {
  outline: none;
  border-color: var(--green);
}

.quiz-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-form__submit {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 20px;
  margin-bottom: 12px;
}

.quiz-form__submit:hover {
  background: var(--green-dark);
}

.quiz-form__hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}

.quiz-form__policy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.60);
}

.quiz-form__policy a {
  color: rgba(255,255,255,.75);
  text-decoration: underline;
}

/* ===================================================================
   16. ПРОСТАЯ ФОРМА ЗАЯВКИ
   =================================================================== */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.contact-form__field {
  margin-bottom: 14px;
}

.contact-form__label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contact-form__textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-form__submit {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: 12px;
}

.contact-form__submit:hover {
  background: var(--green-dark);
}

.contact-form__policy {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.contact-form__policy a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Блок под формой: WA + TG */
.form-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.form-contacts__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.form-contacts__item:hover {
  color: var(--green);
}

.form-contacts__item--wa { color: #25D366; }
.form-contacts__item--tg { color: #2AABEE; }

.form-contacts__hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ===================================================================
   17. ВНУТРЕННИЕ СТРАНИЦЫ — HERO
   =================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a1e 100%);
  padding: 100px var(--container-px) 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-light);
  margin-bottom: 16px;
}

.page-hero__title {
  color: var(--white);
  margin-bottom: 20px;
}

.page-hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,.80);
  margin-bottom: 32px;
  line-height: 1.75;
}

/* bare <h1> без класса внутри page-hero → всегда белый */
.page-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

/* ===================================================================
   18. ТЕКСТОВЫЕ БЛОКИ СЕО
   =================================================================== */
.seo-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.seo-text p + p {
  margin-top: 14px;
}

/* ===================================================================
   19. СПИСКИ С ЖИРНЫМИ КЛЮЧАМИ (только на продажных страницах)
   =================================================================== */
.key-list {
  display: grid;
  gap: 12px;
}

.key-list li {
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.key-list li strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* Обычный список (без жирных ключей) */
.plain-list {
  display: grid;
  gap: 8px;
}

.plain-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.plain-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ===================================================================
   20. КАРТОЧКИ ШАГОВ / ЭТАПОВ
   =================================================================== */
.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.step__body {}

.step__title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.step__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   21. КАРТОЧКИ (универсальные)
   =================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card--alt {
  background: var(--bg-alt);
  border-color: transparent;
}

.card--green {
  background: var(--green-bg);
  border-color: transparent;
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--green-bg);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 14px;
}

.card__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   22. ЦИФРЫ / МЕТРИКИ
   =================================================================== */
.metrics,
.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  background: var(--white);
  padding: 20px;
  text-align: center;
}

.metric__value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.metric__label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ===================================================================
   23. БЛОК "РАБОТАЕМ ТОЛЬКО В РАМКАХ ПРОЕКТА"
   =================================================================== */
.notice {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}

.notice__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.notice__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   24. КАРТА (Яндекс.Карты)
   =================================================================== */
.map-wrap {
  height: 300px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ===================================================================
   25. ФУТЕР
   =================================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-top: 48px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__col--brand {
  grid-column: 1 / -1;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.footer__logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.footer__logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.2;
}

.footer__desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}

.footer__city {
  font-weight: 600;
  color: var(--white);
}

.footer__phone,
.footer__email {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__phone:hover,
.footer__email:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer__social-link:hover {
  opacity: .8;
}

.footer__social-link--wa { color: #25D366; }
.footer__social-link--tg { color: #2AABEE; }

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}

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

.footer__link {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--white);
}

.footer__cities {
  margin-top: 20px;
}

.footer__cities-label {
  font-size: 11px;
  color: rgba(255,255,255,.62);
  margin-bottom: 4px;
}

.footer__cities-list {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

/* Нижняя строка */
.footer__bottom {
  border-top: 0.5px solid rgba(255,255,255,.1);
  padding: 16px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

.footer__policy-link {
  font-size: 12px;
  color: rgba(255,255,255,.60);
  text-decoration: underline;
  transition: color var(--transition);
}

.footer__policy-link:hover {
  color: rgba(255,255,255,.6);
}

/* ===================================================================
   26. АНИМАЦИИ
   =================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Анимации появления (IntersectionObserver) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ===================================================================
   27. DESKTOP — media (min-width: 768px)
   =================================================================== */
@media (min-width: 768px) {
  /* Nav */
  .nav {
    padding: 0 40px;
  }

  .nav__links {
    display: flex;
  }

  .nav__phone {
    display: block;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__burger {
    display: none;
  }

  /* Hero */
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 40px;
    padding: 80px 40px;
  }

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }

  .hero__device-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 340px;
  }

  /* Сегменты */
  .segments__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .segments__item:nth-child(2n) {
    border-right: 0.5px solid var(--border);
  }

  .segments__item:last-child {
    border-right: none;
  }

  /* Услуги */
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Для кого */
  .segments-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Кейсы */
  .cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Почему мы */
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Квиз */
  .quiz-section__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Карточки */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Метрики */
  .metrics,
  .metrics-row {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Карта */
  .map-wrap {
    height: 400px;
  }

  /* Футер */
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__col--brand {
    grid-column: auto;
  }

  /* Шаги */
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1200px) {
  .nav {
    padding: 0 60px;
  }
}

/* ===================================================================
   28. ГЛАВНАЯ СТРАНИЦА — специфические стили
   =================================================================== */

/* Цветные placeholder-фоны для карточек "Для кого" */
.segment-card__img--home {
  background: #EAF5F0;
  color: var(--green);
  flex-direction: column;
  gap: 8px;
}

.segment-card__img--comm {
  background: #EEF2FF;
  color: #4F46E5;
  flex-direction: column;
  gap: 8px;
}

.segment-card__img--ind {
  background: #FEF3C7;
  color: #B45309;
  flex-direction: column;
  gap: 8px;
}

.segment-card__img--home svg,
.segment-card__img--comm svg,
.segment-card__img--ind svg {
  position: static;
  opacity: .6;
}

/* Колонки квиз-секции */
.quiz-section__left {
  padding-top: 4px;
}

.quiz-form__wrap {
  /* Враппер правой колонки — стилизация идёт через .quiz-form */
}

/* Блок внутренней перелинковки */
.internal-links {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 20px 0;
}

.internal-links__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.internal-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.internal-links__link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.internal-links__link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Мобильный quiz-form__row — одна колонка на маленьких экранах */
@media (max-width: 480px) {
  .quiz-form__row {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   СТРАНИЦЫ УСЛУГ — компоненты
   =================================================================== */

/* ---- Page Hero ---- */
.page-hero {
  padding: 120px var(--container-px) 80px;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a1e 100%);
  /* ЗАМЕНИТЬ: реальное фото объекта */
  position: relative;
  overflow: hidden;
}

.page-hero__title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 720px;
}

.page-hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,.80);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 600px;
}

/* ---- Sections ---- */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
}

.section-title {
  margin-bottom: 32px;
}

.section-title--light {
  color: var(--white);
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: -20px;
  margin-bottom: 32px;
}

.section-sub--light {
  color: rgba(255,255,255,.80);
}

/* ---- Content text (SEO intro) ---- */
.content-text p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 800px;
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* ---- Feature List ---- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list__item {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-list__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

.feature-list--bold .feature-list__item {
  color: var(--text);
}

@media (min-width: 768px) {
  .feature-list {
    gap: 14px;
  }
}

/* ---- Cards Grid ---- */
.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid--2 {
  grid-template-columns: 1fr;
}

.cards-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Obj Card (для каких объектов) ---- */
.obj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.obj-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-card);
}

.obj-card__img {
  height: 140px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.obj-card__img--house     { background: linear-gradient(135deg, #e8f5f0, #d4ede5); }
.obj-card__img--commercial { background: linear-gradient(135deg, #e8ecf0, #d4dbe5); }
.obj-card__img--industrial { background: linear-gradient(135deg, #f0ece8, #e5ddd4); }

.obj-card__body {
  padding: 18px;
}

.obj-card__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.obj-card__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.obj-card__link {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.obj-card__link:hover {
  color: var(--green-dark);
}

/* ---- Brand Card ---- */
.brand-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.brand-card__logo-wrap {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand-card__logo-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}

.brand-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.brand-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ---- Steps List ---- */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}

.steps-list__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.steps-list__item:last-child {
  border-bottom: none;
}

.steps-list__num {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-bg);
  line-height: 1;
  min-width: 32px;
}

.steps-list__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.steps-list__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.steps-list--horizontal {
  flex-direction: column;
}

@media (min-width: 768px) {
  .steps-list--horizontal {
    flex-direction: row;
    gap: 0;
  }

  .steps-list--horizontal .steps-list__item {
    flex: 1;
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 0 24px;
  }

  .steps-list--horizontal .steps-list__item:first-child {
    padding-left: 0;
  }

  .steps-list--horizontal .steps-list__item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

/* ---- Advantages List ---- */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.advantage-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.advantage-item__num {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--green-bg);
  line-height: 1;
  min-width: 40px;
}

.advantage-item__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .advantages-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ---- Service Card (виды обслуживания) ---- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Восстанавливаем стили для карточек на главной (перебиты выше) */
.services__grid .service-card {
  padding: 22px;
  border-width: 0.5px;
  min-width: 0;
}

.service-card--featured {
  border-color: var(--green);
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.service-card__title {
  font-size: 16px;
  font-weight: 500;
}

.service-card__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.service-card__badge--green {
  color: var(--green);
  background: var(--green-bg);
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

/* ---- Notice Block ---- */
.notice-block {
  background: var(--bg-alt);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
}

.notice-block--accent {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.notice-block__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.notice-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Info Card ---- */
.info-card {
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.info-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}

.info-card__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 10px;
}

.info-card p,
.info-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Quiz step next button ---- */
.quiz-step__next-btn {
  margin-top: 14px;
}

/* btn-ghost на светлом фоне — контакты-квиз и карточки кейсов */
.contact-quiz-wrap .btn-ghost,
.case-card .btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border);
}
.contact-quiz-wrap .btn-ghost:hover,
.contact-quiz-wrap .btn-ghost:focus-visible,
.case-card .btn-ghost:hover,
.case-card .btn-ghost:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

/* ---- Info Block (цены) ---- */
.info-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 680px;
}

.info-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.info-block p:last-child {
  margin-bottom: 0;
}

.info-block__note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- CTA Form (финальная форма) ---- */
.cta-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .cta-form-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  .cta-form {
    flex: 1;
    max-width: 520px;
  }
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .cta-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Form Elements ---- */
/* BASE = светлый фон (белый / --bg-alt).
   Тёмные секции переопределяют через .section--dark ниже. */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition);
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
}

.form-input option {
  background: var(--white);
  color: var(--text);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 20px;
}

/* Тёмный фон: белые стили форм */
.section--dark .form-label { color: rgba(255,255,255,.80); }
.section--dark .form-input {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: var(--white);
}
.section--dark .form-input::placeholder { color: rgba(255,255,255,.55); }
.section--dark .form-input:focus { border-color: var(--green-light); }
.section--dark .form-input option { background: var(--dark-2); color: var(--white); }

/* ---- Quiz inline (в cta-form) ---- */
/* BASE = светлый фон */
.quiz-step {
  margin-bottom: 20px;
}

.quiz-step__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-option {
  cursor: pointer;
}

.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz-option span {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
}

.quiz-option span:hover {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green-dark);
}

.quiz-option input[type="radio"]:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Тёмный фон: quiz-option */
.section--dark .quiz-step__label { color: rgba(255,255,255,.80); }
.section--dark .quiz-option span {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
}
.section--dark .quiz-option span:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}

/* ---- Button full width ---- */
.btn--full {
  width: 100%;
  margin-top: 8px;
}

/* ---- Form Policy ---- */
/* BASE = светлый фон */
.form-policy {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-policy a,
.form-policy__link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.form-policy a:hover,
.form-policy__link:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

/* Тёмный фон */
.section--dark .form-policy { color: rgba(255,255,255,.60); }
.section--dark .form-policy a,
.section--dark .form-policy__link {
  color: rgba(255,255,255,.78);
  text-decoration-color: rgba(255,255,255,.40);
}
.section--dark .form-policy a:hover,
.section--dark .form-policy__link:hover { color: rgba(255,255,255,.95); }

/* ---- CTA Contacts ---- */
/* BASE = светлый фон */
.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-contacts__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cta-contacts__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.cta-contacts__link:hover {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green-dark);
}

/* #0F6E56 = 5.63:1 на белом ✓ */
.cta-contacts__link--wa { color: var(--green); }
/* #006ba0 = 5.36:1 на белом ✓ */
.cta-contacts__link--tg { color: #006ba0; }

.cta-contacts__note {
  font-size: 13px;
  color: var(--text-muted);
}

.cta-contacts__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Тёмный фон */
.section--dark .cta-contacts__title { color: rgba(255,255,255,.75); }
.section--dark .cta-contacts__link {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: var(--white);
}
.section--dark .cta-contacts__link:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.section--dark .cta-contacts__link--wa { color: #25D366; }
.section--dark .cta-contacts__link--tg { color: #229ED9; }
.section--dark .cta-contacts__note { color: rgba(255,255,255,.65); }
.section--dark .cta-contacts__address { color: rgba(255,255,255,.65); }

/* ---- Text Link (inline) ---- */
.text-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.text-link:hover {
  text-decoration-color: var(--green);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs-wrap {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  padding-top: 20px; /* компенсация fixed nav 60px + 5px визуальный */
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '›';
  margin: 0 8px;
  color: var(--border);
}

.breadcrumbs__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--green);
}

/* ---- Page Hero отступ после breadcrumbs ---- */
.breadcrumbs-wrap + main .page-hero {
  padding-top: 60px;
}

/* ===================================================================
   СТРАНИЦЫ СИСТЕМ — otoplenie, teplyj-pol, dispetcherizaciya
   =================================================================== */

/* ---- Economy Highlight (otoplenie) ---- */
.economy-highlight {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.economy-highlight__num {
  font-size: 64px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
}

.economy-highlight__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.economy-highlight__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .economy-highlight {
    flex-direction: column;
    gap: 16px;
  }

  .economy-highlight__num {
    font-size: 48px;
    min-width: unset;
    text-align: left;
  }
}

/* ---- Scenarios (otoplenie) ---- */
.scenarios-grid {
  display: grid;
  gap: 20px;
}

.scenario-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.scenario-card__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.scenario-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scenario-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .scenarios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Price Cards (otoplenie) ---- */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.price-card--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.price-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.price-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.price-card__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
}

/* ---- Link Block ---- */
.link-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Room Grid (teplyj-pol) ---- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.room-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-card__name {
  font-size: 13px;
  color: var(--text-muted);
}

.room-card__temp {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.room-card__sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.room-card--note {
  background: var(--green-bg);
  border-color: var(--green);
}

.room-card--note .room-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
}

@media (min-width: 480px) {
  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .room-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---- Protocol Cards (dispetcherizaciya) ---- */
.protocol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.protocol-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  font-family: monospace, sans-serif;
  letter-spacing: .03em;
}

.protocol-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- obj-card--highlight ---- */
.obj-card--highlight {
  background: var(--green-bg);
  border-color: var(--green);
}

.obj-card--highlight .obj-card__body {
  padding: 24px;
}

/* ===================================================================
   АДАПТИВ ДЛЯ СТРАНИЦ УСЛУГ
   =================================================================== */
@media (min-width: 768px) {
  .page-hero {
    padding: 100px var(--container-px) 80px;
  }
}

/* ===================================================================
   СТРАНИЦА КЕЙСОВ / PROEKTY
   =================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  color: var(--text);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn--active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.cases-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s;
}

.case-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.case-card__photo {
  position: relative;
}

.case-card__photo-placeholder {
  height: 160px;
  background: var(--bg-alt);
}

.case-card__tags {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.tag {
  background: rgba(255,255,255,.92);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}

.case-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-card__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.case-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.case-card__result {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.case-card__result-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}

.case-card__result-label {
  font-size: 12px;
  color: var(--text-muted);
}

.cases-notice {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Link Card — для перелинковки на proekty и других страницах */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.link-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(15,110,86,.08);
}

.link-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.link-card__sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================================
   О КОМПАНИИ
   =================================================================== */
.about-directions {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-directions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-direction h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green-dark);
}

.about-direction p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.geo-block {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .geo-block {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.geo-address {
  margin: 12px 0 8px;
  font-style: normal;
  font-size: 14px;
  color: var(--text);
}

.geo-cities {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.geo-block__map .map-wrap {
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  font-size: 13px;
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===================================================================
   КОНТАКТЫ
   =================================================================== */
.contacts-block {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contacts-block {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

.contacts-main {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-main__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.contacts-main__row a {
  color: var(--text);
  text-decoration: none;
}

.contacts-main__row a:hover {
  color: var(--green);
}

.contacts-block__map .map-wrap {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Секция квиза на странице контактов */
.contact-quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-quiz-wrap__header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-quiz-wrap__header h2 {
  margin-bottom: 8px;
}

.contact-quiz-wrap__header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.quiz-form-wrap {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}

/* Блок обещания */
.promise-block {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 600px) {
  .promise-block {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promise-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.promise-item__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.promise-item__label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ===================================================================
   ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ
   =================================================================== */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
}

.policy-content h1 {
  margin-bottom: 8px;
}

.policy-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.policy-content h2 {
  font-size: 17px;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 500;
}

.policy-content p,
.policy-content li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-content ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.policy-content address {
  font-style: normal;
}

/* ===================================================================
   СПАСИБО
   =================================================================== */
.spasibo-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.spasibo-block {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spasibo-icon svg {
  display: block;
}

.spasibo-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  margin: 0;
}

.spasibo-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.spasibo-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.spasibo-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}

.spasibo-contact:hover {
  border-color: var(--green);
}

.spasibo-btn {
  margin-top: 8px;
}

/* ===================================================================
   404
   =================================================================== */
.not-found-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.not-found {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.not-found__code {
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -.04em;
  opacity: .15;
  margin: 0;
  user-select: none;
}

.not-found__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin: 0;
}

.not-found__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.not-found__btn {
  margin-top: 4px;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.not-found__links a {
  font-size: 13px;
  color: var(--green);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color var(--transition);
}

.not-found__links a:hover {
  border-color: var(--green);
}

/* ===================================================================
   FAQ
   =================================================================== */
.faq-section {
  padding: 56px 0;
  background: var(--bg-alt);
}

.faq-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 28px;
}

.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-item:first-child {
  border-top: 0.5px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  gap: 16px;
  font-family: inherit;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] {
  color: var(--green);
}

.faq-answer {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-answer[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 80px 0;
  }
}
