/* ==========================================================================
   БЦ «ПРАЙМ-ОЗЕРКИ» — СВЕТЛЫЙ ДЕЛОВОЙ СТИЛЬ (ГОЛУБОЙ С БЕЛЫМ)
   Коммерческая недвижимость класса B+ в Санкт-Петербурге
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-deep: #0369a1;
  --primary-surface: #f0f9ff;
  --accent-gold: #0284c7;
  --accent-gold-hover: #0369a1;
  --accent-gold-light: #38bdf8;
  --accent-warm: #b4822d;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-page: #f0f9ff;
  --bg-card: #ffffff;
  --border-color: #bae6fd;
  --border-blue: #bae6fd;
  --shadow-sm: 0 1px 3px rgba(2, 132, 199, 0.05);
  --shadow-md: 0 4px 16px rgba(2, 132, 199, 0.08);
  --shadow-lg: 0 12px 36px rgba(2, 132, 199, 0.12);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sqm {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700;
  display: inline-block;
  font-size: 0.85em;
  vertical-align: 0.25em;
  line-height: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Широкий современный контейнер */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   КНОПКИ (ЕДИНАЯ ДИЗАЙН-СИСТЕМА)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

/* 1. Главная голубая кнопка */
.btn-gold {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-gold:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-gold:active {
  opacity: 0.85;
}

/* 2. Тёмная статусная кнопка для карточек */
.btn-primary,
.btn-dark {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-primary:hover,
.btn-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.btn-primary:active,
.btn-dark:active {
  opacity: 0.85;
}

/* 3. Контурная кнопка для светлого фона */
.btn-outline-white {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.btn-outline-white:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.btn-outline-white:active {
  opacity: 0.8;
}

/* 4. Контурная кнопка */
.btn-outline,
.btn-outline-gold {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover,
.btn-outline-gold:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-outline:active,
.btn-outline-gold:active {
  opacity: 0.85;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   ШАПКА (HEADER) — ПРЕМИАЛЬНОЕ ТЕМНОЕ СТЕКЛО (ДЛЯ ОРИГИНАЛЬНОГО БРЕНД-ЛОГО)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  border-bottom: 1px solid rgba(2, 132, 199, 0.22);
  transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  background: rgba(11, 21, 38, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(6, 12, 23, 0.25);
}

.header.header-scrolled {
  background: rgba(6, 12, 23, 0.98);
  padding: 12px 0;
  border-bottom: 1px solid rgba(2, 132, 199, 0.4);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.header.header-scrolled .logo-img {
  height: 40px;
}

.header.header-scrolled .nav-link {
  color: #cbd5e1;
}

.header.header-scrolled .nav-link:hover {
  color: var(--accent-gold-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.header nav {
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #38bdf8;
}

.mobile-menu-footer {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-phone {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: #38bdf8;
}

.header-phone-mobile {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   HERO-СЕКЦИЯ — ТЁМНЫЙ ПРЕМИАЛЬНЫЙ ДИЗАЙН С ВИДЕО
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background: #060c17;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0.92;
  filter: contrast(1.1) saturate(1.2) brightness(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(6, 12, 23, 0.90) 0%,
    rgba(6, 12, 23, 0.82) 40%,
    rgba(6, 12, 23, 0.35) 75%,
    rgba(6, 12, 23, 0.10) 100%
  );
}

.mobile-menu-header {
  display: none;
}

.hero-container {
  position: relative;
  z-index: 3;
  padding-top: 88px; /* компенсация фиксированного хедера */
}

.hero-content {
  max-width: 1120px;
  text-align: left;
}

.hero-eyebrow-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #f1f5f9;
  background: rgba(6, 12, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 9999px;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-pill-accent {
  color: #ffffff;
  background: #0284c7;
  border-color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #38bdf8;
  margin: 0 0 18px 0;
  line-height: 1;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 0 0 24px 0;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 19px;
  color: #cbd5e1;
  margin: 0 0 40px 0;
  line-height: 1.65;
  font-weight: 400;
  max-width: 860px;
}

/* Метрики */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 36px 0;
  max-width: 860px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-sep {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.metric-card .metric-val {
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.15;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.metric-card .metric-lbl {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 4px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0;
}

.hero-actions .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  justify-content: center;
}

.hero-actions .btn-gold {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.hero-actions .btn-gold:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.hero-actions .btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-actions .btn-outline-white:hover {
  background: #ffffff;
  color: #060c17;
  border-color: #ffffff;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.hero-scroll-hint:hover { opacity: 0.9; }

.hero-scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid #38bdf8;
  border-bottom: 2px solid #38bdf8;
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}



/* ==========================================================================
   СЕКЦИИ — ОБЩИЕ ПАРАМЕТРЫ
   ========================================================================== */
.section {
  padding: 96px 0;
  background-color: var(--bg-page);
}

.section-bg {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 52px;
  max-width: 900px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
  max-width: 760px;
}


/* ==========================================================================
   О ПРОЕКТЕ (АРХИТЕКТУРНЫЙ БЛОК)
   ========================================================================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: stretch;
}

.overview-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
  min-height: 420px;
  height: 100%;
}

.overview-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(6, 12, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 4px;
}

/* Сетка параметров (2x4 карточки) */
.overview-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.spec-cell {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(11, 21, 38, 0.04);
  transition: all 0.2s ease;
}

.spec-cell:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.spec-cell .spec-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.spec-cell .spec-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

/* ==========================================================================
   АРХИТЕКТУРНАЯ МАТРИЦА ПРЕИМУЩЕСТВ И ИНФРАСТРУКТУРЫ
   ========================================================================== */
.about-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.matrix-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.matrix-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 14px 36px -4px rgba(2, 132, 199, 0.10);
  transform: translateY(-2px);
}

.matrix-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f9ff;
}

.matrix-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
}

.matrix-category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #0369a1;
}

.matrix-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.matrix-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.matrix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.matrix-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   СЕКЦИЯ ИНТЕРЬЕРОВ И ОБЩЕСТВЕННЫХ ПРОСТРАНСТВ (КАРУСЕЛЬ ПРЕМИУМ)
   ========================================================================== */
.section-interiors {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Элементы управления каруселью */
.carousel-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

.carousel-counter {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 0 6px;
  user-select: none;
}

.carousel-counter strong {
  font-size: 18px;
  color: var(--primary);
  font-weight: 800;
}

/* Обертка и трек карусели */
.interior-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  cursor: grab;
}

.interior-carousel-wrapper:active {
  cursor: grabbing;
}

.interior-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  gap: 24px;
  will-change: transform;
}

/* Слайд карусели */
.carousel-slide {
  flex: 0 0 calc(50% - 12px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-slide:hover {
  border-color: #7dd3fc;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.12);
  transform: translateY(-3px);
}

.slide-image-box {
  position: relative;
  width: 100%;
  height: 380px;
  background: #0f172a;
  overflow: hidden;
}

.slide-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-image-box img {
  transform: scale(1.03);
}

.slide-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.slide-caption-box {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.slide-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.slide-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
}

/* Точки пагинации */
.carousel-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #bae6fd;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot:hover {
  background: #7dd3fc;
}

.carousel-dot.active {
  width: 32px;
  background: var(--primary);
}

/* ==========================================================================
   КНОПКА СКАЧИВАНИЯ БУКЛЕТА И ОФИСОГРАФИИ В ШАПКЕ СЕКЦИИ ПЛАНИРОВОК
   ========================================================================== */
.section-header-with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 100%;
}

.section-header-action {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.btn-officography {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
}

.btn-officography:hover {
  border-color: var(--primary);
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.14);
}

.btn-officography .pdf-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.btn-officography-text {
  display: flex;
  flex-direction: column;
}

.btn-officography-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.btn-officography-text span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Адаптив для карусели интерьеров */
@media (max-width: 1024px) {
  .slide-image-box {
    height: 320px;
  }
  .section-header-with-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .carousel-nav-controls {
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
  .slide-image-box {
    height: 260px;
  }
  .slide-caption-box {
    padding: 20px 22px 24px;
  }
  .slide-title {
    font-size: 18px;
  }
  .slide-desc {
    font-size: 13.5px;
  }
  .carousel-nav-controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }
  .btn-officography {
    width: 100%;
    justify-content: flex-start;
  }
}

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

@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.plan-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.plan-card:hover {
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.08);
  border-color: #bae6fd;
}

.plan-preview {
  position: relative;
  background: #f0f9ff;
  cursor: pointer;
  height: 290px;
  overflow: hidden;
  border-bottom: 1px solid #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.plan-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.plan-preview:hover img {
  transform: scale(1.03);
}

.plan-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(2, 132, 199, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.plan-preview:hover .plan-zoom-hint {
  background: #0369a1;
  color: #ffffff;
  border-color: #38bdf8;
}

.plan-card-body {
  padding: 24px 28px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  white-space: nowrap;
}

.plan-tag.exclusive {
  background: rgba(197, 155, 78, 0.12);
  color: #8c601f;
  border: 1px solid rgba(197, 155, 78, 0.28);
}

.plan-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.plan-specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.plan-spec-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  min-height: 58px;
}

.plan-spec-col span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.2;
}

.plan-spec-col strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-card-bottom .btn {
  padding: 10px 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

.plan-price-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.plan-price-num span {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   ФУНКЦИОНАЛЬНОЕ ЗОНИРОВАНИЕ (ЭТАЖИ)
   ========================================================================== */
.floors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.floor-cell {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.04);
  transition: all 0.2s ease;
}

.floor-cell:hover {
  transform: translateY(-2px);
  border-color: #7dd3fc;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.floor-cell-level {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.floor-cell-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.floor-cell-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ПЛАНИРОВОК (ДЕЙСТВУЮЩАЯ / БУДУЩАЯ)
   ========================================================================== */
.plan-tabs-nav {
  display: inline-flex;
  gap: 12px;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
}

.plan-tab-btn {
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-tab-btn:hover {
  color: var(--primary);
  background: #f0f9ff;
}

.plan-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.plan-tab-intro {
  margin-bottom: 24px;
}

.plan-tab-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.plan-tab-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.6;
}

/* Плейсхолдер для действующей планировки БТИ */
.plan-placeholder-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #0369a1;
  padding: 24px;
  text-align: center;
}

.plan-placeholder-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 4px;
}

.plan-placeholder-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.plan-placeholder-btn {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  padding: 6px 14px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ==========================================================================
   ХОД СТРОИТЕЛЬСТВА И ТАЙМЛАЙН
   ========================================================================== */
.construction-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

@media (max-width: 1024px) {
  .construction-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .construction-timeline {
    grid-template-columns: 1fr;
  }
}

.timeline-step {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-step.completed {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.timeline-step.active {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.15);
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: #e2e8f0;
  color: #64748b;
  margin-bottom: 4px;
}

.timeline-step.completed .timeline-dot {
  background: #0284c7;
  color: #ffffff;
}

.timeline-step.active .timeline-dot {
  background: #0284c7;
  color: #ffffff;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.timeline-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-gold);
}

.timeline-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

.timeline-text {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Галерея хода строительства */
.construction-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .construction-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .construction-gallery {
    grid-template-columns: 1fr;
  }
}

.construction-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  cursor: pointer;
  background: #0f172a;
}

.construction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.construction-card:hover img {
  transform: scale(1.05);
}

.construction-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 23, 0.88) 0%, rgba(6, 12, 23, 0.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.construction-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #38bdf8;
  margin-bottom: 6px;
}

.construction-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

/* ==========================================================================
   ИНВЕСТИЦИОННЫЙ КАЛЬКУЛЯТОР
   ========================================================================== */
.calc-wrapper {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(2, 132, 199, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

.pay-tabs-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-tab {
  padding: 8px 16px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-tab:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.pay-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.calc-sliders {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-unit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.slider-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.slider-value-display {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  transition: transform 0.1s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-summary-panel {
  background: #0f172a;
  color: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 24px;
  font-weight: 700;
}

.summary-data-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.summary-data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-data-row span {
  font-size: 14px;
  color: #94a3b8;
}

.summary-data-row strong {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.summary-data-row strong.accent {
  color: #38bdf8;
}

/* ==========================================================================
   ЛОКАЦИЯ — СВЕТЛО-ГОЛУБОЙ ФОН
   ========================================================================== */
.location-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  color: #0f172a;
  padding: 88px 0;
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
}

.location-section .section-title {
  color: #0f172a;
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.location-lead {
  font-size: 17px;
  color: #334155;
  margin-bottom: 28px;
  line-height: 1.65;
}

.location-grid-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 36px;
  border-top: 1px solid #cbd5e1;
}

.loc-metric-box {
  padding: 20px 0;
  border-bottom: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
}

.loc-metric-box:nth-child(2n) {
  border-right: none;
  padding-left: 24px;
}

.loc-metric-box:nth-child(2n+1) {
  padding-right: 24px;
}

.loc-metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.loc-metric-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

.location-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.12);
  border: 1px solid #bae6fd;
}

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

/* ==========================================================================
   ГАЛЕРЕЯ
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 10px;
}

/* Первый и последний шире — красивый ритм без дыр */
.gallery-card:nth-child(1),
.gallery-card:nth-child(4) {
  grid-column: span 2;
}

.gallery-card {
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--primary);
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 23, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}


/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer {
  background: #060c17;
  color: #94a3b8;
  padding: 80px 0 0;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.35fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Единый слот заголовка 44px для строгого горизонтального выравнивания всех 4 колонок */
.footer-header-slot {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.footer-about {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 16px 0;
  color: #94a3b8;
}

.footer-legal {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  color: #cbd5e1;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-gold-light);
  transform: translateX(3px);
  display: inline-block;
}

/* Контакты */
.footer-contacts-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-row span {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.footer-contact-row a,
.footer-contact-row strong {
  font-size: 14.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
}

.footer-contact-row a.footer-phone {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.footer-contact-row a:hover {
  color: var(--accent-gold-light);
}

/* Мессенджеры */
.footer-messenger-desc {
  font-size: 14px;
  margin: 0 0 18px 0;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-messenger-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.footer-messenger-links a {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.footer-messenger-links a:hover {
  color: var(--accent-gold-light);
  transform: translateX(3px);
}

.footer-messenger-links a::before {
  content: '→';
  font-size: 14px;
  color: var(--accent-gold);
}

/* Нижняя строка */
.footer-bottom-bar {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #64748b;
}

.footer-bottom-bar a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-bottom-bar a:hover {
  color: #ffffff;
}



/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-field {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-field:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 155, 78, 0.15);
}

.form-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 20px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.form-consent-row input {
  margin-top: 2px;
  accent-color: var(--accent-gold);
}

.form-consent-row a {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Lightbox фото */
.lightbox-modal .modal-dialog {
  max-width: 1100px;
  width: 92vw;
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-modal img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-modal .modal-close-btn {
  color: #ffffff;
  top: -42px;
  right: 0;
  font-size: 28px;
}

/* ==========================================================================
   АДАПТИВ (ПОЛНАЯ МОБИЛЬНАЯ ОПТИМИЗАЦИЯ)
   ========================================================================== */

/* 1. НОУТБУКИ И ПЛАНШЕТЫ (до 1200px) */
@media (max-width: 1200px) {
  .container {
    padding: 0 28px;
  }

  .hero-title {
    font-size: 58px;
    letter-spacing: -1.5px;
  }

  .hero-metrics {
    max-width: 100%;
  }

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

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

  .overview-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
  }

  .calc-wrapper {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* 2. ПЛАНШЕТЫ (до 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero-title {
    font-size: 50px;
    letter-spacing: -1.2px;
  }

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

  .about-matrix {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .overview-photo {
    min-height: 340px;
    height: 340px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .floors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .location-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(4) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* 3. СМАРТФОНЫ И МАЛЕНЬКИЕ ПЛАНШЕТЫ (до 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Шапка */
  .header {
    padding: 12px 0;
  }

  .header.header-scrolled {
    padding: 10px 0;
  }

  .logo-img {
    height: 36px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-phone {
    display: none;
  }

  .header-btn {
    display: none;
  }

  .header-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .header-phone-mobile:active {
    transform: scale(0.94);
    background: rgba(2, 132, 199, 0.3);
    border-color: #38bdf8;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    font-size: 19px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .mobile-toggle:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(56, 189, 248, 0.5);
  }

  /* Полноэкранное мобильное меню */
  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(6, 12, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 20px 28px;
    z-index: 9999;
    overflow-y: auto;
    gap: 0;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-logo .logo-img {
    height: 34px;
    width: auto;
    display: block;
  }

  .mobile-menu-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-menu-close:hover,
  .mobile-menu-close:active {
    background: rgba(197, 155, 78, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
  }

  .nav-menu.active li {
    width: 100%;
    list-style: none;
  }

  .nav-menu.active .nav-link {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.active .nav-link:hover {
    color: var(--accent-gold-light);
    padding-left: 6px;
  }

  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
  }

  .mobile-menu-phone {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.2px;
  }

  /* Секции общие */
  .section {
    padding: 60px 0;
  }

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

  .section-tag {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
  }

  .section-desc {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Hero на смартфонах — тёмный премиальный лендинг с живым видео */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: max(76px, calc(env(safe-area-inset-top) + 60px));
    padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 24px));
    display: flex;
    align-items: flex-end;
    position: relative;
    background: #060c17;
  }

  .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: none !important;
    object-fit: cover;
    object-position: center top;
    opacity: 0.98;
    filter: contrast(1.1) saturate(1.2) brightness(1.1);
    z-index: 1;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      180deg, 
      rgba(6, 12, 23, 0.55) 0%, 
      rgba(6, 12, 23, 0.28) 18%, 
      rgba(6, 12, 23, 0.72) 38%, 
      rgba(6, 12, 23, 0.94) 58%, 
      #060c17 82%
    );
  }

  .hero-container {
    position: relative;
    z-index: 3;
    padding-top: 12px;
    width: 100%;
  }

  .hero-content {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
  }

  .desktop-only {
    display: none !important;
  }

  .hero-eyebrow-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
  }

  .hero-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #f1f5f9;
    background: rgba(10, 20, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 4px 10px;
    border-radius: 9999px;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .hero-pill-accent {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.5);
  }

  .hero-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #38bdf8;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(6, 12, 23, 1), 0 0 30px rgba(6, 12, 23, 0.9);
  }

  .hero-subtitle {
    font-size: clamp(13px, 3.6vw, 14.5px);
    line-height: 1.5;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 18px;
    text-shadow: 0 2px 14px rgba(6, 12, 23, 1), 0 0 20px rgba(6, 12, 23, 0.8);
    text-wrap: pretty;
  }

  /* Карточки метрик 2x2 */
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
    margin-bottom: 18px;
    border: none;
  }

  .metric-sep {
    display: none;
  }

  .metric-card {
    background: rgba(15, 23, 42, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }

  .metric-card .metric-val {
    font-size: clamp(18px, 5vw, 21px);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
  }

  .metric-card .metric-lbl {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.3;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .hero-actions .btn:first-child {
    grid-column: 1 / -1;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  .hero-actions .btn:not(:first-child) {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    min-height: 42px;
    line-height: 1.2;
  }

  .hero-actions .btn-gold {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid #38bdf8;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
  }

  .hero-actions .btn-outline-white {
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .hero-actions .btn:active {
    transform: scale(0.98);
  }

  .hero-actions .btn-hero-pdf svg {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    flex-shrink: 0;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Параметры объекта */
  .overview-photo {
    min-height: 240px;
    height: 240px;
  }

  .overview-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .spec-cell {
    padding: 14px 16px;
    gap: 4px;
  }

  .spec-cell .spec-label {
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  .spec-cell .spec-val {
    font-size: 15px;
  }

  .about-matrix {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

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

  .matrix-num {
    font-size: 26px;
  }

  .matrix-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .matrix-desc {
    font-size: 14px;
    margin-bottom: 18px;
  }

  /* Планировки */
  .plan-preview {
    height: auto;
    aspect-ratio: 16 / 10.3;
    width: 100%;
    padding: 0;
  }

  .plan-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .plan-zoom-hint {
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
  }

  .plan-card-body {
    padding: 20px;
  }

  .plan-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .plan-specs-table {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .plan-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .plan-price-num {
    font-size: 20px;
  }

  .plan-card-bottom .btn {
    width: 100%;
  }

  /* Зонирование этажей */
  .floors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .floor-cell {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
  }

  .floor-cell-title {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .floor-cell-text {
    font-size: 14px;
    line-height: 1.55;
  }

  /* Калькулятор */
  .calc-sliders {
    padding: 24px 18px;
    gap: 20px;
  }

  .slider-label {
    font-size: 14px;
  }

  .slider-value-display {
    font-size: 17px;
  }

  .calc-summary-panel {
    padding: 28px 18px;
  }

  .summary-heading {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .summary-data-list {
    gap: 14px;
    margin-bottom: 22px;
  }

  .summary-data-row span {
    font-size: 13px;
  }

  .summary-data-row strong {
    font-size: 18px;
  }

  /* Локация */
  .location-section {
    padding: 60px 0;
  }

  .location-lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .location-grid-metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 24px;
  }

  .loc-metric-box {
    padding: 14px 10px;
  }

  .loc-metric-box:nth-child(2n) {
    padding-left: 12px;
  }

  .loc-metric-box:nth-child(2n+1) {
    padding-right: 12px;
  }

  .loc-metric-val {
    font-size: 20px;
  }

  .loc-metric-text {
    font-size: 12px;
  }

  .location-layout .btn {
    width: 100%;
  }

  .location-map-wrap {
    height: 260px;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #bae6fd;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  }

  .location-map-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Галерея */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
  }

  /* Футер на мобильных — структурированный, чистый вид */
  .footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 12px;
    border-bottom: none;
  }

  .footer-col {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .footer-header-slot {
    height: auto;
    margin-bottom: 12px;
  }

  .footer-logo-img {
    height: 32px;
  }

  .footer-col-title {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #38bdf8;
    font-weight: 700;
  }

  .footer-about {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
    color: #94a3b8;
  }

  .footer-legal {
    font-size: 11.5px;
    color: #64748b;
  }

  /* Разделы — сетка в 2 колонки */
  .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
  }

  .footer-nav-list a {
    font-size: 13.5px;
    color: #cbd5e1;
    display: block;
    padding: 2px 0;
  }

  /* Контакты — структурированная карточка */
  .footer-contacts-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
  }

  .footer-contact-row span {
    font-size: 10.5px;
    color: #94a3b8;
  }

  .footer-contact-row a.footer-phone {
    font-size: 17px;
    font-weight: 800;
    color: #38bdf8;
  }

  .footer-contact-row a,
  .footer-contact-row strong {
    font-size: 14px;
  }

  /* Мессенджеры — кнопки-чипы в ряд */
  .footer-messenger-desc {
    font-size: 13px;
    margin-bottom: 12px;
    color: #94a3b8;
  }

  .footer-messenger-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .footer-messenger-links a {
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 10px 6px;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #38bdf8;
    text-align: center;
  }

  .footer-messenger-links a::before {
    display: none;
  }

  .footer-bottom-bar {
    padding: 20px 0 28px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 11.5px;
    line-height: 1.5;
  }

  /* Модалки */
  .modal {
    padding: 12px;
  }

  .modal-dialog {
    padding: 24px 18px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius);
  }

  .form-field {
    font-size: 16px;
    padding: 11px 12px;
  }
}

/* 4. КОМПАКТНЫЕ И УЗКИЕ СМАРТФОНЫ (до 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

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

  .overview-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .plan-specs-table {
    grid-template-columns: 1fr;
  }

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

  .loc-metric-box {
    border-right: none !important;
    padding: 12px 0 !important;
  }

  /* Калькулятор: перенос строк в плашке финрезультатов без обрезки */
  .calc-summary-panel {
    padding: 24px 16px;
  }

  .summary-data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 12px;
  }

  .summary-data-row span {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.3;
  }

  .summary-data-row strong {
    font-size: 20px;
    font-weight: 800;
  }

  .calc-btn-wrap .btn {
    width: 100%;
    font-size: 14px;
    padding: 14px 12px;
    text-align: center;
    white-space: normal;
  }

  .pay-tabs {
    flex-direction: column;
    gap: 6px;
  }

  .pay-tab {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }
}


