/* ============================================================
   BLUE WATERS — premium residential complex
   Palette:  Caspian ink · tide blue · mist · cool paper · champagne
   Type:     Cormorant Garamond (display serif) + Manrope (sans)
   Signature: recurring thin wave line + champagne hairline accents
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:    #0B1E2A;   /* deep Caspian night */
  --ink-2:  #10293a;
  --tide:   #1D5C7C;   /* brand blue-teal */
  --tide-d: #164a63;
  --mist:   #9DBECD;   /* soft blue */
  --paper:  #F4F6F7;   /* cool near-white */
  --paper-2:#EDF1F2;
  --foam:   #FFFFFF;
  --gold:   #C0A062;   /* champagne accent — used with restraint */
  --gold-d: #a98a4e;

  --text:   #22333c;
  --text-mut:#5b6f78;
  --line:   rgba(11,30,42,.12);

  --font-d: "Cormorant Garamond", Georgia, serif;
  --font-b: "Manrope", "Segoe UI", system-ui, sans-serif;
  /* Шрифт для статистических цифр: строчные (lining) цифры одной высоты,
     в отличие от старостильных цифр Cormorant, которые «прыгают» по базовой линии */
  --font-n: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  /* Геометрический гротеск в духе Futura — заголовок видеоблока, как на bluewaters.az */
  --font-g: "Jost", "Century Gothic", "Futura", var(--font-b);

  --accent: #637DA2;  /* CTA / icon accent (как в оригинале) */
  --header-h: 92px;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --sect-y: clamp(72px, 11vw, 160px);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .7s;
  --r: 4px;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--tide); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.h-display {
  font-family: var(--font-d);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--ink);
  /* у Cormorant по умолчанию старостильные цифры: «360°» читается
     как «з6о°». Включаем прописные (lining) — они одной высоты. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.h-display em { font-style: italic; color: var(--tide); }
/* заголовок не должен «слипаться» со следующим абзацем */
.h-display + .lead,
.h-display + .body-text,
.h-display + p { margin-top: clamp(1.1rem, 2.2vw, 2rem); }
.h-display { padding-bottom: .08em; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tide);
  display: inline-flex;
  align-items: center;
  gap: .8em;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--gold);
}
.eyebrow--light { color: rgba(255,255,255,.82); }
.eyebrow--light::before { background: var(--gold); }

.lead   { font-size: clamp(1.05rem,1.5vw,1.28rem); color: var(--text-mut); max-width: 46ch; line-height: 1.75; }
.body-text { color: var(--text-mut); max-width: 52ch; margin-bottom: 1.1rem; line-height: 1.8; }
.body-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Section rhythm (single source of truth) ---------- */
.section { padding-block: var(--sect-y); position: relative; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head__note { color: var(--text-mut); max-width: 34ch; font-size: 1.02rem; }
/* центрированный подзаголовок длиннее бокового: шире колонка и
   выравнивание строк по длине, чтобы не оставалось «хвостов» */
.section-head__note--center {
  max-width: 62ch; margin-inline: auto;
  line-height: 1.72; text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--tide); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  padding: 1.05em 2.1em; border-radius: 100px;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  color: var(--fg); background: var(--bg);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .5s var(--ease); border-radius: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(11,30,42,.5); }
.btn:hover::before { transform: translateY(0); }
.btn__ar { transition: transform .4s var(--ease); }
.btn:hover .btn__ar { transform: translateX(4px); }

.btn--primary { --bg: var(--tide); }
.btn--dark { --bg: var(--ink); }
.btn--dark::before { background: var(--tide); }
.btn--full { width: 100%; justify-content: center; }

.btn--ghost {
  --fg: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.4);
}
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }
.btn--ghost-dark { --fg: var(--paper); border-color: rgba(255,255,255,.28); }
.btn--ghost-dark::before { background: var(--gold); }
.btn--ghost-dark:hover { color: var(--ink); }

.link-more {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: .92rem; color: var(--tide);
  padding-bottom: 4px; position: relative; width: max-content;
}
.link-more span { transition: transform .4s var(--ease); }
.link-more::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(.4); transform-origin: left;
  transition: transform .45s var(--ease);
}
.link-more:hover span { transform: translateX(5px); }
.link-more:hover::after { transform: scaleX(1); }
.link-more--light { color: #fff; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  color: var(--paper); transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
/* logo drifts up a touch as the curtain lifts */
.preloader.is-done .preloader__logo { transform: translateY(-10px) scale(1.04); }

/* На занавесе — тот же логотип, что в шапке, только светлый:
   фон здесь --ink, и тёмный logo.png на нём не читается.
   Файл квадратный с полями, поэтому кадр шире прежней иконки —
   иначе надпись «BLUE WATERS» выходит слишком мелкой. */
.preloader__logo {
  width: clamp(190px, 38vw, 300px);
  transition: transform .8s var(--ease);
  animation: pl-logo-in 1.25s var(--ease-out) both;
}
.preloader__logo img { display: block; width: 100%; height: auto; }

.preloader__line {
  width: clamp(190px, 38vw, 300px); height: 1px;
  background: var(--gold); transform-origin: left center;
  animation: pl-line 1.1s var(--ease) .35s both;
}

@keyframes pl-logo-in {
  from { opacity: 0; transform: translateY(16px) scale(.92); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pl-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .preloader__logo, .preloader__line { animation-duration: .01ms; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 0 rgba(11,30,42,.07);
  transition: height .4s var(--ease), box-shadow .4s var(--ease);
}
.header__inner {
  height: 100%;
  width: 100%; max-width: 1760px; margin-inline: auto;
  padding-inline: clamp(20px, 7.8vw, 150px);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem);
}
.header.is-scrolled { height: 76px; box-shadow: 0 6px 24px -18px rgba(11,30,42,.5); }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 64px; width: auto; display: block; transition: height .4s var(--ease); }
.header.is-scrolled .logo__img { height: 48px; }
.logo--footer .logo__img { height: 76px; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.1vw, 2.6rem); }
.nav__link {
  position: relative; font-size: clamp(.88rem, .95vw, 1.06rem); font-weight: 400; padding: 6px 0;
  color: #131426; transition: color .3s var(--ease); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: var(--accent); }
/* пункт ведёт на будущую отдельную страницу — пока некликабелен */
.nav__link--soon, .mobile-menu__link--soon {
  color: var(--text-mut); cursor: default; pointer-events: none;
}
.nav__link--soon::after { display: none; }
.footer__soon { opacity: .5; cursor: default; }

.header__actions { display: flex; align-items: center; gap: clamp(.5rem, 1vw, .9rem); }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; flex: none;
  border: 1px solid rgba(99,125,162,.45); color: var(--accent);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Переключатель языка ---------- */
.lang { position: relative; }
.lang__btn { font-size: .78rem; font-weight: 600; letter-spacing: .06em; }
.lang.is-open .lang__btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.lang__code { line-height: 1; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
  min-width: 168px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid rgba(11,30,42,.08); border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(11,30,42,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__opt {
  display: block; padding: .62rem .85rem; border-radius: 8px;
  font-size: .9rem; color: #131426; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang__opt:hover { background: rgba(99,125,162,.1); color: var(--accent); }
.lang__opt.is-current { color: var(--accent); font-weight: 600; }
.lang__opt.is-current::after { content: "•"; margin-left: .5em; }

.header__cta {
  --bg: var(--accent);
  padding: 1.05em 2.4em; font-weight: 500; font-size: clamp(.85rem, .92vw, 1rem);
  white-space: nowrap;
}
.header__cta::before { background: var(--ink); }

/* ---------- Burger / mobile menu ---------- */
.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span {
  position: absolute; left: 10px; width: 22px; height: 1.6px; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}

.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
body.menu-open .burger span { background: #fff; }
body.menu-open .burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 800; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: 8rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: .3rem; }
.mobile-menu__link {
  font-family: var(--font-d); font-size: clamp(2rem, 9vw, 3rem); font-weight: 400;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.menu-open .mobile-menu__link { opacity: 1; transform: none; }
body.menu-open .mobile-menu__link:nth-child(1) { transition-delay: .25s; }
body.menu-open .mobile-menu__link:nth-child(2) { transition-delay: .32s; }
body.menu-open .mobile-menu__link:nth-child(3) { transition-delay: .39s; }
body.menu-open .mobile-menu__link:nth-child(4) { transition-delay: .46s; }
body.menu-open .mobile-menu__link:nth-child(5) { transition-delay: .53s; }
body.menu-open .mobile-menu__link:nth-child(6) { transition-delay: .6s; }
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__idx { font-family: var(--font-b); font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: .4rem; color: var(--mist); font-size: .95rem; }
.mobile-menu__foot a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: var(--header-h);
  /* не выше пропорций самой картинки (16:9) — иначе cover обрезает её по бокам
     и здания "наезжают" на текст */
  min-height: max(560px, min(calc(100svh - var(--header-h)), 56.25vw));
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(40px, 7.5vw, 150px) var(--gutter) clamp(32px, 6vh, 80px);
  overflow: hidden;
  background: #cfe0ea;
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #cfe0ea; }
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.08);
  opacity: 0; transition: opacity 1.5s var(--ease);
  will-change: transform, opacity;
}
.hero__slide.is-active { opacity: 1; }
/* длительность одного «отъезда» — меняется здесь */
.hero__slide.is-zooming { animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__content {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px; margin-inline: auto;
  text-align: center; color: #fff;
}
.hero__title {
  font-family: var(--font-b);
  font-weight: 200;
  color: #fff;
  font-size: clamp(2.15rem, 4.95vw, 6rem);
  line-height: .97;
  letter-spacing: -.005em;
  margin: 0;
}
.hero__title em { font-style: normal; color: #fff; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

.hero__sub {
  font-family: var(--font-b);
  font-weight: 300;
  font-size: clamp(.92rem, 1.25vw, 1.4rem);
  color: rgba(255,255,255,.95);
  letter-spacing: .005em;
  margin: clamp(.7rem, 2.6vw, 1.5rem) auto 0;
  max-width: 46ch;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { position: relative; }
.media-frame {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 4/5; box-shadow: 0 40px 80px -50px rgba(11,30,42,.6);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame--tall { aspect-ratio: 3/4; }
.media-frame::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.14); border-radius: inherit; pointer-events: none;
}
.about__badge {
  position: absolute; right: -14px; bottom: 30px;
  background: var(--ink); color: var(--paper); font-size: .68rem; letter-spacing: .25em;
  text-transform: uppercase; padding: .8rem 1.3rem; border-left: 2px solid var(--gold);
}
.about__stats { display: flex; gap: clamp(1.5rem,3vw,2.5rem); margin: 2.4rem 0; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
/* шрифт цифр — общий с карточками «минут», см. хелпер .num ниже */
.stat__num { font-size: clamp(2.2rem,4vw,3.2rem); color: var(--tide); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--text-mut); margin-top: .5rem; max-width: 14ch; }

/* ---------- Wave divider (signature) ---------- */
.wave-divider { overflow: hidden; line-height: 0; opacity: .6; }
.wave-divider svg { width: 140%; height: 60px; margin-left: -20%; animation: waveShift 18s linear infinite; }
@keyframes waveShift { from { transform: translateX(0);} to { transform: translateX(-14.28%);} }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.architecture { background: var(--paper-2); }
.arch__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,6rem); align-items: center; }
.arch__list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: .2rem; }
.arch__list li {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.arch__list li:last-child { border-bottom: 1px solid var(--line); }
.arch__list span { font-family: var(--font-d); color: var(--gold); font-size: 1.2rem; font-weight: 600; }
.arch__caption { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mut); }

/* ============================================================
   ADVANTAGES (minutes)
   ============================================================ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.adv-card {
  position: relative; aspect-ratio: 3/4.2; border-radius: var(--r); overflow: hidden;
  color: #fff; isolation: isolate; background: var(--tide);
}
.adv-card__media { position: absolute; inset: 0; z-index: -2; }
.adv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.adv-card:hover .adv-card__media img { transform: scale(1.08); }
.adv-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,30,42,.15), rgba(11,30,42,.72));
}
.adv-card__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.1rem,2vw,1.6rem); display: flex; flex-direction: column; }
/* Цифры статистики: единая высота и общая базовая линия во всех карточках.
   `.num` — общий хелпер, чтобы позже раскатать на остальные секции. */
.num,
.stat__num,
.adv-card__num {
  font-family: var(--font-n);
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
  font-weight: 500;
  letter-spacing: -.015em;
}
.adv-card__num {
  display: block;
  font-size: clamp(2.9rem, 5.4vw, 4.2rem);
  line-height: 1;
}
.adv-card__unit { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mist); margin-top: .3rem; }
.adv-card__to { font-size: 1rem; margin-top: .5rem; color: rgba(255,255,255,.92); }

/* ============================================================
   LIFESTYLE / BOULEVARD
   ============================================================ */
.lifestyle { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.lifestyle__media { position: absolute; inset: -8% 0 0 0; z-index: -1; }
.lifestyle__media img { width: 100%; height: 116%; object-fit: cover; }
.lifestyle__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,30,42,.15) 0%, rgba(11,30,42,.7) 60%); }
.lifestyle__inner { display: flex; justify-content: flex-end; }
.lifestyle__card {
  background: rgba(11,30,42,.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  padding: clamp(2rem, 4vw, 3.4rem); max-width: 520px; color: #fff;
}
.lifestyle__title { font-family: var(--font-d); font-weight: 400; font-size: clamp(2rem,4.5vw,3.4rem); line-height: 1.04; margin-bottom: 1.4rem; }
.lifestyle__text { color: rgba(255,255,255,.82); margin-bottom: 2rem; font-weight: 300; line-height: 1.8; }

/* ============================================================
   TOUR placeholder
   ============================================================ */
.tour { background: var(--ink); color: var(--paper); }
.tour .h-display { color: #fff; }
.tour .eyebrow { color: var(--mist); }
.tour .section-head__note { color: rgba(255,255,255,.62); }

.tour-embed {
  position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); background: var(--ink-2);
}
.tour-embed__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tour-embed__scrim { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(11,30,42,.3), rgba(11,30,42,.82)); }
.tour-embed__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
.tour-play {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-content: center; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35);
  transition: transform .5s var(--ease), background .4s;
}
.tour-play:hover { transform: scale(1.06); background: rgba(192,160,98,.25); }
.tour-play svg { margin-left: 4px; }
.tour-play__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(192,160,98,.55); animation: pulse 2.6s ease-out infinite; }
.tour-play__ring--2 { animation-delay: 1.3s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.tour-embed__badge { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.tour-embed__soon {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2;
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  padding: .5rem 1rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 100px;
}
.tour-embed__corner { position: absolute; width: 26px; height: 26px; border-color: rgba(255,255,255,.4); border-style: solid; border-width: 0; }
.tour-embed__corner--tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.tour-embed__corner--tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.tour-embed__corner--bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.tour-embed__corner--br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
/* --- Живой 360° тур (iframe подгружается по клику) --- */
.tour-embed__frame {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; animation: tourIn .7s var(--ease) forwards;
}
@keyframes tourIn { to { opacity: 1; } }
.tour-embed.is-live .tour-embed__bg,
.tour-embed.is-live .tour-embed__scrim,
.tour-embed.is-live .tour-embed__center,
.tour-embed.is-live .tour-embed__corner {
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.tour-embed__loader {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.tour-embed.is-ready .tour-embed__loader { opacity: 0; pointer-events: none; transition: opacity .4s; }
.tour-fs {
  position: absolute; z-index: 5; right: 14px; bottom: 14px;
  display: none; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 100px;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: rgba(11,30,42,.62); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); transition: background .3s, border-color .3s;
}
.tour-fs:hover { background: rgba(192,160,98,.35); border-color: var(--gold); }
.tour-embed.is-live .tour-fs { display: inline-flex; }
.tour-embed:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }

.tour__hint { text-align: center; margin-top: 2.2rem; color: rgba(255,255,255,.6); }
.tour__hint a { color: var(--gold); font-weight: 600; }
.tour__hint a:hover { text-decoration: underline; }

/* ============================================================
   ВИДЕО О BLUE WATERS
   Full-bleed постер с заголовком и круглой кнопкой. YouTube
   подгружается только по клику (см. initVideo в js/main.js),
   поэтому до нажатия на странице нет сторонних скриптов и куки.
   ============================================================ */
.video-block { background: var(--ink); }
.video-embed {
  position: relative; overflow: hidden;
  height: clamp(460px, 88vh, 940px);
  background: var(--ink);
}
.video-embed__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* мягкое затемнение к центру + общий градиент: заголовок читается
   на любом кадре превью, картинка при этом остаётся живой */
.video-embed__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 56% at 50% 46%, rgba(11,30,42,.30), rgba(11,30,42,0) 72%),
    linear-gradient(180deg, rgba(11,30,42,.36), rgba(11,30,42,.24) 45%, rgba(11,30,42,.46));
}
.video-embed__center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1.1rem, 2vw, 2.4rem);
  padding: 0 var(--gutter); text-align: center;
}
.video-embed__title {
  font-family: var(--font-g);
  font-weight: 300;
  font-size: clamp(2rem, 4.3vw, 4.9rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 30px rgba(11,30,42,.4);
}
.video-play {
  width: clamp(62px, 4.4vw, 82px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center;
  background: #fff; color: var(--accent); border: 0; cursor: pointer;
  box-shadow: 0 12px 44px rgba(11,30,42,.3);
  transition: transform .5s var(--ease), background .4s;
}
.video-play svg { width: clamp(21px, 1.5vw, 28px); height: auto; margin-left: 3px; }
.video-play:hover { transform: scale(1.07); background: var(--paper); }
.video-embed__frame {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; border: 0; display: block;
}
/* после запуска блок принимает пропорции ролика, иначе YouTube
   добавляет чёрные поля по бокам */
.video-embed.is-live { height: auto; aspect-ratio: 16/9; }
.video-embed.is-live .video-embed__bg,
.video-embed.is-live .video-embed__scrim,
.video-embed.is-live .video-embed__center {
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: clamp(.8rem,1.5vw,1.2rem); }
.g-item { position: relative; overflow: hidden; border-radius: var(--r); background: var(--tide); }
.g-item--wide { grid-column: span 2; }
.g-item--tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(11,30,42,.25); opacity: 0; transition: opacity .5s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item__plus {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink);
  display: grid; place-content: center; font-size: 1.4rem; font-weight: 300;
  opacity: 0; scale: .8; transition: all .5s var(--ease); z-index: 2;
}
.g-item:hover .g-item__plus { opacity: 1; scale: 1; }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,2.5vw,2rem); }
.news-card { display: flex; flex-direction: column; background: var(--foam); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11,30,42,.35); }
.news-card__media { aspect-ratio: 3/2; overflow: hidden; background: var(--tide); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card__date { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tide); }
.news-card__body h3 { font-family: var(--font-d); font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.news-card__body p { color: var(--text-mut); font-size: .95rem; flex: 1; }
.news-card__more { font-weight: 600; font-size: .9rem; color: var(--gold); }

/* ============================================================
   PLANNING (планировки — превью на главной + отдельная страница)
   ============================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }

/* Превью на главной: первая планировка типа + ссылка «Больше» */
.plan-tile { display: flex; flex-direction: column; }
.plan-tile__media {
  display: block; position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--foam); padding: clamp(.7rem, 1.4vw, 1.2rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.plan-tile__media img { width: 100%; height: 100%; object-fit: contain; }
.plan-tile:hover .plan-tile__media { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11,30,42,.35); border-color: var(--mist); }
.plan-tile__foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap; margin-top: .95rem;
}
.plan-tile__type { font-family: var(--font-d); font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.plan-tile__more {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .9rem; color: var(--tide);
  border-bottom: 1px solid var(--gold); padding-bottom: .12em;
  transition: color .35s var(--ease), gap .35s var(--ease);
}
.plan-tile__more:hover { color: var(--ink); gap: .8em; }

/* Отдельная страница со всеми планировками */
.plans-page { padding-top: calc(var(--header-h) + clamp(2.2rem, 5vw, 4.4rem)); padding-bottom: var(--sect-y); }
.plans-page__head { margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.plans-page__back {
  /* flex, а не inline-flex: .eyebrow ниже — тоже inline-flex и иначе
     встаёт в одну строку со ссылкой «назад» */
  display: flex; width: fit-content; align-items: center; gap: .5em; margin-bottom: 1.2rem;
  font-size: .85rem; font-weight: 600; color: var(--text-mut); transition: color .3s var(--ease);
}
.plans-page__back:hover { color: var(--tide); }

.plans-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.plans-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.plan-item { display: flex; flex-direction: column; }
.plan-item.is-hidden { display: none; }
/* Кадр плана. Подъём на наведение живёт здесь, а не на .plan-item__media:
   кнопка «Связаться» лежит рядом с планом (вложенные <button> нельзя),
   и вместе они должны двигаться одним блоком. */
.plan-item__stage { position: relative; transition: transform .5s var(--ease); }
.plan-item__media {
  display: block; width: 100%; cursor: zoom-in;
  position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--foam); padding: clamp(.7rem, 1.4vw, 1.2rem);
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.plan-item__media img { width: 100%; height: 100%; object-fit: contain; }
.plan-item:hover .plan-item__stage { transform: translateY(-6px); }
.plan-item:hover .plan-item__media { box-shadow: 0 30px 50px -30px rgba(11,30,42,.35); border-color: var(--mist); }
.plan-item__zoom, .plan-item__ask {
  position: absolute; bottom: 12px; height: 38px;
  background: rgba(11,30,42,.82); color: #fff; line-height: 1;
  opacity: 0; scale: .9;
  transition: opacity .4s var(--ease), scale .4s var(--ease), background .3s var(--ease);
}
.plan-item__zoom {
  right: 12px; width: 38px; border-radius: 50%; display: grid; place-content: center;
  font-size: 1.3rem;
}
.plan-item__zoom::before { content: "+"; margin-top: -.12em; }
.plan-item__ask {
  left: 12px; display: grid; place-content: center; padding-inline: 1.05rem;
  border-radius: 100px; font-size: .78rem; font-weight: 500; letter-spacing: .02em;
}
.plan-item__ask:hover { background: var(--tide); }
.plan-item:hover .plan-item__zoom, .plan-item:focus-within .plan-item__zoom,
.plan-item:hover .plan-item__ask, .plan-item:focus-within .plan-item__ask { opacity: 1; scale: 1; }
/* на тач-экранах наведения нет — иначе кнопки не показать вовсе */
@media (hover: none) {
  .plan-item__zoom, .plan-item__ask { opacity: 1; scale: 1; }
}
.plan-item__foot { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-top: .85rem; }
.plan-item__type { font-family: var(--font-d); font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
.plan-item__idx { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mut); }
.plans-empty { padding: 3rem 0; color: var(--text-mut); }
.plans-cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); color: var(--text-mut); }
.plans-cta button { color: var(--tide); font-weight: 600; }
.plans-cta button:hover { text-decoration: underline; }

@media (max-width: 1100px) { .plans-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .plans-grid, .plans-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .plans-grid, .plans-gallery { grid-template-columns: 1fr; } }

/* ============================================================
   LOCATION / MAP
   ============================================================ */
.location { background: var(--paper-2); }
.map-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.chip {
  padding: .6em 1.2em; border-radius: 100px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--text-mut);
  transition: all .35s var(--ease);
}
.chip span { color: var(--gold); font-weight: 700; }
.chip:hover { border-color: var(--tide); color: var(--ink); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--active span { color: var(--gold); }
/* z-index: 0 создаёт свой контекст наложения: внутренние слои Leaflet
   (у контролов +/− z-index 1000) больше не лезут поверх шапки (900) */
.map-wrap { position: relative; z-index: 0; isolation: isolate; aspect-ratio: 16/8; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(11,30,42,.4); background: #eef1f3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-canvas { width: 100%; height: 100%; }
.map-fallback { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-mut); }

/* Брендовая метка-карточка поверх встроенной карты */
.map-place {
  position: absolute; left: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 2; display: flex; align-items: flex-start; gap: .85rem;
  max-width: min(320px, calc(100% - 2.2rem));
  padding: .95rem 1.15rem; border-radius: 14px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 22px 48px -24px rgba(11,30,42,.55), 0 2px 8px -4px rgba(11,30,42,.25);
  font-family: var(--font-b);
  animation: mapPlaceIn .7s var(--ease-out) both;
}
.map-place__pin {
  position: relative; flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; color: var(--ink);
  background: linear-gradient(150deg, var(--paper) 0%, #dfe7ea 100%);
  box-shadow: inset 0 0 0 1px rgba(11,30,42,.08);
}
.map-place__pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 16px;
  border: 2px solid var(--gold); opacity: 0; animation: mapPinPulse 2.6s ease-out infinite;
}
.map-place__body { display: flex; flex-direction: column; min-width: 0; }
.map-place__body strong {
  font-family: var(--font-d); font-weight: 600; font-size: 1.28rem;
  line-height: 1.1; color: var(--ink); letter-spacing: .01em;
}
.map-place__body > span { font-size: .82rem; color: var(--text-mut); margin-top: .2rem; }
.map-place__dir {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  margin-top: .7rem; padding: .42rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  color: #fff; background: var(--tide); text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.map-place__dir svg { transition: transform .25s var(--ease); }
.map-place__dir:hover { background: var(--ink); transform: translateY(-1px); }
.map-place__dir:hover svg { transform: translateX(3px); }

@keyframes mapPlaceIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mapPinPulse {
  0%   { opacity: .55; transform: scale(.82); }
  70%  { opacity: 0;   transform: scale(1.15); }
  100% { opacity: 0;   transform: scale(1.15); }
}
@media (max-width: 700px) {
  .map-place { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .map-place { animation: none; }
  .map-place__pin::after { animation: none; }
}

/* карточка объекта в всплывашке Google */
.map-iw { font-family: var(--font-b); min-width: 150px; padding: 2px 2px 0; }
.map-iw b { display: block; font-weight: 600; font-size: .95rem; color: #131426; }
.map-iw span { display: block; font-size: .78rem; color: var(--text-mut); margin-top: .15rem; }
.map-iw a { display: inline-block; margin-top: .5rem; font-size: .82rem; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* --- Leaflet: метки-пины и всплывашки под брендовую палитру --- */
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 4px 6px rgba(11,30,42,.32)); }
/* подпись с названием над меткой: дисплейный шрифт, «стеклянная» плашка,
   без стрелки и рамки, которые Leaflet рисует по умолчанию */
.map-label,
.leaflet-tooltip.map-label {
  padding: 3px 10px; border: 0; border-radius: 100px;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: 0 8px 20px -12px rgba(11,30,42,.75), 0 0 0 1px rgba(11,30,42,.06);
  font-family: var(--font-d); font-weight: 600; font-size: .92rem; line-height: 1.25;
  letter-spacing: .02em; color: var(--ink); white-space: nowrap;
}
.map-label::before { display: none; }          /* уголок-стрелка не нужен */
.map-label.map-label--home,
.leaflet-tooltip.map-label--home {
  background: var(--ink); color: #fff; font-size: 1.05rem; padding: 4px 13px;
  box-shadow: 0 10px 24px -12px rgba(11,30,42,.9);
}
/* подпись, налезшая на соседнюю, — скрываем (см. declutter в main.js) */
.map-label.is-hidden { visibility: hidden; }
@media (max-width: 700px) {
  .map-label, .leaflet-tooltip.map-label { font-size: .82rem; padding: 2px 8px; }
  .map-label--home { font-size: .95rem; }
}
.leaflet-container { font-family: var(--font-b); background: #eef1f3; }
.leaflet-popup-content-wrapper {
  border-radius: 8px; box-shadow: 0 18px 40px -20px rgba(11,30,42,.5);
}
.leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }
.leaflet-bar a { color: var(--ink); }

@media (max-width: 700px) { .map-wrap { aspect-ratio: 4/5; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,6rem); align-items: start; }
.contact__title { font-family: var(--font-d); font-weight: 400; font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.03; color: #fff; margin: 1rem 0 1.4rem; }
.contact__lead { color: rgba(255,255,255,.68); max-width: 40ch; margin-bottom: 2.4rem; font-weight: 300; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact__list li { display: flex; flex-direction: column; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact__list span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.contact__list a { color: #fff; font-size: 1.15rem; font-family: var(--font-d); }
.contact__list a:hover { color: var(--gold); }

.contact__form { display: flex; flex-direction: column; gap: 1.3rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: clamp(1.6rem,3vw,2.6rem); }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.22);
  color: #fff; font-family: inherit; font-size: 1rem; padding: .9rem 0 .7rem; outline: none;
  transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; }
.field label {
  position: absolute; left: 0; top: .9rem; color: rgba(255,255,255,.55); font-size: 1rem;
  pointer-events: none; transition: all .35s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -.6rem; font-size: .72rem; letter-spacing: .1em; color: var(--gold);
}
/* Метка телефона поднята всегда: в поле сразу виден код страны. Отдельным
   правилом, а не в списке выше: селекторы там опираются на соседство
   input + label, а intl-tel-input оборачивает input в .iti и это соседство
   рвётся. Специфичность (0,3,0) — иначе перебивает .field label. */
.contact__form .field .label--tel {
  top: -.6rem; font-size: .72rem; letter-spacing: .1em; color: var(--gold);
}
.consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; color: rgba(255,255,255,.6); cursor: pointer; }
.consent input { accent-color: var(--gold); margin-top: 3px; }
/* подпись ведёт на PDF с согласием — подчёркиваем, чтобы читалась как ссылка */
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--gold); }
.form-status { font-size: .9rem; min-height: 1em; }
.form-status.ok { color: #7fd6a5; }
.form-status.err { color: #ff8d82; }

/* ── Поле телефона: флаг и код страны (intl-tel-input) ──────────────
   Библиотека оборачивает input[type=tel] в .iti и ставит слева кнопку
   выбора страны; код страны показан префиксом, в значении поля его нет —
   полный номер собирает main.js перед отправкой (fullPhone).
   Если библиотека не загрузилась, поле остаётся обычным input.
   Список стран на телефоне открывается на весь экран и живёт в <body>,
   поэтому его вид задаётся здесь глобально, а не через .contact__form. */
.iti {
  display: block; width: 100%;
  /* серую подложку под флагом гасим: внутри «пилюли» и на подчёркивании
     она читается как артефакт. На наведение отвечает каретка */
  --iti-hover-color: transparent;
  --iti-spacer-horizontal: 10px;
}
/* Размер флагов (--iti-flag-width / --iti-flag-height) не трогать!
   Флаг — окно 16×12 в спрайте 3904×12 со смещением по стране
   (.iti__az { --iti-flag-offset: -240px }). Любой другой размер сдвигает
   окно, и в флаг попадает полоска соседней страны — то есть на месте
   одного флага рисуется часть чужого. Масштабировать можно только вместе
   со --iti-flag-sprite-width/height и всеми смещениями, чего не стоит делать. */
.iti__country-container:hover .iti__arrow { border-top-color: var(--accent); }

/* Карточка со списком: белая, скруглённая, мягкая тень — как панель заявки. */
.iti__dropdown-content {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; min-width: 290px; color: var(--text);
  font-family: var(--font-b); font-size: .95rem;
  box-shadow: 0 26px 54px -26px rgba(11,30,42,.55);
}
.iti--inline-dropdown .iti__dropdown-content { margin-top: 10px; }
/* поиск — такое же поле-«пилюля», как в форме; убираем чёрную рамку
   фокуса по умолчанию, вместо неё мягкое кольцо в цвете акцента */
/* Селектор с [type] намеренно: в контактной форме поле поиска попадает под
   .field input (белый текст, прозрачный фон, свои отступы) — на белой карточке
   получался белый текст на белом. [type="text"] добавляет вес и перебивает.
   height + line-height: normal — иначе поле наследует межстрочный интервал
   страницы (24px), текст встаёт по нему и уезжает вниз от центра «пилюли». */
.iti__search-input[type="text"] {
  /* flex: none — на телефоне список открывается на весь экран, там поле
     становится flex-элементом и без этого сжимается вдвое */
  width: 100%; height: 44px; flex: none; padding: 0 .85rem; line-height: normal;
  font-family: var(--font-b); font-size: .92rem; color: var(--text);
  background: var(--foam); border: 1px solid var(--line); border-radius: 100px;
  outline: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.iti__search-input[type="text"]::placeholder { color: #98a6b4; }
.iti__search-input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,125,162,.14); }
.iti__search-input + .iti__country-list { border-top: none; margin-top: 8px; }
.iti__country { padding: .5rem .8rem; border-radius: 12px; }
.iti__country-name { color: var(--text); }
.iti__dial-code { color: var(--text-mut); }
.iti__country.iti__highlight { background: rgba(99,125,162,.12); }
.iti--inline-dropdown .iti__country-list { max-height: 236px; }
/* системная полоса прокрутки здесь слишком груба */
.iti__country-list { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(11,30,42,.22) transparent; }
.iti__country-list::-webkit-scrollbar { width: 6px; }
.iti__country-list::-webkit-scrollbar-track { background: transparent; }
.iti__country-list::-webkit-scrollbar-thumb { background: rgba(11,30,42,.2); border-radius: 100px; }
/* на телефоне список открывается на весь экран */
.iti--fullscreen-popup .iti__dropdown-content { border-radius: 22px; padding: 12px; }
.iti--fullscreen-popup .iti__country { padding: .7rem .8rem; }

/* контактная форма — тёмный фон, поля-подчёркивания */
.contact__form .iti { --iti-arrow-color: rgba(255,255,255,.5); }
.contact__form .iti__selected-country-primary { padding-left: 0; }
.contact__form .iti__selected-dial-code { color: #fff; }
.contact__form .iti__country-container:hover .iti__arrow { border-top-color: var(--gold); }

/* согласие не отмечено: подсвечиваем сам чекбокс — из одного текста
   в статусе не видно, что именно просят сделать */
.consent.is-invalid { color: #ff8d82; }
.consent.is-invalid input { outline: 2px solid #ff8d82; outline-offset: 3px; accent-color: #ff8d82; }
.drawer__consent.is-invalid { color: #c0342b; }
.drawer__consent.is-invalid input { outline: 2px solid #c0342b; outline-offset: 3px; accent-color: #c0342b; }
@media (prefers-reduced-motion: no-preference) {
  .consent.is-invalid, .drawer__consent.is-invalid { animation: consent-nudge .45s var(--ease); }
}
@keyframes consent-nudge {
  20% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  100% { transform: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #08161f; color: var(--paper); padding-top: clamp(3.5rem,7vw,6rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo--footer { color: #fff; margin-bottom: 1.4rem; }
.footer__about { color: rgba(255,255,255,.55); font-size: .92rem; max-width: 30ch; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: .7rem; }
.footer__col h4 { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin-bottom: .6rem; font-weight: 600; }
.footer__col a, .footer__col span, .footer__col p { color: rgba(255,255,255,.68); font-size: .92rem; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--gold); }
.footer__col p { line-height: 1.7; margin-bottom: .4rem; }
.footer__socials { display: flex; gap: .6rem; margin-top: .6rem; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-content: center; font-size: .72rem; font-weight: 600; }
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer__cta-col .btn { margin-top: .6rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.8rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer__legal { display: flex; gap: 1.6rem; }
.footer__legal a:hover { color: var(--gold); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,16,22,.94); display: grid; place-content: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 90vw; max-height: 84vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; font-size: 2rem; line-height: 1; border: 1px solid rgba(255,255,255,.2); transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.12); }
.lightbox__close { top: 24px; right: 24px; font-size: 1.6rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ============================================================
   REVEAL animations
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.adv-card[data-reveal] { transition-delay: calc(var(--i,0) * .1s); }

[data-reveal-mask] > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
[data-reveal-mask].is-in > span { transform: translateY(0); }

/* graceful image fallback */
.no-img { background: linear-gradient(135deg, var(--tide), var(--ink)); }
.no-img img { opacity: 0; }

/* ============================================================
   Выпадающий список телефонов
   ============================================================ */
.phones { position: relative; }
.phones.is-open .phones__btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.phones__pop {
  position: absolute; top: calc(100% + 12px); right: -6px; z-index: 20;
  min-width: 290px; padding: 20px 22px;
  background: #fff; border: 1px solid rgba(11,30,42,.08); border-radius: 4px;
  box-shadow: 0 26px 54px -26px rgba(11,30,42,.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.phones.is-open .phones__pop { opacity: 1; visibility: visible; transform: none; }
.phones__pop::before {
  content: ""; position: absolute; top: -6px; right: 26px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid rgba(11,30,42,.08); border-top: 1px solid rgba(11,30,42,.08);
  transform: rotate(45deg);
}
.phones__head { font-size: 1.02rem; color: #131426; margin-bottom: .9rem; }
.phones__row {
  display: block; padding: .34rem 0; font-size: .98rem; color: #131426;
  transition: color .25s var(--ease);
}
.phones__row span { color: var(--text-mut); }
.phones__row:hover { color: var(--accent); }

/* ============================================================
   Боковая панель заявки
   ============================================================ */
.drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(11,30,42,.45);
  opacity: 0; transition: opacity .5s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(640px, 100%);
  background: #fff; color: var(--text);
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3.4vw, 52px);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .6s var(--ease);
  box-shadow: -30px 0 80px -40px rgba(11,30,42,.6);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  position: absolute; top: clamp(22px, 3vw, 40px); right: clamp(20px, 3vw, 44px);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center;
  border: 1px solid rgba(11,30,42,.14); color: #131426;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.drawer__close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.drawer__title {
  font-family: var(--font-b); font-weight: 400; color: #131426;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2;
  padding-right: 64px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.drawer__form { display: flex; flex-direction: column; flex: 1; }
.drawer__fields { display: flex; flex-direction: column; gap: 14px; }
.drawer__input {
  width: 100%; font: inherit; color: #131426;
  padding: 1.15rem 1.4rem;
  background: #fff; border: 1px solid rgba(11,30,42,.16); border-radius: 100px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.drawer__input::placeholder { color: #98a6b4; }
.drawer__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,125,162,.14); }
.drawer__input--area { border-radius: 22px; resize: vertical; min-height: 130px; }
.drawer__foot { margin-top: auto; padding-top: 2.5rem; }
.drawer__submit { padding-block: 1.15em; font-weight: 500; }
.drawer__consent {
  display: flex; gap: .7rem; align-items: flex-start;
  margin-top: 1.1rem; font-size: .84rem; color: var(--text-mut); line-height: 1.5;
}
.drawer__consent input { margin-top: .18rem; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.drawer__consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* телефон в панели: кнопку страны вдвигаем на отступ «пилюли» */
.drawer__form .iti { --iti-arrow-color: rgba(19,20,38,.45); }
.drawer__form .iti__selected-country-primary { padding-left: 1.4rem; }
.drawer__form .iti__selected-dial-code { color: #131426; }
/* на белом фоне светлый красный из .form-status.err не читается */
.drawer__form .form-status.err { color: #c0342b; }
body.drawer-open { overflow: hidden; }

.tour__hint-link { color: var(--tide); font-weight: 600; }
.tour__hint-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  /* max-width держит попап в экране на узких телефонах: при min-width 260px
     и сдвиге вправо он вылезал за край на 320–360px */
  .phones__pop { right: -80px; min-width: 260px; max-width: calc(100vw - 24px); }
  .phones__pop::before { right: 100px; }
  .drawer__panel { width: 100%; }
}

/* ============================================================
   ГЕНПЛАН
   ============================================================ */
.masterplan { padding: 0; background: var(--ink); }
.mp__stage { position: relative; }
.mp__scroller { overflow: hidden; }
.mp__canvas { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.mp__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none;
}
.mp__canvas { -webkit-tap-highlight-color: transparent; }
.mp__veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(11,30,42,.44) 0%, rgba(11,30,42,.08) 26%, rgba(11,30,42,0) 45%);
}

/* ---- контуры корпусов ---- */
.mp__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
/* слой подсветки.
   Гауссов фильтр убран: при быстром движении мыши каждое изменение
   заставляло пересчитывать размытие всей области — отсюда подвисания.
   Мягкий край имитируется штрихом цвета заливки: дешёво и без «обводки». */
.mp__paint { pointer-events: none; }
.mp__fill {
  fill: rgba(233,243,252,.32);
  stroke: rgba(233,243,252,.16);
  stroke-width: 0.6;                    /* в единицах viewBox — масштабируется с планом */
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .22s var(--ease);
  will-change: opacity;
}
.mp__fill.is-on { opacity: 1; }
.mp__fill.is-dim { opacity: 0; }
/* слой попадания: прозрачный, ловит курсор по точной геометрии */
.mp__shape { fill: transparent; stroke: none; pointer-events: all; cursor: pointer; }

/* ---- подписи корпусов ---- */
.mp__pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 3; padding: .62em 1.35em; border-radius: 100px;
  background: #fff; color: #131426;
  font-size: clamp(.68rem, .82vw, .86rem); font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(11,30,42,.85);
  transition: background .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease), opacity .3s var(--ease);
}
.mp__pin.is-on { background: var(--accent); color: #fff; transform: translate(-50%, -50%) scale(1.04); }
.mp__pin.is-dim { opacity: .4; }

/* ---- шапка блока ---- */
.mp__head {
  position: absolute; top: clamp(18px, 2.6vw, 40px); left: 0; right: 0; z-index: 4;
  padding-inline: clamp(18px, 3.2vw, 56px);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  pointer-events: none;
}
.mp__head > * { pointer-events: auto; }
.mp__title {
  /* тот же дисплейный шрифт, что у заголовков секций, — Manrope тут
     смотрелся как системный текст поверх фотографии */
  font-family: var(--font-d);
  font-weight: 300; color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: .95; letter-spacing: .015em;
  text-shadow: 0 3px 30px rgba(11,30,42,.5);
}
.mp__tools { display: flex; align-items: center; gap: clamp(.5rem, 1.2vw, 1.2rem); flex-wrap: wrap; justify-content: flex-end; }
.mp__filters { display: flex; gap: clamp(.35rem, .7vw, .7rem); flex-wrap: wrap; }
.mp__chip {
  padding: .8em 1.7em; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.65); color: #fff;
  font-size: clamp(.78rem, .92vw, .95rem); white-space: nowrap;
  background: rgba(11,30,42,.16); backdrop-filter: blur(6px);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.mp__chip:hover { background: rgba(255,255,255,.22); }
.mp__chip.is-active { background: #fff; border-color: #fff; color: #131426; font-weight: 500; }
.mp__help { padding: .95em 1.9em; font-size: clamp(.78rem, .92vw, .95rem); font-weight: 500; --bg: var(--accent); }

/* ---- карточка: только при наведении / нажатии ---- */
/* карточка идёт за курсором: позицию проставляет скрипт */
.mp__cards {
  position: absolute; top: 0; left: 0; z-index: 5;
  width: clamp(268px, 21vw, 320px);
  display: grid; pointer-events: none;
  will-change: transform;
}
.mp__card {
  grid-area: 1 / 1;                    /* все карточки в одной ячейке */
  background: #fff; border-radius: 4px;
  padding: clamp(20px, 1.6vw, 28px) clamp(22px, 1.8vw, 30px);
  box-shadow: 0 30px 60px -30px rgba(11,30,42,.55);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}
.mp__card.is-active { opacity: 1; visibility: visible; transform: none; }
.mp__card-title {
  font-family: var(--font-b); font-weight: 400; color: #131426;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.2;
}
.mp__card-sub { font-size: .86rem; color: var(--text-mut); margin-top: .3rem; }
.mp__rows { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(11,30,42,.1); }
.mp__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .42rem 0; font-size: clamp(.9rem, 1.02vw, 1.02rem);
  transition: opacity .3s var(--ease);
}
.mp__row span { color: #131426; }
.mp__row b { font-weight: 400; color: var(--text-mut); }
.mp__row.is-muted { opacity: .3; }
.mp__row.is-hit b { color: var(--accent); font-weight: 600; }

/* подсказка «нажмите на корпус» — только на тач-экранах */
.mp__hint {
  display: none; text-align: center; color: rgba(255,255,255,.75);
  font-size: .78rem; padding: 12px 16px 0;
}
/* тач-раскладка вешается классом, а не шириной экрана:
   планшет в альбомной ориентации тоже без курсора */
.mp__stage.is-touch .mp__hint { display: block; }
.mp__stage.is-touch .mp__cards {
  position: static; width: auto; transform: none !important;
  padding: 14px clamp(16px, 4vw, 28px) 24px; background: var(--ink-2);
}
.mp__stage.is-touch .mp__card { box-shadow: none; }

/* ---- адаптив ---- */
@media (max-width: 1180px) {
  .mp__head { flex-direction: column; gap: .9rem; }
  .mp__tools { justify-content: flex-start; }
}
@media (max-width: 860px) {
  /* план не сжимаем — он становится нечитаемым; даём прокрутку по горизонтали */
  .mp__head {
    position: static; padding: 18px clamp(16px, 4vw, 28px);
    background: var(--ink); gap: .8rem;
  }
  .mp__scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mp__canvas { min-width: 780px; }
  /* min-width:0 обязателен: у flex-элемента он по умолчанию auto, строка
     фильтров не сжималась до ширины экрана и растягивала страницу
     (на 320px — на 71px вправо), а внутренняя прокрутка не включалась */
  .mp__tools { width: 100%; min-width: 0; }
  .mp__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .mp__filters::-webkit-scrollbar { display: none; }
  .mp__help { width: 100%; justify-content: center; }
  .mp__pin { padding: .45em .85em; letter-spacing: .03em; font-size: .62rem; }
  .mp__cards {
    position: static; width: auto; padding: 14px clamp(16px, 4vw, 28px) 24px;
    background: var(--ink-2); transform: none !important;
  }
  .mp__card { box-shadow: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .logo__img { height: 44px; }
  .hero { min-height: min(74svh, 620px); padding-top: clamp(48px, 9vh, 90px); }
  .hero__title { font-size: clamp(2rem, 7.4vw, 3.4rem); }
  .hero__sub { font-size: clamp(.9rem, 2.2vw, 1.05rem); max-width: 24ch; }

  /* Латиница в азербайджанском и английском заголовке: у «ş», «ə», «g», «y»
     длинные выносные, реальная высота глифов больше строки (89px против 74px),
     а .line обрезает лишнее маской для анимации выезда — хвосты букв срезало,
     и строки выглядели слипшимися. У кириллицы там пусто, поэтому на русском
     проблемы нет и его не трогаем. */
  html[lang="az"] .hero__title,
  html[lang="en"] .hero__title { line-height: 1.3; }
  html[lang="az"] .hero__title .line,
  html[lang="en"] .hero__title .line { padding-bottom: .06em; }
  html[lang="az"] .hero__sub,
  html[lang="en"] .hero__sub { max-width: 30ch; line-height: 1.6; }
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: block; }
  .header__actions { gap: .4rem; }
  .icon-btn { width: 40px; height: 40px; }
  .about__grid, .arch__grid, .contact__grid { grid-template-columns: 1fr; }
  .arch__media { order: -1; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 220px; }
  .news-grid { grid-template-columns: 1fr; }
  .lifestyle__inner { justify-content: center; }
}
@media (max-width: 700px) {
  .tour-embed { aspect-ratio: 3/4; }

  /* «5 минут до моря» — на телефоне не колонка друг под другом, а боковая
     прокрутка: карточка занимает 82% экрана, следующая выглядывает справа
     и подсказывает, что список листается. Отрицательные margin выводят
     ленту за поля .container, padding возвращает отступ первой карточке,
     scroll-padding — чтобы прилипание учитывало этот отступ. */
  .adv-grid {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .adv-grid::-webkit-scrollbar { display: none; }
  .adv-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    aspect-ratio: 3 / 3.6;
  }
  /* карточки за правым краем не пересекают вьюпорт, и без этого они
     остались бы прозрачными до горизонтальной прокрутки */
  .adv-card[data-reveal] { opacity: 1; transform: none; transition-delay: 0s; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 240px; }
  .g-item--wide, .g-item--tall { grid-column: auto; grid-row: auto; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .about__stats { gap: 1.4rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Мобильные цели нажатия и мелкий текст
   На телефоне текстовые ссылки-строки выходили в 14–28px по высоте —
   для пальца мало (минимум по WCAG 2.5.8 — 24px, комфортно от 40px).
   Вертикальный padding расширяет область нажатия, не меняя раскладку.
   ============================================================ */
@media (max-width: 860px) {
  .footer__legal { gap: .4rem 1.6rem; flex-wrap: wrap; }
  .footer__legal a { padding-block: .5rem; }
  .footer__col a { padding-block: .3rem; }
  .footer__col { gap: .35rem; }
  .link-more, .plan-tile__more { padding-block: .45rem .5rem; }
  .tour__hint-link, .plans-cta button { display: inline-block; padding-block: .4rem; }
  .plans-page__back { padding-block: .45rem; }
  /* чекбокс согласия 13×13 пальцем почти не попадается;
     flex:none — иначе он ужимается как flex-элемент */
  .consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; }
  .consent { gap: .6rem; }
  /* подписи, которые на телефоне уходили ниже 10px */
  .mp__pin { font-size: .7rem; }
  .about__badge { font-size: .72rem; letter-spacing: .18em; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-mask] > span { opacity: 1 !important; transform: none !important; }
  .hero__slide { animation: none; transform: none; }
}
