/* ============================================================
   УГЛИЧИ — жилой курорт на первой линии Волги
   ============================================================ */

:root {
  --ink: #0f1213;
  --ink-2: #161b1d;
  --paper: #f4f1ec;
  --paper-dim: rgba(244, 241, 236, 0.62);
  --red: #e44242;
  --red-deep: #c93535;
  --blue: #acc6da;
  --line: rgba(244, 241, 236, 0.14);
  --font-display: "Montserrat", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

main { width: 100%; max-width: 100%; overflow-x: clip; }

::selection { background: var(--red); color: #fff; }

/* ---------- типографика ---------- */

.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.16;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  max-width: 1100px;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--paper-dim);
  max-width: 640px;
}

/* ---------- секции ---------- */

.section {
  padding: clamp(110px, 14vw, 200px) clamp(20px, 5vw, 80px);
  position: relative;
}

.section-inner { max-width: 1440px; margin: 0 auto; }

.section-head { margin-bottom: clamp(48px, 6vw, 90px); }

/* ---------- прелоадер ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 34px;
}

.preloader img.mark { height: 92px; width: auto; max-width: none; }
.preloader img.word { height: 30px; width: auto; max-width: none; }

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 14px 30px;
  border-radius: 100px;
  border: 1px solid rgba(244, 241, 236, 0.16);
  background: rgba(15, 18, 19, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.4s ease, border-color 0.4s ease;
  white-space: nowrap;
}

.nav.scrolled {
  background: rgba(15, 18, 19, 0.82);
  border-color: rgba(244, 241, 236, 0.1);
}

.nav-logo img { height: 16px; width: auto; max-width: none; }

.nav-links { display: flex; gap: 26px; }

.nav-links a {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--paper); }

.nav-phone {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 12px 24px;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-phone:hover { background: var(--red-deep); transform: translateY(-1px); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 20px 42px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

.btn-ghost { border-color: rgba(244, 241, 236, 0.36); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper); }

.btn-xl {
  font-size: 14px;
  padding: 24px 52px;
  letter-spacing: 0.2em;
}

/* ---------- герой ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 40%;
  background-image: url("../assets/img/hero.jpg");
  will-change: transform;
}

.img-f1 { background-image: url("../assets/img/flight-1.jpg"); }
.img-f2 { background-image: url("../assets/img/flight-2.jpg"); }
.img-f3 { background-image: url("../assets/img/flight-3.jpg"); }
.img-f4 { background-image: url("../assets/img/flight-4.jpg"); }
.img-f5 { background-image: url("../assets/img/flight-5.jpg"); }

@media (max-width: 900px) {
  .hero-bg { background-image: url("../assets/img/hero-m.jpg"); }
  .img-f1 { background-image: url("../assets/img/flight-1-m.jpg"); }
  .img-f2 { background-image: url("../assets/img/flight-2-m.jpg"); }
  .img-f3 { background-image: url("../assets/img/flight-3-m.jpg"); }
  .img-f4 { background-image: url("../assets/img/flight-4-m.jpg"); }
  .img-f5 { background-image: url("../assets/img/flight-5-m.jpg"); }
}

.hero-video {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(15, 18, 19, 0.9) 0%, rgba(15, 18, 19, 0.42) 46%, rgba(15, 18, 19, 0) 74%),
    linear-gradient(180deg, rgba(15, 18, 19, 0.42) 0%, rgba(15, 18, 19, 0) 26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) clamp(80px, 11vh, 130px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}

.hero .lead { margin: 0 auto 44px; }

.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-scrollhint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 44px;
  background: rgba(244, 241, 236, 0.3);
  overflow: hidden;
}

.hero-scrollhint::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--paper);
  animation: scrollhint 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollhint {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ---------- манифест (красный, scrub-текст) ---------- */

.manifesto {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.manifesto .eyebrow { color: rgba(255, 255, 255, 0.75); }

.manifesto-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  line-height: 1.42;
  max-width: 1180px;
}

.manifesto-text .w { opacity: 0.16; display: inline-block; }

.manifesto-shape {
  position: absolute;
  opacity: 0.14;
  pointer-events: none;
}

.shape-star { top: 8%; right: 6%; width: clamp(90px, 12vw, 190px); }
.shape-ring { bottom: 10%; left: 4%; width: clamp(110px, 14vw, 220px); }

/* ---------- дрон-пролёт ---------- */

.flight { position: relative; height: 520vh; background: #000; }

.flight-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.flight-slides { position: absolute; inset: 0; }

.flight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.flight-slide:first-child { opacity: 1; }

.flight-slide .img {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.flight-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.3) 0%, rgba(5, 6, 7, 0) 30%, rgba(5, 6, 7, 0) 55%, rgba(5, 6, 7, 0.62) 100%);
}

.flight-head {
  position: absolute;
  top: clamp(96px, 13vh, 150px);
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
  padding: 0 20px;
}

.flight-head .eyebrow { margin-bottom: 14px; }

.flight-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); }

.flight-captions {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: clamp(36px, 7vh, 70px);
  z-index: 5;
}

.flight-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  white-space: nowrap;
}

.flight-caption .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.flight-caption .txt {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.flight-progress {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(36px, 7vh, 70px);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.flight-progress span {
  width: 34px;
  height: 2px;
  background: rgba(244, 241, 236, 0.28);
  position: relative;
  overflow: hidden;
}

.flight-progress span i {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- счётчики ---------- */

.stats { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 4vw, 60px);
}

.stat { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 38px); }

.stat .value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat .value .unit { font-size: 0.38em; letter-spacing: 0.2em; color: var(--red); text-transform: uppercase; }

.stat .label { margin-top: 16px; color: var(--paper-dim); font-size: 15px; max-width: 240px; }

/* ---------- bento инфраструктуры ---------- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 21vw, 300px);
  grid-auto-flow: dense;
  gap: 14px;
}

.bento-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
}

.bento-card.c2x2 { grid-column: span 2; grid-row: span 2; }
.bento-card.c2x1 { grid-column: span 2; }

.bento-card .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover .img { transform: scale(1.06); }

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 13, 0) 42%, rgba(10, 12, 13, 0.78) 100%);
}

.bento-card .meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
}

.bento-card .meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bento-card .meta p {
  font-size: 14px;
  color: var(--paper-dim);
  margin-top: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.bento-card:hover .meta p { max-height: 90px; opacity: 1; }

.infra-list {
  margin-top: clamp(40px, 5vw, 70px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 1100px;
}

.infra-list span {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
}

/* ---------- дома: горизонтальный скролл ---------- */

.houses { background: var(--ink); overflow: hidden; padding-left: 0; padding-right: 0; }

.houses .section-head { padding: 0 clamp(20px, 5vw, 80px); max-width: 1440px; margin-left: auto; margin-right: auto; }

.houses-viewport { overflow: hidden; }

.houses-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  padding: 0 clamp(20px, 5vw, 80px);
  width: max-content;
  will-change: transform;
}

.house-card {
  width: clamp(320px, 66vw, 780px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.house-card .visual {
  height: clamp(240px, 34vw, 440px);
  overflow: hidden;
  position: relative;
  background: #dfe4e8;
}

.house-card .visual .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.house-card .body { padding: clamp(24px, 2.6vw, 40px); }

.house-card .body .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.house-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.house-card .specs {
  display: flex;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.house-card .desc { margin-top: 18px; color: var(--paper-dim); font-size: 15.5px; max-width: 560px; }

.house-card .tag {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(228, 66, 66, 0.4);
  border-radius: 100px;
  padding: 8px 16px;
}

.house-cta {
  width: clamp(300px, 44vw, 520px);
  background: var(--red);
  border-radius: 22px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(30px, 3.4vw, 56px);
  color: #fff;
}

.house-cta h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.house-cta p { color: rgba(255, 255, 255, 0.86); margin-bottom: 34px; font-size: 15.5px; }

/* ---------- интерьеры ---------- */

.interiors-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.interiors-grid .ph {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  min-height: clamp(240px, 30vw, 460px);
}

.interiors-grid .ph .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.interiors-grid .ph:hover .img { transform: scale(1.05); }

.interiors-note {
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
}

.interiors-note .lead { max-width: none; }

/* ---------- маршрут ---------- */

.route { background: var(--paper); color: var(--ink); }

.route .eyebrow { color: var(--red); }

.route-title {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  max-width: 1240px;
  color: var(--ink);
}

.route-title .pill {
  display: inline-block;
  width: clamp(74px, 8.6vw, 150px);
  height: clamp(40px, 4.6vw, 78px);
  border-radius: 100px;
  background-size: cover;
  background-position: center;
  vertical-align: middle;
  margin: 0 8px;
  transform: translateY(-4px);
}

.route-grid {
  margin-top: clamp(50px, 6vw, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.route-card {
  background: #fff;
  border: 1px solid rgba(15, 18, 19, 0.09);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 38px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.route-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 18, 19, 0.1); }

.route-card .mode {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.route-card .time {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  margin: 16px 0 12px;
  line-height: 1.1;
}

.route-card p { font-size: 14.5px; color: rgba(15, 18, 19, 0.64); }

/* ---------- команда ---------- */

.team-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: stretch;
}

.team-photo {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 460px;
}

.team-photo .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.team-cards { display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.team-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 2.6vw, 40px);
  background: var(--ink-2);
}

.team-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.team-card .role {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}

.team-card p { color: var(--paper-dim); font-size: 15px; }

/* ---------- этапы ---------- */

.timeline-rows { border-top: 1px solid var(--line); }

.timeline-row {
  display: grid;
  grid-template-columns: clamp(160px, 22vw, 340px) 1fr;
  gap: clamp(24px, 4vw, 70px);
  padding: clamp(36px, 4.4vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row .year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  color: var(--blue);
}

.timeline-row p { color: var(--paper-dim); max-width: 720px; font-size: clamp(1rem, 1.3vw, 1.15rem); align-self: center; }

/* ---------- CTA-полоса внутри секций ---------- */

.cta-band {
  margin-top: clamp(50px, 6vw, 90px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink-2);
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); margin-bottom: 10px; }

.cta-band p { color: var(--paper-dim); font-size: 15.5px; }

.cta-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.cta .eyebrow { color: rgba(255, 255, 255, 0.78); }

.cta h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); max-width: 1240px; }

.cta-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }

.cta-ways {
  margin-top: clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cta-way {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  padding: clamp(22px, 2.2vw, 34px);
}

.cta-way h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-way p { font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 900px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  color: var(--red);
  transition: transform 0.35s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { color: var(--blue); }

.faq-item p {
  padding: 0 40px 26px 0;
  color: var(--paper-dim);
  max-width: 760px;
  font-size: 15.5px;
}

.faq-cta { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- footer ---------- */

.footer {
  background: #0a0c0d;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 80px) 40px;
}

.footer-inner { max-width: 1440px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.footer-brand img.word { height: 26px; width: auto; max-width: none; margin-bottom: 18px; }

.footer-brand p { color: var(--paper-dim); font-size: 14.5px; max-width: 320px; }

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

.footer-contacts a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.footer-contacts a:hover { color: var(--blue); }

.footer-contacts .office { color: var(--paper-dim); font-size: 14.5px; margin-top: 8px; }

.footer-seo {
  padding: clamp(28px, 3.4vw, 44px) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 50px);
}

.footer-seo p { color: rgba(244, 241, 236, 0.45); font-size: 13.5px; line-height: 1.7; }

@media (max-width: 900px) {
  .footer-seo { grid-template-columns: 1fr; }
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(244, 241, 236, 0.4);
  font-size: 12.5px;
}

/* ---------- модальная форма заявки ---------- */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal.open { display: flex; }

.lead-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 11, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-dialog {
  position: relative;
  width: min(520px, 100%);
  background: var(--ink-2);
  border: 1px solid rgba(244, 241, 236, 0.16);
  border-radius: 26px;
  padding: clamp(30px, 5vw, 52px);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.lead-modal.open .lead-dialog { transform: translateY(0); opacity: 1; }

.lead-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: var(--paper-dim);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lead-close:hover { color: var(--paper); }

.lead-dialog h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; padding-right: 30px; }

.lead-sub { color: var(--paper-dim); font-size: 15.5px; margin-bottom: 30px; }

.lead-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.lead-field { display: block; margin-bottom: 18px; }

.lead-field span {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 9px;
}

.lead-field input {
  width: 100%;
  background: rgba(244, 241, 236, 0.05);
  border: 1px solid rgba(244, 241, 236, 0.2);
  border-radius: 14px;
  padding: 17px 18px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.lead-field input:focus { border-color: var(--blue); background: rgba(244, 241, 236, 0.08); }

.lead-field input.invalid { border-color: var(--red); }

.lead-field input::placeholder { color: rgba(244, 241, 236, 0.32); }

.lead-submit { width: 100%; justify-content: center; margin-top: 8px; }

.lead-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

.lead-error { display: none; color: var(--red); font-size: 14px; margin-top: 14px; }

.lead-error.show { display: block; }

.lead-privacy { color: rgba(244, 241, 236, 0.38); font-size: 12.5px; margin-top: 16px; line-height: 1.5; }

.lead-success { display: none; text-align: center; padding: 20px 0; }

.lead-modal.success .lead-form-wrap { display: none; }
.lead-modal.success .lead-success { display: block; }

.lead-success .lead-check { width: 74px; height: 74px; margin: 0 auto 24px; }

.lead-success h3 { margin-bottom: 12px; padding-right: 0; }

.lead-success p { color: var(--paper-dim); }

/* ---------- sticky CTA-бар (мобилка) ---------- */

.lead-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 12, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.lead-bar .btn { flex: 1; justify-content: center; padding: 17px 10px; font-size: 12px; letter-spacing: 0.12em; }

/* ---------- reveal-анимации ---------- */

.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-ways { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { min-height: 380px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 20px; top: 14px; padding: 12px 22px; }

  .lead-bar { display: flex; }
  .footer { padding-bottom: 110px; }

  .btn-xl { padding: 20px 34px; font-size: 13px; width: 100%; max-width: 420px; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: center; }

  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn-xl { max-width: none; }
  .cta-actions .btn-xl { max-width: none; }
  .footer-contacts .btn-xl { max-width: 320px; }

  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 30vw, 240px); }
  .bento-card.c2x2 { grid-column: span 2; grid-row: span 2; }
  .bento-card.c2x1 { grid-column: span 2; }

  .interiors-grid { grid-template-columns: 1fr; }
  .interiors-note { grid-template-columns: 1fr; }

  /* горизонтальный каталог -> нативный свайп */
  .houses-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .houses-viewport::-webkit-scrollbar { display: none; }
  .house-card, .house-cta { scroll-snap-align: center; width: 84vw; }

  .timeline-row { grid-template-columns: 1fr; gap: 14px; }
}

/* мобильный пролёт = горизонтальная свайп-галерея */
@media (max-width: 900px) {
  .flight {
    height: auto;
    background: var(--ink);
    padding: 96px 0 28px;
  }

  .flight-stage {
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .flight-head {
    position: static;
    order: -1;
    text-align: left;
    padding: 0 20px 22px;
  }

  .flight-head .eyebrow { margin-bottom: 10px; }

  .flight-slides {
    position: static;
    inset: auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }

  .flight-slides::-webkit-scrollbar { display: none; }

  .flight-slide {
    position: relative;
    opacity: 1 !important;
    flex: 0 0 86vw;
    scroll-snap-align: center;
    border-radius: 18px;
    overflow: hidden;
  }

  .flight-slide .img {
    position: relative;
    inset: auto;
    height: 62vw;
    min-height: 230px;
    max-height: 340px;
    transform: none !important;
    border-radius: 18px;
  }

  .flight-slide::after {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(5, 6, 7, 0) 46%, rgba(5, 6, 7, 0.72) 100%);
  }

  .flight-captions, .flight-progress { display: none; }

  .slide-cap {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index: 2;
  }

  .slide-cap .num {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0.28em;
    color: var(--blue);
    margin-bottom: 5px;
  }

  .slide-cap .txt {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.35;
  }
}

.slide-cap { display: none; }

@media (max-width: 900px) {
  .slide-cap { display: block; }
}

.swipe-hint { display: none; }

@media (max-width: 900px) {
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--paper-dim);
    font-size: 13.5px;
  }

  .swipe-hint::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--red);
    animation: hintslide 1.8s ease-in-out infinite;
  }

  @keyframes hintslide {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.5; }
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .route-grid { grid-template-columns: 1fr; }
  .cta-ways { grid-template-columns: 1fr; }
  .flight-progress { display: none; }
  .hero h1 { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-scrollhint::after { animation: none; }
}
