/* ==========================================================================
   Крем де ля Крым — стили сайта
   Компоновка — по образцу сайтов ЖК на платформе IdaLite,
   цвета и шрифты — по брендбуку проекта.
   ========================================================================== */

@font-face { font-family: "Vollkorn SC"; src: url("../fonts/vollkorn-sc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Брендовые цвета */
  --teal: #185465;
  --teal-900: #0f3c48;
  --sea: #3799b1;
  --cream: #f0e0ca;
  --coral: #f15b55;
  --coral-600: #db453f;

  /* Нейтральные */
  --bg: #ffffff;
  --bg-soft: #f6f2ec;
  --bg-soft-2: #efe8de;
  --ink: #1d2b31;
  --text: #33444a;
  --muted: #7d8a8e;
  --line: #e4ddd3;
  --line-dark: rgba(255, 255, 255, .18);

  --font-accent: "Vollkorn SC", Georgia, serif;
  --font-base: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1360px;
  --gutter: 20px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 72px;
  --strip-h: 0px;
  --shadow: 0 20px 50px -24px rgba(15, 60, 72, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 80px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--strip-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-base); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 1024px) { body { font-size: 16px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
b, strong { font-weight: 600; }
svg { flex: none; fill: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--teal); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Одноколоночные сетки не растягиваются под широкое содержимое (важно для Safari и узких экранов) */
.about__grid, .loc, .accents__stage, .offers, .club, .contact-block, .unit-grid, .callrow, .stage-info,
.filters, .footer__grid, .qfilter__row, .catalog-head__top, .floorview, .plans__body, .steps, .contacts-list { grid-template-columns: minmax(0, 1fr); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Типографика ---------- */
.title, .title-xl, .title-lg {
  font-family: var(--font-accent); font-weight: 400; text-transform: uppercase;
  line-height: .98; letter-spacing: .01em; color: var(--ink);
}
.title, .title-xl, .title-lg { overflow-wrap: break-word; hyphens: auto; }
.title-xl { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem); }
.title-lg { font-size: clamp(2.2rem, 1.5rem + 3vw, 4.2rem); }
.title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.05; }
.text-lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.65; }
.muted { color: var(--muted); }
.label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--teal); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { --bg: var(--teal-900); }
.btn--accent { --bg: var(--coral); }
.btn--accent:hover { --bg: var(--coral-600); }
.btn--light { --bg: #fff; --fg: var(--teal); }
.btn--light:hover { --bg: var(--cream); }
.btn--cream { --bg: var(--cream); --fg: var(--teal); }
.btn--cream:hover { --bg: #fff; }
.btn--outline { --bg: transparent; --fg: var(--teal); --bd: var(--teal); }
.btn--outline:hover { --bg: var(--teal); --fg: #fff; }
.btn--glass { --bg: rgba(255, 255, 255, .16); --fg: #fff; --bd: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .28); }
.btn--soft { --bg: var(--bg-soft); --fg: var(--teal); }
.btn--soft:hover { --bg: var(--bg-soft-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--teal);
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--teal); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--dark { background: transparent; border-color: var(--line-dark); color: #fff; }
.icon-btn--dark:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.icon-btn .badge:empty { display: none; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--teal); }
.link-more::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.link-more:hover::after { transform: translateX(3px); }

/* Стрелки слайдеров */
.arrows { display: inline-flex; align-items: center; gap: 12px; }
.arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.arrow:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.arrow:disabled { opacity: .35; pointer-events: none; }
.arrow svg { width: 20px; height: 20px; }
.counter { font-size: 15px; font-weight: 500; min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.counter--big { font-family: var(--font-accent); font-size: 2.6rem; line-height: 1; }
.counter--big small { font-size: .45em; color: var(--muted); }

/* Переключатели-«пилюли» */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--teal); }
.pill.is-active, .pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.pill--sm { height: 40px; min-width: 40px; padding: 0 16px; font-size: 13px; }
.on-dark .pill { background: transparent; border-color: var(--line-dark); color: #fff; }
.on-dark .pill:hover { border-color: #fff; }
.on-dark .pill.is-active, .on-dark .pill[aria-pressed="true"] { background: #fff; color: var(--teal); border-color: #fff; }

/* Вкладки-текст (как «Все публикации / Архитектура / …») */
.tabs { display: flex; gap: 6px 28px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 0 0 14px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .25s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }

/* Поля */
.field-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.on-dark .field-box { background: transparent; border-color: var(--line-dark); color: #fff; }
.select { position: relative; }
.select select {
  width: 100%; height: 48px; padding: 0 44px 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); appearance: none; cursor: pointer;
}
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.on-dark .select select { background: transparent; border-color: var(--line-dark); color: #fff; }
.on-dark .select select option { color: var(--ink); }
.on-dark .select { color: #fff; }

.input {
  width: 100%; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 15px; color: var(--ink); transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--teal); }
.input.is-invalid { border-color: var(--coral); }
.on-dark .input { background: rgba(255, 255, 255, .08); border-color: var(--line-dark); color: #fff; }
.on-dark .input::placeholder { color: rgba(255, 255, 255, .6); }

/* Диапазон с двумя ползунками */
.range { position: relative; }
.range__values { display: flex; justify-content: space-between; gap: 10px; height: 48px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.range__track { position: relative; height: 18px; margin: -9px 18px 0; }
.range__track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); }
.range__fill { position: absolute; top: 8px; height: 2px; background: var(--teal); }
.range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 18px; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none;
}
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 0; pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 4px #fff; }
.range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 0; pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 4px #fff; }
.range input[type="range"]::-moz-range-track { background: none; }
.on-dark .range__values { background: transparent; border-color: var(--line-dark); color: #fff; }
.on-dark .range__track::before { background: var(--line-dark); }
.on-dark .range__fill { background: #fff; }
.on-dark .range input[type="range"]::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 0 4px var(--teal); }
.on-dark .range input[type="range"]::-moz-range-thumb { background: #fff; box-shadow: 0 0 0 4px var(--teal); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; }
.header__bar { height: var(--header-h); border-bottom: 1px solid var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo img { width: 176px; height: auto; }
@media (min-width: 1024px) { .header__logo img { width: 196px; } }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color .2s; }
.nav__link:hover, .nav__link.is-current { color: var(--coral); }
.nav__link--pill { height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); }
.nav__link--pill:hover, .nav__link--pill.is-current { border-color: var(--coral); }
.more { position: relative; }
.more__btn { display: inline-flex; align-items: center; gap: 6px; }
.more__btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.more.is-open .more__btn::after { transform: translateY(1px) rotate(-135deg); }
.more__menu {
  position: absolute; top: calc(100% + 18px); right: -20px; min-width: 240px; padding: 10px; border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.more.is-open .more__menu { opacity: 1; visibility: visible; transform: none; }
.more__menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.more__menu a:hover { background: var(--bg-soft); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header__phone { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; margin-right: 6px; }
.burger { display: none; }

@media (max-width: 1279px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: inline-grid; }
}
@media (max-width: 1439px) { .header__phone { display: none; } }
@media (max-width: 599px) {
  .header__cta { display: none; }
  .header__logo img { width: 156px; }
}

/* Мобильное меню */
.mnav {
  position: fixed; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mnav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.mnav__head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mnav__body { flex: 1; overflow-y: auto; padding-top: 12px; padding-bottom: 32px; }
.mnav__body a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; color: var(--ink); }
.mnav__foot { display: grid; gap: 12px; margin-top: 28px; }
.mnav__phone { font-size: 22px; font-weight: 600; color: var(--ink); }

/* Промо-полоса */
.strip { background: var(--teal); color: #fff; }
.strip__inner { min-height: 56px; display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.strip__icon { width: 24px; height: 24px; color: var(--cream); }
.strip__text { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.35; }
.strip__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid var(--line-dark); }
.strip__close:hover { background: rgba(255, 255, 255, .1); }
.strip__short { display: none; }
@media (max-width: 599px) { .strip__long { display: none; } .strip__short { display: inline; } }
.strip__sep { width: 1px; height: 24px; background: var(--line-dark); }
@media (max-width: 599px) { .strip__icon, .strip__sep { display: none; } .strip__text { font-size: 13px; } .strip .btn { height: 36px; padding: 0 14px; font-size: 13px; } }

/* ---------- Первый экран: слайдер ---------- */
.hero { position: relative; height: max(600px, calc(100svh - var(--header-h) - var(--strip-h))); color: #fff; overflow: hidden; background: var(--teal-900); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 35, 42, .62) 0%, rgba(10, 35, 42, .25) 50%, rgba(10, 35, 42, 0) 75%), linear-gradient(0deg, rgba(10, 35, 42, .55) 0%, rgba(10, 35, 42, 0) 40%); }
.hero__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 120px; }
.hero__title { color: #fff; max-width: 900px; }
.hero__sub { max-width: 560px; margin: 22px 0 32px; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .92); }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2; }
.hero__bottom .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__ctrl { display: flex; align-items: center; gap: 14px; color: #fff; }
.hero__ctrl .arrow { background: #fff; border-color: #fff; }
.hero__progress { width: 120px; height: 2px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__progress i.is-run { animation: progress linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__cards { display: flex; gap: 12px; }
.glass-card {
  display: flex; align-items: center; gap: 16px; width: 270px; padding: 18px 20px; border-radius: var(--r);
  background: rgba(15, 40, 48, .42); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
}
.glass-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); }
.glass-card__icon svg { width: 22px; height: 22px; }
.glass-card b { display: block; font-family: var(--font-accent); font-weight: 400; font-size: 1.25rem; line-height: 1.1; text-transform: uppercase; }
.glass-card span { font-size: 13px; color: rgba(255, 255, 255, .8); }
@media (max-width: 1199px) { .hero__cards { display: none; } }
@media (max-width: 767px) {
  .hero { height: max(560px, calc(100svh - var(--header-h) - var(--strip-h))); }
  .hero__content { justify-content: flex-end; padding-bottom: 104px; }
  .hero__slide::after { background: linear-gradient(0deg, rgba(10, 35, 42, .85) 0%, rgba(10, 35, 42, .45) 45%, rgba(10, 35, 42, 0) 70%); }
  .hero__slide img { object-position: var(--pos-m, 50% 50%); }
  .hero__sub { margin: 14px 0 22px; }
}

/* ---------- Быстрый фильтр ---------- */
.qfilter { padding: 28px 0 8px; }
.qfilter__row { display: grid; gap: 16px 20px; align-items: end; }
@media (min-width: 768px) { .qfilter__row { grid-template-columns: auto 1fr 1fr; } .qfilter__row .btn { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .qfilter__row { grid-template-columns: auto 1.2fr .9fr auto; } .qfilter__row .btn { grid-column: auto; } }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--teal); color: rgba(255, 255, 255, .85); }
.section--dark .title, .section--dark .title-lg, .section--dark .title-xl { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__text { max-width: 640px; margin-top: 20px; }
.on-dark { color: rgba(255, 255, 255, .85); }
.on-dark .label { color: rgba(255, 255, 255, .6); }

/* Графика из брендбука */
.motif { position: absolute; pointer-events: none; background-color: var(--teal); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; opacity: .07; }
.motif--lavender { --m: url("../graphics/lavender.svg"); aspect-ratio: 505 / 388; }
.motif--swallow { --m: url("../graphics/swallow.svg"); aspect-ratio: 329 / 359; }
.motif--shell { --m: url("../graphics/shell.svg"); aspect-ratio: 344 / 323; }
.motif--sailboat { --m: url("../graphics/sailboat.svg"); aspect-ratio: 354 / 480; }
.motif--castle { --m: url("../graphics/castle.svg"); aspect-ratio: 409 / 494; }

/* ---------- О проекте ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.about__media { position: relative; }
.about__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 86% 50%; border-radius: var(--r-lg); }
.about__ring { position: absolute; z-index: 0; width: 72%; aspect-ratio: 1; left: -16%; top: -10%; border-radius: 50%; border: 1px solid var(--coral); }
.about__motif { width: 260px; right: -40px; bottom: -30px; z-index: 2; opacity: .9; background-color: var(--cream); }
.about__text .title-lg { margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--font-accent); font-weight: 400; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; color: var(--teal); }
.facts small { font-size: .5em; }
.facts span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Истории ---------- */
.stories { display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; color: var(--ink); }
.story__ring { width: 104px; height: 104px; padding: 4px; border-radius: 50%; border: 2px solid var(--coral); transition: transform .3s var(--ease); }
.story.is-seen .story__ring { border-color: var(--line); }
.story:hover .story__ring { transform: scale(1.04); }
.story__ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (min-width: 1024px) { .stories { justify-content: center; gap: 40px; } .story { width: 128px; } .story__ring { width: 120px; height: 120px; } }

.story-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0a1e24; color: #fff; }
.story-viewer[open] { display: grid; place-items: center; }
.sv { position: relative; width: min(440px, 100vw); height: min(780px, 100dvh); border-radius: var(--r); overflow: hidden; background: #000; }
.sv img { width: 100%; height: 100%; object-fit: cover; }
.sv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 25%, transparent 55%, rgba(0, 0, 0, .75) 100%); pointer-events: none; }
.sv__bars { position: absolute; z-index: 2; top: 14px; left: 14px; right: 56px; display: flex; gap: 4px; }
.sv__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.sv__bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.sv__close { position: absolute; z-index: 3; top: 6px; right: 8px; width: 40px; height: 40px; font-size: 28px; color: #fff; }
.sv__caption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 24px; }
.sv__caption b { display: block; font-family: var(--font-accent); font-weight: 400; font-size: 1.9rem; line-height: 1; text-transform: uppercase; margin-bottom: 10px; }
.sv__caption p { font-size: 15px; color: rgba(255, 255, 255, .9); }
.sv__prev, .sv__next { position: absolute; z-index: 1; top: 0; bottom: 0; width: 40%; }
.sv__prev { left: 0; }
.sv__next { right: 0; }

/* ---------- Генплан ---------- */
.gp { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft-2); }
.gp__scroll { overflow: auto hidden; scrollbar-width: none; }
.gp__scroll::-webkit-scrollbar { display: none; }
.gp__map { position: relative; }
.gp__map img { width: 100%; }
.gp__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10, 35, 42, .65) 0%, rgba(10, 35, 42, 0) 35%); }
@media (max-width: 899px) { .gp__map { width: 900px; } }
.gp__title { position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); color: #fff; pointer-events: none; }
.gp__title .title-lg { color: #fff; }
.gp__actions { position: absolute; z-index: 2; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); display: flex; gap: 10px; }
.gp__hint { position: absolute; z-index: 2; left: 50%; top: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(15, 40, 48, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; }
@media (max-width: 899px) { .gp__title { display: none; } .gp__actions { position: static; flex-wrap: wrap; padding: 16px; background: var(--teal); justify-content: center; } .gp__actions .btn { flex: 1 1 auto; } }

.gp-label {
  --c: var(--coral);
  position: absolute; z-index: 1; left: var(--x); top: var(--y); transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.gp-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.gp-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; border-radius: 2px; }
.gp-label[data-stage="2"] { --c: var(--sea); }
.gp-label[data-stage="3"] { --c: var(--teal); }
.gp-label:hover, .gp-label.is-active { background: var(--teal); color: #fff; z-index: 3; }
.gp-label.is-dim { opacity: .45; transform: translate(-50%, -100%) scale(.9); }
.gp-card {
  position: absolute; z-index: 4; width: 300px; padding: 20px; border-radius: var(--r); background: #fff; color: var(--text); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.gp-card.is-open { opacity: 1; visibility: visible; transform: none; }
.gp-card .kicker { display: block; margin-bottom: 6px; }
.gp-card h3 { font-family: var(--font-accent); font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.gp-card p { font-size: 14px; }
.gp-card .btn { margin-top: 14px; }
.stage-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.stage-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.stage-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.stage-info { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .stage-info { grid-template-columns: repeat(3, 1fr); } }
.stage-card { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.stage-card.is-active { border-color: var(--teal); box-shadow: var(--shadow); }
.stage-card h3 { font-family: var(--font-accent); font-size: 1.5rem; text-transform: uppercase; color: var(--ink); margin: 6px 0 12px; line-height: 1.05; }
.stage-card li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 14px; }
.stage-card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ---------- Акценты проекта ---------- */
.accents__stage { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 1024px) { .accents__stage { grid-template-columns: 2.2fr 1fr; gap: 24px; } }
.accents__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft-2); }
.accents__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.accents__media button { position: absolute; inset: 0; }
.accents__card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--bg-soft); }
.accents__card h3 { margin-bottom: 16px; }
.accents__card .arrows { margin-top: auto; padding-top: 24px; }
.accents__thumbs { display: flex; gap: 10px; margin-top: 20px; }
.accents__thumbs button { width: 72px; height: 52px; border-radius: 8px; overflow: hidden; opacity: .5; transition: opacity .2s; outline-offset: 2px; }
.accents__thumbs button.is-active { opacity: 1; outline: 2px solid var(--teal); }
.accents__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Пляжный клуб: тёмный слайдер ---------- */
.club { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--teal); color: rgba(255, 255, 255, .86); }
@media (min-width: 1024px) { .club { grid-template-columns: 1fr 1.25fr; min-height: 620px; } }
.club__text { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 64px); }
.club__text .title-lg { color: #fff; margin: 14px 0 20px; }
.club__specs { margin: 8px 0 28px; }
.club__specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.club__specs b { font-family: var(--font-accent); font-weight: 400; font-size: 1.2rem; color: var(--cream); white-space: nowrap; }
.club__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 12px; }
@media (max-width: 599px) { .club__nav .btn { margin-left: 0 !important; width: 100%; } .club__specs li { font-size: 14px; } }
.club__nav .arrow { background: transparent; color: #fff; border-color: var(--line-dark); }
.club__nav .arrow:hover { background: #fff; color: var(--teal); }
.club__media { position: relative; min-height: 320px; }
.club__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.club__media img.is-active { opacity: 1; }
.club__motif { width: 200px; right: 24px; top: 24px; background-color: #fff; opacity: .08; }

/* ---------- Карточки апартаментов ---------- */
.ucard {
  position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.ucard:hover { box-shadow: var(--shadow); border-color: transparent; }
.ucard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ucard__num { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.ucard__loc { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ucard__fav { position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .2s; }
.ucard__fav:hover, .ucard__fav.is-on { color: var(--coral); }
.ucard__fav.is-on svg { fill: currentColor; }
.ucard__fav svg { width: 20px; height: 20px; }
.ucard__plan { position: relative; aspect-ratio: 1 / 1; margin: 14px 0; overflow: hidden; }
.ucard__plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ucard__main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ucard__type { font-size: 16px; font-weight: 600; color: var(--ink); }
.ucard__area { font-family: var(--font-accent); font-size: 1.6rem; line-height: 1; color: var(--teal); white-space: nowrap; }
.ucard__price { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.ucard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg-soft); font-size: 12px; font-weight: 500; color: var(--text); }
.tag--accent { background: color-mix(in srgb, var(--coral) 14%, #fff); color: var(--coral-600); }
.tag--teal { background: color-mix(in srgb, var(--teal) 12%, #fff); color: var(--teal); }
.ucard__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.promo-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; padding: 24px; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate; }
.promo-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.promo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 35, 42, .82) 0%, rgba(10, 35, 42, .1) 60%); }
.promo-card:hover img { transform: scale(1.04); }
.promo-card b { font-family: var(--font-accent); font-weight: 400; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.promo-card p { margin: 10px 0 18px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.promo-card .btn { align-self: flex-start; }

/* Карусель */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 768px) { .carousel { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (min-width: 1200px) { .carousel { grid-auto-columns: calc((100% - 60px) / 4); } }

.layouts__tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

/* ---------- Плитки-предложения ---------- */
.offers { display: grid; gap: 20px; }
@media (min-width: 900px) { .offers { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; } .offers > :first-child { grid-row: span 2; min-height: 560px; } }
.offer { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: var(--bg-soft); }
.offer h3 { margin-bottom: 12px; }
.offer p { font-size: 15px; }
.offer .link-more { margin-top: auto; padding-top: 16px; }
.offer--cream { background: var(--cream); }
.offer--coral { background: var(--coral); color: #fff; }
.offer--coral .title, .offer--coral .link-more { color: #fff; }

/* ---------- Расположение ---------- */
.loc { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .loc { grid-template-columns: 1fr 1.5fr; gap: 64px; } }
.loc__list { margin-top: 28px; border-top: 1px solid var(--line); }
.loc__list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loc__list .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-soft); color: var(--teal); }
.loc__list .ico svg { width: 22px; height: 22px; }
.loc__list b { display: block; color: var(--ink); font-weight: 600; }
.loc__list span { font-size: 14px; color: var(--muted); }
.loc__map { position: relative; display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.loc__map img { width: 100%; }
.loc__map .btn { position: absolute; right: 16px; bottom: 16px; }

/* ---------- Инфраструктура ---------- */
.infra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 768px) { .infra-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .infra-grid { grid-template-columns: repeat(4, 1fr); } }
.infra-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.infra-item svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.infra-item.is-hidden { display: none; }
@media (max-width: 559px) { .infra-item { flex-direction: column; align-items: flex-start; padding: 16px 14px; font-size: 14px; } }

/* ---------- Сервисное управление ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; padding: 28px; border-radius: var(--r); background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); }
.step::before { content: "0" counter(step); display: block; margin-bottom: 28px; font-family: var(--font-accent); font-size: 2.6rem; line-height: 1; color: var(--cream); }
.step b { display: block; margin-bottom: 8px; color: #fff; font-size: 17px; }
.step span { font-size: 14px; }

/* ---------- Формы ---------- */
.callrow .title-lg { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3.4rem); }
.callrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--bg-soft); }
@media (min-width: 1100px) { .callrow { grid-template-columns: 1fr 1.5fr; gap: 48px; } }
.callrow__fields { display: grid; gap: 12px; }
@media (min-width: 700px) { .callrow__fields { grid-template-columns: 1fr 1fr auto; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--teal); }
.consent a { text-decoration: underline; }
.consent.is-invalid { color: var(--coral-600); }
.on-dark .consent { color: rgba(255, 255, 255, .7); }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-status.is-error { color: var(--coral-600); }
.on-dark .form-status.is-error { color: var(--cream); }
.form-done { text-align: center; padding: 20px 0; }
.form-done .title { margin-bottom: 8px; }

.contact-block { display: grid; overflow: hidden; border-radius: var(--r-lg); background: var(--teal); color: rgba(255, 255, 255, .85); }
@media (min-width: 1024px) { .contact-block { grid-template-columns: 1fr 1fr; } }
.contact-block__media { position: relative; min-height: 280px; }
.contact-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-block__form { display: grid; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.contact-block__form .title-lg { color: #fff; margin-bottom: 6px; }
.contacts-list { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 768px) { .contacts-list { grid-template-columns: repeat(3, 1fr); } }
.contacts-list div { padding: 24px; border-radius: var(--r); background: var(--bg-soft); }
.contacts-list dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contacts-list dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }

/* ---------- Подвал ---------- */
.footer { background: var(--teal-900); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer__logo img { width: 160px; }
.footer h4 { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__phone { font-size: 22px; font-weight: 600; color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); color: #fff; transition: background-color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .12); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .45); }
.footer__legal a { text-decoration: underline; }

/* ---------- Плавающий виджет ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(15, 60, 72, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.fab__main { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--coral); color: #fff; }
.fab__main svg { width: 22px; height: 22px; }
.fab__items { display: flex; gap: 4px; overflow: hidden; max-width: 0; transition: max-width .35s var(--ease); }
.fab.is-open .fab__items { max-width: 260px; }
.fab__items a, .fab__items button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.fab__items a:hover, .fab__items button:hover { background: rgba(255, 255, 255, .12); }
.fab__items svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) { .fab { right: 12px; bottom: 12px; } }

/* ---------- Модальные окна ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(10, 30, 37, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--ink); background: var(--bg-soft); }
.modal .title { margin-bottom: 10px; padding-right: 40px; }
.modal form { display: grid; gap: 12px; margin-top: 20px; }
.modal__unit { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--bg-soft); font-size: 14px; }
.modal__unit img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(8, 26, 32, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 64px 16px 16px; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: 14px; }
.lightbox .modal__close { background: rgba(255, 255, 255, .12); color: #fff; }

/* ==========================================================================
   Страница «Выбор апартаментов»
   ========================================================================== */
.catalog-head { background: var(--teal); color: #fff; padding: 40px 0 28px; }
.catalog-head__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.catalog-head .title-lg { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 6px; }
.crumbs--light { color: var(--muted); }
.crumbs--light a:hover { color: var(--ink); }
.filters { display: grid; gap: 18px; align-items: end; }
@media (min-width: 768px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .filters { grid-template-columns: auto 1.2fr 1fr 1fr auto; } }
.filters__more { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--coral); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 0; }
.toolbar__left { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.toolbar__count { font-size: 15px; color: var(--ink); font-weight: 500; }
.sort select { border: 0; background: none; font-weight: 500; color: var(--ink); padding-right: 22px; appearance: none; cursor: pointer; }
.sort { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort::after { content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.views { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.views button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.views button svg { width: 16px; height: 16px; }
.views button.is-active { background: var(--teal); color: #fff; }

.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.catalog-body { padding-bottom: 96px; background: var(--bg-soft); }
.catalog-body .ucard { border-color: transparent; }
.catalog-more { display: flex; justify-content: center; margin-top: 36px; }
.empty { padding: 64px 20px; text-align: center; border-radius: var(--r); background: #fff; }
.empty .title { margin-bottom: 12px; }

.list { border-radius: var(--r); overflow: hidden; background: #fff; }
.list-row { display: grid; grid-template-columns: 72px 1.2fr 1fr .8fr .8fr .9fr 44px 150px; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); position: relative; }
.list-row--head { padding-block: 14px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: #fff; }
.list-row img { width: 64px; height: 64px; object-fit: contain; }
.list-row b { font-weight: 600; }
.list-row:not(.list-row--head):hover { background: var(--bg-soft); }
@media (max-width: 1023px) {
  .list-row { grid-template-columns: 64px 1fr auto; gap: 4px 14px; }
  .list-row--head { display: none; }
  .list-row > :nth-child(n+4):not(.ucard__fav) { display: none; }
}

.floorview { display: grid; gap: 20px; }
.floorview__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.floors { display: flex; align-items: center; gap: 12px; min-width: 0; }
.floors__list { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.floor-btn { flex: none; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.floor-btn:hover { border-color: var(--teal); }
.floor-btn.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.floor-btn.is-empty { opacity: .35; }
.plan-card { padding: clamp(16px, 2.5vw, 32px); border-radius: var(--r-lg); background: #fff; }
.plan-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-canvas { position: relative; min-width: 760px; }
.plan-canvas img { width: 100%; }
.unit-pin {
  --c: var(--sea);
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; background: var(--c); color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(15, 60, 72, .35); transition: transform .2s var(--ease), opacity .2s;
}
.unit-pin[data-t="1"] { --c: var(--coral); }
.unit-pin[data-t="2"] { --c: var(--teal); }
.unit-pin:hover, .unit-pin.is-current { transform: translate(-50%, -50%) scale(1.3); z-index: 2; }
.unit-pin.is-current { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent), 0 3px 10px rgba(15, 60, 72, .35); }
.unit-pin.is-off { opacity: .2; pointer-events: none; }
.unit-pin::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.unit-pin:hover::after { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* Липкая панель фильтров снизу */
.fbar { position: fixed; left: 50%; bottom: 20px; z-index: 65; transform: translate(-50%, 160%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--ink); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.fbar.is-shown { transform: translate(-50%, 0); }
.fbar button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fbar button:hover { background: rgba(255, 255, 255, .12); }
.fbar svg { width: 16px; height: 16px; }
@media (max-width: 599px) { .fbar { left: 12px; transform: translate(0, 160%); } .fbar.is-shown { transform: none; } }

/* ==========================================================================
   Страница апартамента
   ========================================================================== */
.unit-page { padding: 28px 0 96px; background: var(--bg-soft); }
.unit-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1100px) { .unit-grid { grid-template-columns: 1.6fr 1fr; gap: 24px; } }
.unit-view { padding: clamp(16px, 2.5vw, 32px); border-radius: var(--r-lg); background: #fff; min-width: 0; }
.unit-view__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-soft); margin-bottom: 20px; }
.unit-view__tabs button { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.unit-view__tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.unit-view__plan { display: block; }
.unit-view__plan img { display: block; width: 100%; height: auto; max-height: min(640px, 70vh); object-fit: contain; }
.unit-info { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; }
@media (min-width: 1100px) { .unit-info { position: sticky; top: calc(var(--header-h) + var(--strip-h) + 20px); } }
.unit-info__num { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.unit-info .title-lg { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.unit-info__area { margin: 10px 0 20px; font-family: var(--font-accent); font-size: 2.4rem; line-height: 1; color: var(--teal); }
.specs { border-top: 1px solid var(--line); margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.unit-info__price { margin: 22px 0 18px; }
.unit-info__price b { display: block; font-size: 22px; color: var(--ink); }
.unit-info__price span { font-size: 13px; color: var(--muted); }
.unit-info__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.unit-info__row { display: flex; flex-wrap: wrap; gap: 10px; }
.unit-info__row .btn { flex: 1 1 140px; padding: 0 16px; }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
