/*
Theme Name: Спектр
Theme URI: https://spectr54.ru
Description: Тема ЖК «Спектр» — эко-квартал в наукограде Кольцово. Лендинг на ACF PRO, весь контент редактируется через админку. Требует плагины: Advanced Custom Fields PRO, Contact Form 7.
Author: Spectr
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spectr
*/

/* ============================================================
   SPECTR — CSS Design System
   Font: Stolzl (Regular + Book). Place files in /assets/fonts/
   ============================================================ */

/* --- @font-face --- */
@font-face {
  font-family: 'Stolzl';
  src: url('assets/fonts/stolzl_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stolzl';
  src: url('assets/fonts/stolzl_book.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stolzl';
  src: url('assets/fonts/stolzl_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stolzl';
  src: url('assets/fonts/stolzl_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-orange:       #EE6E47;
  --color-dark:         #1A1B1F;
  --color-brand-black:  #040404;
  --color-white:        #FFFFFF;
  --color-blue:         #739EED;
  --color-blue-light:   #499AD2;
  --color-blue-dark:    #4166A9;
  --color-green:        #4DB673;
  --color-pink:         #D34C80;
  --color-yellow:       #FFD34B;

  /* --- Neutral / UI Colors --- */
  --color-surface:      #F2F5F8;
  --color-border:       #BFC3CB;
  --color-divider:      #D8DCE2;
  --color-gray-200:     #E4EAF0;
  --color-gray-desc:    #8F949E;

  /* --- Translucent --- */
  --color-header-bg:    rgba(255, 255, 255, 0.5);
  --color-white-80:     rgba(255, 255, 255, 0.8);
  --color-white-40:     rgba(255, 255, 255, 0.4);
  --color-white-20:     rgba(255, 255, 255, 0.2);
  --color-black-10:     rgba(0, 0, 0, 0.1);

  /* --- Gradient --- */
  --gradient-stories:   linear-gradient(180deg, rgba(150, 149, 255, 0.4) 0%, rgba(255, 6, 93, 1) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%);

  /* --- Blur Effects --- */
  --blur-l: blur(12px);
  --blur-m: blur(8px);
  --blur-s: blur(4px);

  /* --- Typography: font-families --- */
  --font-regular: 'Stolzl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-book: 'Stolzl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Typography: H1 (48px / 110% / -3%) --- */
  --text-h1-size:     48px;
  --text-h1-lh:       110%;
  --text-h1-ls:       -0.03em;

  /* --- Typography: H2 (32px / 115%) --- */
  --text-h2-size:     32px;
  --text-h2-lh:       115%;

  /* --- Typography: H3 (24px / 120%) --- */
  --text-h3-size:     24px;
  --text-h3-lh:       120%;

  /* --- Typography: H4 (18px / 115% / -2%) --- */
  --text-h4-size:     18px;
  --text-h4-lh:       115%;
  --text-h4-ls:       -0.02em;

  /* --- Typography: H5 (16px / 120%) --- */
  --text-h5-size:     16px;
  --text-h5-lh:       120%;

  /* --- Typography: H6 (14px / 120%) --- */
  --text-h6-size:     14px;
  --text-h6-lh:       120%;

  /* --- Typography: Body-1 (16px / 145% / Book) --- */
  --text-body1-size:  16px;
  --text-body1-lh:    145%;

  /* --- Typography: Body-2 (14px / 145% / Book) --- */
  --text-body2-size:  14px;
  --text-body2-lh:    145%;

  /* --- Typography: Body-2-Strong (14px / 120% / Regular) --- */
  --text-body2s-size: 14px;
  --text-body2s-lh:   120%;

  /* --- Typography: Body-3 (12px / 130% / Book) --- */
  --text-body3-size:  12px;
  --text-body3-lh:    130%;

  /* --- Typography: Body-3-strong (12px / 130% / Regular) --- */
  --text-body3s-size: 12px;
  --text-body3s-lh:   130%;

  /* --- Typography: Body-XSmall (10px / 125%) --- */
  --text-xs-size:     10px;
  --text-xs-lh:       125%;

  /* --- Typography: ButtonLink/S (12px / 125%) --- */
  --text-btn-s-size:  12px;
  --text-btn-s-lh:    125%;

  /* --- Typography: ButtonLink/M (14px / 16px) --- */
  --text-btn-m-size:  14px;
  --text-btn-m-lh:    16px;

  /* --- Typography: ButtonLink/L (16px / 20px) --- */
  --text-btn-l-size:  16px;
  --text-btn-l-lh:    20px;

  /* --- Layout --- */
  --container-max:    1440px;
  --container-px:     80px;
  --header-height:    72px;
  --section-gap:      104px;

  /* --- Border Radii --- */
  --radius-xl:    20px;
  --radius-lg:    16px;
  --radius-md:    12px;
  --radius-sm:    8px;
  --radius-pill:  999px;
  --radius-full:  999px; /* алиас --radius-pill (используется в ряде правил) */
  --radius-line:  1px;

  /* Алиас серого (парный к --color-gray-desc) */
  --color-gray:   #8F949E;
}

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

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

body {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

[hidden] {
  display: none !important;
}

/* Логотип: десктоп/мобайл варианты из админки */
.logo__img--mobile { display: none; }

@media (max-width: 768px) {
  .logo__img--desktop { display: none; }
  .logo__img--mobile { display: block; }
}

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

ul, ol {
  list-style: none;
}

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

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

/* ============================================================
   TYPOGRAPHY UTILITY CLASSES
   ============================================================ */
.text-h1 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-lh);
  letter-spacing: var(--text-h1-ls);
}

.text-h2 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.text-h3 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
}

.text-h4 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
}

.text-h5 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
}

.text-h6 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-h6-size);
  line-height: var(--text-h6-lh);
}

.text-body1 {
  font-family: var(--font-book);
  font-weight: 300;
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
}

.text-body2 {
  font-family: var(--font-book);
  font-weight: 300;
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
}

.text-body2-strong {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
}

.text-body3 {
  font-family: var(--font-book);
  font-weight: 300;
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
}

.text-body3-strong {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
}

.text-xs {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Full-width section wrapper */
.section {
  width: 100%;
}

/* Sections with inter-section spacing */
.section + .section {
  margin-top: var(--section-gap);
}

/* Точечные отступы по макету (зазоры в Figma не одинаковые) */
.section + .section.section--cards { margin-top: 44px; } /* карточки прижаты к hero */
.section + .section.section--features { margin-top: 110px; }
.section + .section.section--gallery { margin-top: 120px; }
.section + .section.section--visit { margin-top: 128px; }
.section + .section.section--finish { margin-top: 140px; }

/* ============================================================
   BUTTONS
   ============================================================ */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-regular);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

/* Large CTA button (padding: 12px 24px, radius: 16px) */
.btn--lg {
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: var(--text-btn-l-size);
  line-height: var(--text-btn-l-lh);
}

/* Medium button (padding: 8px 16px, radius: 16px) */
.btn--md {
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-btn-m-size);
  line-height: var(--text-btn-m-lh);
}

/* Small button (padding: 8px 12px, radius: 12px) — header */
.btn--sm {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-btn-m-size);
  line-height: var(--text-btn-m-lh);
}

/* Extra-small button (padding: 8px 12px, radius: 12px, S text) */
.btn--xs {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-btn-s-size);
  line-height: var(--text-btn-s-lh);
}

/* Variants */
.btn--orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 1.5px solid transparent;
}

.btn--orange:hover {
  opacity: 1;
  background-color: #d95d36;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
}

.btn--outline:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.btn--ghost {
  background-color: var(--color-white);
  color: var(--color-dark);
  border: 1.5px solid transparent;
}

.btn--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: 1.5px solid transparent;
}

.btn--dark:hover {
  opacity: 1;
  background-color: #000;
}

/* Round icon button (30×30 px) */
.btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-dark);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-round:hover {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.btn-round svg {
  pointer-events: none;
}

/* ============================================================
   BURGER ICON
   ============================================================ */
.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 13px;
  pointer-events: none;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Burger morphs into × when the menu is open */
.btn-round--burger[aria-expanded="true"] .burger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-round--burger[aria-expanded="true"] .burger-icon span:nth-child(2) {
  opacity: 0;
}

.btn-round--burger[aria-expanded="true"] .burger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-header-bg);
  backdrop-filter: var(--blur-l);
  -webkit-backdrop-filter: var(--blur-l);
}

.header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 83px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --- Logo --- */
.logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.logo__img {
  width: 192px;
  height: 20px;
  object-fit: contain;
}

.logo__descr {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: 9.81px;
  line-height: 9.81px;
  color: var(--color-dark);
  white-space: nowrap;
}

/* --- Desktop Navigation --- */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header__nav-link {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  color: var(--color-dark);
  white-space: nowrap;
  transition: color 0.2s;
}

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

/* --- Desktop Right Group --- */
.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  white-space: nowrap;
  transition: color 0.2s;
}

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

.header__callback {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: var(--text-btn-m-size);
  line-height: var(--text-btn-m-lh);
  color: var(--color-gray-desc);
  white-space: nowrap;
  transition: color 0.2s;
}

.header__callback:hover {
  color: var(--color-orange);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Mobile Actions (hidden on desktop) --- */
.header__mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   HERO SECTION (00 HERO) — Swiper-based
   ============================================================ */
.section--hero {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

/* Swiper container IS the hero block */
.hero {
  height: 640px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

/* Each slide is a background image */
.hero__slide {
  background-image:
    radial-gradient(circle at 57% 88%, rgba(255, 255, 255, 0) 0%, rgba(9, 10, 18, 1) 100%),
    url('assets/img/hero-bg-7bb49c.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Свои фоны из админки: --hero-bg-d (десктоп) / --hero-bg-m (мобайл) */
.hero__slide[style*="--hero-bg-d"] {
  background-image:
    radial-gradient(circle at 57% 88%, rgba(255, 255, 255, 0) 0%, rgba(9, 10, 18, 1) 100%),
    var(--hero-bg-d);
}

@media (max-width: 768px) {
  .hero__slide[style*="--hero-bg-m"] {
    background-image:
      radial-gradient(circle at 57% 88%, rgba(255, 255, 255, 0) 0%, rgba(9, 10, 18, 1) 100%),
      var(--hero-bg-m);
  }
}

/* Overlay with all content — sits above Swiper slides */
.hero__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 56px 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
}

.hero__left {
  width: 714px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
  pointer-events: auto;
}

.hero__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: 52px;
  line-height: 110%;
  letter-spacing: var(--text-h1-ls);
  color: var(--color-white);
}

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

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 4px 8px;
  background: var(--color-white-80);
  backdrop-filter: var(--blur-m);
  -webkit-backdrop-filter: var(--blur-m);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
  color: var(--color-dark);
  white-space: nowrap;
}

.hero__tag-icon {
  width: 13px;
  height: 12px;
  display: block;
}

/* Значение плашки-ссылки (ТЗ: «ссылка со значения») */
.hero__tag-link {
  color: var(--color-blue);
  text-decoration: none;
}

.hero__tag-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__subtitle {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
  color: var(--color-white);
}

/* CTA + arrows in one row */
.hero__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Glass/white button variant (hero CTA #2) */
.btn--glass {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1.5px solid transparent;
  backdrop-filter: var(--blur-s);
  -webkit-backdrop-filter: var(--blur-s);
}

.btn--glass:hover {
  opacity: 0.9;
}

.hero__arrows {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero__arrow-btn {
  display: block;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.hero__arrow-btn:hover {
  opacity: 0.75;
}

.hero__arrow-btn img {
  width: 30px;
  height: 30px;
  display: block;
}

/* Progress bars — inside hero__body, last row */
.hero__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  pointer-events: auto;
}

.hero__dot {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: var(--color-white-40);
  position: relative;
  overflow: hidden;
}

/* Fully filled past slides */
.hero__dot.is-done {
  background: var(--color-white);
}

/* Active slide: fill animation over slide duration */
.hero__dot.is-active {
  background: var(--color-white-40);
}

.hero__dot.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--color-white);
  animation: dotFill var(--hero-speed, 3s) linear forwards;
}

@keyframes dotFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   01 CARDS SECTION
   ============================================================ */
.section--cards {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.cards__dots {
  display: none;
}

.cards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 387px;
  height: 148px;
  padding: 6px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  overflow: hidden;
  flex-shrink: 0;
}

/* Ссылка-растяжка: при заданной ссылке кликабельна вся карточка */
.card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card .btn {
  position: relative;
  z-index: 2;
}

.card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 12px;
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 199px;
}

.card__title {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  color: var(--color-brand-black);
}

.card__desc {
  font-family: var(--font-book);
  font-weight: 300;
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  color: var(--color-gray-desc);
}

.card__image {
  width: 136px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
}

/* ============================================================
   02 STORIES SECTION
   ============================================================ */
.section--stories {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.stories {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.stories__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.stories__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  color: var(--color-dark);
}

/* Responsive heading text: "Что нового" desktop / "А у нас в квартире…" mobile */
.stories__title-m { display: none; }

.stories__dots { display: none; }

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

.stories__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 54px;
  padding: 0 10px;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.story__image-wrap {
  width: 100%;
  aspect-ratio: 165 / 163;
  border: 1.5px solid var(--color-pink);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.story:hover .story__image-wrap {
  border-color: var(--color-orange);
}

.story__ring {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
}

.story__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.story__name {
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  text-align: center;
}

/* ============================================================
   03 OFFERS SECTION
   ============================================================ */
.section--offers {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.offers__title {
  display: none;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  color: var(--color-dark);
}

.offers__dots { display: none; }

.offers {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.offers__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 300px;
}

.offer-card {
  width: 300px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-right: 16px;
  display: flex;
  flex-shrink: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.offer-card--orange {
  background-image: linear-gradient(-45deg, rgba(238, 110, 71, 0) 0%, rgba(238, 110, 71, 1) 75%);
}

.offer-card--dark {
  background-image: url('assets/img/offer-card-mortgage.png');
}

.offer-card--finish {
  background-image:
    radial-gradient(circle at 58% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.55) 100%),
    url('assets/img/offer-card-finish-58972a.png');
}

.offer-card--kids {
  background-image:
    radial-gradient(circle at 73% 73%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 20, 58, 0.75) 100%),
    url('assets/img/offer-card-kids-60806a.png');
}

.offer-card__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.offer-card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-card__heading {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
  color: var(--color-white);
}

.offer-card__heading--dark {
  color: var(--color-dark);
}

.offer-card__subheading {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  color: var(--color-white);
}

.offer-card__note {
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: var(--color-white);
}

.offer-card__desc {
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: var(--color-white);
}

.offer-card__btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.offers__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.offers__nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   STORIES OVERLAY
   ============================================================ */
.stories-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stories-overlay.is-open {
  display: flex;
}

.stories-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

/* Бокс: прогресс над белой панелью (как в макете player.png) */
.stories-overlay__box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  flex-shrink: 0;
}

.stories-overlay__progress {
  display: flex;
  gap: 4px;
  padding: 0 2px;
}

.stories-overlay__prog-item {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.stories-overlay__prog-item.is-done,
.stories-overlay__prog-item.is-active {
  background: rgba(255, 255, 255, 1);
}

.stories-overlay__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 530px;
  max-height: 84vh;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-white);
}

/* Тап-зоны листания: левая/правая половина панели (под кнопками) */
.stories-overlay__tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stories-overlay__tap--left { left: 0; }
.stories-overlay__tap--right { right: 0; }

.stories-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-dark);
  cursor: pointer;
  z-index: 3;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.stories-overlay__close:hover {
  opacity: 1;
}

.stories-overlay__body {
  position: relative;
  z-index: 0;
  padding: 20px 40px 16px 20px;
  pointer-events: none;
}

.stories-overlay__title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  color: var(--color-dark);
}

.stories-overlay__desc {
  margin-top: 10px;
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
  overflow: hidden;
}

.stories-overlay__img-wrap {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 0;
  margin-top: auto;
  overflow: hidden;
  pointer-events: none;
}

.stories-overlay__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Кнопка-пилюля поверх низа фото; не перехватывается тап-зонами (z выше) */
.stories-overlay__cta {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  white-space: nowrap;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius-pill);
  font-size: var(--text-btn-m-size);
  line-height: var(--text-btn-m-lh);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.stories-overlay__cta:hover {
  transform: translateX(-50%) scale(1.03);
}

.stories-overlay__side-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.stories-overlay__side-btn:hover {
  opacity: 1;
}

.stories-overlay__side-btn img {
  width: 30px;
  height: 30px;
  display: block;
}

@media (max-width: 768px) {
  /* На мобильных листание — только тапами по половинам панели */
  .stories-overlay__side-btn { display: none; }

  .stories-overlay { padding: 16px; }

  .stories-overlay__box {
    width: 100%;
    max-width: 340px;
  }

  .stories-overlay__panel {
    height: min(560px, 80vh);
  }
}

/* ============================================================
   FEATURES GALLERY MODAL (попап карточки «Почему Спектр?»,
   макет figma-ref/about/modal.png)
   ============================================================ */
.feat-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.feat-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.feat-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.feat-modal__box {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-modal__top {
  display: flex;
  justify-content: flex-end;
}

.feat-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-regular);
  font-size: var(--text-body3-size);
  cursor: pointer;
}

.feat-modal__close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark);
}

.feat-modal__frame {
  position: relative;
  height: min(600px, 74vh);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-dark);
}

.feat-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Тап-зоны листания (под бейджем/стрелками/описанием) */
.feat-modal__tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feat-modal__tap--left { left: 0; }
.feat-modal__tap--right { right: 0; }

.feat-modal__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  background: var(--color-white-80);
  backdrop-filter: var(--blur-m);
  -webkit-backdrop-filter: var(--blur-m);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
  color: var(--color-dark);
}

.feat-modal__nav {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.feat-modal__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-white-80);
  backdrop-filter: var(--blur-m);
  -webkit-backdrop-filter: var(--blur-m);
  color: var(--color-dark);
  cursor: pointer;
  transition: background-color 0.2s;
}

.feat-modal__nav-btn:hover { background: var(--color-white); }

.feat-modal__desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 2;
  padding: 14px 20px;
  background: rgba(20, 22, 30, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-white);
  pointer-events: none;
}

.feat-modal__progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.feat-modal__prog-item {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.feat-modal__prog-item.is-done,
.feat-modal__prog-item.is-active {
  background: rgba(255, 255, 255, 1);
}

/* Кликабельная карточка-обложка в сетке */
.feat-item--clickable { cursor: pointer; }

.feat-item--clickable:hover .feat-item__label {
  color: var(--color-orange);
}

@media (max-width: 768px) {
  .feat-modal { padding: 12px; }

  .feat-modal__nav { display: none; } /* листание тапами по фото */

  .feat-modal__frame { height: min(480px, 64vh); }

  .feat-modal__desc {
    bottom: 26px;
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* ============================================================
   HEADER DROPDOWNS (.nav-dd)
   ============================================================ */
.nav-dd {
  position: fixed;
  top: var(--header-height);
  left: 50%;
  width: min(100vw, var(--container-max));
  z-index: 98;
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s ease;
  border-top: 1px solid var(--color-divider);
}

.nav-dd.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dd__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 28px 83px 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* Category label */
.nav-dd__cat {
  display: block;
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: var(--color-gray-desc);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ----- Квартиры layout ----- */
.nav-dd__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.nav-dd__all {
  align-self: flex-start;
  margin-bottom: 20px;
}

.nav-dd__grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px 24px;
  align-items: center;
}

.nav-dd__row-sep {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--color-divider);
  margin-block: 4px;
}

.nav-dd__link {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-dd__link:hover {
  color: var(--color-orange);
}

.nav-dd__link--tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: var(--text-body3s-size);
  color: var(--color-orange);
}

/* Promo card (right side) */
.nav-dd__promo {
  width: 220px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.nav-dd__promo--orange {
  background: var(--color-orange);
  color: var(--color-white);
}

.nav-dd__promo--calc {
  background: var(--color-surface);
  color: var(--color-dark);
}

.nav-dd__promo-title {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  margin-bottom: 6px;
}

.nav-dd__promo-desc {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  opacity: 0.85;
}

.nav-dd__pct {
  position: absolute;
  right: -8px;
  top: 10px;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.nav-dd__promo-cta {
  margin-top: auto;
}

/* ----- Ипотека layout ----- */
.nav-dd__col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.nav-dd__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.nav-dd__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dd__note {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.nav-dd__col-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ----- Акции layout ----- */
.nav-dd__col--info {
  flex: 0 0 200px;
}

.nav-dd__info-desc {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  margin-bottom: 20px;
}

.nav-dd__offer-row {
  display: flex;
  gap: 12px;
  flex: 1;
}

.nav-dd__offer-card {
  flex: 1;
  height: 140px;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--color-surface);
}

.nav-dd__offer-card--brand {
  background: var(--color-blue);
}

.nav-dd__offer-card--green {
  background: var(--color-green);
}

.nav-dd__offer-title {
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-white);
}

/* ----- Контакты layout ----- */
.nav-dd__col--contacts {
  flex: 0 0 320px;
}

.nav-dd__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.nav-dd__contact-item {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
}

.nav-dd__contact-lbl {
  font-weight: 400;
  color: var(--color-gray-desc);
}

.nav-dd__contact-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-dd__map {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 180px;
}

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

/* ============================================================
   BURGER MEGA-MENU (.nav-overlay)
   Desktop: panel below header (auto height), not full-screen
   Mobile: full-screen overlay
   ============================================================ */
.nav-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 99;
  background-color: var(--color-white);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  padding: 40px 83px 48px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-height));
  /* Slide-down + fade animation (desktop panel) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.28s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Backdrop behind the mobile drawer (desktop: none) */
.nav-backdrop {
  display: none;
}

/* Mobile-only: list of main sections (drill-down triggers) */
.nav-overlay__sections {
  display: none;
  flex-direction: column;
}

.nav-sectionlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-regular);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  color: var(--color-dark);
}

.nav-sectionlink svg { flex-shrink: 0; color: var(--color-gray-desc); }
.nav-sectionlink:hover { color: var(--color-orange); }
.nav-sectionlink:hover svg { color: var(--color-orange); }

/* ----- Full-screen drill-down sub-panel ----- */
.nav-sub {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}

.nav-sub.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-sub__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 1;
}

.nav-sub__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-regular);
  font-size: var(--text-btn-m-size);
  color: var(--color-dark);
  padding: 6px 0;
}

.nav-sub__back:hover { color: var(--color-orange); }

.nav-sub__title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  color: var(--color-dark);
}

.nav-sub__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.nav-sub__all { align-self: flex-start; }

.nav-sub__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-sub__link {
  font-size: var(--text-body1-size);
  line-height: 1.25;
  font-weight: 300;
  color: var(--color-dark);
  transition: color 0.2s;
}

.nav-sub__link:hover { color: var(--color-orange); }
.nav-sub__link--accent { color: var(--color-orange); }

.nav-sub__group {
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-desc);
}

.nav-sub__note {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.nav-sub__lead {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.nav-sub__contact {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
}

.nav-sub__contact-lbl { color: var(--color-gray-desc); }

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

.nav-sub__btns .btn { width: 100%; }

.nav-sub__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
}

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

/* Promo cards inside sub-panels */
.nav-sub__promo {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-white);
}

.nav-sub__promo--orange { background: var(--color-orange); }
.nav-sub__promo--calc { background: var(--color-blue); }

.nav-sub__promo-title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
}

.nav-sub__promo-sub {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  opacity: 0.92;
}

.nav-sub__promo-pct {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 56px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.nav-sub__promo .btn { align-self: flex-start; margin-top: 4px; }

.nav-sub__offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-sub__offer {
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-white);
}

.nav-sub__offer--orange { background: var(--color-orange); }
.nav-sub__offer--blue { background: var(--color-blue); }
.nav-sub__offer--green { background: var(--color-green); }

.nav-sub__offer-title {
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
}

.nav-overlay__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.nav-overlay__col-title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  color: var(--color-dark);
  margin-bottom: 24px;
}

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.nav-overlay__link {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  color: var(--color-dark);
  transition: color 0.2s;
}

.nav-overlay__link:hover {
  color: var(--color-orange);
}

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

.nav-overlay__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  transition: background-color 0.2s;
}

.nav-overlay__social:hover {
  background: var(--color-border);
}

.nav-overlay__promo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-overlay__promo-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 140px;
}

.nav-overlay__promo-card--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

.nav-overlay__promo-card--green {
  background: var(--color-green);
  color: var(--color-white);
}

.nav-overlay__promo-title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  margin-bottom: 6px;
}

.nav-overlay__promo-sub {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  opacity: 0.9;
}

.nav-overlay__promo-addr {
  display: block;
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  opacity: 0.75;
  margin-top: 4px;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100vw - 48px));
  padding: 10px 10px 10px 28px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: opacity 0.3s, transform 0.3s;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.cookie-banner__text {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
  flex: 1;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding-inline: 28px;
}

.cookie-banner__link {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* ============================================================
   04 APARTMENT SEARCH
   ============================================================ */
.section--apartments {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.apts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.apts__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apts__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.apts__all {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.apts__all:hover { color: var(--color-orange); }
.apts__arrow { font-size: 1.1em; }

.apts__filters {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

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

.apts__filter-label {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.apts__pills {
  display: flex;
  gap: 4px;
}

.apt-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.apt-pill:hover {
  border-color: var(--color-dark);
}

.apt-pill.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.apts__filter-group--price { margin-left: auto; }

.apts__price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.apts__price-val {
  font-size: var(--text-body2s-size);
  color: var(--color-dark);
}

.apts__price-sep {
  color: var(--color-gray-desc);
}

.apts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.apt-card {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apt-card__img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.apt-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apt-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: var(--color-white);
}

.apt-card__badge--orange { background: var(--color-orange); }
.apt-card__badge--green  { background: var(--color-green); }
.apt-card__badge--blue   { background: var(--color-blue); }

.apt-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apt-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body2-size);
  font-weight: 300;
  color: var(--color-dark);
}

.apt-card__sep { color: var(--color-border); }

.apt-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apt-card__price {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
}

.apt-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.apt-card__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-gray-200);
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: var(--color-gray-desc);
}

.apt-card__tag--green { background: rgba(77, 182, 115, 0.15); color: var(--color-green); }
.apt-card__tag--blue  { background: rgba(115, 158, 237, 0.15); color: var(--color-blue-dark); }

.apts__footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.apts__count {
  font-size: var(--text-body2-size);
  font-weight: 300;
  color: var(--color-gray-desc);
}

/* ============================================================
   05 FEATURES FEED
   ============================================================ */
.section--features {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.features__left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.features__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.features__item:first-child {
  padding-top: 0;
}

.features__num {
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: var(--color-gray-desc);
  flex-shrink: 0;
  padding-top: 2px;
}

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

.features__item-title {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
}

.features__item-desc {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.features__right {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.features__img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  display: block;
}

/* ============================================================
   06 GALLERY
   ============================================================ */
.section--gallery {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.gallery__nav {
  display: flex;
  gap: 6px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 12px;
  height: 480px;
}

.gallery__main {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.gallery__thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery__thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

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

.gallery__thumb--more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.gallery__thumb-count {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  color: var(--color-white);
}

/* ============================================================
   07 MAP + COMMUTE
   ============================================================ */
.section--map {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.map-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.map-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-section__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.map-section__desc {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  margin-top: 6px;
}

.map-section__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.map-section__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 520px;
}

.map-section__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-section__commute {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-section__commute-title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
}

.map-section__commute-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.commute-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.commute-item__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.commute-item__label {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  flex: 1;
}

.commute-item__time {
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  font-weight: 400;
  color: var(--color-orange);
  flex-shrink: 0;
}

/* ============================================================
   VISIT FORM
   ============================================================ */
.section--visit {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.visit {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.visit__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.visit__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 24, 0.85) 0%, rgba(10, 12, 24, 0.3) 100%);
}

.visit__content {
  position: relative;
  z-index: 1;
  padding: 64px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.visit__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  color: var(--color-white);
}

.visit__desc {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

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

.visit__fields {
  display: flex;
  gap: 12px;
}

.visit__input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-regular);
  font-size: var(--text-body2-size);
  font-weight: 300;
  color: var(--color-white);
  transition: border-color 0.2s;
}

.visit__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.visit__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.visit__submit {
  align-self: flex-start;
}

.visit__legal {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.visit__legal-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visit__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.visit__addr,
.visit__hours {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.visit__phone {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  color: var(--color-white);
  transition: color 0.2s;
}

.visit__phone:hover { color: var(--color-orange); }

/* ============================================================
   08 FINISH GALLERY
   ============================================================ */
.section--finish {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.finish {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.finish__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.finish__desc {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  max-width: 480px;
}

.finish__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.finish-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: box-shadow 0.2s;
}

.finish-card--active {
  box-shadow: 0 0 0 2px var(--color-orange);
}

.finish-card__img-wrap {
  height: 280px;
  overflow: hidden;
}

.finish-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.finish-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finish-card__title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
}

.finish-card__desc {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  margin-bottom: 8px;
}

/* ============================================================
   09 REVIEWS
   ============================================================ */
.section--reviews {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.reviews__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.reviews__subtitle {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  margin-top: 6px;
}

.reviews__nav {
  display: flex;
  gap: 6px;
}

.reviews__list {
  overflow: visible;
}

.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body3s-size);
  flex-shrink: 0;
}

.review-card__name {
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
}

.review-card__date {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.review-card__stars {
  margin-left: auto;
  color: var(--color-orange);
  font-size: 14px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
}

/* ============================================================
   10 FAQ
   ============================================================ */
.section--faq {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-top: 1px solid var(--color-divider);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-regular);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  color: var(--color-dark);
}

.faq__icon {
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--color-gray-desc);
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  color: var(--color-orange);
}

.faq__a {
  padding-bottom: 20px;
}

.faq__a p {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  max-width: 720px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  margin-top: var(--section-gap);
}

.footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 64px 83px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer__top {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 64px;
  align-items: start;
}

.footer__logo .logo__descr {
  color: rgba(255, 255, 255, 0.5);
}

.footer__logo .logo__img {
  filter: brightness(0) invert(1);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__nav-title {
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer__phone {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  color: var(--color-white);
  transition: color 0.2s;
}

.footer__phone:hover { color: var(--color-orange); }

.footer__hours,
.footer__addr {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

.footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.footer__social:hover { background: rgba(255, 255, 255, 0.2); }

.footer__social img {
  filter: brightness(0) invert(1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer__legal-link:hover { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   RESPONSIVE — TABLET/MOBILE
   ============================================================ */
@media (max-width: 1280px) {
  .header__inner {
    padding-inline: 40px;
  }

  .header__nav-list {
    gap: 16px;
  }

  .header__contacts {
    display: none;
  }

  .nav-dd__inner {
    padding-inline: 40px;
  }

  .footer__inner {
    padding-inline: 40px;
  }

  .nav-overlay {
    padding-inline: 40px;
  }
}

@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__contacts {
    display: none;
  }

  .header__right {
    display: none;
  }

  .header__mobile-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    gap: 10px;
  }

  .header__mobile-actions .btn-round {
    width: 36px;
    height: 36px;
  }

  /* Burger on mobile = bare 3 lines, no circle (matches mockup) */
  .header__mobile-actions .btn-round--burger {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
  }

  .header__mobile-actions .btn-round--burger:hover {
    background: transparent;
    color: var(--color-dark);
  }

  .header__mobile-actions .burger-icon {
    width: 24px;
    height: 16px;
    gap: 6px;
  }

  .logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-dd {
    display: none !important;
  }

  /* Mobile: full-width panel filling the screen below the header */
  .nav-overlay {
    top: var(--header-height);
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    padding: 24px;
    max-height: none;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
  }

  .nav-overlay.is-open {
    transform: translateX(0);
  }

  /* No backdrop needed — the panel fills the whole area below the header */
  .nav-backdrop { display: none; }

  /* Show the mobile drill-down section list */
  .nav-overlay__sections {
    display: flex;
    margin-bottom: 8px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features__right {
    position: static;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery__thumbs {
    height: 200px;
  }

  .map-section__body {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__contacts {
    align-items: flex-start;
  }

  .footer__hours,
  .footer__addr {
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --container-px: 20px;
    --section-gap: 64px;
  }

  .header__inner {
    padding-inline: 16px;
  }

  .logo__descr {
    display: none;
  }

  .logo__img {
    width: 120px;
    height: auto;
  }

  .hero {
    height: 480px;
  }

  .hero__body {
    padding: 24px 20px 20px;
  }

  .hero__left {
    width: 100%;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Cards become a horizontal swipe carousel (matches mockup) */
  .cards {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .card {
    flex: 0 0 86%;
    width: auto;
    scroll-snap-align: start;
  }

  .cards__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .cards__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background-color 0.2s, width 0.2s;
  }

  .cards__dot.is-active {
    background: var(--color-dark);
  }

  .offers__title { display: block; }

  .offers__nav { display: none; }

  .offers__row {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .offers__row::-webkit-scrollbar { display: none; }

  .offer-card {
    flex: 0 0 86%;
    width: auto;
    scroll-snap-align: start;
  }

  .offers__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .offers__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background-color 0.2s;
  }

  .offers__dot.is-active { background: var(--color-dark); }

  /* Stories: responsive heading + horizontal carousel */
  .stories__title-d { display: none; }
  .stories__title-m { display: inline; }

  .stories__nav { display: none; }

  .stories__list {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stories__list::-webkit-scrollbar { display: none; }

  .story {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }

  .stories__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .stories__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background-color 0.2s;
  }

  .stories__dot.is-active { background: var(--color-dark); }

  .map-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .map-section__ymaps {
    flex-shrink: 0;
  }

  .apts__grid {
    grid-template-columns: 1fr;
  }

  .apts__filters {
    gap: 16px;
  }

  .apts__filter-group--price {
    margin-left: 0;
  }

  .finish__grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .visit__content {
    padding: 40px 20px;
  }

  .visit__fields {
    flex-direction: column;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    padding-inline: 20px;
    padding-top: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-overlay {
    padding-inline: 16px;
  }

  .nav-overlay__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   PAGE OFFSET FOR FIXED HEADER
   ============================================================ */
main {
  padding-top: var(--header-height);
}

/* ============================================================
   04 APT CARDS — badges, new class overrides
   ============================================================ */
.apts__subtitle {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  margin-top: 6px;
}

.apts__price-label {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.apts__price-unit {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.apts__feature-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

/* apt-card__badges — overlay of colored pills on card image */
.apt-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.apt-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  color: var(--color-white);
  white-space: nowrap;
}

/* Mockup semantics */
.apt-badge--house   { background: var(--color-orange); color: var(--color-white); }
.apt-badge--feature { background: var(--color-white); color: var(--color-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.apt-badge--program { background: #8C8FE6; color: var(--color-white); }
.apt-badge--booked  { background: var(--color-dark); color: var(--color-white); }
.apt-badge--green   { background: var(--color-green); color: var(--color-white); }

/* Legacy aliases (kept so any stale markup still renders sanely) */
.apt-badge--blue   { background: var(--color-orange); }
.apt-badge--gray   { background: var(--color-white); color: var(--color-dark); }
.apt-badge--orange { background: var(--color-dark); }
.apt-badge--purple { background: var(--color-orange); }
.apt-badge--teal   { background: var(--color-green); }

.apt-card__body {
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apt-card__type {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  font-weight: 400;
  color: var(--color-dark);
  white-space: nowrap;
}

.apt-card__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.apt-card__price {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  font-weight: 400;
  color: var(--color-blue);
  white-space: nowrap;
}

.apt-card__price-old {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  text-decoration: line-through;
  white-space: nowrap;
}

.apt-card__discount {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.apts__nav {
  display: flex;
  gap: 6px;
}

.apts__footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.apts__show-all {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 400;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  margin-left: auto;
}

.apts__show-all:hover { color: var(--color-orange); }

.apts__count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  font-size: 11px;
  line-height: 1;
  color: var(--color-white);
}

.apts__help {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.apts__help-text {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  font-weight: 400;
}

.apts__help-desc {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  flex: 1;
}

/* ============================================================
   05 FEATURES PHOTO GRID
   ============================================================ */
.section--features {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.feat-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.feat-section__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

/* Сетка по макету: плитки 282px, гэп 40, поле 96 (контейнер 80 + 16) */
.feat-grid {
  columns: 4;
  column-gap: 40px;
  padding: 0 16px;
}

.feat-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  break-inside: avoid;
  margin-bottom: 46px;
}

.feat-item__img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Бейдж-счётчик фото (число = размер галереи карточки) */
.feat-item__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-white-80);
  backdrop-filter: var(--blur-m);
  -webkit-backdrop-filter: var(--blur-m);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
  color: var(--color-dark);
}


/* Staggered masonry heights to mirror Figma (column fill order) */
.feat-item:nth-child(1) .feat-item__img { height: 336px; } /* парковки  (col1 top) */
.feat-item:nth-child(2) .feat-item__img { height: 312px; } /* кладовые  (col1 bot) */
.feat-item:nth-child(3) .feat-item__img { height: 358px; } /* двор      (col2 top) */
.feat-item:nth-child(4) .feat-item__img { height: 358px; } /* соседи    (col2 bot) */
.feat-item:nth-child(5) .feat-item__img { height: 266px; } /* лес       (col3 top) */
.feat-item:nth-child(6) .feat-item__img { height: 340px; } /* питомцы   (col3 bot) */
.feat-item:nth-child(7) .feat-item__img { height: 366px; } /* коворкинги(col4 top) */
.feat-item:nth-child(8) .feat-item__img { height: 345px; } /* спорт     (col4 bot) */

/* Типы карточки из админки; «авто» (без класса) — высоты макета выше */
.feat-grid .feat-item--standard .feat-item__img { height: 220px; }
.feat-grid .feat-item--tall .feat-item__img { height: 300px; }
.feat-grid .feat-item--compact .feat-item__img { height: 180px; }

.feat-item__label {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
}

/* ============================================================
   06 GALLERY — Swiper + vertical filter tabs sidebar
   ============================================================ */

/* Override old flex gap — spacing controlled via margin-bottom on header */
.gallery { gap: 0; }

.gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gallery__nav {
  display: flex;
  gap: 6px;
}

.gallery__body {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.gallery__side {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}

.gallery__side .gallery__title {
  margin-bottom: 32px;
}

.gallery__side .gallery__nav {
  margin-top: auto;
}

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

.gallery__nav {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.gallery__tab {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.gallery__tab:hover {
  border-color: var(--color-dark);
}

.gallery__tab.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.gallery__swiper {
  min-width: 0;
  overflow: hidden;
}

.gallery__slide-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
}

/* ============================================================
   07 MAP — transit cards, pins, ymaps button
   ============================================================ */
.map-section__ymaps {
  flex-shrink: 0;
}

.map-section__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 520px;
  position: relative;
}

.map-section__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Map filter pills — overlaid top-left */
.map-section__filters {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 360px;
}

.map-filter {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  cursor: pointer;
  transition: opacity 0.2s;
}

.map-filter:hover { opacity: 0.85; }

.map-filter.is-active {
  background: var(--color-orange);
}

/* Location pins */
.map-section__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  padding: 5px 10px 5px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.map-pin::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
}

.map-pin--yellow::before { background: var(--color-yellow); }
.map-pin--green::before  { background: var(--color-green); }
.map-pin--pink::before   { background: var(--color-pink); }
.map-pin--blue::before   { background: var(--color-blue); }
.map-pin--orange::before { background: var(--color-orange); }

.map-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-white);
  border-bottom: 0;
}

/* Transit info popup — top-right */
.map-section__info-card {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 220px;
  padding: 14px 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-info-card__title {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  font-weight: 400;
  color: var(--color-dark);
}

.map-info-card__row {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

/* Consult button — bottom-left */
.map-section__consult {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.map-section__transit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.transit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 124px;
  padding: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.transit-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transit-card__name {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  font-weight: 400;
  color: var(--color-dark);
}

.transit-card__dist {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
}

.transit-card__sub {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.transit-card__img {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 58%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* ============================================================
   VISIT FORM — Split layout (dark left, image right)
   ============================================================ */
.visit {
  display: grid;
  grid-template-columns: 560px 640px;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.visit__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 8px 40px;
  justify-content: center;
}

.visit__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  color: var(--color-dark);
}

.visit__desc {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.visit__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 456px;
}

.visit__input {
  flex: none; /* перебивает flex:1 из старого блока — в колонке он схлопывал height */
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-surface);
  border-radius: var(--radius-md);
  font-family: var(--font-regular);
  font-size: var(--text-body2-size);
  font-weight: 300;
  color: var(--color-dark);
  transition: border-color 0.2s;
}

.visit__input::placeholder {
  color: var(--color-gray-desc);
}

.visit__input:focus {
  outline: none;
  border-color: var(--color-dark);
}

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

.visit__legal {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.visit__legal-link {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visit__right {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  height: 462px;
}

.visit__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   08 FINISH — tabs + full-width swiper + CTA
   ============================================================ */
.finish {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.finish__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.finish__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.finish__nav {
  display: flex;
  gap: 6px;
}

.finish__tabs {
  display: flex;
  gap: 6px;
}

.finish__tab {
  height: 36px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.finish__tab:hover {
  border-color: var(--color-dark);
}

.finish__tab.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.finish__swiper {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-top: 26px;
}

.finish__slide-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
}

.finish__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.finish__cta-text {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  font-weight: 400;
  color: var(--color-dark);
}

/* ============================================================
   09 NEIGHBORS (Добрособедство)
   ============================================================ */
.section--reviews {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px);
}

.neighbors {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.neighbors__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
}

.neighbors__list {
  overflow: hidden;
  min-width: 0;
}

.neighbors__dots { display: none; }

.neighbor-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.neighbor-card__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 300 / 308;
}

.neighbor-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.neighbor-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.neighbor-card__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.neighbor-card__name {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  font-weight: 400;
  color: var(--color-dark);
}

.neighbor-card__role {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.neighbor-card__review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.neighbor-card__review:hover { opacity: 0.85; }

.neighbors__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.neighbors__nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.neighbors__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.neighbors__cta-text {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  font-weight: 400;
}

/* ============================================================
   10 FAQ — category tabs + chevron + side "Спросить" column
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.faq__cat {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.faq__cat:hover {
  border-color: var(--color-dark);
}

.faq__cat.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.faq__list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.faq__item {
  display: grid;
  padding-left: 40px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  border-top: 1px solid var(--color-divider);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.faq__q {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-regular);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  color: var(--color-dark);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--color-gray-desc);
  transition: transform 0.25s, color 0.25s;
}

.faq__q[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
  color: var(--color-orange);
}

.faq__side {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  padding-left: 24px;
}

.faq__ask {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-regular);
  font-size: var(--text-body2s-size);
  line-height: var(--text-body2s-lh);
  color: var(--color-dark);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.faq__ask:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.faq__a {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-bottom: 20px;
}

.faq__a p {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  max-width: 720px;
}

/* ============================================================
   FOOTER — White rounded card layout
   ============================================================ */
.footer {
  background: transparent;
  color: var(--color-dark);
  margin-top: 132px;
}

.footer__wrap {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-px) 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 40px;
  align-items: start;
}

.footer__card-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__cta {
  align-self: flex-start;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-title {
  font-size: var(--text-body3s-size);
  line-height: var(--text-body3s-lh);
  font-weight: 400;
  color: var(--color-gray-desc);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
  color: var(--color-dark);
  transition: color 0.2s;
}

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

.footer__sales {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
}

.footer__sales-title {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  font-weight: 400;
}

.footer__sales-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-body2-size);
  line-height: var(--text-body2-lh);
  font-weight: 300;
}

.footer__sales-lbl {
  font-weight: 300;
  color: var(--color-gray-desc);
}

.footer__sales-phone {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  font-weight: 400;
  color: var(--color-dark);
  transition: color 0.2s;
}

.footer__sales-phone:hover { color: var(--color-orange); }

.footer__sales-link {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer__sales-link:hover { color: var(--color-orange); }

.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray-200);
  transition: background-color 0.2s;
}

.footer__social:hover { background: var(--color-border); }

.footer__route {
  align-self: flex-start;
}

/* Social icons in light footer card should not be inverted */
.footer__card .footer__social img {
  filter: none;
}

.footer__bottom {
  padding: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px 48px;
  align-items: start;
}

.footer__legal-text {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  grid-column: 1;
}

.footer__legal-links {
  display: contents;
}

.footer__legal-link {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer__legal-link:hover { color: var(--color-dark); }

/* ============================================================
   REVIEW MODAL (text testimonial / video player)
   ============================================================ */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.review-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.review-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.review-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}

.review-modal.is-open .review-modal__dialog {
  transform: none;
}

.review-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s;
}

.review-modal__close:hover { background: var(--color-white); }

/* --- Text testimonial mode --- */
.review-modal__text {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.review-modal__photo-wrap {
  overflow: hidden;
}

.review-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px;
}

.review-modal__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
  color: var(--color-dark);
}

.review-modal__quote {
  font-size: var(--text-body1-size);
  line-height: var(--text-body1-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
  flex: 1;
}

.review-modal__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--color-divider);
}

.review-modal__name {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-lh);
  color: var(--color-dark);
}

.review-modal__role {
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

/* --- Video player mode --- */
.review-modal__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #000;
}

.review-modal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-modal__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, opacity 0.2s;
}

.review-modal__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.review-modal__play.is-hidden { opacity: 0; pointer-events: none; }

/* ============================================================
   CALLBACK MODAL («Заказать консультацию» → «Мы приняли вашу заявку!»)
   Макет: figma-ref/new/modal-1.png (форма) и modal-2.png (успех).
   Слева — форма (радио способа связи + имя/телефон + тёмная кнопка),
   справа — серая панель с телефоном и QR-кодом.
   ============================================================ */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.callback-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.callback-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.callback-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 810px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}

.callback-modal__dialog--single {
  grid-template-columns: 1fr;
  max-width: 460px;
}

.callback-modal.is-open .callback-modal__dialog {
  transform: none;
}

.callback-modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s;
}

.callback-modal__close:hover { transform: scale(1.08); }

/* --- Левая колонка: форма / успех --- */
.callback-modal__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.callback-modal__title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
  color: var(--color-dark);
}

.callback-modal__subtitle {
  margin-top: 10px;
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.callback-modal__form,
.callback-modal__cf7 form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.callback-modal__cf7 p { margin: 0; }

/* Радио «Звонок / Telegram / WhatsApp» — пилюли, выбор 1 из 3 */
.callback-modal__methods,
.callback-modal__cf7 .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.callback-modal__method input,
.callback-modal__cf7 .wpcf7-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.callback-modal__method span,
.callback-modal__cf7 .wpcf7-radio .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-lh);
  color: var(--color-gray-desc);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.callback-modal__method input:checked + span,
.callback-modal__cf7 .wpcf7-radio input:checked + .wpcf7-list-item-label {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.callback-modal__cf7 .wpcf7-list-item { margin: 0; }

.callback-modal__input,
.callback-modal__cf7 input[type="text"],
.callback-modal__cf7 input[type="tel"],
.callback-modal__cf7 input[type="email"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-surface);
  border-radius: var(--radius-md);
  font-family: var(--font-regular);
  font-size: var(--text-body3-size);
  font-weight: 300;
  color: var(--color-dark);
  transition: border-color 0.2s;
}

.callback-modal__input::placeholder,
.callback-modal__cf7 input::placeholder {
  color: var(--color-gray);
}

.callback-modal__input:focus,
.callback-modal__cf7 input:focus {
  outline: none;
  border-color: var(--color-border);
}

/* Тёмная кнопка-пилюля «Ожидаю звонок» */
.callback-modal__submit,
.callback-modal__cf7 input[type="submit"],
.callback-modal__cf7 button[type="submit"] {
  align-self: stretch;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  padding: 0 28px;
  background-color: var(--color-dark);
  color: var(--color-white);
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-regular);
  font-size: var(--text-btn-m-size);
  line-height: var(--text-btn-m-lh);
  cursor: pointer;
  transition: opacity 0.2s;
}

.callback-modal__submit:hover,
.callback-modal__cf7 input[type="submit"]:hover,
.callback-modal__cf7 button[type="submit"]:hover {
  opacity: 0.85;
}

/* Зелёная пилюля состояния «Заявка принята!» */
.callback-modal__done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  width: 100%;
  height: 42px;
  margin-top: auto;
  padding: 0 28px;
  background: transparent;
  color: var(--color-green);
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius-full);
  font-family: var(--font-regular);
  font-size: var(--text-btn-m-size);
  line-height: var(--text-btn-m-lh);
  cursor: pointer;
}

.callback-modal__legal {
  margin-top: 14px;
  max-width: 300px;
  font-size: 11px;
  line-height: 140%;
  font-weight: 300;
  color: var(--color-gray);
}

.callback-modal__legal-link {
  color: var(--color-gray-desc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callback-modal__success {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.callback-modal__success .callback-modal__done {
  margin-top: 32px;
}

/* --- Правая колонка: телефон + QR --- */
.callback-modal__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.callback-modal__phone-row {
  align-self: flex-start;
  font-size: var(--text-body3-size);
  line-height: var(--text-body3-lh);
  font-weight: 300;
  color: var(--color-gray-desc);
}

.callback-modal__phone {
  color: var(--color-dark);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.callback-modal__phone:hover { text-decoration: underline; }

.callback-modal__qr {
  width: 168px;
  height: 168px;
  margin: auto 0;
  object-fit: contain;
}

.callback-modal__qr-hint {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  line-height: 140%;
  font-weight: 300;
  color: var(--color-gray-desc);
}

/* CF7 service messages inside the modal */
.callback-modal__cf7 .wpcf7-not-valid-tip {
  font-size: var(--text-body3-size);
  color: var(--color-orange);
  margin-top: 4px;
}

.callback-modal__cf7 .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-body3-size);
}

@media (max-width: 768px) {
  .callback-modal { padding: 16px; }

  .callback-modal__dialog {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px 20px;
  }

  .callback-modal__close {
    top: 10px;
    right: 10px;
    background: var(--color-surface);
    box-shadow: none;
  }

  .callback-modal__submit,
  .callback-modal__done,
  .callback-modal__cf7 input[type="submit"],
  .callback-modal__cf7 button[type="submit"] {
    align-self: stretch;
    width: 100%;
  }

  .callback-modal__qr { margin: 16px 0; }
  .callback-modal__qr-hint { margin-top: 0; }
}

/* ============================================================
   SWIPER FALLBACKS
   Keep correct layout even if Swiper JS/CSS fails to load.
   Rules apply ONLY while the slider is NOT initialized
   (Swiper adds .swiper-initialized once it runs).
   ============================================================ */

/* Gallery & Finish: show a single image, clip the rest */
.gallery__swiper {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.finish__swiper {
  min-width: 0;
  overflow: hidden;
}

.gallery__swiper:not(.swiper-initialized) .swiper-wrapper,
.finish__swiper:not(.swiper-initialized) .swiper-wrapper {
  display: block;
}

.gallery__swiper:not(.swiper-initialized) .swiper-slide,
.finish__swiper:not(.swiper-initialized) .swiper-slide {
  display: none;
  width: 100%;
}

.gallery__swiper:not(.swiper-initialized) .swiper-slide:first-child,
.finish__swiper:not(.swiper-initialized) .swiper-slide:first-child {
  display: block;
}

/* Neighbors: pure-CSS 4-col grid (no Swiper). Desktop. */
.neighbors__list {
  overflow: hidden;
}

.neighbors__list .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.neighbors__list .swiper-slide {
  min-width: 0;
}

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 1024px) {
  .feat-grid {
    columns: 2;
  }

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

  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-section__transit {
    grid-template-columns: 1fr;
  }

  .neighbors__list .swiper-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feat-grid {
    columns: 2;
  }

  /* Neighbors: horizontal scroll-snap carousel + dots.
     .neighbors__list IS the flex+scroll container; the inner
     .swiper-wrapper is collapsed with display:contents so the slides
     become direct flex children and their % resolves against the
     viewport-width list (mirrors the .cards carousel that works). */
  .neighbors__list {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .neighbors__list::-webkit-scrollbar { display: none; }

  .neighbors__list .swiper-wrapper {
    display: contents;
  }

  .neighbors__list .swiper-slide {
    flex: 0 0 78%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .neighbors__nav { display: none; }

  .neighbors__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .neighbors__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background-color 0.2s;
  }

  .neighbors__dot.is-active { background: var(--color-dark); }

  .gallery__body {
    grid-template-columns: 1fr;
  }

  .gallery__side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .gallery__side .gallery__title {
    flex-basis: 100%;
    margin-bottom: 8px;
  }

  .gallery__tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gallery__nav {
    margin-top: 0;
  }

  .gallery__slide-img {
    height: 280px;
  }

  .finish__slide-img {
    height: 280px;
  }

  /* Review modal: stack photo over text on mobile */
  .review-modal__text {
    grid-template-columns: 1fr;
  }

  .review-modal__photo-wrap {
    height: 240px;
  }

  .review-modal__body {
    padding: 24px;
  }

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

  .visit__right {
    height: 240px;
    order: -1;
  }

  .visit__left {
    padding: 0;
  }

  .map-section__transit {
    grid-template-columns: 1fr;
  }

  .footer__wrap {
    padding-inline: 20px;
  }

  .footer__card {
    padding: 28px 24px;
    grid-template-columns: 1fr;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer__legal-link {
    white-space: normal;
  }

  .apts__help {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .neighbors__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .finish__cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq__item {
    grid-template-columns: 1fr;
  }

  .faq__side {
    display: none;
  }
}
