/* =========================================================
   ГАГИНО — стили
   Сетка: .container 1640 / padding-inline 10
   Шрифт: Onest (локально, assets/fonts) — 400/500/700/800
   ========================================================= */

@font-face{font-family:"Onest";font-weight:400;font-display:swap;src:url(../fonts/Onest-400-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Onest";font-weight:400;font-display:swap;src:url(../fonts/Onest-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Onest";font-weight:500;font-display:swap;src:url(../fonts/Onest-500-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Onest";font-weight:500;font-display:swap;src:url(../fonts/Onest-500-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Onest";font-weight:700;font-display:swap;src:url(../fonts/Onest-700-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Onest";font-weight:700;font-display:swap;src:url(../fonts/Onest-700-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Onest";font-weight:800;font-display:swap;src:url(../fonts/Onest-800-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Onest";font-weight:800;font-display:swap;src:url(../fonts/Onest-800-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{
  /* фон — не белый, чуть серее */
  --bg: #eceef1;
  --bg-2: #e4e7ea;

  --ink: #161b1e;
  --ink-2: #5b666d;
  --white: #fff;

  --green: #1f4a37;
  --green-600: #17624a;

  /* стекло */
  --glass-bg: rgba(255,255,255,.55);
  --glass-brd: rgba(255,255,255,.65);
  --glass-blur: 22px;
  --glass-shadow: 0 18px 50px rgba(16,28,24,.10);

  --radius: 26px;
  --radius-pill: 999px;

  --header-h: 84px;
  --section-y: clamp(54px, 5.4vw, 96px);
  --container: 1640px;
  --pad: 10px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,p,ul,figure{ margin: 0; }
ul{ padding: 0; list-style: none; }
img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; }

:where(a,button,input,summary):focus-visible{
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link{
  position: fixed; top: 8px; left: 8px; z-index: 999;
  padding: 10px 16px; border-radius: 12px;
  background: var(--white); color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus{ transform: none; }

.ico{ width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm{ width: 18px; height: 18px; }
.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== Стеклянный примитив ===== */
.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
}
/* на фото/тёмном фоне */
.glass--dark{
  --glass-bg: rgba(255,255,255,.12);
  --glass-brd: rgba(255,255,255,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .glass{ background: rgba(255,255,255,.94); }
  .glass--dark{ background: rgba(20,28,26,.62); }
}

/* ===== Кнопки ===== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 32px;
  border: 0; border-radius: var(--radius-pill);
  font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

/* прозрачная с обводкой — как в референсе */
.btn--outline{
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .08em;
  min-height: 62px;
  padding-inline: 46px;
}
.btn--outline:hover{ background: rgba(255,255,255,.2); border-color: #fff; }

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

/* =========================================================
   HEADER
   ========================================================= */
/* сперва шапка едет вместе с хиро, прилипает только под конец — класс ставит JS */
.header{
  position: absolute; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--white);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.header__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
/* display:contents отдаёт список и телефон прямо в сетку шапки —
   так меню центрируется, а телефон прижат вправо, без дублей в разметке */
.nav{ display: contents; }
.nav__list{ justify-self: center; }
.nav__phone{ justify-self: end; }

/* при скролле — стеклянная подложка */
.header.is-stuck{
  position: fixed;
  height: 68px;
  animation: headerDrop .34s var(--ease) both;
  /* свой композиторный слой: иначе стекло мерцает над iframe карты */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: backdrop-filter;
  background: rgba(22,30,27,.38);
  box-shadow: 0 10px 34px rgba(10,20,16,.18);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

@keyframes headerDrop{
  from{ transform: translateY(-100%); }
  to{ transform: none; }
}
/* у подвала шапка уезжает — она там уже не нужна */
.header.is-hidden{
  animation: none;
  transform: translateY(-110%);
  transition: transform .34s var(--ease);
}
@media (prefers-reduced-motion: reduce){
  .header.is-stuck{ animation: none; }
  .header.is-hidden{ transition: none; }
}

.logo{
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.5rem; letter-spacing: .1em;
}
.logo img{ width: 40px; height: 40px; flex: none; }

.nav__list{ display: flex; align-items: center; gap: 34px; font-size: .98rem; }
.nav__list a{ position: relative; padding-block: 6px; opacity: .92; transition: opacity .2s; }
.nav__list a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover{ opacity: 1; }
.nav__list a:hover::after{ transform: scaleX(1); }

.nav__phone{ display: inline-flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; }

.burger{
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.burger__bar{ display: block; width: 26px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1){ transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2){ transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  scroll-margin-top: 0;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* clip, а не hidden: обрезает фон, но не ломает sticky внутри */
  overflow: clip;
  color: var(--white);
  view-timeline-name: --hero-view;
}

/* фон стоит на месте, пока хиро уезжает вверх */
.hero__media{
  position: sticky; top: 0; z-index: -2;
  width: 100%; height: 100svh;
  margin-bottom: -100svh;
  overflow: clip;
}
.hero__img{ width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
/* и чуть наезжает при уходе секции */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .hero__img{
      animation: heroZoom linear both;
      /* сам фон прилипший и во вьюпорте не двигается — считаем по секции */
      animation-timeline: --hero-view;
      animation-range: exit 0% exit 100%;
    }
    @keyframes heroZoom{
      from{ transform: scale(1); }
      to{ transform: scale(1.16); }
    }
  }
}

/* затемнение: сверху и снизу плотнее, чтобы читались хедер и нижняя строка */
.hero::before{
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,18,15,.55) 0%, rgba(10,18,15,.18) 26%, rgba(10,18,15,.26) 62%, rgba(10,18,15,.62) 100%),
    radial-gradient(120% 75% at 50% 45%, rgba(10,18,15,.06) 0%, rgba(10,18,15,.42) 100%);
}

.hero__inner{
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-top: var(--header-h);
}

/* огромный полупрозрачный заголовок */
.hero__title{
  font-weight: 800;
  font-size: min(19.4vw, 18rem);
  line-height: .95;
  letter-spacing: -.005em;
  color: rgba(255,255,255,.62);
  text-shadow: 0 2px 40px rgba(255,255,255,.18), 0 10px 60px rgba(10,20,16,.25);
  margin-bottom: clamp(18px, 2.4vw, 34px);
}

.hero__lead{
  font-size: clamp(1.05rem, 1.55vw, 1.6rem);
  font-weight: 500;
  max-width: 48ch;
  margin-bottom: clamp(26px, 3vw, 44px);
  text-shadow: 0 2px 18px rgba(10,20,16,.45);
}
.hero__lead b{ font-weight: 800; }

/* нижняя строка: локация слева, подсказка скролла справа */
.hero__foot{
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: clamp(26px, 3.4vw, 48px);
  font-size: .96rem;
}
.hero__place{ display: inline-flex; align-items: center; gap: 10px; text-shadow: 0 2px 14px rgba(10,20,16,.5); }
.hero__scroll{ display: inline-flex; align-items: center; gap: 10px; opacity: .85; }
.hero__scroll .ico{ animation: nudge 2s var(--ease) infinite; }
@keyframes nudge{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce){ .hero__scroll .ico{ animation: none; } }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px){
  .nav__list{ gap: 22px; }
}

@media (max-width: 900px){
  :root{ --header-h: 70px; }
  .burger{ display: flex; }

  .header__inner{ display: flex; justify-content: space-between; }

  /* меню на весь экран, фон под ним размывается */
  .nav{
    position: fixed; inset: 0;
    height: 100dvh;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    padding: calc(var(--header-h) + 20px) 24px 32px;
    background: rgba(10,16,13,.62);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
    opacity: 0; visibility: hidden;
    transition: opacity .32s var(--ease), visibility .32s;
    z-index: -1;
  }
  .nav.is-open{ opacity: 1; visibility: visible; }

  .nav__list{ flex-direction: column; align-items: stretch; gap: 0; font-size: 1.32rem; }
  .nav__list a{
    display: block; padding: 17px 4px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav__list a::after{ display: none; }
  .nav__phone{ margin-top: 26px; justify-content: flex-start; padding-left: 4px; font-size: 1.1rem; }

  /* пункты проявляются по очереди */
  .nav__list li,
  .nav__phone{
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .42s var(--ease), transform .42s var(--ease);
  }
  .nav.is-open :is(.nav__list li, .nav__phone){ opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1){ transition-delay: .07s; }
  .nav.is-open .nav__list li:nth-child(2){ transition-delay: .12s; }
  .nav.is-open .nav__list li:nth-child(3){ transition-delay: .17s; }
  .nav.is-open .nav__list li:nth-child(4){ transition-delay: .22s; }
  .nav.is-open .nav__list li:nth-child(5){ transition-delay: .27s; }
  .nav.is-open .nav__list li:nth-child(6){ transition-delay: .32s; }
  .nav.is-open .nav__phone{ transition-delay: .38s; }

  /* страница под открытым меню не прокручивается */
  html.is-menu-open,
  html.is-menu-open body{ overflow: hidden; overscroll-behavior: none; }

  @media (prefers-reduced-motion: reduce){
    .nav__list li, .nav__phone{ transition: none; transform: none; opacity: 1; }
  }

  /* на телефоне хиро ниже: фон и его sticky-высота идут вместе с секцией */
  .hero{ min-height: 75svh; }
  .hero__media{ height: 75svh; margin-bottom: -75svh; }
  .hero__foot{ font-size: .88rem; }
  .hero__scroll span{ display: none; }
}

@media (max-width: 560px){
  body{ font-size: 16px; }
  .hero__title{ font-size: 19vw; }
  .hero__lead{ max-width: 24ch; }
  .btn--outline{ min-height: 56px; padding-inline: 32px; font-size: .88rem; }
  .hero__place span{ max-width: 18ch; }
}

/* =========================================================
   Общее для секций
   ========================================================= */
.section{
  position: relative;
  padding-block: var(--section-y);
  /* якорь целится в секцию, а видеть нужно заголовок: вычитаем её верхний отступ */
  scroll-margin-top: calc(var(--header-h) - var(--section-y) + 26px);
}

.eyebrow{
  text-align: center;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: clamp(10px, 1vw, 15px);
}

.section__title{
  text-align: center;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section__lead{
  max-width: 62ch;
  margin: clamp(12px, 1.2vw, 18px) auto 0;
  text-align: center;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
}

.rule{
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22,27,30,.16) 12%, rgba(22,27,30,.16) 88%, transparent);
  margin: clamp(24px, 2.6vw, 42px) 0 0;
}

/* =========================================================
   О ПОСЁЛКЕ — фото-карточки
   ========================================================= */
.features{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.5vw, 26px);
  margin-top: clamp(20px, 2.2vw, 34px);
}

.feature{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
}
.feature__img{
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.feature:hover .feature__img{ transform: scale(1.035); }
@media (prefers-reduced-motion: reduce){ .feature__img{ transition: none; } .feature:hover .feature__img{ transform: none; } }

/* затемнение снизу — чтобы плашка держалась на любом кадре */
.feature::after{
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,18,15,.34) 0%, rgba(10,18,15,0) 34%, rgba(10,18,15,0) 46%, rgba(10,18,15,.55) 100%);
}

/* чипы с фактами поверх фото */
.feature__chips{
  position: absolute; z-index: 2;
  top: clamp(14px, 1.3vw, 22px); left: clamp(14px, 1.3vw, 22px); right: clamp(14px, 1.3vw, 22px);
  display: flex; flex-wrap: wrap; gap: 8px;
  color: var(--white);
}
.chip{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--radius-pill);
  font-size: .87rem; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

/* стеклянная плашка снизу */
.feature__plate{
  position: absolute; z-index: 2;
  left: clamp(14px, 1.3vw, 22px); right: clamp(14px, 1.3vw, 22px); bottom: clamp(14px, 1.3vw, 22px);
  padding: clamp(18px, 1.7vw, 28px);
  border-radius: calc(var(--radius) - 8px);
  color: var(--white);
}
.feature__title{
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 8px;
}
.feature__text{ font-size: clamp(.94rem, 1vw, 1.04rem); line-height: 1.5; color: rgba(255,255,255,.88); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .chip{ background: rgba(20,28,26,.7); }
}

@media (max-width: 900px){
  .features{ grid-template-columns: 1fr; }
  .feature__img{ aspect-ratio: 16 / 11; }
}
@media (max-width: 560px){
  /* на телефоне карточка не должна занимать весь экран */
  .feature__img{ aspect-ratio: 4 / 3; }
  .feature__plate{ padding: 14px 16px; }
  .feature__title{ font-size: 1.22rem; margin-bottom: 5px; }
  .feature__text{ font-size: .88rem; line-height: 1.42; }
  .chip{ font-size: .78rem; padding: 6px 11px; }
}

/* =========================================================
   КОММУНИКАЦИИ — карточки на фото улицы
   ========================================================= */
.comms{
  position: relative; isolation: isolate;
  /* clip, а не hidden: обрезает фон границами секции, но не создаёт
     скролл-контейнер, поэтому sticky внутри продолжает работать */
  overflow: clip;
  width: 100vw; margin-inline: calc(50% - 50vw);
  color: var(--white);
  view-timeline-name: --comms-view;
}
/* отступы уводим на контент, иначе фон начинается ниже верха секции */
.comms{ padding-block: 0; }
.comms > .container{ width: 100%; padding-block: var(--section-y); }
/* фон прилипает к вьюпорту, пока секция проходит мимо: sticky + отрицательный
   margin убирает его из потока, обрезка живёт на overflow: clip у секции */
.comms__media{
  position: sticky; top: 0; z-index: -2;
  width: 100%; height: 100vh;
  margin-bottom: -100vh;
  overflow: clip;
}
.comms__bg{
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 42%;
  transform-origin: 50% 50%;
}
/* и чуть наезжает, пока секция в кадре */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .comms__bg{
      animation: commsZoom linear both;
      animation-timeline: --comms-view;
      animation-range: entry 0% exit 100%;
    }
    @keyframes commsZoom{
      from{ transform: scale(1); }
      to{ transform: scale(1.14); }
    }
  }
}
/* затемняем ровно настолько, чтобы читался текст, но улица осталась видна */
.comms::before{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,14,12,.72) 0%, rgba(8,14,12,.4) 32%, rgba(8,14,12,.45) 68%, rgba(8,14,12,.72) 100%),
    linear-gradient(90deg, rgba(8,14,12,.45) 0%, rgba(8,14,12,.05) 55%);
}

.comms .eyebrow{ text-align: left; color: rgba(255,255,255,.62); }
.comms .section__title{ text-align: left; max-width: 18ch; }
.comms .section__lead{ margin-inline: 0; text-align: left; color: rgba(255,255,255,.78); }
.comms .rule{
  background: linear-gradient(90deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.1) 60%, transparent);
}

.tiles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.1vw, 18px);
  margin-top: clamp(20px, 2.2vw, 34px);
}

.tile{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px; row-gap: 10px;
  padding: clamp(18px, 1.5vw, 26px);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.tile:hover{ transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce){ .tile, .tile:hover{ transition: none; transform: none; } }

.tile__ico{
  grid-row: span 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
}
.tile__ico .ico{ width: 24px; height: 24px; stroke-width: 1.5; }

.tile__head{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; align-self: center; }
.tile__title{ font-size: clamp(1.08rem, 1.2vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }

.tile__note{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 8px;
  border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 600; white-space: nowrap;
  background: rgba(120,214,170,.16);
  color: #9fe3c0;
}
.tile__note--soon{ background: rgba(255,214,120,.14); color: #f0cf8e; }
.tile__note .ico{ width: 13px; height: 13px; stroke-width: 2.2; }

.tile__text{
  grid-column: 2;
  color: rgba(255,255,255,.74);
  font-size: clamp(.92rem, .95vw, 1rem);
  line-height: 1.5;
}

@media (max-width: 1100px){ .tiles{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){
  .tiles{ grid-template-columns: 1fr; }
  .comms .section__title{ max-width: none; }
}

/* =========================================================
   НАШИ ДОМА
   ========================================================= */
.houses__head{
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: clamp(24px, 3vw, 60px);
  align-items: start;
}
.houses__eyebrow{ text-align: left; margin: 0; }

.houses__title{
  grid-column: 2;
  text-align: right;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.9vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.houses__title em{ font-style: normal; color: var(--green-600); }

.houses__meta{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 54px);
  align-items: center;
  margin-top: clamp(26px, 3vw, 46px);
}
.stat__num{ font-size: clamp(1.5rem, 2.1vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat__cap{ color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.houses__intro{ color: var(--ink-2); font-size: clamp(.96rem, 1vw, 1.05rem); max-width: 56ch; }
.houses__intro a{ color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }

/* ===== слайдер фото: активный кадр крупнее ===== */
.lane__head{
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: clamp(24px, 2.6vw, 44px);
}
.lane__btn{
  width: 54px; height: 54px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(22,27,30,.16); border-radius: 50%;
  background: rgba(255,255,255,.6); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.lane__btn:hover{ background: #fff; border-color: rgba(22,27,30,.3); }
.lane__btn[disabled]{ opacity: .3; cursor: default; }

.lane{
  --card: calc((100vw - var(--lane-gap) * 2) / 3);
  --lane-gap: clamp(14px, 1.5vw, 28px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card);
  gap: var(--lane-gap);
  align-items: center;
  /* выходим за контейнер на всю ширину экрана */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  /* крайние карточки тоже должны вставать по центру — считаем от вьюпорта, не от контейнера */
  padding-inline: calc(50vw - var(--card) / 2);
  --lane-pad: clamp(26px, 3vw, 54px);
  /* padding нужен, чтобы увеличенная карточка не обрезалась; margin
     компенсирует его, оставляя видимый зазор от стрелок */
  padding-block: var(--lane-pad);
  margin-top: calc(20px - var(--lane-pad));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.lane::-webkit-scrollbar{ display: none; }
@media (prefers-reduced-motion: reduce){ .lane{ scroll-behavior: auto; } }

.lane__item{
  scroll-snap-align: center;
  transition: transform .55s var(--ease), opacity .55s var(--ease);
  transform: scale(.86);
  opacity: .6;
}
.lane__item.is-active{ transform: scale(1.06); opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .lane__item{ transition: none; transform: none; opacity: 1; }
  .lane__item.is-active{ transform: none; }
}

.shot{
  display: block; width: 100%; height: auto; padding: 0; border: 0; background: none;
  text-align: left; cursor: zoom-in;
}
.shot img{
  width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16,28,24,.1);
  transition: box-shadow .55s var(--ease);
}
.is-active .shot img{ box-shadow: 0 30px 70px rgba(16,28,24,.22); }

.shot__title{
  display: block; margin-top: 16px;
  font-weight: 700; font-size: clamp(.92rem, 1vw, 1.08rem);
}
.shot__cap{
  display: block; color: var(--ink-2);
  font-size: clamp(.82rem, .9vw, .96rem); margin-top: 4px;
}

/* ===== видео + параметры в одну строку ===== */
.houses__media{
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  align-items: stretch;
  margin-top: clamp(40px, 5vw, 86px);
}

.video{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.video__el{ display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video__poster{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__overlay{
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background:
    radial-gradient(38% 38% at 50% 50%, rgba(8,16,12,.42) 0%, transparent 72%),
    linear-gradient(180deg, rgba(10,18,15,.1), rgba(10,18,15,.34));
}
.video__play{
  position: relative;
  width: clamp(76px, 6.4vw, 116px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 22px 60px rgba(8,16,12,.42), 0 0 0 10px rgba(255,255,255,.12);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
/* два расходящихся кольца — лёгкая пульсация */
.video__play::before,
.video__play::after{
  content: ""; position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.8);
  /* только transform и opacity — их браузер крутит на композиторе, без рывков */
  animation: playPulse 3.6s cubic-bezier(.24,.62,.3,1) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
.video__play::after{ animation-delay: 1.8s; }
@keyframes playPulse{
  0%   { transform: scale(1);    opacity: 0; }
  14%  { opacity: .5; }
  100% { transform: scale(1.95); opacity: 0; }
}
.video__overlay:hover .video__play{ transform: scale(1.08); background: #fff; }
.video__play svg{
  width: 33%; height: 33%; margin-left: 7%;
  fill: currentColor; stroke: currentColor;
  stroke-width: 1.2; stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce){
  .video__play::before, .video__play::after{ animation: none; opacity: 0; }
  .video__overlay:hover .video__play{ transform: none; }
}

.video__label{
  position: absolute; left: clamp(16px, 1.6vw, 28px); bottom: clamp(16px, 1.6vw, 28px);
  color: var(--white); font-weight: 600; font-size: .96rem;
  text-shadow: 0 2px 14px rgba(10,20,16,.5);
}
.video.is-playing .video__overlay,
.video.is-playing .video__poster{ display: none; }

/* ===== параметры дома ===== */
.specs{
  display: flex; flex-direction: column;
  padding: clamp(22px, 2vw, 34px);
  border-radius: var(--radius);
}
.specs__title{ font-size: clamp(1.3rem, 1.7vw, 1.8rem); font-weight: 700; margin-bottom: clamp(16px, 1.6vw, 26px); }
.specs__list{
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; margin: 0;
}
.specs__row{
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: clamp(9px, .85vw, 15px) 0;
  border-bottom: 1px solid rgba(22,27,30,.1);
  font-size: clamp(.9rem, .95vw, 1rem);
}
.specs__row:last-child{ border-bottom: 0; }
.specs__row dt{ color: var(--ink-2); flex: none; }
.specs__row dd{ margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 900px){
  .houses__head{ grid-template-columns: 1fr; }
  .houses__title{ grid-column: 1; text-align: left; }
  .houses__meta{ grid-template-columns: auto auto; gap: 22px 40px; }
  /* на телефоне стрелки уходят влево, к началу ленты */
  .lane__head{ justify-content: flex-start; }
  .houses__intro, .houses__meta .btn{ grid-column: 1 / -1; }
  .houses__meta .btn{ justify-self: start; }
  .houses__media{ grid-template-columns: 1fr; }
  .lane{ --card: calc((100vw - var(--lane-gap)) / 2); }
}

/* =========================================================
   ЛАЙТБОКС
   ========================================================= */
.lb{
  width: min(94vw, 1500px); max-width: none;
  padding: 0; border: 0; background: none;
  overflow: visible;
  color: var(--white);
}
.lb::backdrop{ background: rgba(8,14,12,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb__img{ width: 100%; max-height: 86vh; object-fit: contain; border-radius: 16px; }
.lb__btn{
  position: absolute; display: grid; place-items: center;
  width: 54px; height: 54px; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  background: rgba(255,255,255,.14); color: var(--white); cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .25s var(--ease);
}
.lb__btn:hover{ background: rgba(255,255,255,.28); }
.lb__btn--prev{ left: -70px; top: 50%; translate: 0 -50%; }
.lb__btn--next{ right: -70px; top: 50%; translate: 0 -50%; }
.lb__btn--close{ right: 0; top: -66px; }
html:has(dialog[open]){ overflow: hidden; }

@media (max-width: 1100px){
  .lb{ width: 96vw; }
  .lb__btn--prev{ left: 8px; }
  .lb__btn--next{ right: 8px; }
  .lb__btn--close{ top: 8px; right: 8px; }
}

@media (max-width: 640px){
  .lane{ --card: 82vw; }
}

/* вертикальный кадр в горизонтальной карусели — показываем верх */
.shot__img--tall{ object-position: 50% 28%; }

/* =========================================================
   ГЕНПЛАН — фон на всю секцию
   ========================================================= */
.plan{
  --zoom: 3.2;
  --lens: min(28vw, 460px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* выходим за контейнер на всю ширину экрана */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: min(84vh, 860px);
  display: flex;
  color: var(--white);
  --section-y: clamp(54px, 5.4vw, 96px);
  padding-block: var(--section-y);
}
/* размытая подложка — только чтобы заполнить поля по краям */
.plan__bg{
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) saturate(.9);
  transform: scale(1.12);
}
/* сам генплан — целиком, без обрезки */
.plan__figure{ margin: 0; position: relative; justify-self: end; overflow: hidden; border-radius: var(--radius); }
.plan__full{
  display: block; width: auto; max-width: 100%; height: auto;
  max-height: 86vh; object-fit: contain;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.plan::before{
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,15,12,.88) 0%, rgba(8,15,12,.72) 30%, rgba(8,15,12,.25) 52%, rgba(8,15,12,.12) 100%),
    linear-gradient(180deg, rgba(8,15,12,.45) 0%, rgba(8,15,12,.1) 30%, rgba(8,15,12,.1) 70%, rgba(8,15,12,.5) 100%);
}

.plan__inner{
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  gap: clamp(22px, 2.6vw, 48px);
  align-items: center;
  width: 100%;
}
.plan__side{
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(28px, 4vw, 60px);
  align-self: stretch;
  transition: opacity .3s var(--ease);
}
.is-zooming .plan__side{ opacity: .12; }

.plan__head{ max-width: 46ch; }
.plan .eyebrow{ text-align: left; color: rgba(255,255,255,.7); }
.plan__title{
  text-align: left;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
}
.plan__text{
  margin-top: clamp(14px, 1.4vw, 22px);
  color: rgba(255,255,255,.85);
  font-size: clamp(.98rem, 1.05vw, 1.14rem);
}
.plan__zoom{ margin-top: clamp(20px, 2vw, 30px); }

/* плашки с иконками снизу */
/* плашки лежат поверх плана в правом нижнем углу и остаются чёткими при увеличении */
.plan__facts{
  position: absolute; z-index: 3;
  right: clamp(12px, 1.4vw, 24px); bottom: clamp(12px, 1.4vw, 24px);
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 10px;
  max-width: min(78%, 720px);
}
.fact{
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px 10px 13px;
  border-radius: var(--radius-pill);
}
.fact__ico{ flex: none; width: 20px; height: 20px; color: rgba(255,255,255,.85); }
.fact__num{ font-weight: 600; font-size: .95rem; line-height: 1.25; white-space: nowrap; }

@media (max-width: 900px){
  .plan{ min-height: auto; display: block; }
  .plan__facts{ position: static; justify-content: flex-start; max-width: none; margin-top: 18px; }
  .plan__inner{ grid-template-columns: 1fr; gap: clamp(26px, 5vw, 44px); }
  /* обрезка нужна только лупе на десктопе; на телефоне она срезала углы плашек */
  .plan__figure{ overflow: visible; }
  .plan__full{ max-height: none; cursor: default; }
  .plan::before{ background: linear-gradient(180deg, rgba(8,15,12,.8), rgba(8,15,12,.55)); }
}

/* лупа: увеличенный кусок плана под курсором */
.plan__lens{
  position: absolute; z-index: 2;
  left: var(--pad); bottom: 0;
  width: var(--lens); aspect-ratio: 1;
  border-radius: var(--radius);
  background-image: url(../img/plan/genplan.webp);
  background-repeat: no-repeat;
  background-size: calc(var(--zoom) * 100%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 34px 80px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
  pointer-events: none;
}
.is-zooming .plan__lens{ opacity: 1; visibility: visible; }
/* на тач-устройствах лупы нет — там работает «Открыть крупно» */
@media (hover: none), (pointer: coarse){
  .plan__lens{ display: none; }
}

/* рамка на плане: ровно та область, что видна в превью */
.plan__marker{
  position: absolute; top: 0; left: 0;
  width: calc(100% / var(--zoom)); aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 12px;
  /* тень наружу гасит всё, что осталось за рамкой */
  box-shadow: 0 0 0 100vmax rgba(8,15,12,.45);
  opacity: 0;
  transition: opacity .28s var(--ease);
  pointer-events: none;
}
.is-zooming .plan__marker{ opacity: 1; }
@media (hover: none), (pointer: coarse){
  .plan__marker{ display: none; }
}

/* подсказка: стоит там, где при наведении появится превью */
.plan__hint{
  display: grid; place-content: center; justify-items: center; gap: 14px;
  width: var(--lens); aspect-ratio: 1;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  transition: opacity .28s var(--ease);
}
.plan__hint .ico{ width: 34px; height: 34px; color: rgba(255,255,255,.55); }
.plan__hint span{ max-width: 22ch; }
.is-zooming .plan__hint{ opacity: 0; }
/* без мыши подсказка бессмысленна */
@media (hover: none), (pointer: coarse){
  .plan__hint{ display: none; }
}

/* =========================================================
   ФОТОГАЛЕРЕЯ — плотная мозаика
   ========================================================= */
.mosaic{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 13.5vw, 240px);
  grid-auto-flow: dense;
  gap: 6px;
  margin-top: clamp(20px, 2.2vw, 34px);
}
.mosaic__item--w2{ grid-column: span 2; }
.mosaic__item--big{ grid-column: span 2; grid-row: span 2; }

.tile-photo{
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: var(--bg-2); cursor: zoom-in;
  overflow: hidden; border-radius: 4px;
  position: relative;
}
.tile-photo img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.tile-photo:hover img{ transform: scale(1.06); }
.tile-photo::after{
  content: ""; position: absolute; inset: 0;
  background: rgba(8,15,12,.18);
  opacity: 0; transition: opacity .4s var(--ease);
}
.tile-photo:hover::after{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .tile-photo img{ transition: none; }
  .tile-photo:hover img{ transform: none; }
}

/* пометка на визуализациях — чтобы их не принимали за съёмку */
.tile-photo[data-render]::before{
  content: "Визуализация";
  position: absolute; z-index: 2; left: 10px; bottom: 10px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(255,255,255,.92);
  background: rgba(10,18,15,.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.tile-photo[data-render]:hover::before{ opacity: 1; }

@media (max-width: 900px){
  .mosaic{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 28vw, 200px); }
  .mosaic__item--w2, .mosaic__item--big{ grid-column: span 2; }
  .mosaic__item--big{ grid-row: span 2; }
}

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contacts__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(20px, 2.2vw, 34px);
  align-items: stretch;
}

.contacts__card{
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 44px);
  border-radius: var(--radius);
}
.contacts__list{ display: grid; gap: 18px; margin-bottom: auto; }
.contacts__row{ display: flex; align-items: center; gap: 14px; }
/* кружок держит обе строки — иконка по центру пары «подпись + значение» */
.contacts__ico{
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(31,74,55,.09);
  color: var(--green);
}
.contacts__ico .ico{ width: 21px; height: 21px; }
.contacts__label{ display: block; color: var(--ink-2); font-size: .86rem; }
.contacts__value{
  display: block; font-size: clamp(1.05rem, 1.3vw, 1.32rem); font-weight: 700;
  letter-spacing: -.01em; margin-top: 2px;
}
a.contacts__value:hover{ color: var(--green-600); }

/* форма */
.form{ display: grid; gap: 14px; margin-top: clamp(26px, 2.6vw, 40px); }
.form__lead{ color: var(--ink-2); font-size: .98rem; }
.field{ display: grid; gap: 7px; }
.field label{ font-weight: 600; font-size: .92rem; }
.field input,
.field textarea{
  font: inherit; color: inherit;
  padding: 14px 16px;
  border: 1px solid rgba(22,27,30,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea{ resize: none; height: 104px; }
.field input::placeholder,
.field textarea::placeholder{ color: #9aa3a0; }
.field :is(input, textarea):focus{ outline: none; border-color: var(--green); background: #fff; }

.check{
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .88rem; color: var(--ink-2); cursor: pointer;
}
.check input{ width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.form__status{ font-weight: 600; color: var(--green-600); }
.form__status:empty{ display: none; }

/* карта */
.map{
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-content: center; justify-items: center;
  gap: 14px;
  /* спокойная сетка вместо скриншота местности — чтобы не выдавать её за карту */
  background:
    linear-gradient(rgba(22,27,30,.05) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(22,27,30,.05) 1px, transparent 1px) 0 0 / 42px 100%,
    var(--bg-2);
}
.map iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__note{ color: var(--ink-2); font-size: .9rem; }
.map:has(iframe) .map__note{ display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  position: relative;
  overflow: clip;
  margin-top: clamp(40px, 5vw, 90px);
  padding-block: clamp(46px, 5vw, 80px) clamp(90px, 9vw, 150px);
  background: #121714;
  color: rgba(255,255,255,.72);
}

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

.footer__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: clamp(28px, 3vw, 60px);
  align-items: start;
}

.footer .logo{ color: var(--white); font-size: 1.6rem; }
.footer .logo img{ width: 46px; height: 46px; }
.footer__about{
  margin-top: 16px; max-width: 42ch;
  font-size: .95rem; line-height: 1.55;
  color: rgba(255,255,255,.6);
}

.footer__social{ display: flex; gap: 10px; margin-top: clamp(20px, 2vw, 28px); }
.footer__social a{
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.footer__social a:hover{ background: rgba(255,255,255,.18); transform: translateY(-2px); }

.footer__title{
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-bottom: 18px;
}
.footer__nav ul,
.footer__contacts ul{ display: grid; gap: 12px; font-size: .97rem; }
.footer__nav a{ color: rgba(255,255,255,.75); transition: color .2s; }
.footer__nav a:hover,
.footer__contacts a:hover{ color: var(--white); }
.footer__contacts li{ color: rgba(255,255,255,.6); }
.footer__contacts a{ color: rgba(255,255,255,.85); }
.footer__phone{ font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; }

.to-top{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-weight: 600; font-size: .92rem;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.to-top:hover{ background: rgba(255,255,255,.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce){
  .to-top:hover, .footer__social a:hover{ transform: none; }
}

.footer__bottom{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 16px 40px;
  margin-top: clamp(34px, 3.6vw, 60px);
  padding-top: clamp(22px, 2.2vw, 32px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer__copy{ font-size: .85rem; color: rgba(255,255,255,.55); white-space: nowrap; }

@media (max-width: 1100px){
  .footer > .container{ position: relative; z-index: 1; }

.footer__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .to-top{ grid-column: 2; justify-self: end; }
}
@media (max-width: 620px){
  .footer > .container{ position: relative; z-index: 1; }

.footer__grid{ grid-template-columns: 1fr; }
  .to-top{ grid-column: 1; justify-self: start; }
}

@media (max-width: 900px){
  .contacts__grid{ grid-template-columns: 1fr; }
  .map{ min-height: 320px; }
}

/* крупная подпись в самом низу: залита градиентом и тает книзу,
   нижние выносные уходят за край футера */
.footer__mark{
  position: absolute; z-index: 0;
  opacity: .4;
  left: 50%; bottom: -2.4vw; translate: -50% 0;
  font-size: 16.4vw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,0) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* =========================================================
   Мобильный лайтбокс
   ========================================================= */
@media (max-width: 900px){
  /* лупы на узком экране нет — подсказка про курсор там лишняя */
  .plan__hint{ display: none; }

  .lb{ width: 100vw; }
  .lb__img{ max-height: 78vh; border-radius: 10px; }
  /* крестик выносим наверх экрана, а не на угол фотографии */
  .lb__btn--close{ position: fixed; top: 14px; right: 14px; }
  .lb__btn--prev{ left: 10px; }
  .lb__btn--next{ right: 10px; }
  .lb__btn{ width: 48px; height: 48px; }
}

/* жест двумя пальцами масштабирует фото */
.lb__img{ touch-action: pinch-zoom; cursor: zoom-out; }
