/* ============================================
   SECTIONS.CSS — Стили секций страницы
   ============================================ */

/* ==========================================
   ХЕДЕР
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: all 0.4s ease;
  padding: 0;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.header.is-scrolled::before {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  gap: var(--space-xl);
}

/* Логотип */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-blue);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header__logo-text span {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Навигация */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__nav-link {
  position: relative;
  padding: 0.5rem var(--space-md);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-md);
  right: var(--space-md);
  height: 1px;
  background: var(--accent-blue-light);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.header__nav-link:hover {
  color: var(--text-white);
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

/* Правая часть хедера */
.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.header__phone {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

/* Мобильное меню */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__burger.is-open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-open .header__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__burger.is-open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню панель */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-2xl) var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--accent-blue-light);
}

.mobile-menu__phone {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

/* ==========================================
   HERO СЕКЦИЯ
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--container-padding) var(--space-4xl);
}

/* Фоновое фото */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.55) saturate(1.3);
  animation: hero-zoom 10s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* Canvas для анимированного фона */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 2;
}

/* Амбиентные световые пятна */
.hero__ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(100px);
}

.hero__ambient--1 {
  width: 600px;
  height: 600px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  animation: float-ambient 8s ease-in-out infinite;
}

.hero__ambient--2 {
  width: 500px;
  height: 500px;
  bottom: 0;
  right: -50px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  animation: float-ambient 10s ease-in-out infinite reverse;
}

.hero__ambient--3 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: float-ambient 12s ease-in-out infinite 2s;
}

@keyframes float-ambient {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 30px); }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
}

.hero__label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue-light);
  animation: pulse-dot 2s ease infinite;
}

.hero__title {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line--accent {
  background: linear-gradient(135deg, var(--accent-blue-light) 0%, #818CF8 50%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce-scroll 2.5s ease infinite;
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ==========================================
   СЕКЦИЯ ЦИФР
   ========================================== */

.stats {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider);
}

.stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider);
}

.stats__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  z-index: 0;
}

.stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  bottom: 20%;
  width: 1px;
  background: var(--gradient-divider);
}

.stat-item__value {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-item__value .suffix {
  font-size: 0.5em;
  color: var(--accent-amber);
  font-weight: 700;
}

.stat-item__value .prefix-plus {
  font-size: 0.7em;
  color: var(--accent-blue-light);
}

.stat-item__label {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================
   СЕКЦИЯ МЕДИАФАСАДОВ
   ========================================== */

.mediafacades {
  padding: var(--section-padding) 0;
  position: relative;
}

.mediafacades__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.mediafacades__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ==========================================
   СЕКЦИЯ КАРТЫ
   ========================================== */

.map-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.map-section__header {
  margin-bottom: var(--space-3xl);
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

#map {
  height: 550px;
  width: 100%;
  background: #1a1a2e;
}

/* Кастомные попапы Leaflet */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--glow-blue) !important;
  color: var(--text-white) !important;
  font-family: var(--font-body) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
}

.leaflet-popup-tip-container {
  display: none !important;
}

.leaflet-popup-close-button {
  color: var(--text-secondary) !important;
  top: 12px !important;
  right: 12px !important;
  font-size: 18px !important;
}

.map-popup {
  padding: var(--space-lg);
  min-width: 240px;
}

.map-popup__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.map-popup__address {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.map-popup__metrics {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.map-popup__metric {
  flex: 1;
}

.map-popup__metric-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-amber);
  line-height: 1;
}

.map-popup__metric-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* SVG карта запасной вариант */
.svg-map {
  width: 100%;
  height: 550px;
  background: #0d0d1a;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ==========================================
   СЕКЦИЯ КАЛЬКУЛЯТОРА
   ========================================== */

.calculator {
  padding: var(--section-padding) 0;
  position: relative;
}

.calculator__wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.calculator__progress {
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.calc-step-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.calc-step-indicator__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.calc-step-indicator__dot.is-active {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue-light);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.calc-step-indicator__dot.is-done {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--accent-blue-light);
}

.calc-step-indicator__line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  max-width: 60px;
}

.calculator__body {
  padding: var(--space-2xl);
}

.calc-step {
  display: none;
}

.calc-step.is-active {
  display: block;
  animation: fade-in-step 0.3s ease;
}

@keyframes fade-in-step {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.calc-step__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.calc-step__subtitle {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Чекбоксы медиафасадов */
.facade-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.facade-checkbox {
  position: relative;
}

.facade-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.facade-checkbox__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.facade-checkbox__label:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

.facade-checkbox input:checked + .facade-checkbox__label {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.facade-checkbox__name {
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--text-white);
}

.facade-checkbox__grp {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.facade-checkbox__check {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-size: 10px;
  color: white;
}

.facade-checkbox input:checked ~ .facade-checkbox__check {
  opacity: 1;
}

/* Слайдер */
.range-group {
  margin-bottom: var(--space-xl);
}

.range-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.range-label__text {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
}

.range-label__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-medium);
  outline: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-fast);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--glow-blue);
}

.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.range-marks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
}

.range-marks span {
  font-size: 10px;
  color: var(--text-muted);
}

/* Итоговый блок */
.calc-result {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.calc-result__label {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.calc-result__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.calc-result__price span {
  color: var(--accent-amber);
}

.calc-result__disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================
   СЕКЦИЯ КЕЙСОВ
   ========================================== */

.cases {
  padding: var(--section-padding) 0;
}

.cases__filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.cases__grid .case-card:first-child {
  grid-column: span 2;
}

.case-card.is-hidden {
  display: none;
}

/* Клиенты */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-3xl);
}

/* ==========================================
   СЕКЦИЯ ПРЕИМУЩЕСТВ
   ========================================== */

.advantages {
  padding: var(--section-padding) 0;
  position: relative;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ==========================================
   СЕКЦИЯ УСЛУГ
   ========================================== */

.services {
  padding: var(--section-padding) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.service-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.service-block__number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.08);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.05em;
}

.service-block__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.service-block__text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ==========================================
   СЕКЦИЯ ФОРМЫ ОБРАТНОЙ СВЯЗИ
   ========================================== */

.contact-form {
  padding: var(--section-padding) 0;
  position: relative;
}

.contact-form__wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form__box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.contact-form__box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.contact-form__full {
  margin-bottom: var(--space-lg);
}

.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.contact-form__agreement {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex: 1;
}

.contact-form__agreement a {
  color: var(--accent-blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================
   ФУТЕР
   ========================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  text-decoration: none;
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
}

.footer__brand-text {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 260px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: var(--text-small);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: var(--border-medium);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav-link {
  font-size: var(--text-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.8;
}

.footer__nav-link:hover {
  color: var(--text-secondary);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__contact-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__contact-value {
  font-size: var(--text-small);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

a.footer__contact-value:hover {
  color: var(--text-white);
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer__bottom-link {
  font-size: var(--text-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: var(--text-secondary);
}

/* Членства */
.footer__memberships {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.footer__membership {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================
   СВЕТЛАЯ ТЕМА — ПЕРЕОПРЕДЕЛЕНИЯ СЕКЦИЙ
   ========================================== */

/* ===================================================
   СВЕТЛАЯ ТЕМА: ХЕДЕР
   До скролла — прозрачный, тёмный фон hero → текст БЕЛЫЙ
   После скролла (.is-scrolled) — белый фон → текст ТЁМНЫЙ
   =================================================== */

/* ДО СКРОЛЛА: хедер прозрачный, hero-фото тёмное → принудительно белый текст */
[data-theme="light"] .header:not(.is-scrolled) .header__logo-text {
  color: #FFFFFF;
}

[data-theme="light"] .header:not(.is-scrolled) .header__logo-text span {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .header:not(.is-scrolled) .header__nav-link {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .header:not(.is-scrolled) .header__nav-link:hover {
  color: #FFFFFF;
}

[data-theme="light"] .header:not(.is-scrolled) .header__phone {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .header:not(.is-scrolled) .header__burger-line {
  background: #FFFFFF;
}

[data-theme="light"] .header:not(.is-scrolled) .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

/* ПОСЛЕ СКРОЛЛА: светлый стеклянный хедер → тёмный текст */
[data-theme="light"] .header.is-scrolled::before {
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header.is-scrolled .header__logo-text {
  color: var(--text-primary);
}

[data-theme="light"] .header.is-scrolled .header__logo-text span {
  color: var(--text-muted);
}

[data-theme="light"] .header.is-scrolled .header__nav-link {
  color: var(--text-secondary);
}

[data-theme="light"] .header.is-scrolled .header__nav-link:hover,
[data-theme="light"] .header.is-scrolled .header__nav-link.is-active {
  color: var(--accent-blue);
}

[data-theme="light"] .header.is-scrolled .header__phone {
  color: var(--text-secondary);
}

[data-theme="light"] .header.is-scrolled .header__burger-line {
  background: var(--text-primary);
}

[data-theme="light"] .header.is-scrolled .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-secondary);
}

/* Мобильное меню — всегда белое */
[data-theme="light"] .mobile-menu {
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .mobile-menu__link {
  color: var(--text-primary);
  border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .mobile-menu__phone {
  color: var(--text-secondary);
}

/* Hero — поверх тёмного фото текст всегда белый */
[data-theme="light"] .hero__title {
  color: #FFFFFF;
}

[data-theme="light"] .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero__label {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
  color: #93C5FD;
}

/* Stat-item border */
[data-theme="light"] .stat-item {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Membership */
[data-theme="light"] .footer__membership {
  background: rgba(0, 0, 0, 0.04);
}
