/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --color-hero-bg: #2c4760;
  --color-white: #ffffff;
  --color-light-gray: #efeded;
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-60: rgba(255, 255, 255, 0.6);

  --font-serif: "Brygada 1918", "Times New Roman", serif;
  ///--font-sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
--font-sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  
  font-family: var(--font-brygada);
  font-weight: 600;

  --container-max: 1640px;
  --container-pad: 80px;
}

/* =========================================================
   BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-white);
  background: var(--color-hero-bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Блокировка скролла, пока splash виден */
body.is-locked {
  overflow: hidden;
  touch-action: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

/* =========================================================
   HERO  (splash + content на одном фоне)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-hero-bg);
  overflow: hidden;

}

/* Фон — фотка лодки. Чуть больше контейнера, чтобы покачивание не показывало края. */
 
 
 
 
 .hero__bg {
   position: absolute;
   inset: -3%;
   width: 106%;
   height: 106%;
   object-fit: cover;
   object-position: center;
   z-index: 0;
   pointer-events: none;
   background-color: var(--color-hero-bg);
 }
 
 /* Скрыть нативный play-button iOS/Safari */
 .hero__bg::-webkit-media-controls,
 .hero__bg::-webkit-media-controls-start-playback-button,
 .hero__bg::-webkit-media-controls-panel {
   display: none !important;
   -webkit-appearance: none;
 }
 
@keyframes gentleSway {
  0%, 100% { transform: rotate(-0.5deg) translateY(0); }
  50%      { transform: rotate( 0.5deg) translateY(-6px); }
}

/* Блики на воде — двигающийся светлый радиальный градиент с blend-mode */
.hero__shimmer {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(ellipse 50% 30% at 75% 70%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(ellipse 40% 25% at 50% 50%, rgba(255,255,255,0.06), transparent 70%);
  mix-blend-mode: overlay;
  animation: shimmerDrift 12s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
@keyframes shimmerDrift {
  0%   { transform: translate(-2%, -1%) scale(1); }
  50%  { transform: translate( 2%,  1%) scale(1.05); }
  100% { transform: translate(-1%,  2%) scale(1); }
}

/* Затемнение поверх фона (чтобы белый текст читался) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,60,0.25) 0%, rgba(20,40,60,0.05) 30%, rgba(20,40,60,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   SPLASH — большая надпись Port D'Azur
   ========================================================= */
.splash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  /* По умолчанию splash виден. .hero.is-revealed уберёт его. */
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.9s ease;
  will-change: transform, opacity;
}
.splash__logo {
  width: clamp(140px, 40vw, 700px);   /* крупно, ~4× */
  height: auto;
  display: block;
  filter: brightness(0) invert(1);     /* белый логотип */
  animation: splashIn 1.2s ease-out both;
}
.splash__title {
  font-family: var(--font-serif);
  font-size: clamp(64px, 9vw, 144px);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.25);
  /* Появление с лёгким fade-in при загрузке */
  animation: splashIn 1.2s ease-out both;
}
.splash__italic {
  font-style: italic;
  font-weight: 500;
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Состояние "splash уехал вверх" */
.hero.is-revealed .splash {
  transform: translateY(-60%);
  display: none;//!!!
  opacity: 0;
}

/* =========================================================
   CONTENT WRAP (header + title + stats)
   изначально скрыт, появляется когда .hero.is-revealed
   ========================================================= */
.hero__content-wrap {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* По умолчанию невидим — проявляется через is-revealed */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
  pointer-events: none;
}
.hero.is-revealed .hero__content-wrap {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.header { padding-top: 32px; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--color-white);
  /* Высота лого в шапке — пропорция логотипа 196×63 ≈ 3.11 : 1 */
  height: 36px;
}
.logo img {
  height: 100%;
  width: auto;
  display: block;
  /* Сам SVG чёрный → перекрашиваем в белый через filter (быстрее, чем редактировать paths) */
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}
.logo:hover img { opacity: 0.85; }
.logo__italic { font-style: italic; font-weight: 500; }

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.nav a:hover { opacity: 1; }

.phone-btn {
  display: inline-flex;
  font-family: var(--font-serif); 
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--color-white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-white);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.phone-btn:hover { background: var(--color-white); color: var(--color-hero-bg); }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-white);
}

/* =========================================================
   HERO CONTENT (title + stats)
   ========================================================= */
.hero__content {
  flex: 1;
  margin-top: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 64px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.stat__unit { font-size: 24px; }
.stat__label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 300;
  color: var(--color-white-80);
  letter-spacing: 0.02em;
}

/* =========================================================
   КНОПКА
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-serif); 
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s cubic-bezier(0.7, 0, 0.3, 1);

}

.btn, .phone-btn {

  border-radius: 10px;

}



/* Outline-стиль = базовая прозрачная (для остальных мест) */
.btn--outline {
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-hero-bg);
}

/* CTA в hero: ИНВЕРТИРОВАННОЕ поведение — по умолчанию светлая,
   на hover белая заливка «стирается» справа налево, остаётся outline */
.stats__cta {
     padding: 18px 28px;
     background: transparent;
     color: var(--color-hero-bg);
     border: 1px solid var(--color-white);
   }

   /* Белая заливка под кнопкой.
      В покое: origin справа (для возврата — появление справа налево).
      При hover: origin слева (для стирания — справа налево). */
  .stats__cta {
    padding: 18px 28px;
    background: transparent;
    color: var(--color-hero-bg);
    border: 1px solid var(--color-white);
  }

  /* Белая заливка под кнопкой. Origin всегда справа. */
  .stats__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-white);
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform 0.55s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: -1;
  }

  .stats__cta:hover {
    background: transparent;
    color: var(--color-white);
  }

  .stats__cta:hover::before {
    transform: scaleX(0);
  }
/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
  :root { --container-pad: 40px; }
  .nav { gap: 24px; }
  .nav a { font-size: 14px; }
  .hero__title { font-size: 44px; }
  .stats {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas:
      "s1 s2 s3 s4"
      "cta cta cta cta";
    gap: 32px;
  }
  .stat:nth-child(1) { grid-area: s1; }
  .stat:nth-child(2) { grid-area: s2; }
  .stats__cta { grid-area: cta; justify-self: center; }
  .stat:nth-child(4) { grid-area: s3; }
  .stat:nth-child(5) { grid-area: s4; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 720px) {
  :root { --container-pad: 20px; }

  .header { padding-top: 20px; }
  .nav { display: none; }
  .phone-btn { display: none; }
  .burger { display: flex; }
  .logo { height: 28px; }

  .hero__content { margin-top: 56px; }
  .hero__title {
    font-size: 28px;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "s1 s2"
      "s3 s4"
      "cta cta";
    gap: 28px 20px;
  }
  .stat__value { font-size: 24px; }
  .stat__unit { font-size: 18px; }
  .stat__label { font-size: 12px; }
  .stats__cta { width: 100%; padding: 14px 20px; }
}

/* =========================================================
   PREFERS REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__shimmer, .splash__title { animation: none !important; }
  .splash, .hero__content-wrap { transition: opacity 0.2s ease !important; transform: none !important; }
}


/* =========================================================
   ─────────────────────────────────────────────────────────
   ДОБАВЛЕНО НИЖЕ — секции ниже Hero. Hero-стили выше не трогаем.
   ─────────────────────────────────────────────────────────
   ========================================================= */

/* Расширяем токены */
:root {
  --color-text-dark: #2c4760;
  --color-text-body: #5a6f82;
  --color-plans-bg: #4d6b85;
  --color-accent: #e58e4c;
  --section-pad-y: 100px;
}

/* Общий заголовок секции */
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.section-title--accent { color: var(--color-text-dark); }
.section-title--light  { color: var(--color-white); }

/* =========================================================
   ВАРИАНТЫ КНОПКИ (доп.)
   Получают border-radius:10px автоматически от общего правила .btn
   ========================================================= */

/* Заливная — тёмно-синяя. На hover белая заливка приходит справа. */
.btn--solid {
  background: var(--color-text-dark);
  color: var(--color-white);
  border: 1px solid var(--color-text-dark);
}
.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.btn--solid:hover { color: var(--color-text-dark); }
.btn--solid:hover::before { transform: scaleX(1); }

/* Белая — на hover становится прозрачной */
.btn--white {
  background: var(--color-white);
  color: var(--color-text-dark);
  border: 1px solid var(--color-white);
}
.btn--white:hover {
  background: transparent;
  color: var(--color-white);
}

/* =========================================================
   СЕКЦИЯ "О ПРОЕКТЕ"
   ========================================================= */
.about {
  background: #fff;
  padding: var(--section-pad-y) 0;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}
.section-title.section-title--accent {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}
.about__col p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}
.about__col p:last-of-type { margin-bottom: 0; }
.about__cta { margin-top: 32px; }
/* На десктопе — кнопка в первой колонке под левой текстовой колонкой */
.about__cta {
  margin-top: 8px;
  grid-column: 1 / 2;
  justify-self: start;
}

/* На мобиле — кнопка во всю ширину под обоими блоками */
@media (max-width: 720px) {
  .about__col--right {
    border-top: 1px solid rgba(44, 71, 96, 0.15);
    padding-top: 24px;
  }
  .about__cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    margin-top: 16px;
  }
}

/* =========================================================
   СЛАЙДЕР (галерея проекта)
   ========================================================= */
   
   .slider {
     position: relative;
     width: 100%;
     height: 100vh;          /* всегда в размер экрана */
     background: #000;
     overflow: hidden;
   }
   .slider__viewport {
     width: 100%;
     height: 100%;           /* было только width */
     overflow: hidden;
   }
   .slider__track {
     display: flex;
     height: 100%;           /* трек на всю высоту */
     list-style: none;
     margin: 0;
     padding: 0;
     transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
     will-change: transform;
   }
   .slider__slide {
     flex: 0 0 100%;
     min-width: 0;
     height: 100%;           /* слайд на всю высоту */
     line-height: 0;
   }
   .slider__slide img {
     width: 100%;
     height: 100%;           /* было auto → теперь тянем на весь слайд */
     object-fit: cover;      /* картинка заполняет, обрезается по краям без искажения */
     display: block;
     user-select: none;
     -webkit-user-drag: none;
     pointer-events: none;
   }
   
   
 
.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 999px;
}
.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.35s ease;
}
.slider__dot:hover { background: rgba(255, 255, 255, 0.8); }
.slider__dot.is-active {
  background: var(--color-white);
  width: 24px;
  border-radius: 4px;
}
 

/* На мобиле слайдер короче — aspect ratio 4/5 вместо 100vh */
@media (max-width: 720px) {
  .slider {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}


/* =========================================================
   СЕКЦИЯ "ПЛАНИРОВКИ"
   ========================================================= */
.plans {
  background-color: var(--color-plans-bg);
  background-image: url("./assets/bg-dark.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 padding: 140px 0 80px;   /* было var(--section-pad-y) = 100px */
  position: relative;
}
.plans::before { content: none; }
.plans > .container { position: relative; z-index: 1; }

.plans__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;   
  margin-bottom: 68px;
  gap: 20px;
  flex-wrap: wrap;
}
.plans__count {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: left;
  //border: 1.5px solid var(--color-white);
  padding: 18px 32px;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .plans__count {
    font-size: 18px;
    padding: 14px 22px;
    letter-spacing: 0.04em;
  }
}

.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.plan-card {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.plan-card__img {
  padding: 32px 32px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.plan-card__img img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.plan-card__body {
  padding: 16px 32px 36px;
  text-align: center;
}
.plan-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--color-text-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan-card__type,
.plan-card__area {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}
.plan-card__area strong { font-weight: 600; }

/* =========================================================
   ФОРМА "Получить подборку"
   ========================================================= */
.lead-form {
  background: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  backdrop-filter: blur(2px);
  border-radius: 10px;
}
.lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-form__input {
  width: 100%;
  background: var(--color-light-gray);
  border: none;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-dark);
  outline: none;
  border-radius: 10px;
}
.lead-form__input::placeholder {
  color: var(--color-text-body);
  opacity: 1;
}
.lead-form__input:focus { box-shadow: 0 0 0 2px var(--color-accent); }

.lead-form__action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lead-form__submit {
  width: 100%;
  max-width: 360px;
  padding: 14px 24px;
}

/* Чекбокс согласия */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-hero-bg);
  line-height: 1.4;
  user-select: none;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox__box {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-white);
  background: transparent;
  position: relative;
  transition: background 0.2s ease;
  border-radius: 3px;
}
.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 4px; top: 0;
  width: 5px; height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox__link {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.checkbox__link:hover { border-bottom-color: var(--color-accent); }

/* =========================================================
   ADAPTIV доп. секций — TABLET
   ========================================================= */
@media (max-width: 1100px) {
  :root { --section-pad-y: 72px; }
  .section-title { font-size: 36px; }
  .about__inner { gap: 32px 48px; }
  .plans__grid { gap: 16px; }
  .plan-card__img { padding: 24px 20px 4px; min-height: 260px; }
  .plan-card__img img { max-height: 220px; }
  .plan-card__body { padding: 12px 20px 28px; }
  .lead-form { grid-template-columns: 1fr; }
}

/* =========================================================
   ADAPTIV доп. секций — MOBILE
   ========================================================= */
@media (max-width: 720px) {
  :root { --section-pad-y: 56px; }

  .section-title { font-size: 28px; letter-spacing: 0.02em; }

  .about__inner { grid-template-columns: 1fr; gap: 24px; }
  .about__col p { font-size: 15px; }
  .about__cta { margin-top: 24px; width: 100%; }

  .plans__head { margin-bottom: 32px; flex-direction: column; align-items: flex-start; }
  .plans__count { font-size: 18px; }
  .plans__grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .plan-card__img { min-height: 240px; }
  .plan-card__title { font-size: 20px; }

  .lead-form { padding: 20px; gap: 16px; }
  .lead-form__submit { max-width: 100%; }
  .checkbox { font-size: 12px; }

  .slider__dots { bottom: 14px; padding: 6px 10px; }
  .slider__dot { width: 7px; height: 7px; }
  .slider__dot.is-active { width: 20px; }
}

/* =========================================================
   СЕКЦИЯ "ЛОКАЦИЯ" — интерактивная карта с точками
   ========================================================= */
/* =========================================================
      СЕКЦИЯ "ЛОКАЦИЯ" — белый верх (заголовок+статы) + тёмная карта
      ========================================================= */
   .location {
     position: relative;
     background: var(--color-hero-bg);
     padding: 0;
     overflow: hidden;
   }
   
   /* Верхний белый блок */
   .location__top {
     
     padding: 80px var(--container-pad) 64px;
     display: grid;
     grid-template-columns: 1fr 1.4fr;
     gap: 60px;
     align-items: start;
   }
   .location__intro .section-title { margin-bottom: 24px; }
   .location__lead {
     font-family: var(--font-sans);
     font-size: 16px;
     line-height: 1.6;
     color: var(--color-text-dark);
     max-width: 420px;
   }
   
   /* Статистика — 3 колонки × 2 ряда */
   .location__stats {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 36px 32px;
   }
   .loc-stat__value {
     font-family: var(--font-serif);
     font-weight: 600;
     font-size: 34px;
     line-height: 1;
     color: var(--color-text-dark);
     margin-bottom: 8px;
   }
   .loc-stat__value span { font-size: 22px; }
   .loc-stat__label {
     font-family: var(--font-sans);
     font-size: 14px;
     line-height: 1.4;
     color: var(--color-text-body);
   }
   
   /* Карта */
   .location__map {
     position: relative;
     width: 100%;
     line-height: 0;
   }
   .location__map-img {
     width: 100%;
     height: auto;
     display: block;
     user-select: none;
     -webkit-user-drag: none;
   }
   
   /* Дистанции — справа внизу поверх карты */
   .location__distances {
     position: absolute;
     right: var(--container-pad);
     bottom: 8%;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 28px 48px;
     z-index: 4;
     max-width: 460px;
   }
   .loc-dist__value {
     font-family: var(--font-serif);
     font-weight: 600;
     font-size: 26px;
     line-height: 1;
     color: var(--color-white);
     margin-bottom: 6px;
   }
   .loc-dist__label {
     font-family: var(--font-sans);
     font-size: 14px;
     line-height: 1.4;
     color: var(--color-white-80);
   }
   
   /* ---- Точки на карте ---- */
   .map-point {
     position: absolute;
     left: var(--x);
     top: var(--y);
     transform: translate(-50%, -50%);
     width: 32px; height: 32px;
     padding: 0; background: transparent; border: none;
     border-radius: 50%; cursor: pointer; z-index: 2;
   }
   .map-point__dot {
     position: absolute; left: 50%; top: 50%;
     transform: translate(-50%, -50%);
     width: 16px; height: 16px;
     background: var(--color-text-dark);
     border-radius: 50%;
     transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease;
     box-shadow: 0 2px 8px rgba(0,0,0,0.25);
   }
   .map-point:hover .map-point__dot,
   .map-point.is-active .map-point__dot,
   .map-point:focus-visible .map-point__dot {
     transform: translate(-50%, -50%) scale(1.25);
     box-shadow: 0 0 0 6px rgba(255,255,255,0.25), 0 0 0 10px rgba(255,255,255,0.10), 0 2px 12px rgba(0,0,0,0.35);
   }
   
   /* ОСНОВНАЯ точка — постоянно выделена: белое кольцо + пульс + подпись */
   .map-point--main .map-point__dot {
     width: 18px; height: 18px;
     box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(44,71,96,0.9), 0 4px 14px rgba(0,0,0,0.4);
     animation: pulseMain 2.4s ease-in-out infinite;
   }
   @keyframes pulseMain {
     0%,100% { box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(44,71,96,0.9), 0 4px 14px rgba(0,0,0,0.4); }
     50%     { box-shadow: 0 0 0 5px #fff, 0 0 0 14px rgba(44,71,96,0.35), 0 4px 14px rgba(0,0,0,0.4); }
   }
   /* Подпись основной точки — белый бейдж справа, всегда видна */
   .map-point__label {
     position: absolute;
     left: calc(50% + 22px);
     top: 50%;
     transform: translateY(-50%);
     background: #fff;
     color: var(--color-text-dark);
     font-family: var(--font-serif);
     font-weight: 600;
     font-size: 32px;
     letter-spacing: 0.02em;
     padding: 26px 48px;
     border-radius: 6px;
     white-space: nowrap;
     box-shadow: 0 6px 22px rgba(0,0,0,0.25);
     pointer-events: none;
   }
   
   /* Тултипы обычных точек (hover) */
   .map-point__tip {
     position: absolute; left: 50%;
     bottom: calc(100% + 14px);
     transform: translateX(-50%) translateY(4px);
     background: rgba(255,255,255,0.95);
     color: var(--color-text-dark);
     padding: 8px 22px;
     font-family: var(--font-serif); font-size: 20px; font-weight: 500;
     line-height: 1.2; border-radius: 8px; white-space: nowrap;
     opacity: 0; pointer-events: none;
     transition: opacity 0.22s ease, transform 0.22s ease;
     box-shadow: 0 6px 22px rgba(0,0,0,0.18), 0 0 40px rgba(255,255,255,0.35);
     z-index: 3;
   }
   .map-point__tip::after {
     content: ""; position: absolute; top: 100%; left: 50%;
     transform: translateX(-50%);
     border: 6px solid transparent; border-top-color: rgba(255,255,255,0.95);
   }
   .map-point:hover .map-point__tip,
   .map-point.is-active .map-point__tip,
   .map-point:focus-visible .map-point__tip {
     opacity: 1; transform: translateX(-50%) translateY(0);
   }
   
   /* ---- ADAPTIV ---- */
   @media (max-width: 1100px) {
     .location__top {
       grid-template-columns: 1fr;
       gap: 36px;
       padding: 56px var(--container-pad) 48px;
     }
     .loc-stat__value { font-size: 28px; }
     .location__distances {
       position: static;
       max-width: 100%;
       background: var(--color-hero-bg);
       padding: 32px var(--container-pad);
       bottom: auto; right: auto;
     }
     .map-point { width: 28px; height: 28px; }
     .map-point__dot { width: 14px; height: 14px; }
     .map-point__label { font-size: 18px; padding: 5px 14px; left: calc(50% + 18px); }
     .map-point__tip { font-size: 16px; padding: 6px 16px; }
   }
   
   @media (max-width: 720px) {
     .location__stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
     .loc-stat__value { font-size: 24px; }
     .loc-stat__value span { font-size: 16px; }
     .loc-stat__label { font-size: 12px; }
   
     .location__distances { grid-template-columns: 1fr 1fr; gap: 20px; }
     .loc-dist__value { font-size: 20px; }
     .loc-dist__label { font-size: 12px; }
   
     .map-point { width: 22px; height: 22px; }
     .map-point__dot { width: 11px; height: 11px; }
     .map-point__label { font-size: 13px; padding: 4px 10px; left: calc(50% + 14px); }
     .map-point__tip { font-size: 13px; padding: 5px 12px; }
   }


/* =========================================================
   СЕКЦИЯ "БЛАГОУСТРОЙСТВО"
   ========================================================= */
.amenity {
  position: relative;
  background-color: #fff;
  background-image: url("./assets/bg-light.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--section-pad-y) 0;
  overflow: hidden;
}

.amenity__title {
  text-align: center;
  margin: 0 0 72px;
}

/* Декоративные птицы — parallax follow cursor */
.amenity__birds {
  position: absolute;
  top:  5%;
  right: 6%;
  width: 320px;
  max-width: 28%;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  /* CSS-переменные двигает JS, transition сглаживает остановку */
  --bx: 0px;
  --by: 0px;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.amenity > .container {
  position: relative;
  z-index: 1;
}

/* Карточка */
.amenity-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.amenity-card:last-child { margin-bottom: 0; }

/* Reverse — фото справа, текст слева */
.amenity-card--reverse .amenity-card__media { order: 2; }
.amenity-card--reverse .amenity-card__body  { order: 1; }

.amenity-card__media {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(20, 40, 60, 0.15);
}
.amenity-card__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.amenity-card__media:hover img { transform: scale(1.04); }

.amenity-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin: 0 0 18px;
}
.amenity-card__body p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
}

/* =========================================================
   ЛАЙТБОКС
   ========================================================= */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 35, 50, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__viewport {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  user-select: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox__close {
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  font-size: 28px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 36px;
  padding-bottom: 4px;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.10);
  padding: 8px 18px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* =========================================================
   ADAPTIV для секции "Благоустройство" и лайтбокса
   ========================================================= */
@media (max-width: 1100px) {
  .amenity__birds { width: 240px; }
  .amenity-card { gap: 40px; margin-bottom: 56px; }
  .amenity-card__title { font-size: 24px; }
}

@media (max-width: 720px) {
  .amenity__birds { width: 140px; top: 4%; right: 6%; }
  .amenity__title { margin-bottom: 36px; }
  .amenity-card {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 44px;
  }
  /* На мобиле фото всегда сверху, текст снизу */
  .amenity-card--reverse .amenity-card__media { order: 0; }
  .amenity-card--reverse .amenity-card__body  { order: 1; }
  .amenity-card__title { font-size: 20px; margin-bottom: 12px; }
  .amenity-card__body p { font-size: 15px; }

  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
  .lightbox__nav  { width: 42px; height: 42px; font-size: 28px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__counter { bottom: 12px; font-size: 12px; }
}

/* =========================================================
   СЕКЦИЯ "ЗАСТРОЙЩИК" — картинка с overlay при hover
   ========================================================= */
.developer {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0; /* убирает зазор под картинкой */
}

.developer__bg {
  width: 100%;
  height: auto;
  display: block;
  /* Лёгкий "вдох" при hover на саму секцию */
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.developer__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0; /* ВАЖНО */

  display: flex;
  align-items: center;

  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.developer__overlay {
  transform: translateY(20px);
}

.developer:hover .developer__overlay {
  opacity: 1;
  transform: translateY(0);
}
.developer__overlay::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    ellipse at bottom,
    rgba(255,255,255,0.06),
    transparent 60%
  );
  mix-blend-mode: overlay;
}
.developer__overlay::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    ellipse at bottom,
    rgba(255,255,255,0.06),
    transparent 60%
  );
  mix-blend-mode: overlay;
}
.developer__content {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.2fr 1.2fr;
  gap: 80px;
  align-items: start;
  line-height: 1.55;
  padding-top: 30px;
}

.developer__title {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 42px);
  line-height: 1;
}

.developer__col p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0 0 18px;
}
.developer__col p:last-child { margin-bottom: 0; }

/* Hover — только на устройствах с настоящим hover (десктоп) */
@media (hover: hover) {
  .developer:hover .developer__overlay { opacity: 1; }
  .developer:hover .developer__bg      { transform: scale(1.02); }
}

/* =========================================================
   ADAPTIV "Застройщик"
   ========================================================= */
   .developer__overlay {
     position: absolute;
     left: 0;
     right: 0;
     bottom: 0;
     top:60%;
     padding: 64px 0;
     background: rgba(15, 30, 45, 0.25);
     backdrop-filter: blur(6px);
     -webkit-backdrop-filter: blur(6px);
     display: flex;
     align-items: center;
     opacity: 0;
     transition: opacity 0.5s ease;
     pointer-events: none;
   }
@media (max-width: 1100px) {
  .developer__content {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }
  .developer__title { grid-column: 1 / -1; }
  .developer__col p { font-size: 15px; }
  .developer__overlay { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
}

/* На устройствах без hover (touch) — overlay всегда виден */
@media (hover: none) {
  .developer__overlay {
    opacity: 1;
    /* На тач-устройствах блюр часто тормозит — отключаем */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 30, 45, 0.72);
  }
}

@media (max-width: 720px) {
  .developer__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .developer__title { font-size: 32px; margin-bottom: 8px; }
  .developer__col p { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
  .developer__overlay { background: rgba(15, 30, 45, 0.78); }
}
@media (max-width: 720px) {
  .developer__overlay { padding: 28px 0; }
}

/* =========================================================
   ЗАСТРОЙЩИК — MOBILE/TABLET: фото сверху, текст блоком снизу
   ========================================================= */
@media (hover: none), (max-width: 1024px) {
  .developer {
    display: flex;
    flex-direction: column;
    overflow: visible;
    line-height: 1.5;
  }

  /* Фото с фиксированной максимальной высотой */
  .developer__bg {
    width: 100%;
    height: auto;
    height: 50vh;
    max-height: 60vh;
    object-fit: cover;
    cursor: zoom-in;
    transform: none !important;
  }

  /* Overlay перестаёт быть absolute, становится обычным блоком ПОД фото */
  .developer__overlay {
    position: static !important;
    top: auto !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 40px 0 48px !important;
    background: var(--color-hero-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: block;
  }

  /* Контент: одна колонка */
  .developer__content {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding-top: 0;
  }
  .developer__title { margin-bottom: 12px; }
}

/* На очень узких экранах — поменьше отступы */
@media (max-width: 720px) {
  .developer__overlay { padding: 32px 0 40px !important; }
  .developer__title  { font-size: 28px; }
  .developer__col p  { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
}


/* =========================================================
   СЕКЦИЯ "СПОСОБЫ ПОКУПКИ"
   ========================================================= */
.purchase {
  background: #fff;
  padding: var(--section-pad-y) 0;
}
.purchase__title {
  text-align: center;
  margin: 0 0 56px;
}
.purchase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.purchase-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  box-shadow: 0 14px 36px rgba(20, 40, 60, 0.12);
}

.purchase-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.5s ease;
}

.purchase-card__overlay {
  position: absolute;
  inset: 0;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 60, 0.65) 0%,
    rgba(20, 40, 60, 0.15) 35%,
    rgba(20, 40, 60, 0.30) 65%,
    rgba(20, 40, 60, 0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.purchase-card__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--color-white);
  margin: 0;
  text-transform: uppercase;
  /* Появление сверху */
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1) 0.1s,
              opacity 0.4s ease 0.1s;
}

.purchase-card__text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-white);
  margin: 0;
  max-width: 90%;
  /* Появление снизу */
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1) 0.18s,
              opacity 0.4s ease 0.18s;
}

/* Hover */
.purchase-card:hover .purchase-card__img {
  transform: scale(1.05);
  filter: blur(1.5px);
}
.purchase-card:hover .purchase-card__overlay,
.purchase-card:hover .purchase-card__heading,
.purchase-card:hover .purchase-card__text {
  opacity: 1;
}
.purchase-card:hover .purchase-card__heading,
.purchase-card:hover .purchase-card__text {
  transform: translateY(0);
}

/* На тач-устройствах overlay всегда виден, без блюра */
@media (hover: none) {
  .purchase-card__overlay,
  .purchase-card__heading,
  .purchase-card__text { opacity: 1; transform: none; }
  .purchase-card__overlay { background: linear-gradient(180deg, rgba(20,40,60,0.55) 0%, rgba(20,40,60,0.20) 40%, rgba(20,40,60,0.85) 100%); }
}

/* =========================================================
   СЕКЦИЯ "ДОКУМЕНТАЦИЯ"
   ========================================================= */
.docs {
  background: #fff;
  padding: 40px 0 var(--section-pad-y);
}
.docs__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.docs__media img {
  width: 100%;
  height: auto;
  display: block;
}
.docs__title {
  margin: 0 0 28px;
}
.docs__list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.docs__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-dark);
}
.docs__check {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  //background: var(--color-text-dark);
  color: var(--color-white);
  flex-shrink: 0;
  margin-top: 1px;
}
.docs__check svg { display: block; }

/* Форма в "Документации" — светлая, на белом фоне */
.docs__form {
  background: #f3f5f7;
  border-radius: 10px;
  padding: 24px;
}
.docs__form-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-body);
  margin: 0 0 16px;
  line-height: 1.5;
}
.docs__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}
.docs__form .lead-form__input {
  background: #fff;
  border: 1px solid #e2e6ea;
}
.docs__submit {
  padding: 14px 32px;
  white-space: nowrap;
}

/* Тёмный чекбокс (на светлом фоне) */
.checkbox--dark { color: var(--color-text-body); }
.checkbox--dark .checkbox__box { border-color: var(--color-text-dark); }
.checkbox--dark input:checked + .checkbox__box::after { border-color: var(--color-text-dark); }

/* =========================================================
   АЭРО ФОТО
   ========================================================= */
.aerial {
  width: 100%;
  line-height: 0;
}
.aerial img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   ФУТЕР
   ========================================================= */
.site-footer {
  background: #fff;
  padding: 60px 0 36px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__logo { display: inline-flex; align-items: center; height: 44px; }
.site-footer__logo img {
  height: 100%;
  width: auto;
  display: block;
  /* Лого в футере — тёмно-синее, не белое */
  filter: none;
}
.site-footer__nav {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.site-footer__nav a {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text-dark);
  transition: opacity 0.2s ease;
}
.site-footer__nav a:hover { opacity: 0.6; }

.site-footer__phone {
  padding: 14px 28px;
  font-size: 14px;
}

.site-footer__row--legal {
  border-top: 1px solid #e2e6ea;
  padding-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-body);
}
.site-footer__link {
  color: var(--color-text-body);
  transition: color 0.2s ease;
}
.site-footer__link:hover { color: var(--color-text-dark); }
.site-footer__copy { color: var(--color-text-body); }

/* =========================================================
   ADAPTIV: новые секции — TABLET (<= 1100px)
   ========================================================= */
@media (max-width: 1100px) {
  .purchase__grid { gap: 16px; }
  .purchase-card__overlay { padding: 28px 24px; }
  .purchase-card__heading { font-size: 24px; }
  .purchase-card__text { font-size: 14px; }

  .docs__inner { gap: 40px; }
  .docs__form-row { grid-template-columns: 1fr 1fr; }
  .docs__submit { grid-column: 1 / -1; }
}

/* =========================================================
   ADAPTIV: новые секции — MOBILE (<= 720px)
   ========================================================= */
@media (max-width: 720px) {
  /* Способы покупки — карточки в стек */
  .purchase__title { margin-bottom: 32px; }
  .purchase__grid { grid-template-columns: 1fr; gap: 16px; }
  .purchase-card { aspect-ratio: 4 / 3; }
  .purchase-card__overlay { padding: 24px 20px; }
  .purchase-card__heading { font-size: 22px; }

  /* Документация */
  .docs { padding: 20px 0 var(--section-pad-y); }
  .docs__inner { grid-template-columns: 1fr; gap: 24px; }
  .docs__media { order: 2; }
  .docs__body { order: 1; }
  .docs__title { margin-bottom: 20px; }
  .docs__item { font-size: 14px; }
  .docs__form-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
  .docs__submit { padding: 12px 24px; width: 100%; }

  /* Футер */
  .site-footer { padding: 36px 0 20px; }
  .site-footer__row--main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer__nav { gap: 20px 28px; }
  .site-footer__phone { width: 100%; justify-content: center; }
  .site-footer__row--legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 20px;
  }
}


/* =========================================================
   Общий светлый фон для location + amenity.
   Текстура одна на обе секции — без видимого стыка.
   ========================================================= */
.light-bg {
  position: relative;
  background-color: #fff;
  background-image: url("./assets/bg-light.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Убираем фоны у дочерних секций — теперь они прозрачные поверх общего */
.light-bg .location,
.light-bg .amenity {
  background-image: none;
  background-color: transparent;
}


/* =========================================================
   СЕКЦИЯ "БЛАГОУСТРОЙСТВО" — scroll-pinned слайдер
   ========================================================= */
.improve { position: relative; }

/* Трек задаёт длину прокрутки: 100vh на слайд */
.improve__track {
  height: 300vh;            /* 3 слайда × 100vh. Слайдов больше → увеличить */
  position: relative;
}

/* Липкий вьюпорт — прилипает к экрану, внутри листаются слайды */
.improve__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-hero-bg);   /* ДОБАВИТЬ — синий вместо белого зазора */
  background: url("./assets/bg-dark.png");
}

/* Половины перекрываются на 1px, чтобы между ними не было щели */
.slide__media { margin-left: -1px; }
.slide[data-layout="text-right"] .slide__media { margin-left: 0; margin-right: -1px; }

/* Заголовок поверх слайдов */
.improve__head {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 5;
  text-align: center;
  pointer-events: none;
}

/* Слайд — две половины на весь экран, наложены друг на друга */
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 0;
}
.slide.is-active { z-index: 2; }
.slide.is-past   { z-index: 1; }

/* Половины */
.slide__text,
.slide__media {
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slide__media { overflow: hidden; }
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.slide__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 6vw;
  position: relative;
  /* фон */
  background-color: var(--color-hero-bg);
  background-image: url("./assets/bg-dark.png");
  background-size: cover;
  background-position: center;
  
}
.slide__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
}
.slide__desc {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #fff;
  max-width: 480px;
}

/* ---- НАПРАВЛЕНИЯ ДВИЖЕНИЯ (шахматка) ---- */
/* future = начальное (за экраном), is-past = ушедшее (за экраном с др. стороны) */

/* text-left: текст приходит СВЕРХУ, фото СНИЗУ */
.slide[data-layout="text-left"] .slide__text  { transform: translateY(-100%); }
.slide[data-layout="text-left"] .slide__media { transform: translateY(100%); }
.slide[data-layout="text-left"].is-past .slide__text  { transform: translateY(100%); }
.slide[data-layout="text-left"].is-past .slide__media { transform: translateY(-100%); }

/* text-right: зеркально — фото слева, текст справа.
   текст приходит СНИЗУ, фото СВЕРХУ */
.slide[data-layout="text-right"] .slide__media { order: 1; transform: translateY(-100%); }
.slide[data-layout="text-right"] .slide__text  { order: 2; transform: translateY(100%); }
.slide[data-layout="text-right"].is-past .slide__media { transform: translateY(100%); }
.slide[data-layout="text-right"].is-past .slide__text  { transform: translateY(-100%); }

/* Активный — обе половины на месте */
.slide.is-active .slide__text,
.slide.is-active .slide__media { transform: translateY(0) !important; }

/* Прогресс-точки */
.improve__dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}
.improve__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44, 71, 96, 0.3);
  transition: background 0.3s ease, height 0.3s ease;
}
.improve__dot.is-active {
  background: var(--color-text-dark);
  height: 24px;
  border-radius: 4px;
}

/* =========================================================
   MOBILE — pin отключается, слайды в обычную стопку
   ========================================================= */
/* =========================================================
      MOBILE — простая свайп-карусель (pin отключён)
      ========================================================= */
   @media (max-width: 720px) {
     .improve { overflow: hidden; }
     .improve__track {
       height: auto;
       position: relative;
     }
     .improve__sticky {
       position: relative;
       top: auto;
       height: auto;
       overflow: hidden;
       min-height: 80vh;
     }
   
     /* Слайд = одна карточка (фото + текст в столбик), занимает весь вьюпорт */
     .slide {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       grid-template-columns: 1fr;
       grid-template-rows: 45vh 35vh;
       margin-bottom: 0;
       z-index: 1 !important;
       transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
     }
     .slide.is-active { z-index: 2 !important; }
   
     /* Сбрасываем десктопные margin-фиксы */
     .slide__media,
     .slide[data-layout="text-right"] .slide__media { margin: 0; }
   
     /* Половины без шахматной анимации — стоят на месте */
     .slide__media,
     .slide__text {
       transform: none !important;
       transition: none !important;
       height: 100%;
     }
     .slide__media { order: 1 !important; }
     .slide__text  {
       order: 2 !important;
       padding: 32px 24px 80px;
     }
     .slide__media img { width: 100%; height: 100%; object-fit: cover; }
   
     .slide__title {
       font-size: 20px;
       margin-bottom: 12px;
       max-width: 240px;
       line-height: 1.15;
     }
     /* Обрезаем длинный текст до 4 строк — длинные «второй абзац» прячется */
     .slide__desc {
       font-size: 14px;
       line-height: 1.55;
       max-width: 320px;
       display: -webkit-box;
       -webkit-line-clamp: 4;
       -webkit-box-orient: vertical;
       overflow: hidden;
     }
   
     /* Лого Port D'Azur — прижато ниже к низу карточки */
     .slide__text::after {
       display: block !important;
       bottom: 14px;
       width: 110px;
       height: 32px;
       background: url("./assets/logo.svg") no-repeat center / contain;
     }
   
     /* Стрелки — кружки на уровне середины фото */
     .improve__arrow {
       display: flex !important;
       position: absolute;
       top: 22.5vh;
       transform: translateY(-50%);
       width: 44px;
       height: 44px;
       align-items: center;
       justify-content: center;
       font-size: 24px;
       line-height: 1;
       padding-bottom: 3px;
       color: var(--color-white);
       background: rgba(0, 0, 0, 0.35);
       border: 1.5px solid rgba(255, 255, 255, 0.75);
       border-radius: 50%;
       cursor: pointer;
       z-index: 10;
       backdrop-filter: blur(4px);
       -webkit-backdrop-filter: blur(4px);
       transition: background 0.25s ease;
     }
     .improve__arrow:hover,
     .improve__arrow:focus { background: rgba(0, 0, 0, 0.6); outline: none; }
     .improve__arrow:disabled { opacity: 0.35; cursor: default; }
     .improve__arrow--prev { left: 12px; }
     .improve__arrow--next { right: 12px; }
   
     .improve__dots { display: none; }
   }
   
   /* Стрелки скрыты на десктопе */
   .improve__arrow { display: none; }
   
   }


.slide__text::after {
  content: "";
  //display:none !important;
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: 180px;
  height: 48px;
  background: url("./assets/logo.svg") no-repeat center / contain;
  filter: brightness(0) invert(1);   /* белый логотип */
  opacity: 0.9;
}


/* =========================================================
   СЛАЙДЕР ПЛАНИРОВОК (показывает по 3, листает по 1)
   ========================================================= */
.plans-slider {
     position: relative;
     margin-bottom: 48px;
   }
   .plans-slider__viewport {
     overflow: hidden;
     /* отступ под стрелки внутри, чтобы они не вылезали за край экрана */
   }
.plans-slider__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  cursor: grab;
}
.plans-slider__track:active { cursor: grabbing; }

/* Каждый слайд = треть ширины минус gap. 3 видны одновременно */
.plans-slide {
  flex: 0 0 calc((100% - 48px) / 3);   /* 2 промежутка по 24px между 3 картами */
  min-width: 0;
}
.plans-slide .plan-card { height: 100%; }
.plans-slide img { pointer-events: none; }   /* чтобы drag не «хватал» картинку */

/* Стрелки — тёмно-синие на белой карточке (видны и на синем фоне) */
.plans-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  padding-bottom: 4px;
  color: var(--color-text-dark);
  background: transparent;
  border: 1.5px solid var(--color-text-dark);
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  backdrop-filter: none;
}
.plans-slider__arrow:hover {
  background: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  transform: translateY(-50%) scale(1.08);
}
.plans-slider__arrow--prev { left: 16px; }
.plans-slider__arrow--next { right: 16px; }
.plans-slider__arrow[disabled] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* На мобиле — чуть мельче */
@media (max-width: 720px) {
  .plans-slider__arrow {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .plans-slider__arrow--prev { left: 8px; }
  .plans-slider__arrow--next { right: 8px; }
}

/* Точки */
.plans-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.plans-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.35s ease;
}
.plans-slider__dot:hover { background: rgba(255, 255, 255, 0.75); }
.plans-slider__dot.is-active {
  background: var(--color-white);
  width: 24px;
  border-radius: 4px;
}

/* ---- TABLET: по 2 карты ---- */
@media (max-width: 1100px) {
  .plans-slide { flex: 0 0 calc((100% - 24px) / 2); }  /* 1 промежуток */
  .plans-slider__arrow--prev { left: 8px; }
  .plans-slider__arrow--next { right: 8px; }
}

/* ---- MOBILE: по 1 карте ---- */
@media (max-width: 720px) {
  .plans-slide { flex: 0 0 100%; }
  .plans-slider__track { gap: 16px; }
  .plans-slider__arrow { width: 42px; height: 42px; font-size: 24px; }
}

/* =========================================================
   СЕКЦИЯ "НЕДВИЖИМОСТЬ, КОТОРАЯ РАБОТАЕТ ЗА ВАС"
   ========================================================= */
.investment {
  background: #fff;
  padding: var(--section-pad-y) 0;
}

.investment__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}

.investment__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin: 0;
}

.investment__lead {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin: 8px 0 0;
  max-width: 420px;
}

/* Сетка карточек */
.investment__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.invest-card {
  background: #f3f5f7;
  border-radius: 14px;
  padding: 42px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.invest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20, 40, 60, 0.10);
}

.invest-card__value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.invest-card__value span {
  font-size: 30px;
}

.invest-card__label {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text-dark);
}

/* ---- TABLET ---- */
@media (max-width: 1100px) {
  .investment__head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .investment__lead { max-width: 100%; }
  .investment__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .invest-card { padding: 32px 20px; }
  .invest-card__value { font-size: 36px; }
  .invest-card__value span { font-size: 24px; }
}

/* ---- MOBILE ---- */
@media (max-width: 720px) {
  .investment__title { font-size: 28px; }
  .investment__lead { font-size: 15px; }
  .investment__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .invest-card { padding: 24px 16px; border-radius: 10px; }
  .invest-card__value { font-size: 30px; margin-bottom: 10px; }
  .invest-card__value span { font-size: 20px; }
  .invest-card__label { font-size: 13px; }
}

/* =========================================================
   МОДАЛКА — Оставить заявку
   ========================================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFade 0.25s ease;
}
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Подложка-затемнение с блюром */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 35, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Сама карточка модалки */
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background-color: var(--color-hero-bg);
  background-image: url("./assets/bg-dark.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px 48px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  animation: modalIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.05); }

.modal__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 16px;
}

.modal__subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-white-80);
  margin: 0 0 28px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modal__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.modal__input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
}
.modal__input:invalid:not(:placeholder-shown) {
  border-color: rgba(229, 142, 76, 0.7);
}

/* Чекбокс в модалке — на тёмном фоне, поэтому стандартный .checkbox с белой рамкой ОК */
.checkbox--modal { margin-top: 4px; }

.modal__submit {
  margin-top: 10px;
  padding: 16px 24px;
}

.modal__status {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;
  min-height: 20px;
}
.modal__status.is-success { color: #7fd99a; }
.modal__status.is-error   { color: #ff8a8a; }

/* Блокировка скролла body при открытой модалке */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

/* MOBILE */
@media (max-width: 720px) {
  .modal { padding: 12px; }
  .modal__dialog { padding: 36px 24px 28px; border-radius: 14px; }
  .modal__title { font-size: 30px; }
  .modal__subtitle { font-size: 14px; margin-bottom: 22px; }
  .modal__input { font-size: 14px; padding: 14px 18px; }
}


.is-success{ color: #7fd99a;}


.is-error{color: #ff8a8a; }




/* =========================================================
   МОБИЛЬНОЕ МЕНЮ — полноэкранное с анимациями
   ========================================================= */

/* Базовые стили для .nav (десктоп — горизонтальное) */
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 768px) {
.nav a {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #014470;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #014470;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

.nav a:hover,
.nav a:focus {
  color: #0066cc;
  outline: none;
}
}
/* Бургер-кнопка (скрыта на десктопе) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 2px solid #014470;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #014470;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger:hover,
.burger:focus {
  background: rgba(1, 68, 112, 0.1);
  outline: none;
}

.burger[aria-expanded="true"] {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  /* Скрываем десктопное меню */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #014470 0%, #003366 50%, #002244 100%);
    z-index: 1000;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Кнопка закрытия (крестик) — создаём через псевдоэлемент */
  .nav::before {
    content: "×";
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
  }

  .nav::before:hover,
  .nav::before:focus {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: rotate(90deg);
    outline: none;
  }

  /* Ссылки в мобильном меню */
  .nav a {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 0.45rem 0;
    position: relative;
    
    /* Анимация появления с задержкой */
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
  }

  .nav a::after {
    display: none; /* Убираем подчёркивание на мобильном */
  }

  .nav a:hover,
  .nav a:focus {
    color: #fff;
    transform: translateX(5px);
  }

  .nav a::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
  }

  .nav a:hover::before,
  .nav a:focus::before {
    width: 0.75rem;
  }

  /* Телефон в меню */
  .nav .phone-btn {
    display: none; /* Телефон показываем отдельно или в футере */
  }

  /* Показываем бургер на мобильном */
  .burger {
    display: flex;
  }

  /* =========================================================
   СОСТОЯНИЕ: МЕНЮ ОТКРЫТО (.nav--open)
   ========================================================= */
  .nav.nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Анимация появления ссылок с каскадной задержкой */
  .nav.nav--open a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.nav--open a:nth-child(1) { transition-delay: 0.1s; }
  .nav.nav--open a:nth-child(2) { transition-delay: 0.15s; }
  .nav.nav--open a:nth-child(3) { transition-delay: 0.2s; }
  .nav.nav--open a:nth-child(4) { transition-delay: 0.25s; }
  .nav.nav--open a:nth-child(5) { transition-delay: 0.3s; }
  .nav.nav--open a:nth-child(6) { transition-delay: 0.35s; }
  .nav.nav--open a:nth-child(7) { transition-delay: 0.4s; }

  /* Блокировка скролла страницы при открытом меню */
  body.modal-open,
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Декоративные элементы фона (опционально) */
  .nav.nav--open::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
      radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -2%) rotate(0.5deg); }
    50% { transform: translate(-1%, 3%) rotate(-0.3deg); }
    75% { transform: translate(-3%, -1%) rotate(0.2deg); }
  }

  /* Логотип в мобильном меню (опционально — можно добавить) */
  .nav .logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }
  
  .nav .logo:hover {
    opacity: 1;
  }
  
  .nav .logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Белый логотип на тёмном фоне */
  }
}

/* =========================================================
   ДОПОЛНИТЕЛЬНО: очень маленькие экраны
   ========================================================= */
@media (max-width: 480px) {
  .nav {
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .nav::before {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
  
  .nav a {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  }
  
  .burger {
    width: 36px;
    height: 36px;
  }
  
  .burger span {
    width: 18px;
  }
}

/* =========================================================
   ДОСТУПНОСТЬ: фокус и reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav a,
  .burger span,
  .nav::before {
    transition: none !important;
    animation: none !important;
  }
  
  .nav.nav--open {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}

/* Фокус для клавиатурной навигации */
.nav a:focus-visible,
.burger:focus-visible,
.nav::before:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Скрытие для скринридеров, если нужно */
.nav .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



.nav__close {
  display: none; /* Только на мобильном */
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1002;
}

.nav__close:hover,
.nav__close:focus {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* =========================================================
   БУРГЕР — делаем видимым и доступным
   ========================================================= */

/* Базовые стили бургера (всегда видим на мобильном) */
.burger {
  display: flex !important; /* Принудительно показываем */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2); /* Полупрозрачный фон для видимости */
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001; /* Поверх всего */
  position: relative; /* Чтобы z-index работал */
  transition: all 0.3s ease;
  flex-shrink: 0; /* Не сжимать */
}

/* Полоски бургера — БЕЛЫЕ для контраста на тёмном фоне */
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff !important; /* Белый цвет */
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Ховер-эффект */
.burger:hover,
.burger:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  outline: none;
  transform: scale(1.05);
}

/* Состояние: меню открыто (превращаем в крестик) */
.burger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   АДАПТИВ: на десктопе скрываем бургер
   ========================================================= */
@media (min-width: 1025px) {
  .burger {
    display: none !important;
  }
}

/* =========================================================
   HEADER — позиционирование элементов
   ========================================================= */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 10; /* Поверх видео */
}

/* Логотип */
.logo {
  flex-shrink: 0;
  z-index: 11;
}

/* Навигация (десктоп) */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Телефон */
.phone-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ HEADER
   ========================================================= */
@media (max-width: 1024px) {
  .header__inner {
    position: relative;
    z-index: 1000; /* Поверх всего */
  }
  
  /* На мобильном: логотип слева, бургер справа */
  .header__inner {
    justify-content: space-between;
  }
  
  /* Скрываем десктопное меню и телефон в шапке */
  .nav:not(.nav--open) {
    display: none;
  }
  
  .phone-btn {
    display: none; /* Телефон показываем только в меню или футере */
  }
  
  /* Бургер всегда видим на мобильном */
  .burger {
    display: flex !important;
    order: 2; /* Справа */
  }
  
  .logo {
    order: 1; /* Слева */
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .burger {
    width: 36px;
    height: 36px;
  }
  
  .burger span {
    width: 18px;
    height: 2px;
  }
}



@media (max-width: 720px) {
  /* Карточка — обычный flex-блок, без aspect-ratio */
  .purchase__title { margin-bottom: 32px; }
  .purchase__grid { grid-template-columns: 1fr; gap: 28px; }

  .purchase-card {
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    cursor: default;
  }

  /* Фото с фиксированной пропорцией 4:3 */
  .purchase-card__img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(20, 40, 60, 0.18);
  }

  /* Overlay — только на области фото, gradient тонкой полосой снизу, заголовок поверх фото ВСЕГДА */
  .purchase-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 4 / 3;
    height: auto;
    padding: 0 22px 22px;
    background: linear-gradient(180deg, transparent 50%, rgba(20, 40, 60, 0.85) 100%);
    opacity: 1;
    transform: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    border-radius: 10px;
  }

  /* Заголовок — белый, всегда виден, прижат к нижнему краю фото */
  .purchase-card__heading {
    opacity: 1;
    transform: none;
    color: var(--color-white);
    font-size: 22px;
    line-height: 1.15;
    text-align: left;
    margin: 0;
  }

  /* Текст — отдельный блок под фото, тёмным на белом фоне секции */
  .purchase-card__text {
    position: static;
    opacity: 1;
    transform: none;
    color: var(--color-text-dark);
    background: transparent;
    text-align: left;
    margin: 16px 4px 0;
    padding: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }
}






/* Скрыть на мобиле */
.hide-mobile {
    display: inherit;
}

@media (max-width: 720px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Скрыть на десктопе */
.hide-desktop {
    display: none !important;
}

@media (max-width: 720px) {
    .hide-desktop {
        display: inherit !important;
    }
}



.modal__radio-group{
    display:flex;
    gap:24px;
    margin-bottom:20px;
}

.radio{
    display:flex;
    align-items:center;
    cursor:pointer;
}

.radio input{
    position:absolute;
    opacity:0;
}

.radio__circle{
    width:18px;
    height:18px;
    border:1px solid #fff;
    border-radius:50%;
    margin-right:8px;
    position:relative;
}

.radio input:checked + .radio__circle::after{
    content:'';
    position:absolute;
    top:4px;
    left:4px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#fff;
}

.radio__text{
    color:#fff;
}




@media (max-width: 720px) {
  .slide__text::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: 110px;
    height: 32px;
    background: url("./assets/logo.svg") no-repeat center / contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    z-index: 5;
  }
}

.location__map-mobile {
  width: 100%;
  height: auto;
  display: block;
  line-height: 0;
}



@media (max-width: 720px) {
  .map-point { display: none !important; }
}


.plan-card__price{color: var(--color-text-dark);}