/* Arsenal */
@font-face {
  font-family: 'Arsenal';
  src: url('assets/fonts/Arsenal-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arsenal';
  src: url('assets/fonts/Arsenal-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Arsenal';
  src: url('assets/fonts/Arsenal-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arsenal';
  src: url('assets/fonts/Arsenal-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {

  /* Layout */
  --header-h: 72px;
  --section-h: calc(100vh - var(--header-h));
  --section-h: calc(100svh - var(--header-h));

  /* Бренд */
  --color-accent:       #65734a;  /* Matcha — кнопки, акценты */
  --color-primary:      #5C6B4A;  /* Тёмно-оливковый — заголовки, ссылки */
  --color-secondary:    #C8D4B8;  /* Светло-шалфейный — фоны секций */

  /* Текст */
  --color-text:         #2E2E2E;  /* Основной текст */
  --color-text-muted:   #6B6F67;  /* Второстепенный текст */

  /* Фоны */
  --color-bg:           #FFFFFF;  /* Основной фон */
  --color-bg-subtle:    #F2F5EE;  /* Едва зеленоватый фон секций */

  /* Футер */
  --color-surface-dark: #2C3B2A;  /* Forest Dark */

  /* Типографика */
  --font-display: 'Arsenal', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Размеры текста */
  --text-2xs:  11px;   /* лейблы, бейджи */
  --text-xs:   12px;   /* мелкие подписи */
  --text-sm:   13px;   /* вторичный текст */
  --text-md:   14px;   /* навигация, инпуты */
  --text-base: 16px;   /* основной текст */
  --text-lg:   18px;   /* лид, акценты */

  /* Отступы */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  64px;
  --sp-xl:  120px;

  /* Прочее */
  --radius:    8px;
  --transition: 0.22s ease;
}

/* BASE RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg-subtle);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
}

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

img, svg {
  display: block;
}

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

/* SITE HEADER */
.site-header {
  --header-h: 72px;
  position: fixed;
  top: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-10px);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.site-header.scrolled,
.site-header.nav-open {
  background: var(--color-bg-subtle);
  border-bottom-color: rgba(168, 190, 160, 0.2);
  box-shadow: 0 4px 24px rgba(42, 47, 37, 0.08);
}

/* Элементы шапки — белые поверх hero */
.site-header:not(.scrolled):not(.nav-open) .header-nav a,
.site-header:not(.scrolled):not(.nav-open) .header-phone {
  color: rgba(255, 255, 255, 0.85);
}

.site-header:not(.scrolled):not(.nav-open) .header-nav a:hover,
.site-header:not(.scrolled):not(.nav-open) .header-phone:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header:not(.scrolled):not(.nav-open) .header-logo img,
.site-header:not(.scrolled):not(.nav-open) .header-messengers img {
  filter: brightness(0) invert(1);
}

.site-header:not(.scrolled):not(.nav-open) .header-messengers a {
  opacity: 0.75;
}

/* Страницы без hero (нет тёмного видео под шапкой) — шапка всегда в «прокрученном» виде, независимо от scroll-класса */
body.no-hero .site-header {
  background: var(--color-bg-subtle) !important;
  border-bottom-color: rgba(168, 190, 160, 0.2) !important;
  box-shadow: 0 4px 24px rgba(42, 47, 37, 0.08) !important;
  opacity: 1 !important;
  transform: none !important;
}

body.no-hero .site-header .header-nav a,
body.no-hero .site-header .header-phone {
  color: var(--color-text-muted) !important;
}

body.no-hero .site-header .header-logo img,
body.no-hero .site-header .header-messengers img {
  filter: none !important;
}

body.no-hero .site-header .burger-line {
  background: var(--color-text) !important;
}

.site-header:not(.scrolled):not(.nav-open) .burger-line {
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  gap: 24px;
}

/* Логотип */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 36px;
  width: auto;
}

/* Навигация */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-left: 20px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

/* Правая группа */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Телефон + мессенджеры */
.header-contacts {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.header-phone {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

.header-messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.header-messengers a:hover {
  opacity: 1;
}

.header-messengers img {
  width: 20px;
  height: 20px;
}

/* Разделитель */
.header-divider {
  width: 1px;
  height: 20px;
  background: var(--color-text-muted);
}

/* CTA кнопка */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.4s ease, opacity 0.4s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--color-accent);
  opacity: 0.85;
}

/* Бургер */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--color-text);
  transition: color var(--transition);
}

.header-burger:hover {
  color: var(--color-text);
}

.burger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Состояние открытого меню */
.site-header.nav-open .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.nav-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Мобильная навигация */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid rgba(168, 190, 160, 0.2);
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  z-index: 190;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(42, 47, 37, 0.1);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(168, 190, 160, 0.2);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-nav a:last-of-type {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--color-text);
  padding-left: var(--sp-xs);
}

.mobile-nav-contacts {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding-top: var(--sp-sm);
}

.mobile-nav-phone {
  font-size: var(--text-md);
  color: var(--color-text);
  font-weight: 400;
  flex: 1;
}

.mobile-nav-messengers {
  display: flex;
  gap: 12px;
}

.mobile-nav-messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  border-bottom: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  transition: opacity var(--transition);
}

.mobile-nav-messengers a:hover {
  opacity: 0.8;
  padding-left: 0 !important;
}

.mobile-nav-messengers img {
  width: 20px;
  height: 20px;
}

.mobile-nav .btn-cta {
  margin-top: var(--sp-sm);
  display: flex;
  justify-content: center;
  color: var(--color-bg);
}

/*
   HERO — Split layout
 */
.hero {
  --color-text: #fff;
  --color-text-muted: #fff;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Градиент снизу вверх */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,
      rgba(0, 0, 0, 0.38) 0%,
      transparent 100%
    );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

/* Анимации появления */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in"] {
  opacity: 0;
  transition: opacity 1.2s ease 0.5s;
}

[data-animate="fade-in"].is-visible {
  opacity: 1;
}

/* Текстовый блок — центр, занимает всё свободное пространство */
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Нижняя панель — frosted glass полоса во всю ширину */
.hero-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 64px;
}


.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-title-logo {
  display: block;
  line-height: 0;
}

.hero-title-logo img {
  height: clamp(80px, 13vw, 160px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--color-text);
  max-width: 600px;
  line-height: 1.65;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* CTA */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 16px 36px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.hero-cta-primary:hover {
  background: #6a7850;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.hero-cta-primary:active {
  transform: translateY(0);
}

/* Статистика — в нижней полосе слева */
.hero-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  text-align: left;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-affix {
  font-weight: 300;
  font-size: 0.62em;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.hero-stat-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.4;
  white-space: nowrap;
}

.hero-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}


/* ══════════════════════════════════════
   HERO — Cinematic Reveal + Parallax
   ══════════════════════════════════════ */

/* Тёмный занавес поверх всего */
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #09090a;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-curtain.is-lifted { opacity: 0; }

/* Letterbox-полосы (кино-формат) */
.hero-lb {
  position: absolute;
  left: 0; right: 0;
  z-index: 8;
  background: #09090a;
  pointer-events: none;
}
.hero-lb--top {
  top: 0;
  height: 10vh;
  transform-origin: top center;
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1) 0.1s;
}
.hero-lb--bottom {
  bottom: 0;
  height: 10vh;
  transform-origin: bottom center;
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1) 0.1s;
}
.hero-lb--top.is-open    { transform: scaleY(0); }
.hero-lb--bottom.is-open { transform: scaleY(0); }

/* Видео: старт с лёгким zoom, раскрывается вместе с занавесом */
.hero-video {
  transform: scale(1.08);
  transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero.is-revealed .hero-video { transform: scale(1); }

/* hero-inner: параллакс (управляется JS) */
.hero-inner { will-change: transform; }

/* Word-reveal: каждое слово выезжает снизу */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hw-i {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
.hw.up .hw-i { transform: translateY(0); }


/* Подзаголовок и CTA */
.hero-sub,
.hero-cta-primary {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-sub.up,
.hero-cta-primary.up {
  opacity: 1;
  transform: translateY(0);
}

/* Нижняя панель */
.hero-bottom {
  opacity: 1;
  transform: none;
}

/* Статистики */
.hero-stat {
  opacity: 1;
  transform: none;
}

/* Reduced motion — всё сразу без анимаций */
@media (prefers-reduced-motion: reduce) {
  .hero-curtain, .hero-lb { display: none; }
  .hero-video { transform: scale(1); transition: none; }
  .hw-i { transform: none; transition: none; }
  .hero-sub, .hero-cta-primary, .hero-stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* HERO АДАПТИВ */

/* Планшет */
@media (max-width: 1024px) {
  .hero-inner {
    padding: 40px 40px;
  }
}

/* Планшет вертикально */
@media (max-width: 768px) {
  .hero-inner {
    padding: 40px 32px;
  }

  .hero-title-logo img {
    height: clamp(70px, 14vw, 110px);
  }

  .hero-title-sub {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    max-width: 480px;
  }

  .hero-bottom-inner {
    padding: 12px 24px;
    justify-content: center;
  }

  .hero-bottom-actions {
    width: 100%;
  }

  .hero-cta-primary {
    width: 100%;
    justify-content: center;
  }

  /* На мобильном статы вырываются из бара — висят над видео */
  .hero-stats {
    position: absolute;
    bottom: calc(100% + 16px); /* над .hero-bottom */
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    z-index: 3;
  }

  .hero-stat {
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    margin: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5), 0 2px 24px rgba(0, 0, 0, 0.3);
  }

  .hero-stat:first-child {
    border-left: none;
    padding-left: 0;
  }

  .hero-stat-value {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    white-space: nowrap;
    color: var(--color-text);
  }

  .hero-stat-affix {
    color: var(--color-text-muted);
  }

  .hero-stat-label {
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
  }
}

/* Мобильный */
@media (max-width: 600px) {
  .hero-inner {
    padding: 32px 24px;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-cta-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-sub {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    margin-bottom: 18px;
    max-width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-stat {
    padding: 0;
    align-items: center;
    border: none;
    margin: 0;
  }
}

/* АДАПТИВ */

/* Планшет: прячем навигацию, включаем бургер, правая группа остаётся */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 var(--sp-md);
  }

  .header-nav {
    display: none;
  }

  .header-burger {
    display: flex;
    margin-left: auto;
  }
}

/* Маленький планшет: убираем телефон-текст */
@media (max-width: 640px) {
  .header-phone {
    display: none;
  }
}

/* Мобильный: убираем правую группу целиком, CTA переезжает в Hero */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 24px;
  }

  .header-right {
    display: none;
  }
}

/*
   MASTERPLAN / ГЕНПЛАН
 */
/* MASTERPLAN */
.masterplan {
  position: relative;
  background: var(--color-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--section-h);
}

/* Текст поверх акцентного фона */
.masterplan {
  --color-text: #fff;
  --color-text-muted: #fff;
}

.masterplan::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* Общие компоненты секций */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/*   Инвестиционный потенциал
*/

.invest {
  position: relative;
  background: var(--color-bg-subtle);
  min-height: var(--section-h);
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .invest {
    min-height: 600px;
  }
}

.invest::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.invest-inner {
  position: relative;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}



.invest .section-subtitle {
  font-size: 16px;
}

/* Единый shadcn-style таб площади */
.invest-area-tabs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}

.invest-area-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 6px;
  background: var(--color-accent);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: transform, width;
}

.invest-area-tab {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.invest-area-tab.active {
  color: #fff;
}

.invest-area-tab:not(.active):hover {
  color: var(--color-text);
}

/* Split-screen */
.invest-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Общие стили колонки */
.invest-split-col {
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  border: 1px solid rgba(94, 107, 74, 0.12);
}

/* Рента */
.invest-split-col--renta {
  background: var(--color-bg);
}

/* Капитализация */
.invest-split-col--capital {
  background: var(--color-bg);
}

/* Надзаголовок колонки */
.invest-split-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invest-split-col--renta .invest-split-eyebrow {
  color: var(--color-text);
}

.invest-split-col--capital .invest-split-eyebrow {
  color: var(--color-text);
}

/* Разделитель */
.invest-divider {
  height: 1px;
  width: 100%;
}

.invest-split-col--renta .invest-divider {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.invest-split-col--capital .invest-divider {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* Блок с числом */
.invest-number-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.invest-number-label {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.invest-split-col--renta .invest-number-label {
  color: var(--color-text);
}

.invest-split-col--capital .invest-number-label {
  color: var(--color-text);
}

.invest-number-main {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.invest-split-col--renta .invest-number-main {
  color: var(--color-primary);
}

.invest-split-col--capital .invest-number-main {
  color: var(--color-primary);
}

.invest-number-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.invest-split-col--renta .invest-number-sub {
  color: var(--color-text-muted);
}

.invest-split-col--capital .invest-number-sub {
  color: var(--color-text-muted);
}

/* Анимация смены цифр */
.invest-number--out {
  opacity: 0;
  transform: translateY(6px);
}


/* Примечание */
.invest-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid rgba(94, 107, 74, 0.12);
  border-radius: 8px;
  padding: 10px 16px;
}

.invest-note svg {
  flex-shrink: 0;
  align-self: center;
  opacity: 0.45;
}

.invest-note p {
  margin: 0;
  font-size: var(--text-sm);
}

.cmp-note {
  width: 100%;
  box-sizing: border-box;
  margin: auto 0 0;
  background: var(--color-bg-subtle);
  padding: 8px 12px;
}

.cmp-card-info .cmp-finance-inner {
  margin-top: 0;
}

.cmp-note p {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.invest-disclaimer {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* Диаграмма инвестиций */
.invest-diagram {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: 0;
  row-gap: 0;
  align-items: stretch;
}

.invest-diag-entry {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.invest-diag-entry .invest-diag-price {
  margin-top: 0;
}

.invest-diag-entry .invest-diag-name {
  font-size: 28px;
}

.invest-diag-entry .invest-diag-price {
  font-size: 56px;
}

.invest-diag-entry .invest-diag-sub {
  font-size: var(--text-md);
}

.invest-diag-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.invest-diag-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.invest-diag-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 4px 0 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.invest-diag-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 2px 0 0;
}

.invest-diag-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0 8px;
}

.invest-diag-svg {
  width: 64px;
  height: 64px;
  color: var(--color-accent);
  transform: rotate(90deg);
}

.invest-diag-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invest-diag-mobile-icon {
  display: none;
}

.invest-diag-col {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.invest-diag-col-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 4px;
}

.invest-diag-col-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #fff;
  margin: 0;
}

.invest-diag-col-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.invest-diag-col-price-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.invest-diag-col-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 4px 0 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.invest-diag-col-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 2px 0 0;
}


@media (max-width: 768px) {
  /* Секция: убираем фиксированную высоту, добавляем паддинг */
  .invest {
    min-height: 0;
    padding: 32px 0;
    align-items: flex-start;
  }

  .invest-inner {
    padding: 0 16px;
    gap: 10px;
    width: 100%;
  }

  /* Табы на всю ширину */
  .invest-area-tabs {
    width: 100%;
  }

  .invest-area-tab {
    flex: 1;
    padding: 5px 14px;
    font-size: var(--text-xs);
  }

  /* Карточки в стопку */
  .invest-split {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .invest-split-col {
    padding: 14px 16px;
    gap: 8px;
  }

  /* Уменьшаем главную цифру */
  .invest-number-main {
    font-size: 28px;
  }

  /* Заголовок карточки */
  .invest-split-eyebrow {
    font-size: var(--text-xs);
  }

  /* Примечание на всю ширину */
  .invest-note {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
  }

  .invest-note p {
    font-size: var(--text-xs);
  }

  /* Диаграмма: стопка на мобильном */
  .invest-diagram {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .invest-diag-connector {
    display: none;
  }

  .invest-diag-mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
  }

  .invest-diag-mobile-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
  }

  .invest-diag-entry {
    padding: 16px;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
  }

  .invest-diag-name,
  .invest-diag-entry .invest-diag-name {
    font-size: 15px;
  }

  .invest-diag-price,
  .invest-diag-entry .invest-diag-price {
    font-size: 28px;
  }

  .invest-diag-sub,
  .invest-diag-entry .invest-diag-sub {
    font-size: var(--text-xs);
  }

  .invest-diag-right {
    gap: 8px;
  }

  .invest-diag-col {
    padding: 14px 16px;
    gap: 3px;
  }

  .invest-diag-col-eyebrow {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .invest-diag-col-price {
    font-size: 26px;
  }

  .invest-diag-col-price-note {
    font-size: var(--text-xs);
  }

  .invest-diag-col-sub {
    font-size: var(--text-xs);
  }
}

/* Masterplan: layout */
.masterplan-left {
  position: relative;
  overflow: hidden;
  min-height: var(--section-h);
}

.masterplan-right {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masterplan {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: stretch;
}

.mp-content {
  padding: 50px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-heading--center {
  text-align: center;
  margin: 0 auto;
}


.mp-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-stat {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.mp-stat + .mp-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}


.mp-stat-num {
  font-family: 'Arsenal', serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 140px;
}

.mp-stat-unit {
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
}

.mp-stat-desc {
  font-family: 'Arsenal', serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  text-align: right;
  max-width: 260px;
  margin-left: auto;
}

.mp-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.mp-feature + .mp-feature {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mp-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.mp-feature-text {
  font-family: 'Arsenal', serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}

.mp-genplan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 24px;
  background: #fff;
  color: #2E2E2E;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.4s ease, opacity 0.4s ease;
  white-space: nowrap;
}

.mp-genplan-btn:hover {
  opacity: 0.88;
}

/* Masterplan: слайдер */
.mp-slider {
  position: absolute;
  inset: 0;
}

.mp-slider-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mp-slider-viewport::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.mp-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.mp-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: none;
  background: #fff;
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.mp-slider-btn:hover {
  opacity: 0.85;
}

.mp-slider-prev { left: 16px; }
.mp-slider-next { right: 16px; }

.mp-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.mp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.mp-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

@media (max-width: 1180px) {
  .masterplan .section-title {
    font-size: 28px;
  }

  .masterplan .section-subtitle {
    font-size: 16px;
  }

  .mp-content {
    padding: 0 32px;
    gap: 16px;
  }

  .mp-stat-num {
    font-size: 32px;
  }

  .mp-stat-desc {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .mp-title { font-size: 28px; }

  .masterplan {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .masterplan-right {
    order: 2;
    flex-shrink: 0;
    height: auto;
  }

  .masterplan-left {
    order: 1;
    flex: none;
    height: 55vw;
    min-height: 260px;
    position: relative;
  }

  .mp-slider {
    position: absolute;
    inset: 0;
  }

  .mp-content {
    padding: 36px 24px 32px;
    gap: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .mp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mp-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 14px;
    border-top: none;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
  }

  .mp-stat + .mp-stat {
    border-top: none;
  }

  .mp-stat-num {
    font-size: 28px;
    min-width: unset;
  }

  .mp-stat-desc {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text);
    text-align: left;
    margin-left: 0;
  }

  .mp-feature {
    gap: 12px;
    padding: 12px 0;
  }

  .mp-feature-text {
    font-size: 14px;
    padding-top: 6px;
  }
}

@media (max-width: 480px) {
  .masterplan-left {
    height: 56vw;
    min-height: 220px;
  }

  .mp-content {
    padding: 28px 16px 24px;
  }

  .section-title {
    font-size: 26px;
  }

  .mp-stat-num {
    font-size: 26px;
  }
}

/*   Локация — «Один ключ — весь Алтай»
*/

.location {
  position: relative;
  background: var(--color-bg);
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  min-height: var(--section-h);
}

/* Левая: карта */
.location-left {
  position: relative;
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Правая: контент */
.location-right {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-content {
  padding: 0 52px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-height: 800px) {
  .loc-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Карточки */
.loc-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.loc-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(94, 107, 74, 0.12);
}

.loc-card:last-child {
  border-bottom: none;
}

.loc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
  align-self: center;
}

.loc-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.loc-card-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.loc-card-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.location .invest-note {
  background: var(--color-bg-subtle);
}

/* Плашки расстояний */
.loc-distances {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.loc-distance {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.loc-distance-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
}

.loc-distance-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}


/* Адаптив */
@media (max-width: 1100px) {
  .loc-content {
    padding: 0 36px 0 32px;
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .location {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .location-left {
    order: 2;
    height: 60vw;
    min-height: 280px;
  }

  .location-right {
    order: 1;
    height: auto;
  }

  .loc-content {
    padding: 36px 32px 32px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .loc-content {
    padding: 36px 24px 32px;
    gap: 20px;
  }

  .loc-card-desc {
    font-size: 14px;
  }

  .loc-distances {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .location-left {
    height: 70vw;
    min-height: 240px;
  }

  .loc-content {
    padding: 28px 16px 24px;
  }

  .loc-card {
    gap: 12px;
    padding: 14px 0;
  }
}

/* Видео о проекте */

.video-section {
    position: relative;
    background: var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 40px;
    gap: 48px;
}

.video-section {
    --color-text: #fff;
    --color-text-muted: #fff;
}

.video-section .section-heading {
    width: 100%;
    max-width: 1200px;
}

.video-media {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.video-player:hover:not(.is-playing) {
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.video-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    background: #fff;
    color: #2E2E2E;
    font-family: var(--font-body);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.4s ease, opacity 0.4s ease;
}

.video-cta:hover {
    opacity: 0.88;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-native:not([hidden]) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.video-play-btn::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.video-play-btn svg {
    position: relative;
    color: #fff;
    z-index: 1;
}

.video-player:hover .video-play-btn::before {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.04);
}


/* Плейлист видео */
.video-playlist {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.video-playlist::-webkit-scrollbar {
    width: 4px;
}
.video-playlist::-webkit-scrollbar-track { background: transparent; }
.video-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.vpl-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--color-bg);
    border: 1px solid rgba(94, 107, 74, 0.12);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.vpl-item.is-active {
    background: #141212;
    border-color: #141212;
}

.vpl-item.is-active .vpl-label {
    color: #fff;
}

.vpl-item.is-active .vpl-sub {
    color: rgba(255, 255, 255, 0.6);
}

.vpl-item--stub {
    opacity: 0.45;
    cursor: default;
}

.vpl-thumb {
    position: relative;
    width: 128px;
    min-width: 128px;
    height: 72px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.vpl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vpl-thumb--stub {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

.vpl-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border-radius: 5px;
}

.vpl-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.vpl-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #2E2E2E;
    line-height: 1.3;
    white-space: normal;
}

.vpl-sub {
    font-family: var(--font-body);
    font-size: 11px;
    color: #6B6F67;
    letter-spacing: 0.04em;
}

/* Каталог таунхаусов */

.catalog {
    position: relative;
    background: var(--color-bg);
    min-height: var(--section-h);
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
  .catalog {
    min-height: 600px;
  }
}

.catalog-inner {
    position: relative;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}


/* Общие табы */
.cmp-tabs-wrap {
    max-width: 1200px;
    margin: 0 auto 0;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.cmp-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-radius: 8px;
}

.cmp-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: 6px;
    background: var(--color-accent);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    will-change: transform, width;
}

.cmp-tab {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: 7px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.cmp-tab::after {
    content: none;
}

.cmp-tab.is-active {
    color: #fff;
}

.cmp-tab.is-active::after {
    transform: scaleX(1);
}

.cmp-tab:not(.is-active):hover {
    color: var(--color-text);
}

.cmp-tab + .cmp-tab {
    margin-left: 0;
}

.cmp-tab + .cmp-tab::before {
    content: none;
}

/* Сетка двух карточек */
.cmp-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Карточка: две колонки */
.cmp-card {
    display: none;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    border: 1px solid rgba(94, 107, 74, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg);
    height: 475px;
}

.cmp-card.is-active {
    display: grid;
}


.cmp-feats-eyebrow {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-text-muted);
}

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

.cmp-feats-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-feats-list span {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-text);
}

.cmp-feats-list strong {
    font-weight: 600;
}

/* Медиа (центр) */
.cmp-card-media {
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(94, 107, 74, 0.1);
    overflow: hidden;
}

/* Мини-табы переключения фото/планировок внутри карточки — плавают поверх слайдера */
.cmp-pane-tabs {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
    z-index: 3;
}

.cmp-pane-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: 6px;
    background: var(--color-accent);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    will-change: transform, width;
}

.cmp-pane-tab {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: 7px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.cmp-pane-tab.is-active {
    color: #fff;
}

.cmp-pane-tab:not(.is-active):hover {
    color: var(--color-text);
}


/* Коммерция (правый бок) */
.cmp-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--color-bg);
}

.cmp-card-desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--color-text-muted);
}

.cmp-divider {
    border: none;
    border-top: 1px solid rgba(94, 107, 74, 0.08);
}

.cmp-feats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmp-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    padding: 2px 6px;
    border-radius: 2px;
    margin-bottom: 0;
}

.cmp-badge--premium {
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.cmp-unit-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmp-unit-heading-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.cmp-unit-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1;
}

.cmp-unit-sub {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}


.cmp-pane {
    display: none;
    height: 100%;
}

.cmp-pane.is-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Слайдер */
.cmp-slider {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.cmp-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.cmp-slide {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.cmp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cmp-slider::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.cmp-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.cmp-slider-btn:hover { opacity: 1; }
.cmp-prev { left: 12px; }
.cmp-next { right: 12px; }

.cmp-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.cmp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.cmp-dot.is-active {
    background: #fff;
    transform: scale(1.5);
}

/* Планировка */
.cmp-floor {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Кнопка "открыть на весь экран" поверх слайдера/планировки */
.cmp-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    transition: background var(--transition), transform var(--transition);
    z-index: 3;
    pointer-events: auto;
}

.cmp-fullscreen-btn:hover {
    background: #fff;
    transform: scale(1.06);
}

.cmp-floor img {
    flex: 1;
    width: 100%;
    object-fit: contain;
    min-height: 0;
    background: var(--color-bg-subtle);
}


.cmp-check {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* Финплашка */
.cmp-finance-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
}


.cmp-finance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.cmp-finance-divider {
    height: 1px;
    background: rgba(94, 107, 74, 0.1);
}

.cmp-finance-label {
    font-family: var(--font-body);
    font-size: var(--text-2xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.cmp-finance-val {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

/* CTA */
.cmp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius);
    text-decoration: none;
    transition: opacity var(--transition);
    text-align: center;
}

.cmp-cta:hover { opacity: 0.85; }

.cmp-cta--premium {
    background: var(--color-accent);
}

/* Lightbox */
.cat-lb {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(9, 9, 10, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cat-lb:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.cat-lb[hidden] {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

.cat-lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.cat-lb-close:hover { background: rgba(255,255,255,0.2); }

.cat-lb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 90vw;
    max-height: 90vh;
}

.cat-lb-img {
    max-width: min(900px, 90vw);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ══════════════════════════════════════
   Модальное окно с формой заявки
   ══════════════════════════════════════ */

.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lead-modal:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.lead-modal[hidden] {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

.lead-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 10, 0.6);
}

.lead-modal-dialog {
    position: relative;
    background: var(--color-bg);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12);
    width: 880px;
    max-width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.lead-modal-dialog .contacts-form {
    padding: 40px;
    overflow-y: auto;
}

.lead-modal-media {
    position: relative;
}

.lead-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lead-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--color-bg-subtle);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lead-modal-close:hover {
    background: rgba(94, 107, 74, 0.15);
}

@media (max-width: 720px) {
    .lead-modal-dialog {
        grid-template-columns: 1fr;
    }

    .lead-modal-media {
        display: none;
    }
}

@media (max-width: 480px) {
    .lead-modal-dialog .contacts-form {
        padding: 24px 20px;
    }
}

.cat-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.cat-lb-nav:hover { background: rgba(255,255,255,0.2); }
.cat-lb-nav.is-hidden { display: none; }
.cat-lb-prev { left: 24px; }
.cat-lb-next { right: 24px; }

/*
   FOOTER
 */
.site-footer {
  background: var(--color-text);
  padding: 20px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-logo {
  opacity: 0.8;
  filter: brightness(10);
  height: 52px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: #fff;
  opacity: 0.6;
}

.footer-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.35;
  margin-bottom: 2px;
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  margin-left: 40px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-contacts {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
}

.footer-phone {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.footer-phone:hover {
  color: #fff;
}

.footer-address {
  font-family: var(--font-body);
  font-size: 13px;
  color: #fff;
  opacity: 0.5;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  justify-content: flex-end;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.5;
  transition: opacity 0.2s;
}


.footer-socials a:hover {
  opacity: 1;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  width: 100%;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(253, 250, 246, 0.08);
  font-family: var(--font-body);
  font-size: 12px;
  color: #fff;
  opacity: 0.4;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.footer-legal-link:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 0 24px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    align-items: flex-start;
    align-self: center;
    margin-left: 0 !important;
    gap: 24px;
  }

  .footer-nav-col {
    align-items: center;
    gap: 10px;
  }

  .footer-contacts {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: 0 16px;
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 16px;
  }

  .footer-nav-col {
    align-items: center;
    gap: 10px;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-phone {
    font-size: 18px;
  }
}

/* Адаптив: video-section */
@media (max-width: 768px) {
  .video-section {
    padding: 48px 24px 0;
    gap: 28px;
    overflow: hidden;
  }

  .video-section .section-heading {
    text-align: left;
  }

  .video-section .section-heading--center {
    text-align: left;
  }

  .video-media {
    grid-template-columns: 1fr;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding: 0;
    gap: 0;
  }

  .video-playlist {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 12px 24px;
    gap: 8px;
    height: auto;
  }

  .vpl-item {
    flex: none;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 10px;
    gap: 12px;
  }

  .vpl-thumb {
    width: 96px;
    min-width: 96px;
    height: 54px;
  }

  .video-play-btn::before {
    width: 52px;
    height: 52px;
  }

}

/* ══════════════════════════════════════
   Адаптив: catalog
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .catalog {
    min-height: 0;
    padding: 32px 0;
    align-items: flex-start;
  }

  .catalog-inner {
    padding: 0 16px;
    max-width: 100%;
  }

  .cmp-tabs-wrap {
    padding: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .cmp-tabs {
    display: flex;
    width: 100%;
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
  }

  .cmp-tab {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 5px 14px;
  }

  .cmp-grid {
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: row;
  }

  .cmp-card {
    height: auto;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .cmp-card-media {
    border-right: none;
    border-bottom: 1px solid rgba(94, 107, 74, 0.1);
    min-height: 180px;
    max-height: 220px;
    order: -1;
  }

  .cmp-pane-tabs {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px;
  }

  .cmp-pane-tab {
    font-size: 11px;
    padding: 5px 10px;
  }

  .cmp-card-info {
    padding: 12px 16px;
    gap: 6px;
  }

  .cmp-unit-heading {
    gap: 8px;
    align-items: center;
  }

  .cmp-unit-title {
    font-size: 26px;
  }

  .cmp-unit-sub {
    display: none;
  }

  .cmp-feats {
    gap: 6px;
  }

  .cmp-feats-list {
    gap: 6px;
  }

  .cmp-finance-row {
    padding: 3px 0;
  }

  .cmp-divider {
    margin: 0;
  }

}

@media (max-width: 480px) {
  .video-section {
    padding: 40px 16px 0;
    gap: 20px;
  }

  .video-media {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .video-playlist {
    padding: 10px 16px;
  }

  .video-play-btn::before {
    width: 44px;
    height: 44px;
  }

  .catalog-inner {
    padding: 0 12px;
  }

  .cmp-card-info {
    padding: 16px;
  }
}

/* Доверительное управление */
.mgmt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: var(--sp-xl) var(--sp-lg);
  min-height: var(--section-h);
  background: var(--color-bg-subtle);
}

@media (max-height: 800px) {
  .mgmt {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ЯРУС 1 */
.mgmt-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  text-align: center;
}

/* ЯРУС 2: Таймлайн */
.mgmt-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 1200px;
  position: relative;
}

/* Горизонтальная линия через все кружки */
.mgmt-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(10%);
  right: calc(10%);
  height: 1px;
  background: rgba(94, 107, 74, 0.25);
}

.mgmt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 20px;
  position: relative;
}

.mgmt-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  border: 1.5px solid rgba(94, 107, 74, 0.35);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.mgmt-step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mgmt-step-title {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.mgmt-step-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ЯРУС 3: Метрики */
.mgmt-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
}

.mgmt-metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  background: var(--color-accent);
  border-radius: var(--radius);
}

.mgmt-metric-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.15;
}

.mgmt-metric-unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-bg);
  vertical-align: middle;
}

.mgmt-metric-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-bg);
  line-height: 1.6;
}

/* Сноска + CTA */
.mgmt-footer {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-md);
  width: 100%;
  max-width: 1200px;
  padding-top: var(--sp-sm);
  border-top: 1px solid rgba(94, 107, 74, 0.12);
}

.mgmt-legal {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.mgmt-legal svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

/* Адаптив: 1024px — планшет горизонтальный */
@media (max-width: 1024px) {
  .mgmt {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "offer"
      "steps"
      "metrics"
      "footer";
    align-items: center;
    row-gap: 40px;
    padding: var(--sp-lg) var(--sp-md);
  }

  .mgmt-offer {
    grid-area: offer;
    max-width: 100%;
  }

  .mgmt-steps {
    grid-area: steps;
    grid-template-columns: 1fr;
    max-width: 560px;
    min-height: 0;
    gap: 0;
  }

  .mgmt-steps::before {
    display: none;
  }

  .mgmt-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    position: relative;
  }

  .mgmt-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 54px;
    bottom: -14px;
    left: 19px;
    width: 1px;
    background: rgba(94, 107, 74, 0.25);
  }

  .mgmt-metrics {
    grid-area: metrics;
    grid-template-columns: 1fr;
    min-height: 0;
    align-content: center;
    gap: 10px;
  }

  .mgmt-metric {
    padding: 20px 22px;
  }

  .mgmt-metric-headline {
    font-size: 26px;
  }

  .mgmt-footer {
    grid-area: footer;
  }

}

/* Адаптив: 768px — планшет вертикальный */
@media (max-width: 768px) {
  .mgmt-offer {
    max-width: 100%;
  }

  .mgmt-metrics {
    grid-template-columns: 1fr;
  }

  .mgmt-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-sm);
  }

  .mgmt-footer .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .mgmt-legal {
    max-width: 100%;
  }
}

/* Адаптив: 640px — мобайл */
@media (max-width: 640px) {
  .mgmt {
    height: auto;
    padding: 32px 16px;
    gap: 24px;
  }


  .mgmt-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mgmt-steps::before {
    display: none;
  }

  .mgmt-steps::after {
    display: none;
  }

  /* Вертикальная линия: от центра кружка вниз до следующего */
  .mgmt-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 10px 0;
    padding-left: 0;
    position: relative;
  }

  .mgmt-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 38px;
    bottom: -10px;
    left: 13px;
    width: 1px;
    background: rgba(94, 107, 74, 0.25);
  }

  .mgmt-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
  }

  .mgmt-step-title {
    font-size: var(--text-sm);
  }

  .mgmt-step-desc {
    font-size: var(--text-xs);
  }

  .mgmt-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mgmt-metric-headline {
    font-size: 22px;
  }
}

/* ══════════════════════════════════════
   Надёжность застройщика и технология
   ══════════════════════════════════════ */

.developer {
  background: var(--color-accent);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
  min-height: var(--section-h);
  display: flex;
}

@media (max-width: 1024px) {
  .developer {
    min-height: 600px;
  }
}


.developer-inner {
  position: relative;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 1;
}

.developer .section-eyebrow {
  color: var(--color-secondary);
  opacity: 0.75;
}

.developer .section-title {
  color: #F2F5EE;
}

.developer .section-subtitle {
  color: rgba(242, 245, 238, 0.58);
}

/* Bento-сетка */
.developer-collage {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "a photo c"
    "b photo d";
  gap: 10px;
  flex: 1;
}

.dev-card--a { grid-area: a; }
.dev-card--b { grid-area: b; }
.dev-card--c { grid-area: c; }
.dev-card--d { grid-area: d; }
.dev-photo-wrap { grid-area: photo; }

/* Карточки */
.dev-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-bg-subtle);
  border: 1px solid rgba(94, 107, 74, 0.12);
  box-shadow: 0 2px 12px rgba(44, 59, 42, 0.08);
  border-radius: 12px;
  transition: background var(--transition), border-color var(--transition);
}

.dev-card:hover {
  background: var(--color-bg);
  border-color: rgba(94, 107, 74, 0.25);
}

.dev-card-num {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(242, 245, 238, 0.3);
  align-self: flex-start;
}

.dev-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(94, 107, 74, 0.1);
  color: var(--color-primary);
}

.dev-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.dev-card-text {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Центральное фото */
.dev-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.dev-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.dev-photo-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dev-photo-badge-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F2F5EE;
}

.dev-photo-badge-label {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  opacity: 0.7;
}

/* ══════════════════════════════════════
   Адаптив: developer
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .developer-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-template-areas:
      "photo a"
      "photo b"
      "c     d";
    height: auto;
  }

  .dev-photo-wrap {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .developer {
    padding: 56px 24px;
  }

  .developer-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "photo photo"
      "a     b"
      "c     d";
    height: auto;
  }

  .dev-photo-wrap {
    min-height: 260px;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .developer {
    padding: 44px 16px;
  }

  .developer-collage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "a"
      "b"
      "c"
      "d";
  }

  .dev-photo-wrap {
    min-height: 240px;
    max-height: 260px;
  }
}


/* ══════════════════════════════════════
   Способы покупки и финансовые программы
   ══════════════════════════════════════ */

.finance {
  background: var(--color-bg);
  padding: 0 var(--sp-lg);
  height: var(--section-h);
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .finance {
    height: auto;
    min-height: 500px;
  }
}

.finance-inner {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* Плашки со схемами оплаты */
.finance-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.finance-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
}

.finance-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.finance-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.finance-card-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.finance-card-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.finance-card-discount {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  border-top: 1px solid rgba(94, 107, 74, 0.12);
  padding-top: 12px;
  margin: 0;
}


/* ══════════════════════════════════════
   Адаптив: finance
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .finance-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
  }

  .finance-card {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .finance {
    padding: 56px 24px;
    height: auto;
    align-items: flex-start;
  }

  .finance-inner {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .finance {
    padding: 44px 16px;
  }

  .finance-card {
    padding: 24px 20px;
  }
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */

.faq {
  background: var(--color-bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: var(--sp-lg) var(--sp-lg);
  min-height: var(--section-h);
  box-sizing: border-box;
}

/* Заголовок по центру */
.faq-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  max-width: 680px;
  width: 100%;
}

/* Двухколоночная сетка: левая колонка всегда наверху, правая свободно растёт вниз */
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 30px;
  align-items: start;
  width: 100%;
}

.faq-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 16px;
}

.faq-manager-photo {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
}

.faq-contact .btn-cta {
  justify-content: center;
}

.faq-contact-hint {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(94, 107, 74, 0.18);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  line-height: 1.35;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235E6B4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235E6B4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-bottom: 18px;
}

/* Адаптив */
@media (max-width: 900px) {
  .faq {
    min-height: 0;
    padding: var(--sp-xl) var(--sp-lg);
    gap: 36px;
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-left {
    order: 1;
  }

  .faq-right {
    order: 0;
  }

  .faq-manager-photo {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: 48px 20px;
    gap: 28px;
  }

  .faq-inner {
    gap: 24px;
  }

  .faq-manager-photo {
    height: 200px;
  }

  .faq-question {
    font-size: var(--text-base);
    padding: 14px 0;
  }
}

/* ══════════════════════════════════════
   Форма обратной связи / Контакты
   ══════════════════════════════════════ */

.contacts {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--section-h);
  padding: 100px 80px;
  background: var(--color-bg);
}

@media (max-width: 1024px) {
  .contacts {
    min-height: 500px;
  }
}

.contacts-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40%;
  z-index: 0;
}

.contacts-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contacts-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    transparent 100%
  );
}

.contacts-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  width: 100%;
  align-items: center;
}

/* Блок контактной информации */
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 420px;
  flex-shrink: 0;
}

.contacts-info .section-eyebrow {
  color: var(--color-accent);
  opacity: 1;
}

.contacts-info .section-title {
  color: var(--color-text);
}

.contacts-info .section-subtitle {
  color: var(--color-text-muted);
}

.contacts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contacts-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(94, 107, 74, 0.12);
}

.contacts-item:first-child {
  border-top: none;
}

.contacts-item:last-child {
  border-bottom: none;
}

.contacts-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
}

.contacts-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-item-label {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contacts-item-value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

a.contacts-item-value:hover {
  color: var(--color-primary);
}

.contacts-item-value--sm {
  font-size: var(--text-sm);
  line-height: 1.4;
  max-width: 320px;
}

.contacts-messengers {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.contacts-messenger-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.contacts-messenger-link:hover {
  color: var(--color-primary);
}

.contacts-messenger-link img {
  opacity: 0.65;
  filter: none;
  transition: opacity var(--transition);
}

.contacts-messenger-link:hover img {
  opacity: 1;
}

/* Блок формы */
.contacts-form-wrap {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 540px;
  flex-shrink: 0;
  margin-left: auto;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.contacts-form-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: -8px;
}

.contacts-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.contacts-required {
  color: var(--color-accent);
  margin-left: 2px;
}

.contacts-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border: 1.5px solid rgba(94, 107, 74, 0.18);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contacts-input::placeholder {
  color: transparent;
}

.contacts-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.contacts-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.contacts-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.contacts-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.contacts-submit:active {
  transform: translateY(0);
  opacity: 1;
}

.contacts-privacy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.contacts-privacy a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 900px) {
  .contacts {
    padding: 64px 32px;
    align-items: flex-start;
  }

  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contacts-info {
    width: 100%;
  }

  .contacts-form-wrap {
    width: 100%;
    margin-left: 0;
  }

  /* На планшете — картинка снизу (под формой) */
  .contacts-bg {
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .contacts-bg::after {
    background: linear-gradient(
      to bottom,
      var(--color-bg) 0%,
      transparent 55%
    );
  }
}

@media (max-width: 600px) {
  .contacts {
    padding: 48px 20px;
    min-height: 0;
  }

  .contacts-form-wrap {
    padding: 24px 20px;
  }

  .contacts-form-title {
    font-size: 20px;
  }

  .contacts-form-sub {
    font-size: var(--text-xs);
  }

  .contacts-item {
    padding: 14px 0;
    gap: 12px;
  }

  .contacts-item-icon {
    width: 36px;
    height: 36px;
  }

  .contacts-item-value {
    font-size: var(--text-sm);
  }

  .contacts-messenger-link {
    font-size: var(--text-xs);
  }

  .contacts-submit {
    padding: 14px 20px;
  }
}

/* ══════════════════════════════════════
   Ход строительства
   ══════════════════════════════════════ */

.progress {
  background: var(--color-bg);
  padding: var(--sp-lg);
}

.progress-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Шапка: заголовок + таймлайн */
.progress-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  margin-bottom: var(--sp-md);
}

/* ПК: секция вписана в высоту экрана, как «О проекте» */
@media (min-width: 1101px) {
  .progress {
    min-height: var(--section-h);
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .progress-inner {
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .progress-card {
    flex: 1;
    min-height: 0;
    grid-template-rows: 1fr;
  }

  .progress-media {
    min-height: 0;
  }

  .progress-panel {
    min-height: 0;
    max-height: none;
  }

  .progress-social {
    margin-top: var(--sp-md);
    flex-shrink: 0;
  }
}

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

.progress-timeline-point {
  text-align: left;
}

.progress-timeline-point--end {
  text-align: right;
}

.progress-timeline-label {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.progress-timeline-value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
}

.progress-timeline-bar {
  position: relative;
  width: 220px;
  height: 3px;
  background: color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: 2px;
}

.progress-timeline-fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transition: width 0.5s ease;
  border-radius: 2px;
}

.progress-timeline-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--color-accent);
  transition: left 0.5s ease;
}

/* Карточка */
.progress-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  perspective: 600px;
}

/* Медиа */
.progress-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #E7E4DE;
  min-height: 520px;
}

/* Фолбэк для устройств без поддержки Fullscreen API (например, iOS Safari) */
.progress-media.is-fauxfullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  min-height: 0;
}

.progress-media-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
}

.progress-media.is-fauxfullscreen .progress-media-close {
  display: flex;
}

.progress-media-group {
  display: none;
  width: 100%;
  height: 100%;
}

.progress-media-group.is-active {
  display: block;
}

.progress-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.progress-media-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.progress-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.progress-media-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: none;
  background: #fff;
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.progress-media-btn:hover {
  opacity: 0.85;
}

.progress-media-prev { left: 16px; }
.progress-media-next { right: 16px; }

.progress-media-expand {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.progress-media-expand:hover {
  background: #fff;
}

.progress-media-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.progress-media-dots .progress-media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.progress-media-dots .progress-media-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

/* Панель отчёта */
.progress-panel {
  position: relative;
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  z-index: 1;
}

.progress-media {
  z-index: 1;
}

/* Цифра прогресса над точкой на таймлайне — едет вместе с точкой */
.progress-timeline-num-wrap {
  position: absolute;
  bottom: 100%;
  margin-bottom: 6px;
  transform: translateX(-50%);
  height: 1.1em;
  overflow: hidden;
  pointer-events: none;
  transition: left 0.5s ease;
}

.progress-timeline-num {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
}

.progress-slides {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  transition: opacity 0.25s ease;
}

.progress-slide {
  display: none;
}

.progress-slide.is-active {
  display: block;
}

.progress-slide-date {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 20px;
}

.progress-list {
  list-style: none;
}

.progress-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(94, 107, 74, 0.12);
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-item p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.progress-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 1px;
  background: var(--color-accent);
  color: var(--color-bg);
}

.progress-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

.progress-panel-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.progress-more-btn:hover {
  opacity: 0.8;
}

.progress-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  background: transparent;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.progress-nav-btn.progress-next {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.progress-nav-btn:hover:not(:disabled) {
  opacity: 0.8;
}

.progress-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.progress-counter {
  position: absolute;
  top: 36px;
  right: 40px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* CTA */
.progress-social {
  margin: var(--sp-md) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.progress-social-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.progress-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.progress-social-icons a:hover {
  opacity: 1;
}

.progress-social-icons img {
  width: 15px;
  height: 15px;
}

/* Адаптив */
@media (max-width: 1100px) {
  .progress {
    padding: var(--sp-lg) var(--sp-md);
  }

  .progress-panel {
    padding: 28px 28px;
  }

  .progress-counter {
    top: 28px;
    right: 28px;
  }
}

@media (max-width: 768px) {
  .progress-top {
    align-items: flex-start;
  }

  .progress-timeline {
    display: none;
  }

  .progress-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .progress-media {
    min-height: 0;
    height: 60vw;
  }

  .progress-media-btn {
    width: 30px;
    height: 30px;
  }

  .progress-panel-footer {
    flex-wrap: wrap;
    gap: 12px;
  }

  .progress-social {
    margin-top: var(--sp-md);
  }

  .progress-social-label {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .progress {
    padding: var(--sp-lg) var(--sp-sm);
  }

  .progress-panel {
    padding: 24px 20px;
  }

  .progress-counter {
    top: 24px;
    right: 20px;
  }

  .progress-slide-date {
    font-size: 18px;
  }

  .progress-media-expand {
    width: 30px;
    height: 30px;
  }

  .progress-nav-btn {
    width: 34px;
    height: 34px;
  }
}

/* ══════════════════════════════════════
   Юридическая страница (политика конфиденциальности)
   ══════════════════════════════════════ */

.legal {
  padding: calc(72px + 64px) 40px 96px;
  background: var(--color-bg);
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-text);
  margin: 12px 0 8px;
  line-height: 1.2;
}

.legal-updated {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal-section {
  padding-top: 32px;
  border-top: 1px solid rgba(94, 107, 74, 0.12);
}

.legal-section:first-of-type {
  border-top: none;
}

.legal-section h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 14px;
}

.legal-section p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  border-bottom: 1px solid rgba(94, 107, 74, 0.12);
}

.legal-table th {
  width: 220px;
  color: var(--color-text);
  font-weight: 600;
}

.legal-table td {
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .legal {
    padding: calc(72px + 32px) 20px 56px;
  }

  .legal-section {
    padding-top: 24px;
  }

  .legal-table th {
    width: 140px;
  }
}

/* ==========================================================================
   Уведомления формы заявки
   ========================================================================== */

/* Экран «спасибо» вместо полей формы */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
  animation: form-success-in 0.4s ease both;
}

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(101, 115, 74, 0.1);
  color: var(--color-accent);
}

.form-success-icon svg {
  width: 26px;
  height: 26px;
}

.form-success-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.form-success-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

/* Плашка ошибки над кнопкой отправки */
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(163, 58, 58, 0.08);
  color: #A33A3A;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  animation: form-success-in 0.3s ease both;
}

.form-error svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Состояние кнопки во время отправки */
.contacts-submit[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
