/* Общая часть сайтов АН, пересобранных с Creatium (05.11.2026): шрифт, сброс, окна, ролики, слайдер,
   просмотр картинок, кнопка «наверх». Оформление самого сайта — в его site.css (ниже в этом же файле). */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-400-cyr.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-400-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-500-cyr.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-500-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-700-cyr.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-700-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }

/* Inter (Дом на набережной): переменный шрифт, один файл на все начертания 100–900 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-var-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-var-lat.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, U+20BD; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Окна (вместо модальных окон Creatium) ---- */
.mdl { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: 50px 15px; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; -webkit-overflow-scrolling: touch; }
.mdl.is-open { opacity: 1; }
.mdl__panel { position: relative; width: 100%; margin: auto; transform: translateY(12px); transition: transform .3s; }
.mdl.is-open .mdl__panel { transform: none; }
.mdl__x { position: absolute; top: -10px; right: -10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.mdl__x::before, .mdl__x::after { content: ""; position: absolute; left: 7px; top: 14px; width: 16px; height: 2px; background: #000; transform: rotate(45deg); }
.mdl__x::after { transform: rotate(-45deg); }

/* окно-ролик */
.mdl--video .mdl__panel { max-width: 1000px; align-self: center; }
.mdl--video .mdl__frame { position: relative; padding-top: 56.25%; background: #000; }
.mdl--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* сообщение после заявки / ошибки */
.mdl--msg .mdl__panel { max-width: 410px; align-self: center; background: #fafafa; border-radius: 10px; padding: 34px 25px 30px; text-align: center; }
.mdl--msg .msg__title { font-weight: 700; font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.mdl--msg .msg__text { font-size: 16px; line-height: 1.5; white-space: pre-line; }
.mdl--msg .msg__ok { margin-top: 22px; min-width: 160px; padding: 13px 24px; border-radius: 25px; color: #fff; background: var(--accent, #10986d); }

/* ---- Ролик YouTube: обложка у нас, плеер по нажатию ---- */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px;
  background: rgba(33, 33, 33, .8); transition: background .2s; }
.yt__play::after { content: ""; position: absolute; left: 27px; top: 15px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt__play { background: #f00; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Слайдер на прокрутке (галерея, менеджеры) ---- */
.sl { position: relative; }
.sl__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.sl__track::-webkit-scrollbar { display: none; }
.sl__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }

/* ---- Просмотр картинок ---- */
.lb { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88);
  opacity: 0; transition: opacity .25s; touch-action: pan-y; }
.lb.is-open { opacity: 1; }
.lb__img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; background: #fff; }
.lb__img.is-photo { background: transparent; }
.lb__btn { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.lb__btn::before { content: ""; position: absolute; left: 19px; top: 17px; width: 12px; height: 12px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
.lb__next::before { left: 15px; transform: rotate(-135deg); }
.lb__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; }
.lb__x::before, .lb__x::after { content: ""; position: absolute; left: 8px; top: 19px; width: 24px; height: 2px; background: #fff; transform: rotate(45deg); }
.lb__x::after { transform: rotate(-45deg); }
.lb__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; opacity: .8; }
@media (max-width: 767px) {
  .lb__img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb__btn { top: auto; bottom: 10px; margin: 0; }
}

/* ---- Кнопка «наверх» (как на Creatium: слева внизу, полупрозрачная) ---- */
.goup { position: fixed; left: 15px; bottom: 15px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; opacity: 0; visibility: hidden;
  transition: opacity .6s, visibility .6s; }
.goup.is-on { opacity: .5; visibility: visible; }
.goup:hover { opacity: .8; }
.goup svg { width: 44px; height: 44px; display: block; }

/* ---- Карта Яндекса через API (без рекламы виджета) ---- */
.ymap { position: relative; width: 100%; height: 368px; background: rgba(0, 0, 0, .04); }
.ymap__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: inherit; font-weight: 600; }

/* ---- «Живость» (06.11.2026, как на flatroom.agency; включается Site(live=…), см. kit.js) ---- */
.js-anim .ap { opacity: 0; transform: translateY(28px); }
.js-anim .ap.ap-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wd > span { display: inline-block; }
.js-anim .wd-pending .wd > span { transform: translateY(110%); }
.js-anim .wd-in .wd > span { transform: none; transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w, 0) * 60ms); }
.progress > span { display: block; width: 100%; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
@keyframes kitKen { from { transform: scale(1.07); } to { transform: scale(1); } }   /* медленный наезд на фото первого экрана */
@media (prefers-reduced-motion: reduce) { .js-anim .ap, .js-anim .wd-pending .wd > span { opacity: 1 !important; transform: none !important; } }

/* ЖК «Тандем» v3 — новый сайт с нуля (06.11.2026). Подключается после общего kit.css (окна, слайдер, просмотр фото,
   карта, шрифты). Палитра — от бренда «Тандема»: тёмно-зелёный деревьев и надписи логотипа (#374e49), песочный
   «земли» логотипа и старого сайта (#ddcaa7), оранжевое солнце логотипа — для акций и главного (оно же — цвет балконов
   готового дома на фото). Шрифт — Inter из движка и в заголовках, и в тексте (07.11.2026: антиква Playfair
   делала сайт «классическим», как старый; у Невы и Токсово заголовки тоже рубленые, жирные). Приёмы — как на утверждённых «Неве Life»
   и «Токсово Life»: плавающая белая шапка с тенью и полоской прогресса, большой первый экран, строка фактов, карточки,
   карта без рекламы, нижняя панель на телефоне. Компьютер — от 1100px, планшет — 768–1099, телефон — до 767. */

:root {
  --ink: #1d2a26; --ink-2: #4f5d58; --ink-3: #7f8c87;
  --green: #374e49; --green-dk: #2a3d38; --green-2: #4d6a62;
  --deep: #22322d; --deep-dk: #18241f;
  --sand: #ddcaa7; --sand-dk: #ccb487; --sand-ink: #3b301d; --bronze: #7a6646;
  --cream: #f6f1e7; --cream-2: #ece3d1;
  --sun: #f4a42b; --sun-dk: #e3901a; --sun-ink: #3a2406;
  --line: rgba(29, 42, 38, .12);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-btn: 12px;
  --shadow: 0 1px 2px rgba(29, 42, 38, .05), 0 18px 44px rgba(29, 42, 38, .09);
  --pad: 40px;
  --f-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --accent: var(--green);            /* kit.css: кнопка «OK» в окне «Спасибо» */
  /* цвета квартир по числу комнат — на 3D-плане и в легенде */
  --k-0: #d9bf8c; --k-1: #6fae8f; --k-2e: #f4a42b; --k-2: #5f9fd3; --k-3e: #b07cc6; --k-3: #d8707a;
}
html { scroll-padding-top: 100px; }
body { font: 400 17px/1.62 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(244, 164, 43, .3); }
:focus-visible { outline: 3px solid rgba(244, 164, 43, .7); outline-offset: 3px; }
.wrap { width: min(1280px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }
.anchor { position: absolute; top: 0; }
.nw { white-space: nowrap; }
p, li { text-wrap: pretty; }
h3 { text-wrap: balance; }

/* ---------- заголовки блоков: над заголовком — солнце из логотипа ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(244, 164, 43, .2); }
.h2 { margin-top: 18px; font-family: var(--f-head); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 20px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; }
.head--split .lead { margin-top: 0; justify-self: end; }
.sec { position: relative; padding-block: 120px; }
.sec--cream { background: var(--cream); }
.sec--green { background: var(--deep); color: #fff; }
.sec--green .eyebrow { color: var(--sand); }
.sec--green .lead { color: rgba(255, 255, 255, .74); }

/* ---------- кнопки: скруглённые прямоугольники ---------- */
.btn { --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 28px; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn--main { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(55, 78, 73, .25); }
.btn--main:hover { background: var(--green-dk); box-shadow: 0 12px 28px rgba(55, 78, 73, .34); }
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 10px 24px rgba(227, 144, 26, .28); }
.btn--sun:hover { background: var(--sun-dk); }
.btn--sand { background: var(--sand); color: var(--sand-ink); }
.btn--sand:hover { background: var(--sand-dk); }
.btn--line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
.btn--sm { --h: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- логотип: эмблема старого сайта + надпись «Тандем / Жилой комплекс», как в шапке WordPress ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--green); }
.logo img { width: 44px; height: 44px; }
.logo__t { display: flex; flex-direction: column; line-height: 1; }
.logo__t b { font-family: var(--f-head); font-size: 21px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.logo__t small { margin-top: 5px; font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); }
.logo--dark { color: #fff; }
.logo--dark img { width: 56px; height: 56px; padding: 5px; border-radius: 50%; background: #fff; }
.logo--dark .logo__t b { font-size: 28px; }
.logo--dark .logo__t small { color: var(--sand); font-size: 10.5px; }

/* ---------- шапка: плавающая белая панель с заметной тенью и полоской прогресса ---------- */
.hdr { position: fixed; z-index: 100; top: 14px; left: 0; right: 0; pointer-events: none; }
.hdr__in { pointer-events: auto; width: min(1320px, calc(100% - 28px)); height: 74px; margin-inline: auto; display: flex; align-items: center; gap: 26px;
  padding: 0 14px 0 18px; border-radius: 20px; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px); border: 1px solid rgba(34, 50, 45, .08);
  box-shadow: 0 14px 38px rgba(18, 30, 26, .2), 0 3px 10px rgba(18, 30, 26, .1); transition: box-shadow .3s;
  position: relative; overflow: hidden; }
.hdr.is-scrolled .hdr__in { box-shadow: 0 18px 46px rgba(18, 30, 26, .26), 0 4px 12px rgba(18, 30, 26, .12); }
.hdr .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(34, 50, 45, .06); pointer-events: none; }
.hdr .progress > span { background: linear-gradient(90deg, var(--green), var(--sun)); border-radius: 0 3px 3px 0; }
.hdr__logo { flex: none; display: block; text-decoration: none; }
.hdr__nav { display: flex; gap: 24px; margin-left: 6px; margin-right: auto; }
.hdr__nav a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; opacity: .8; white-space: nowrap; transition: opacity .2s, color .2s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { opacity: 1; color: var(--green); }
.hdr__nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.hdr__tel { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr__tel:hover { color: var(--green); }
.hdr__call, .hdr__burger { display: none; width: 44px; height: 44px; border-radius: 13px; align-items: center; justify-content: center; color: var(--ink); background: var(--cream); }
.hdr__call .ico, .hdr__burger .ico { width: 21px; height: 21px; }
@media (max-width: 1439px) {
  .hdr__in { gap: 18px; }
  .hdr__nav { gap: 18px; }
  .hdr__nav a { font-size: 14.5px; }
  .hdr__tel { font-size: 16px; }
}
@media (max-width: 1279px) {
  .hdr__nav { display: none; }
  .hdr__tel { margin-left: auto; }
  .hdr__burger { display: inline-flex; }
}

/* ---------- первый экран: готовый дом на фото, главное — «Дом сдан» ---------- */
.hero { position: relative; min-height: max(680px, min(100svh, 940px)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep-dk); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 40%; animation: kitKen 16s ease-out both; }
.hero__shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 30, 26, .45) 0%, rgba(18, 30, 26, 0) 24%),
              linear-gradient(0deg, rgba(18, 30, 26, .9) 0%, rgba(18, 30, 26, .5) 40%, rgba(18, 30, 26, 0) 68%),
              linear-gradient(90deg, rgba(18, 30, 26, .76) 0%, rgba(18, 30, 26, .4) 42%, rgba(18, 30, 26, 0) 66%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: end; padding-block: 160px 72px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__eyebrow .ico { width: 17px; height: 17px; }
.hero__h1 { margin-top: 22px; max-width: 780px; font-family: var(--f-head); font-size: clamp(40px, 5vw, 72px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.hero__chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 13px; border-radius: 14px; font-size: 17px; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__chips li.is-sun { color: var(--sun-ink); background: var(--sun); border-color: var(--sun); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.hero__chips .ico { width: 21px; height: 21px; }
.hero__chips .is-sun .ico { stroke-width: 2.6; }
.hero__lead { margin-top: 22px; max-width: 610px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__offer { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 26px 22px; border-radius: 24px; color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); transition: transform .25s; }
.hero__offer:hover { transform: translateY(-3px); }
.hero__badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--sun-ink); background: #fde7c5; }
.hero__badge .ico { width: 15px; height: 15px; }
.hero__ot { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.hero__op { margin-top: 2px; font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--green); white-space: nowrap; }
.hero__os { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.hero__om { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; width: 100%; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--green); }
.hero__om .ico { width: 18px; height: 18px; transition: transform .2s; }
.hero__offer:hover .hero__om .ico { transform: translateX(4px); }

/* ---------- строка фактов ---------- */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts__list li { display: flex; flex-direction: column; gap: 8px; padding: 44px 32px; border-left: 1px solid var(--line); }
.facts__list li:first-child { padding-left: 0; border-left: 0; }
.facts__list b { font-family: var(--f-head); font-size: clamp(30px, 2.9vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--green); }
.facts__list span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* ---------- о комплексе (фото слева, текст справа) ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about__p { margin-top: 20px; color: var(--ink-2); }
.about__text .head + .about__p { margin-top: 28px; }
.about__text > .btn { margin-top: 34px; }   /* 07.11.2026: цифры «2 / 16 / 308» под текстом убраны — повторяли строку фактов, 308 не подтвердилась */
.stats { list-style: none; margin: 36px 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--f-head); font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--green); }
.stats span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.about__media { position: relative; padding: 0 56px 56px 0; }
.about__main { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.about__main img, .about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__main img { object-position: 60% 40%; }
.about__inset { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); }
.about__chip { position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--sun); box-shadow: 0 10px 30px rgba(18, 30, 26, .2); font-size: 15px; font-weight: 600; color: var(--sun-ink); }
.about__chip .ico { stroke-width: 2.6; }

/* ---------- квартиры по типам (главная) ---------- */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 56px; }
.type { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.type:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(29, 42, 38, .05), 0 26px 54px rgba(29, 42, 38, .14); }
.type__lab { align-self: flex-start; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 18px; display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: var(--sand-ink); background: var(--sand); }
.type__t { margin-top: 16px; font-family: var(--f-head); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.type__n { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--green); }
.type__sq { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.type__price { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.type__price small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.type__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--green); }
.type__go .ico { width: 18px; height: 18px; transition: transform .2s; }
.type:hover .type__go .ico { transform: translateX(4px); }
.pres { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px 56px; align-items: center; margin-top: 16px; padding: 44px 48px;
  border-radius: var(--r-xl); background: var(--deep); color: #fff; }
.pres__t { font-family: var(--f-head); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.pres__text p { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .76); }

/* ---------- преимущества «Правильное окружение» ---------- */
.adv__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.adv { position: relative; min-height: 300px; padding: 30px; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.adv h3 { font-family: var(--f-head); font-size: 21px; line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
.adv p { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.adv__ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: #fff; color: var(--green); }
.adv__ico .ico { width: 26px; height: 26px; }
.adv--green { background: var(--green); color: #fff; }
.adv--green p { color: rgba(255, 255, 255, .78); }
.adv--green .adv__ico { background: rgba(255, 255, 255, .1); color: var(--sand); }
.adv--cream { background: var(--cream); }
.adv--cream p { color: var(--ink-2); }
.adv--sand { background: var(--sand); color: var(--sand-ink); }
.adv--sand p { color: rgba(59, 48, 29, .82); }
.adv--photo { grid-column: span 2; justify-content: flex-end; color: #fff; }
.adv--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.adv--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 30, 26, .9) 0%, rgba(18, 30, 26, .66) 36%, rgba(18, 30, 26, .2) 66%, rgba(18, 30, 26, 0) 84%); }
.adv--photo h3 { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.adv--photo > div { position: relative; z-index: 1; max-width: 470px; }
.adv--photo p { color: rgba(255, 255, 255, .86); }
.adv--photo:hover img { transform: scale(1.04); }

/* ---------- генплан ---------- */
.gp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.gp__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; background: #f9f9f9; box-shadow: var(--shadow); }
.gp__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s; }
.gp__img:hover img { transform: scale(1.03); }
.plan__zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--ink);
  background: #fff; box-shadow: 0 6px 18px rgba(18, 30, 26, .16); }
.plan__zoom .ico { width: 18px; height: 18px; }
.gp__p { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.gp__legend { list-style: none; margin: 28px 0 0; padding: 0; }
.gp__legend li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.gp__n { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 700;
  color: var(--sand-ink); background: var(--sand); }
.gp__legend li:nth-child(n+3) .gp__n { color: #fff; background: var(--green); }
.gp__legend div b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.gp__legend div span { display: block; font-size: 14px; color: var(--ink-2); }
.gp__sq { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--cream); font-size: 16px; font-weight: 600; }
.gp__sq .ico { color: var(--green); }
.gp__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.gp__cap { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .92); }

/* ---------- дом сдан: хронология, документы, технологии ---------- */
.built__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.tl { list-style: none; margin: 40px 0 0; padding: 0; }
.tl li { position: relative; padding: 0 0 28px 50px; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sand); }
.tl li::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::after { display: none; }
.tl li.is-now::before { left: 2px; top: 2px; width: 22px; height: 22px; background: var(--sun); box-shadow: 0 0 0 7px rgba(244, 164, 43, .25); }
.tl b { display: block; font-family: var(--f-head); font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--sand); }
.tl li.is-now b { color: var(--sun); }
.tl p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.built__side { display: grid; gap: 20px; }
.docs { padding: 34px 34px 30px; border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.docs__t { font-family: var(--f-head); font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.doc { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 18px; border-radius: 18px; border: 1.5px solid var(--line); color: var(--ink);
  text-decoration: none; transition: border-color .2s; }
.doc:hover { border-color: var(--green); }
.doc__ico { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: var(--green); background: var(--cream); }
.doc__t b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.doc__t small { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.doc__ext { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); }
.docs__addr { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.docs__addr span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.docs .btn { width: 100%; margin-top: 24px; }
.tech { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tech li { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.tech__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--sun-ink); background: var(--sand); }
.tech b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.tech p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .7); }

/* ---------- галерея ---------- */
.head--tabs { align-items: end; }
.tabs__nav { justify-self: end; display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--cream); }
.tab { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.tab.is-on { color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(29, 42, 38, .1); }
.gal { margin-top: 48px; }
.gal .sl__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 236px; grid-auto-flow: dense; gap: 16px; overflow: visible; scroll-snap-type: none; }
.gal .sl__slide { min-width: 0; border-radius: 20px; overflow: hidden; background: var(--cream); }
.gal .g-big { grid-column: span 2; grid-row: span 2; }
.gal .g-wide { grid-column: span 2; }
.gal a { display: block; height: 100%; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gal a:hover img { transform: scale(1.05); }
.gal__ctrl { display: none; }
.gal__note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* ---------- экологично ---------- */
.eco { padding-top: 0; }
.eco__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.eco__media { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.eco__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.eco__media:hover img { transform: scale(1.04); }
.eco__list { list-style: none; margin: 32px 0 0; padding: 0; }
.eco__list li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.eco__ico { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: var(--green); background: var(--cream); }
.eco__list b { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.eco__list p { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.eco__q { margin-top: 24px; font-family: var(--f-head); font-size: 22px; font-weight: 600; letter-spacing: -.015em; font-style: normal; color: var(--green); }

/* ---------- расположение ---------- */
.loc__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-top: 48px; }
.loc__map { position: relative; min-height: 560px; border-radius: var(--r-xl); overflow: hidden; background: var(--cream); }
.loc__map .ymap { position: absolute; inset: 0; height: 100%; }
.loc__card { display: flex; flex-direction: column; padding: 34px; border-radius: var(--r-xl); background: var(--cream); }
.loc__place { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 600; line-height: 1.4; }
.loc__place .ico { margin-top: 1px; color: var(--green); }
.dist { list-style: none; margin: 22px 0 22px; padding: 0; }
.dist li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.dist span { color: var(--ink-2); }
.dist b { flex: none; font-weight: 600; text-align: right; }
.loc__k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chips { list-style: none; margin: 10px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: 14px; background: #fff; color: var(--ink); }
.loc__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.loc__btns .btn { flex: 1 1 auto; }

/* ---------- акции ---------- */
.promos { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 56px; }
.promo { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.promo__date { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--sun-ink); background: #fde7c5; }
.promo__date .ico { width: 17px; height: 17px; }
.promo__t { margin-top: 20px; font-family: var(--f-head); font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.promo > p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.promo .btn { margin-top: 28px; }
.promo .promo__note { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.promo--main { color: #fff; background: radial-gradient(120% 140% at 100% 0%, #47655d 0%, var(--green) 45%, var(--deep) 100%); }
.promo--main .promo__date { color: var(--sun-ink); background: var(--sun); }
.promo--main > p { color: rgba(255, 255, 255, .8); }
.promo--main .promo__note { color: rgba(255, 255, 255, .6); }

/* ---------- ипотека и покупка ---------- */
.pay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.bcard { padding: 28px; border-radius: var(--r-lg); background: var(--cream); }
.bcard__ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: #fff; }
.bcard h3 { margin-top: 22px; font-family: var(--f-head); font-size: 20px; line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
.bcard p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pay .bcard:first-child { color: #fff; background: var(--green); }
.pay .bcard:first-child .bcard__ico { color: var(--sun-ink); background: var(--sun); }
.pay .bcard:first-child p { color: rgba(255, 255, 255, .78); }
.banks { margin-top: 16px; padding: 36px 40px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.banks__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banks__t { font-family: var(--f-head); font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.banks__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.banks__list li { height: 86px; display: grid; place-items: center; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.banks__list img { width: auto; max-width: 100%; height: var(--h, 34px); object-fit: contain; }

/* ---------- отдел продаж ---------- */
.ct__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.ct__card { margin-top: 36px; padding: 10px 32px 32px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.ct__row { padding: 18px 0; border-top: 1px solid var(--line); }
.ct__row:first-child { border-top: 0; }
.ct__lab { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); }
.ct__row p { font-size: 17px; line-height: 1.5; }
.ct__tel { display: inline-block; font-size: 27px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.ct__mail { display: block; margin-top: 4px; font-size: 16px; color: var(--green); }
.ct__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ct__h { font-family: var(--f-head); font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.ct__team { padding-top: 6px; }
.mgrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.mgr__ph { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); }
.mgr__ph img { width: 100%; height: 100%; object-fit: cover; }
.mgr figcaption { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ct__note { margin-top: 22px; font-size: 16px; color: var(--ink-2); }

/* ---------- формы ---------- */
.frm__fields { display: grid; gap: 12px; }
.frm--row .frm__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.fld input { width: 100%; height: 56px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; color: var(--ink);
  font-size: 16px; outline: none; transition: border-color .2s, background-color .2s; }
.fld input::placeholder { color: var(--ink-3); }
.fld input:focus { border-color: var(--green); }
.frm__btn { width: 100%; }
.frm--row .frm__btn { width: auto; }
.frm__ok { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.frm__ok a { color: inherit; }
.frm--dark .fld input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; }
.frm--dark .fld input::placeholder { color: rgba(255, 255, 255, .62); }
.frm--dark .fld input:focus { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }
.frm--dark .frm__btn { background: var(--sun); color: var(--sun-ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.frm--dark .frm__btn:hover { background: var(--sun-dk); }
.frm--dark .frm__ok { color: rgba(255, 255, 255, .6); }

/* ---------- финальная форма ---------- */
.cta { padding: 0 0 120px; }
.cta__box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center;
  padding: 72px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(120% 140% at 100% 0%, #47655d 0%, var(--green) 45%, var(--deep) 100%); }
.cta__text, .cta__box .frm { position: relative; }
.cta__box .h2 { margin-top: 0; }
.cta__text p { margin-top: 18px; max-width: 470px; font-size: 18px; color: rgba(255, 255, 255, .78); }
.ct + .cta { padding-top: 0; background: linear-gradient(var(--cream) 50%, #fff 50%); }

/* ---------- подвал ---------- */
.ftr { padding: 72px 0 40px; background: var(--deep-dk); color: rgba(255, 255, 255, .86); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.ftr__logo { display: inline-block; text-decoration: none; }
.ftr__brand p { margin-top: 18px; max-width: 360px; font-size: 15px; color: rgba(255, 255, 255, .66); }
.ftr__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: start; }
.ftr__nav a { font-size: 15px; color: #fff; text-decoration: none; opacity: .8; }
.ftr__nav a:hover { opacity: 1; color: var(--sand); }
.ftr__tel { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.ftr__mail { display: block; margin-top: 4px; font-size: 15px; color: var(--sand); }
.ftr__addr { margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .66); }
.ftr__contact .btn { margin-top: 18px; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.ftr__bottom a, .ftr__bottom button { color: rgba(255, 255, 255, .6); text-decoration: none; text-align: left; }
.ftr__bottom a:hover, .ftr__bottom button:hover { color: #fff; }

/* ---------- окна ---------- */
.mdl { align-items: center; padding: 24px 16px; background: rgba(14, 24, 20, .58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mdl__x { top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px; background: var(--cream); box-shadow: none; transition: background-color .2s; }
.mdl__x:hover { background: var(--cream-2); }
.mdl__x::before, .mdl__x::after { left: 12px; top: 19px; background: var(--ink); }
.mdl--form .mdl__panel { max-width: 460px; padding: 40px 36px 32px; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.mdl__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.mdl__brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.mdl__t { margin-top: 10px; padding-right: 36px; font-family: var(--f-head); font-size: 25px; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
.mdl__sub { margin: 10px 0 24px; font-size: 16px; color: var(--ink-2); }
.mdl__sub a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mdl--text .mdl__panel { max-width: 780px; padding: 44px 44px 40px; border-radius: 26px; background: #fff; }
.mdl--text .mdl__t { margin: 0 0 18px; }
.txt__p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.txt__ul { margin: 12px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.mdl--msg .mdl__panel { max-width: 420px; padding: 40px 30px 32px; border-radius: 24px; background: #fff; }
.mdl--msg .msg__title { font-family: var(--f-head); font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.mdl--msg .msg__text { color: var(--ink-2); }
.mdl--msg .msg__ok { height: 50px; padding: 0 30px; border-radius: var(--r-btn); font-weight: 600; background: var(--green); }
/* меню (телефон и планшет): панель справа */
.mdl--menu { padding: 0; justify-content: flex-end; align-items: stretch; }
.mdl--menu .mdl__panel { margin: 0; width: min(420px, 100%); min-height: 100%; display: flex; flex-direction: column; padding: 18px 24px 28px;
  background: #fff; transform: translateX(32px); }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__logo { text-decoration: none; }
.menu__logo .logo img { width: 38px; height: 38px; }
.menu__logo .logo__t b { font-size: 20px; }
.menu__x { width: 44px; height: 44px; border-radius: 13px; font-size: 30px; line-height: 1; color: var(--ink); background: var(--cream); }
.menu__nav { display: flex; flex-direction: column; margin-top: 14px; }
.menu__nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.menu__nav a .ico { width: 18px; height: 18px; color: var(--ink-3); }
.menu__foot { margin-top: auto; padding-top: 24px; }
.menu__tel { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.menu__note { margin: 4px 0 18px; font-size: 14px; color: var(--ink-3); }
.menu__foot .btn { width: 100%; }

/* ---------- каталог /flats ---------- */
.cat { position: relative; margin-top: 48px; }
.cat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cat__modes { background: #fff; box-shadow: 0 1px 2px rgba(29, 42, 38, .06); }      /* блок на кремовом фоне */
.cat__modes .tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cat__modes .tab .ico { width: 18px; height: 18px; }
.cat__modes .tab.is-on { color: #fff; background: var(--green); box-shadow: 0 6px 16px rgba(38, 54, 47, .22); }
.cat__pane .flt { margin-top: 20px; }
.cat__pane .v3d__box { margin-top: 20px; }
.flt-tgl { display: none; }
.flt-tgl__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700;
  color: var(--sun-ink); background: var(--sun); }
.flt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, .6fr) minmax(0, 1.1fr) auto; gap: 18px 22px; align-items: end; margin-top: 36px; padding: 24px 26px;
  border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.flt__g { margin: 0; padding: 0; border: 0; min-width: 0; }
.flt__g legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 15px; font-weight: 600;
  color: var(--ink); background: var(--cream); border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { color: #fff; background: var(--green); }
.chip input:focus-visible + span { outline: 3px solid rgba(244, 164, 43, .7); outline-offset: 2px; }
.flt__rng { display: flex; align-items: center; gap: 8px; }
.flt__rng label { flex: 1; min-width: 0; }
.flt__rng input { width: 100%; height: 46px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; outline: none;
  -moz-appearance: textfield; appearance: textfield; }
.flt__rng input::-webkit-outer-spin-button, .flt__rng input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.flt__rng input:focus { border-color: var(--green); }
.flt__dash { color: var(--ink-3); }
.flt__end { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.flt__sale { position: relative; cursor: pointer; }
.flt__sale input { position: absolute; opacity: 0; pointer-events: none; }
.flt__sale span { height: 46px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font-size: 15px; font-weight: 700; color: var(--sun-ink); background: #fde7c5; border: 1.5px solid transparent; transition: background-color .2s; }
.flt__sale span .ico { width: 18px; height: 18px; }
.flt__sale input:checked + span { background: var(--sun); box-shadow: 0 8px 20px rgba(227, 144, 26, .3); }
.flt__sale input:focus-visible + span { outline: 3px solid rgba(244, 164, 43, .7); outline-offset: 2px; }
.flt__reset { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.flt__reset:hover { color: var(--ink); }
.cat__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.cat__count { font-size: 17px; color: var(--ink-2); }
.cat__count b { color: var(--ink); }
.cat__sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.cat__sort select { height: 44px; padding: 0 36px 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; color: var(--ink);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2a26' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.cat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 20px; min-height: 200px; }
.cat__grid[aria-busy="true"] { background: linear-gradient(90deg, var(--cream) 0 25%, transparent 25% 26%, var(--cream) 26% 50%, transparent 50% 51%, var(--cream) 51% 75%, transparent 75% 76%, var(--cream) 76%);
  border-radius: var(--r-lg); min-height: 420px; }
.kv { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.kv:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 1px 2px rgba(29, 42, 38, .05), 0 24px 50px rgba(29, 42, 38, .14); }
.kv__open { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.kv__img { aspect-ratio: 4 / 5; padding: 58px 22px 10px; display: grid; place-items: center; background: #fff; }
.kv__img img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
/* 07.11.2026: размер окна картинки не зависит от самой картинки (планировки бывают 405×756) — раньше карточка вытягивалась,
   когда картинка догружалась, и каталог на главной вырастал на ~450 px посреди прокрутки по ссылке меню */
.kv__img { min-height: 0; overflow: hidden; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.kv__sale { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #f7b53c, #ef8f1c); }
.kv__lab { position: absolute; right: 12px; top: 12px; z-index: 2; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 19px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--sand-ink); background: var(--sand); }
.kv__body { display: flex; flex-direction: column; flex: 1; padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.kv__t { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.kv__sq { margin-top: 2px; font-family: var(--f-head); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kv__meta { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.kv__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 14px; }   /* auto: цены соседних карточек на одной высоте */
.kv__price b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.kv.is-sale .kv__price b { color: #c66d00; }
.kv__price s { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.kv__go { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--green); }
.kv:hover .kv__go { text-decoration: underline; text-underline-offset: 3px; }
.cat__empty { margin-top: 20px; padding: 48px 24px; border-radius: var(--r-xl); background: var(--cream); text-align: center; }
.cat__empty p { font-size: 18px; margin-bottom: 18px; }
.cat__more { display: flex; justify-content: center; margin-top: 28px; }
.cat__more .btn { min-width: 260px; }
.cat__note, .cat__nojs { margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.cat__err { grid-column: 1 / -1; padding: 24px; border-radius: var(--r-lg); background: #fff3e0; font-size: 16px; }

/* ---------- карточка квартиры (окно) ---------- */
.mdl--flat .mdl__panel { max-width: 1060px; padding: 0; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: hidden; overflow: clip; }
.fm { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.fm__media { padding: 28px; background: #fff; border-right: 1px solid var(--line); }
.fm__main { position: relative; display: block; height: min(560px, 64vh); }
.fm__main img { width: 100%; height: 100%; object-fit: contain; }
.fm__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fm__thumbs a { width: 78px; height: 58px; padding: 4px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s; }
.fm__thumbs a:hover { border-color: var(--green); }
.fm__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.fm__info { display: flex; flex-direction: column; padding: 36px 34px 30px; background: var(--cream); }
.fm__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 22px 0 0; }
.fm__dl div { padding: 14px 16px; border-radius: 14px; background: #fff; }
.fm__dl dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fm__dl dd { margin: 4px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.fm__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; }
.fm__lab { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fm__price b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--green); white-space: nowrap; }
.fm__price s { font-size: 16px; color: var(--ink-3); white-space: nowrap; }
.fm__sale { display: inline-flex; padding: 4px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #f7b53c, #ef8f1c); }
.fm__sale:empty { display: none; }
.fm__ft { margin: 22px 0 12px; font-family: var(--f-head); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.fm .frm { margin-top: 0; }

/* ---------- 3D-план (вкладка блока «Квартиры») ---------- */
.v3d__box { position: relative; margin-top: 36px; padding: 22px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.v3d__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.v3d__bar .tabs__nav { justify-self: start; }
.v3d__hint { font-size: 14px; color: var(--ink-3); }
@media (hover: none) { .v3d__hint { display: none; } }   /* «Наведите на этаж» — не для сенсорного экрана */
.v3d__stage svg, .v3d__plan svg { display: block; width: 100%; height: auto; border-radius: 18px; background: #f4f4f2; }
.vf { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, 0); stroke-width: 2; cursor: pointer; transition: fill .15s; outline: none; }
.vf.has { fill: rgba(244, 164, 43, .08); }
.vf:hover, .vf:focus-visible { fill: rgba(244, 164, 43, .62); stroke: #fff; }
.vf:not(.has):hover { fill: rgba(127, 140, 135, .45); }
.v3d__floors { margin-top: 18px; }
.v3d__lk { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.v3d__lk b { color: var(--ink); }
.v3d__fbtns { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.v3d__fb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--cream); color: var(--ink-3);
  transition: background-color .2s, color .2s; }
.v3d__fb b { font-size: 16px; color: var(--ink-2); }
.v3d__fb small { font-size: 11.5px; white-space: nowrap; }
.v3d__fb.has { background: #fde7c5; color: var(--sun-ink); }
.v3d__fb.has b { color: var(--sun-ink); }
.v3d__fb:hover { background: var(--green); color: #fff; }
.v3d__fb:hover b { color: #fff; }
.v3d__fnav { display: inline-flex; align-items: center; gap: 10px; }
.v3d__fnav b { min-width: 170px; text-align: center; font-size: 17px; }
.v3d__arr { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink); }
.v3d__arr[data-fstep="-1"] .ico { transform: rotate(90deg); }
.v3d__arr[data-fstep="1"] .ico { transform: rotate(-90deg); }
.v3d__arr:disabled { opacity: .35; cursor: default; }
.v3d__chips .chip span { min-width: 42px; height: 40px; padding: 0 10px; font-size: 14px; }
.v3d__fgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.vk { fill: rgba(29, 42, 38, .05); stroke: rgba(29, 42, 38, .12); stroke-width: 1.5; transition: fill .15s, opacity .2s; outline: none; }
.vk.is-on { cursor: pointer; stroke: #fff; stroke-width: 2; }
.vk.is-on[data-rooms="0"] { fill: color-mix(in srgb, var(--k-0) 72%, transparent); }
.vk.is-on[data-rooms="1"] { fill: color-mix(in srgb, var(--k-1) 72%, transparent); }
.vk.is-on[data-rooms="2E"] { fill: color-mix(in srgb, var(--k-2e) 72%, transparent); }
.vk.is-on[data-rooms="2"] { fill: color-mix(in srgb, var(--k-2) 72%, transparent); }
.vk.is-on[data-rooms="3E"] { fill: color-mix(in srgb, var(--k-3e) 72%, transparent); }
.vk.is-on[data-rooms="3"] { fill: color-mix(in srgb, var(--k-3) 72%, transparent); }
.vk.is-on:hover, .vk.is-on:focus-visible, .vk.is-hl { stroke: var(--ink); stroke-width: 4; }
.vk.is-dim { opacity: .2; }
.v3d__list { padding: 18px; border-radius: 18px; background: var(--cream); max-height: 560px; overflow: auto; }
.v3d__items { display: grid; gap: 8px; margin-top: 12px; }
.v3d__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; text-align: left;
  border: 1.5px solid transparent; transition: border-color .2s, opacity .2s; }
.v3d__item:hover { border-color: var(--green); }
.v3d__item.is-dim { opacity: .35; }
.v3d__item .kv__lab { position: static; flex: none; }
.v3d__it { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v3d__it b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.v3d__it small { font-size: 14px; color: var(--ink-2); }
.v3d__it s { color: var(--ink-3); }
.v3d__np { color: var(--bronze) !important; font-size: 12.5px !important; }
.v3d__none { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.v3d__tip { position: absolute; left: 0; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 2px; max-width: 280px; padding: 10px 14px; border-radius: 12px;
  background: #fff; box-shadow: 0 12px 30px rgba(18, 30, 26, .22); pointer-events: none; font-size: 14px; color: var(--ink-2); }
.v3d__tip b { font-size: 15px; color: var(--ink); }
.v3d__legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.v3d__legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 5px; background: rgba(29, 42, 38, .08); border: 1px solid rgba(29, 42, 38, .15); }
.lg--0 { background: var(--k-0); border-color: var(--k-0); } .lg--1 { background: var(--k-1); border-color: var(--k-1); }
.lg--2e { background: var(--k-2e); border-color: var(--k-2e); } .lg--2 { background: var(--k-2); border-color: var(--k-2); }
.lg--3e { background: var(--k-3e); border-color: var(--k-3e); } .lg--3 { background: var(--k-3); border-color: var(--k-3); }

/* ---------- нижняя панель (телефон), кнопка «наверх», Jivo ---------- */
.mbar { display: none; }
.goup { left: auto; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); background: #fff; box-shadow: 0 8px 24px rgba(18, 30, 26, .18); }
.goup.is-on { opacity: 1; }
.goup svg { width: 20px; height: 20px; }
/* Пока открыто наше окно или меню (html.is-locked), Jivo прячется целиком (приём с flatroom.agency, Невы и Токсово) */
html.is-locked jdiv[class*="globalClass"], html.is-locked jdiv[class*="_orientation"], html.is-locked #jvLabelWrap { display: none !important; }

/* ---------- политика и «спасибо» ---------- */
.pp { padding: 150px 0 96px; }
.pp__in { width: min(820px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.pp__h1 { font-family: var(--f-head); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin-bottom: 24px; }
.pp__h { margin-top: 32px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.pp__p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.thx { min-height: 76vh; display: grid; place-items: center; padding: 150px 0 96px; text-align: center; }
.thx__ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; color: var(--sun-ink); background: var(--sun); }
.thx__ico .ico { width: 36px; height: 36px; stroke-width: 2.4; }
.thx__h { margin-top: 24px; font-family: var(--f-head); font-size: clamp(36px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.thx__p { margin: 14px auto 32px; max-width: 460px; font-size: 18px; color: var(--ink-2); }

/* =================== планшет =================== */
@media (min-width: 768px) and (max-width: 1199px) {
  .flt .chip span { min-width: 40px; padding: 0 10px; }   /* «Ст 1 2E 2» в одну строку (на 768 «2» уходила вниз) */
}
@media (min-width: 768px) and (max-width: 1365px) {
  .goup { right: 10px; width: 44px; height: 44px; }   /* на 1100–1365 поля у сайта узкие — стрелка меньше заходит на карточки */
}
@media (max-width: 1199px) {
  .flt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flt__end { flex-direction: row; align-items: center; }
  .flt__sale { flex: 1; }
  .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v3d__fbtns { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  :root { --pad: 32px; }
  .sec { padding-block: 96px; }
  .head--split { grid-template-columns: 1fr; }
  .head--split .lead { justify-self: start; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
  .hero__offer { max-width: 420px; }
  .about__grid, .gp__grid, .built__grid, .eco__grid, .ct__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 640px; }
  .gp__img { max-width: 640px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li, .facts__list li:first-child { padding: 30px 0 30px 28px; border-left: 1px solid var(--line); }
  .facts__list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pres { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv--photo { grid-column: span 2; }
  .loc__grid { grid-template-columns: 1fr; }
  .loc__map { min-height: 440px; }
  .promos { grid-template-columns: 1fr; }
  .pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banks__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cta__box { grid-template-columns: 1fr; padding: 56px; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .tabs__nav { justify-self: start; }
  .fm { grid-template-columns: 1fr; }
  .fm__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .fm__main { height: min(440px, 52vh); }
  .v3d__fgrid { grid-template-columns: 1fr; }
  .v3d__list { max-height: none; }
}

/* =================== телефон =================== */
@media (max-width: 767px) {
  :root { --pad: 20px; --r-xl: 24px; --r-lg: 20px; }
  html { scroll-padding-top: 84px; }
  body { font-size: 16px; padding-bottom: 72px; }
  .sec { padding-block: 76px; }
  .h2 { margin-top: 14px; font-size: 30px; line-height: 1.12; }
  .lead { margin-top: 16px; font-size: 16px; }
  .btn { --h: 52px; padding: 0 22px; }

  .hdr { top: 10px; }
  .hdr__in { width: calc(100% - 20px); height: 62px; gap: 8px; padding: 0 8px 0 12px; border-radius: 18px; }
  .hdr .logo img { width: 36px; height: 36px; }
  .hdr .logo__t b { font-size: 19px; }
  .hdr .logo__t small { font-size: 8.5px; letter-spacing: .2em; }
  .hdr__tel, .hdr__cta { display: none; }
  .hdr__call { display: inline-flex; margin-left: auto; }

  .hero { min-height: max(660px, min(100svh, 900px)); }
  /* фото — верхние ~60% экрана (дом виден), ниже уходит в тёмно-зелёный, где стоит текст */
  .hero__bg img { height: 62%; object-position: 50% 30%; }
  .hero__shade { background: linear-gradient(180deg, rgba(18, 30, 26, .5) 0%, rgba(18, 30, 26, .05) 14%, rgba(18, 30, 26, .1) 24%,
                             rgba(24, 36, 31, .82) 40%, var(--deep-dk) 60%); }
  .hero__in { gap: 18px; padding-block: 110px 24px; }
  .hero__eyebrow { font-size: 12.5px; padding: 7px 12px 7px 10px; }
  .hero__h1 { margin-top: 16px; font-size: 35px; line-height: 1.06; }
  .hero__chips { margin-top: 18px; gap: 8px; }
  .hero__chips li { padding: 9px 13px 9px 10px; font-size: 14.5px; border-radius: 12px; gap: 8px; }
  .hero__chips .ico { width: 18px; height: 18px; }
  .hero__lead { margin-top: 16px; font-size: 16px; }
  .hero__btns { margin-top: 22px; gap: 8px; }
  .hero__btns .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 14px; }
  .hero__btns .btn .ico { display: none; }
  .hero__offer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; max-width: none; padding: 16px 18px; border-radius: 20px; }
  .hero__badge { grid-column: 1 / -1; justify-self: start; font-size: 12px; padding: 5px 10px 5px 8px; }
  .hero__ot { margin: 4px 0 0; font-size: 14px; line-height: 1.3; }
  .hero__op { grid-column: 2; grid-row: 2 / span 2; align-self: center; margin: 0; font-size: 26px; }
  .hero__os { margin: 0; font-size: 13px; }
  .hero__om { display: none; }

  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li, .facts__list li:first-child { padding: 24px 0 24px 16px; border-left: 1px solid var(--line); }
  .facts__list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts__list b { font-size: 31px; }
  .facts__list span { font-size: 14px; }

  .about__grid { gap: 44px; }
  .about__text { order: -1; }
  .stats { margin: 28px 0; gap: 12px; }
  .stats b { font-size: 36px; }
  .stats span { font-size: 13px; }
  .about__media { padding: 0 28px 36px 0; }
  .about__inset { width: 50%; border-width: 6px; border-radius: 18px; }
  .about__chip { left: 12px; top: 12px; padding: 9px 14px 9px 11px; font-size: 13px; }
  .about__chip .ico { width: 18px; height: 18px; }

  .types { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .type { padding: 18px 16px 16px; }
  .type__lab { position: static; justify-self: start; align-self: flex-start; min-width: 34px; height: 30px; padding: 0 9px; border-radius: 15px; font-size: 13px; }
  .type__t { margin-top: 10px; font-size: 21px; padding-right: 0; }
  .type__n, .type__sq { font-size: 13.5px; }
  .type__price { margin-top: 12px; font-size: 16px; white-space: normal; }
  .type__go { margin-top: 12px; padding-top: 12px; font-size: 14px; }
  .pres { gap: 22px; padding: 28px 22px; margin-top: 10px; }
  .pres__t { font-size: 25px; }
  .frm--row .frm__fields { grid-template-columns: 1fr; }
  .frm--row .frm__btn { width: 100%; }

  .adv__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .adv { min-height: 0; padding: 22px; gap: 16px; }
  .adv.adv--photo { grid-column: auto; min-height: 320px; }
  .adv:not(.adv--photo) { flex-direction: row; align-items: flex-start; justify-content: flex-start; }
  .adv h3 { font-size: 20px; }
  .adv p { margin-top: 6px; font-size: 15px; }
  .adv__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; }
  .adv__ico .ico { width: 23px; height: 23px; }

  .gp__grid { gap: 36px; }
  .gp__p { font-size: 16px; margin-top: 18px; }
  .gp__btns .btn { flex: 1 1 100%; }

  .built__grid { gap: 44px; }
  .tl { margin-top: 28px; }
  .tl li { padding-left: 42px; padding-bottom: 22px; }
  .tl b { font-size: 19px; }
  .tl p { font-size: 15px; }
  .docs { padding: 26px 20px 22px; }
  .docs__t { font-size: 24px; }
  .doc { padding: 14px; gap: 12px; }
  .doc__ico { width: 44px; height: 44px; }
  .doc__t b { font-size: 15px; }
  .docs .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .tech { grid-template-columns: 1fr; }
  .tech li { flex-direction: row; align-items: flex-start; padding: 18px; }
  .tech__ico { flex: none; }

  .head--tabs .tabs__nav { width: 100%; }
  .tab { flex: 1; padding: 0 12px; }
  .gal { margin-top: 28px; }
  .gal .sl__track { display: flex; gap: 10px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); scroll-snap-type: x mandatory; overflow-x: auto; }
  .gal .sl__slide, .gal .g-big, .gal .g-wide { flex: 0 0 86%; height: 280px; scroll-snap-align: start; border-radius: 18px; }
  .gal__ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
  .gal__btn { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink); }
  .gal__btn[data-sl-prev] .ico { transform: rotate(180deg); }
  .gal__btn .ico { width: 18px; height: 18px; }
  .sl__count { min-width: 56px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .gal__note { margin-top: 14px; text-align: center; font-size: 13px; }

  .eco__grid { gap: 36px; }
  .eco__media { aspect-ratio: 4 / 3; }
  .eco__list li { gap: 14px; padding: 16px 0; }
  .eco__ico { width: 44px; height: 44px; }
  .eco__list b { font-size: 16px; }
  .eco__list p { font-size: 15px; }
  .eco__q { font-size: 21px; }

  .loc__grid { margin-top: 32px; gap: 14px; }
  .loc__map { min-height: 360px; }
  .loc__card { padding: 26px 20px; }
  .loc__place { font-size: 16px; }
  .dist li { font-size: 15px; padding: 12px 0; }
  .dist b { flex: 0 1 auto; max-width: 52%; }
  .loc__btns .btn { flex: 1 1 100%; }

  .promos { margin-top: 32px; gap: 10px; }
  .promo { padding: 26px 22px; }
  .promo__t { font-size: 25px; }
  .promo .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }

  .pay { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .bcard { padding: 22px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .bcard__ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; }
  .bcard h3 { margin-top: 0; font-size: 20px; }
  .bcard p { font-size: 15px; }
  .banks { padding: 24px 18px; margin-top: 10px; }
  .banks__head .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
  .banks__t { font-size: 22px; }
  .banks__list { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .banks__list li { height: 70px; padding: 12px 14px; }
  .banks__list img { height: calc(var(--h, 34px) * .8); }

  .ct__grid { gap: 44px; }
  .ct__card { margin-top: 28px; padding: 6px 22px 24px; }
  .ct__tel { font-size: 24px; }
  .ct__btns .btn { flex: 1 1 100%; }
  .mgrs { gap: 12px; margin-top: 18px; }
  .mgr figcaption { margin-top: 10px; font-size: 16px; }

  .cta { padding-bottom: 76px; }
  .cta__box { gap: 28px; padding: 40px 22px; }
  .cta__text p { font-size: 16px; }

  .ftr { padding: 56px 0 32px; }
  .ftr__top { grid-template-columns: 1fr; gap: 32px; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; margin-top: 36px; }

  .mdl--form .mdl__panel { padding: 32px 22px 24px; border-radius: 22px; }
  .mdl__t { font-size: 25px; }
  .mdl--text .mdl__panel { padding: 36px 22px 28px; }
  .mdl--flat { padding: 0; align-items: flex-start; }
  .mdl--flat .mdl__panel { border-radius: 0; min-height: 100%; }
  /* 07.11.2026 (второй взгляд): цена и «Забронировать» были в 1–1,5 экрана ниже планировки, крестик уезжал вверх */
  .mdl--flat .mdl__x { position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; }
  .fm__media { padding: 56px 16px 12px; }
  .fm__main { height: min(300px, 36vh); }
  .fm__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .fm__thumbs a { width: auto; height: 52px; }
  .fm__info { padding: 24px 20px 28px; }
  .fm__dl { gap: 8px; margin-top: 16px; }
  .fm__dl div { padding: 10px 12px; }
  .fm__dl dd { font-size: 17px; }
  .fm__price b { font-size: 26px; }
  .mdl--flat .mdl__x { top: 10px; right: 10px; }

  .cat { margin-top: 36px; }
  .cat__modes { width: 100%; }
  .flt-tgl { display: inline-flex; width: 100%; }
  .flt-tgl[aria-expanded="true"] { border-color: var(--ink); }
  .flt { display: none; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 18px 16px; margin-top: 16px; }
  .flt.is-open { display: grid; }
  .flt__g--rooms, .flt__end { grid-column: 1 / -1; }
  .flt__g--rng { grid-column: auto; }
  .flt__g--wide { grid-column: 1 / -1; }
  .flt__rng { gap: 4px; }
  .flt__rng input { padding: 0 8px; font-size: 14px; }
  .chip span { min-width: 44px; height: 44px; padding: 0 12px; }
  .cat__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kv__img { padding: 36px 10px 6px; }
  .kv .kv__lab { display: none; }   /* на телефоне тип и так написан под планировкой, а места мало */
  .kv__sale { left: 8px; top: 8px; font-size: 11px; padding: 3px 8px; }
  .kv__lab { right: 8px; top: 8px; min-width: 32px; height: 32px; font-size: 12px; }
  .kv__body { padding: 10px 12px 14px; }
  .kv__t { font-size: 12.5px; }
  .kv__sq { font-size: 22px; }
  .kv__meta { font-size: 12.5px; line-height: 1.4; min-height: 2.8em; }   /* «Корпус 2 · 10 этаж из 16» бывает в две строки — цены в ряду на одной высоте */
  .kv__price { margin-top: 0; padding-top: 8px; gap: 0 8px; }
  .kv__price b { font-size: 16px; }
  .kv__price s { font-size: 12.5px; }
  .kv__go { font-size: 12.5px; padding-top: 10px; }
  .cat__more .btn { width: 100%; min-width: 0; }

  .v3d__box { padding: 12px; margin-top: 24px; border-radius: 20px; }
  .v3d__bar .tabs__nav { width: 100%; }
  .v3d__hint { display: none; }
  .v3d__stage svg, .v3d__plan svg { border-radius: 12px; }
  .v3d__fbtns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .v3d__fnav { width: 100%; justify-content: space-between; }
  .v3d__fnav b { min-width: 0; font-size: 15px; }
  .v3d__chips { width: 100%; }
  .v3d__list { padding: 12px; }
  .v3d__legend { gap: 6px 14px; font-size: 13px; }

  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s; }
  .mbar.is-visible { transform: none; }
  .mbar .btn { --h: 48px; min-width: 0; padding: 0 12px; font-size: 15px; box-shadow: none; }   /* поровну (сетка 1fr 1fr), во всю ширину */
  .goup { left: auto; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  /* Jivo на телефоне — как на Неве, Токсово и flatroom.agency: круглая кнопка слева, на одной высоте со стрелкой «наверх»,
     над панелью; приглашение — над панелью, а не поверх её кнопок */
  jdiv[class*="_orientation"] { bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important; }
  #jvLabelWrap { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  jdiv[class*="_orientation"] > jdiv[class^="container__"] { bottom: 92px !important; }
  /* если у виджета кнопка на телефоне справа (_orientationRight), она легла бы на стрелку «наверх» — переносим влево,
     облачко — вправо от кнопки (правило из Невы v3) */
  jdiv[class*="_orientationRight"][class*="__jivoMobileButton"] { right: auto !important; left: 16px !important; }
  jdiv[class*="_orientationRight"][class*="__jivoMobileButton"] > jdiv[class^="container__"] { left: 0 !important; right: auto !important; }
}
@media (max-width: 380px) {
  .hero__h1 { font-size: 31px; }
  .hero__btns .btn { flex-basis: 100%; }   /* 360–380: «Выбрать на 3D-плане» упиралась в рамку — кнопки друг под другом */
  .hero__chips li { font-size: 13.5px; }
  .types { grid-template-columns: 1fr; }
  .cat__grid { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .btn { padding-inline: 16px; white-space: normal; text-align: center; line-height: 1.2; }
  .loc__card { padding-inline: 16px; }
  .ct__card { padding-inline: 16px; }
  .dist li { flex-wrap: wrap; gap: 2px 12px; }
  .dist b { max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
