
:root {
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-pale: #E8F5E9;
  --blue: #1565C0;
  --blue-light: #1E88E5;
  --beige: #F5F0E8;
  --beige-dark: #EDE7D9;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,50,0.35); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--green);
}
.btn-white:hover { background: var(--beige); }

/* ── Шапка ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: var(--transition);
}
.header.scrolled .logo { color: var(--green); }
.logo span { color: var(--green-light); }
.header.scrolled .logo span { color: var(--green); }

.nav { display: flex; gap: 8px; }
.nav a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.15); }
.header.scrolled .nav a { color: var(--text-muted); }
.header.scrolled .nav a:hover { color: var(--green); background: var(--green-pale); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}
.header.scrolled .header-phone { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.header.scrolled .burger span { background: var(--text); }

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.header.menu-open .logo {
  color: var(--green);
}
.header.menu-open .burger span {
  background: var(--text);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a2a 0%, #2E7D32 50%, #1565C0 100%);
  z-index: 0;
}
.hero-bg video,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 span { color: #81C784; }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-features li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.hero-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--green-light);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  animation: bounce 2s infinite;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.4);
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ── Секции (общее) ── */
section { padding: 80px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Преимущества ── */
.features { background: var(--beige); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.feature-icon {
  width: 64px; height: 64px;
  background: var(--green-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── Генплан-превью ── */
.genplan-preview {
  background: var(--white);
}
.genplan-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.genplan-preview-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.genplan-preview-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.genplan-preview-img:hover img { transform: scale(1.03); }
.genplan-preview-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.genplan-preview-badge strong { font-size: 22px; font-weight: 800; color: var(--green); }
.genplan-preview-badge span { font-size: 12px; color: var(--text-muted); }
.genplan-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.genplan-stat { background: var(--beige); border-radius: var(--radius-sm); padding: 16px; }
.genplan-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--green); }
.genplan-stat span { font-size: 13px; color: var(--text-muted); }

/* ── Галерея ── */
.gallery { background: var(--beige); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.25); }
.gallery-item-overlay svg { opacity: 0; color: white; transition: var(--transition); }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ── Расположение ── */
.location { background: var(--white); }
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.location-points { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.location-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--beige);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.location-points li .icon { font-size: 20px; }
.location-points li strong { font-weight: 600; }
.location-points li span { color: var(--text-muted); }
#yandex-map {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--beige-dark);
}

/* ── Цены ── */
.prices { background: var(--beige); }
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}
.price-card:hover, .price-card.popular {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(46,125,50,0.15);
}
.price-card .popular-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.price-card .area { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.price-card .area-unit { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.price-card .price { font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.price-card .price-from { font-size: 12px; color: var(--text-muted); }

.prices-note {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.prices-note-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.prices-note-item .icon { font-size: 28px; flex-shrink: 0; }
.prices-note-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.prices-note-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Лид-магнит ── */
.leadmagnet {
  background: linear-gradient(135deg, var(--green) 0%, #1B5E20 100%);
  color: var(--white);
}
.leadmagnet-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.leadmagnet .section-label { color: rgba(255,255,255,0.7); }
.leadmagnet .section-title { color: var(--white); }
.leadmagnet .section-sub { color: rgba(255,255,255,0.8); }
.leadmagnet-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.leadmagnet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.leadmagnet-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.form-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: #000; }
.form-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--green); }
.form-group input::placeholder { color: #B0B0B0; }
.form-privacy { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }
.form-privacy a { color: var(--green); text-decoration: underline; }
.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-success .icon { font-size: 48px; margin-bottom: 12px; }
.form-success h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text-muted); }

/* ── Контакты ── */
.contacts { background: var(--white); }
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contacts-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contacts-list li { display: flex; align-items: flex-start; gap: 16px; }
.contacts-list .icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contacts-list .label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contacts-list .value { font-size: 16px; font-weight: 600; }
.contacts-list .value a:hover { color: var(--green); }
.messengers {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.messenger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}
.messenger-btn.tg { background: #2AABEE; color: white; }
.messenger-btn.tg:hover { background: #1A9BD6; transform: translateY(-2px); }
.messenger-btn.wa { background: #25D366; color: white; }
.messenger-btn.wa:hover { background: #1EBE57; transform: translateY(-2px); }
.messenger-btn.max { background: #0077FF; color: white; }
.messenger-btn.max:hover { background: #0066DD; transform: translateY(-2px); }
.max-logo-btn { display: inline-block; line-height: 0; transition: opacity .18s, transform .18s; }
.max-logo-btn:hover { opacity: .85; transform: translateY(-2px); }
#contacts-map {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--beige-dark);
}

/* ── Футер ── */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-size: 18px; font-weight: 800; color: var(--white); }
.footer-logo span { color: var(--green-light); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; transition: var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* ── Мобильное меню ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige-dark);
  color: var(--text);
}
.mobile-menu a:hover { color: var(--green); }

/* ── Адаптив ── */
@media (max-width: 900px) {
  .genplan-preview-inner,
  .location-inner,
  .leadmagnet-inner,
  .contacts-inner { grid-template-columns: 1fr; gap: 40px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4/3; }

  .prices-note { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav { display: none; }
  .header-phone { display: none; }
  .burger { display: flex; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  #header-cta-btn { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
  .prices-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(1, 1fr); }
}
