:root {
  --bg: #090a0d;
  --bg-soft: #0f1116;
  --card: #141822;
  --text: #f2f4f8;
  --muted: #9aa3b2;
  --gold: #c8a46a;
  --bronze: #8f6a3a;
  --neon: #c5eeff;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --container: 1180px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #1a1f2a 0%, #0a0b0f 35%, #07070a 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: Syne, Inter, Arial, sans-serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  max-width: 18ch;
}

p {
  margin: 0;
}

#progressBar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--neon));
  z-index: 120;
}

.header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 26px));
  z-index: 100;
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.72);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-cta {
  border: 1px solid rgba(200, 164, 106, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 2px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: clip;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  /* Используем высококачественное изображение из img/foto */
  background: url("img/foto/Gemini_Generated_Image_39mzmz39mzmz39mz.png") center/cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
}

.hero-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(197, 238, 255, 0.18), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(200, 164, 106, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.2), rgba(7, 8, 10, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
}

.hero-subtitle {
  margin-top: 20px;
  color: #e1e6f0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  border-color: rgba(200, 164, 106, 0.5);
  background: linear-gradient(135deg, #8f6a3a, #c8a46a 55%, #f0ddb6);
  color: #1f1610;
  font-weight: 700;
}

.btn-ghost:hover {
  border-color: rgba(197, 238, 255, 0.5);
}

.hero-floating {
  position: absolute;
  right: 2.8vw;
  bottom: 44px;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100% - 30px));
}

.stat-card {
  border: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.66);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px;
}

.stat-card.danger {
  border-color: rgba(236, 114, 114, 0.45);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.06rem;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 38px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 106, 0.55);
}

.benefit-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 106, 0.45);
  background: rgba(200, 164, 106, 0.08);
  font-weight: 700;
}

.benefit-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  min-height: 180px;
}

.gallery-item:nth-child(6n + 1),
.gallery-item:nth-child(6n + 4) {
  grid-column: span 6;
  min-height: 260px;
}

.gallery-item:nth-child(6n + 2),
.gallery-item:nth-child(6n + 3),
.gallery-item:nth-child(6n + 5),
.gallery-item:nth-child(6n + 6) {
  grid-column: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
  content: "Увеличить";
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7deea;
  background: rgba(9, 10, 13, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.floor-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.floorplan {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f131a, #0a0c12);
  padding: 10px;
}

.fp-outline {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

.fp-zone {
  fill: rgba(200, 164, 106, 0.12);
  stroke: rgba(200, 164, 106, 0.66);
  stroke-width: 1.4;
  transition: fill 0.25s ease;
}

.zone text {
  fill: #edf2fb;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.zone:hover .fp-zone,
.zone.active .fp-zone {
  fill: rgba(197, 238, 255, 0.22);
}

.floor-info {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 18, 24, 0.7);
  padding: 22px;
  color: #dfe6f2;
  font-size: 1.03rem;
}

.viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e1118;
}

.viewer img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
}

.viewer-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.viewer-controls label {
  color: var(--muted);
}

.viewer-controls input[type="range"] {
  width: 100%;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.1) brightness(0.9);
}

.location-points {
  display: grid;
  gap: 12px;
}

.location-points article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.location-points strong {
  color: var(--gold);
  font-size: 1.16rem;
}

.location-points span {
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(180deg, rgba(197, 238, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.review p {
  color: #dfe6f2;
  margin-bottom: 14px;
}

.review span {
  color: var(--muted);
  font-size: 0.94rem;
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(200, 164, 106, 0.3), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(197, 238, 255, 0.22), transparent 40%),
    #090a0d;
}

.cta h2 {
  margin-inline: auto;
}

.cta-subtitle {
  margin-top: 14px;
  color: var(--muted);
}

.timer {
  margin: 26px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.time-box {
  min-width: 82px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(10, 12, 16, 0.62);
}

.time-box strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
}

.time-box span {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead-form {
  width: min(680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lead-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14, 18, 24, 0.9);
  color: var(--text);
  padding: 12px 14px;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6, 7, 10, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1280px);
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid var(--border);
  background: rgba(15, 18, 24, 0.8);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  font-size: 1.7rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

.lightbox-nav.prev {
  left: 22px;
}

.lightbox-nav.next {
  right: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 1080px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 90px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.95);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .hero-floating {
    position: static;
    margin: 24px auto 34px;
    width: min(100%, 640px);
    padding-inline: 20px;
  }

  .floor-wrap,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .viewer-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header {
    top: 10px;
    width: calc(100% - 16px);
  }

  .hero-content {
    padding-top: 110px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(6n + 1),
  .gallery-item:nth-child(6n + 2),
  .gallery-item:nth-child(6n + 3),
  .gallery-item:nth-child(6n + 4),
  .gallery-item:nth-child(6n + 5),
  .gallery-item:nth-child(6n + 6) {
    grid-column: span 1;
    min-height: 170px;
  }

  .lightbox-nav {
    display: none;
  }
}

