/* МОРЕ — недвижимость-море.рф */
@property --bg {
  syntax: '<color>';
  inherits: true;
  initial-value: #071a2e;
}
@property --bg2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #0c2744;
}
@property --surface {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.06);
}
@property --border {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.1);
}
@property --text {
  syntax: '<color>';
  inherits: true;
  initial-value: #e8f4fc;
}
@property --muted {
  syntax: '<color>';
  inherits: true;
  initial-value: #8eb4cc;
}
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #2dd4bf;
}
@property --accent2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #ff6b4a;
}
@property --sand {
  syntax: '<color>';
  inherits: true;
  initial-value: #f5e6d3;
}
@property --header-bg {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(7, 26, 46, 0.9);
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #071a2e;
  --bg2: #0c2744;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8f4fc;
  --muted: #8eb4cc;
  --accent: #2dd4bf;
  --accent2: #ff6b4a;
  --sand: #f5e6d3;
  --header-bg: rgba(7, 26, 46, 0.9);
  --header-height: 5.75rem;
  --icon-gap: 0.32rem;
  --icon-gap-sm: 0.28rem;
  --icon-gap-xs: 0.24rem;
  --icon-gap-contact: 0.45rem;
  --max-gradient: linear-gradient(90deg, rgba(65, 133, 246, 1) 0%, rgba(73, 48, 224, 1) 48%, rgba(150, 75, 218, 1) 98%);
  --radius: 16px;
  --font: 'Manrope', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f9ff;
  --bg2: #e0f2fe;
  --surface: #fff;
  --border: rgba(7, 26, 46, 0.12);
  --text: #0c2744;
  --muted: #5a7a94;
  --accent: #0d9488;
  --accent2: #ea580c;
  --sand: #0c4a6e;
  --header-bg: rgba(240, 249, 255, 0.92);
}
html:not([data-theme])[data-theme-mode="auto"] { color-scheme: light dark; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg: #f0f9ff; --bg2: #e0f2fe; --surface: #fff;
    --border: rgba(7, 26, 46, 0.12); --text: #0c2744; --muted: #5a7a94;
    --accent: #0d9488; --accent2: #ea580c; --sand: #0c4a6e;
    --header-bg: rgba(240, 249, 255, 0.92);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  transition:
    --bg 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --bg2 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --surface 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --border 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --text 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --muted 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --accent 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --accent2 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --sand 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    --header-bg 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { transition: none; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #5eead4; }

/* Phosphor Icons */
.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}
.ui-icon::before {
  display: block;
  line-height: 1;
}

/* Квадратные и круглые контейнеры иконок */
:is(
  .icon-shell,
  .ct-services__icon,
  .ct-channel__icon,
  .ct-messenger__glyph,
  .catalog-map-open-btn__icon,
  .section-map-btn__icon,
  .mobile-nav__action-icon,
  .sea-life__card-icon,
  .sea-life__partner-icon,
  .sea-life__card-arrow,
  .btn__icon,
  .messenger-link__icon--ph,
  .theme-switch__btn
) {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}
:is(
  .icon-shell,
  .ct-services__icon,
  .ct-channel__icon,
  .ct-messenger__glyph,
  .catalog-map-open-btn__icon,
  .section-map-btn__icon,
  .mobile-nav__action-icon,
  .sea-life__card-icon,
  .sea-life__partner-icon,
  .sea-life__card-arrow,
  .btn__icon,
  .messenger-link__icon--ph,
  .theme-switch__btn
) > .ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Иконка + текст в одну линию */
.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-sm);
  min-width: 0;
}
.icon-inline--xs { gap: var(--icon-gap-xs); }
.icon-inline__text {
  min-width: 0;
}
.icon-inline > .ui-icon {
  width: 1em;
  height: 1em;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s;
  overflow: visible;
}
.header__inner { display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 800; font-size: 1.35rem; }
.logo__mark {
  flex-shrink: 0;
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: contain;
}
.logo--footer .logo__mark { width: 1.75rem; height: 1.75rem; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__link { color: var(--muted); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.nav__link:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; flex-shrink: 0; }
.burger { display: none; background: none; border: none; width: 28px; height: 20px; position: relative; cursor: pointer; flex-shrink: 0; }
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text);
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease, bottom 0.28s ease;
}
.burger span { top: 50%; transform: translateY(-50%); }
.burger::before { top: 0; }
.burger::after { bottom: 0; }
.burger.is-active span { opacity: 0; }
.burger.is-active::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-active::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Site overlay (theme menu, mobile nav) */
.site-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(4, 12, 22, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
[data-theme="light"] .site-overlay {
  background: rgba(7, 26, 46, 0.14);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .site-overlay {
    background: rgba(7, 26, 46, 0.14);
  }
}
.site-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .site-overlay { transition: none; }
}

/* Mobile navigation */
.mobile-nav {
  display: none;
}
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav__dropdown {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 10120;
    width: 100%;
    max-height: calc(100dvh - var(--header-height) - var(--bitrix-widget-offset, 4.75rem));
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    transform: translateY(calc(-100% - 1px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.28s ease,
      visibility 0.28s ease;
  }
  body.mobile-nav-open .site-overlay.is-visible {
    z-index: 10110;
  }
  .mobile-nav.is-open .mobile-nav__dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-nav__nav {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(42dvh, 16.5rem);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.45rem 0.65rem 0.4rem;
  }
  .mobile-nav__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    min-height: 2.65rem;
    padding: 0.4rem 0.5rem;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .mobile-nav__link:hover,
  .mobile-nav__link:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }
  .mobile-nav__link-num {
    font-family: var(--serif);
    font-size: 0.68rem;
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
  }
  .mobile-nav__link-text {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.15;
  }
  .mobile-nav__footer {
    flex-shrink: 0;
    display: grid;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem 0.55rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .mobile-nav__actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .mobile-nav__actions-row:has(> :only-child) {
    grid-template-columns: 1fr;
  }
  .mobile-nav__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 2.7rem;
    padding: 0.38rem 0.35rem;
    border-radius: 0.65rem;
    border: none;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .mobile-nav__action:hover {
    transform: translateY(-1px);
    opacity: 0.95;
  }
  .mobile-nav__action-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.15;
  }
  .mobile-nav__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
  .mobile-nav__action-icon .ui-icon {
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.95rem;
    line-height: 1;
  }
  .mobile-nav__action--call {
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    color: #042f2e;
  }
  .mobile-nav__action--call strong {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .mobile-nav__action--max {
    background: var(--max-gradient);
    color: #fff;
  }
  .mobile-nav__action--max img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    display: block;
  }
  .mobile-nav__lead {
    min-height: 2.35rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.82rem;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  /* Bitrix24: на мобильном виден, пока меню закрыто; прячем при открытом меню */
  .b24-widget-button-wrapper,
  .b24-widget-button-shadow {
    z-index: 10050 !important;
  }
  body.mobile-nav-open .b24-widget-button-wrapper,
  body.mobile-nav-open .b24-widget-button-shadow,
  body.mobile-nav-open .b24-widget-button-inner-container,
  body.mobile-nav-open .bx-livechat-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav__dropdown,
  .mobile-nav__link,
  .mobile-nav__action {
    transition: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--icon-gap);
  padding: 0.65rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; font-family: inherit; transition: transform 0.2s, box-shadow 0.2s;
}
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.btn__icon .ui-icon {
  width: 1.05em;
  height: 1.05em;
  font-size: 1.05em;
}
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; gap: var(--icon-gap-sm); }
.btn--sm .btn__icon .ui-icon { width: 0.95rem; height: 0.95rem; font-size: 0.95rem; }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn--lg .btn__icon .ui-icon { width: 1.12rem; height: 1.12rem; font-size: 1.12rem; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), #14b8a6); color: #042f2e; }
[data-theme="light"] .btn--primary { color: #fff; }
@media (prefers-color-scheme: light) { html:not([data-theme]) .btn--primary { color: #fff; } }
.btn--outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 4rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--1 { width: 400px; height: 400px; background: #0d9488; top: -10%; right: -5%; }
.hero__orb--2 { width: 300px; height: 300px; background: var(--accent2); bottom: 10%; left: -10%; animation-delay: -4s; }
.hero__waves {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 180px;
  color: var(--bg2);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem;
  color: var(--accent); margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero__title-main { display: block; font-weight: 800; }
.hero__title em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 600; }
.hero__title-sub { display: block; font-size: 0.45em; font-weight: 500; color: var(--muted); margin-top: 0.25em; }
.hero__text { max-width: 520px; color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__stats {
  display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero__stats strong { display: block; font-size: 1.75rem; color: var(--sand); }
.hero__stats span { font-size: 0.85rem; color: var(--muted); }

/* Sections */
.section { padding: 5rem 0; }
.section--dark, .section--alt { background: var(--bg2); }
.section__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.section__head--stack { align-items: flex-start; margin-bottom: 1rem; }
.section__head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.section-map-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
.section h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 600; }
.section__lead { color: var(--muted); margin-top: 0.5rem; max-width: 560px; }
.section__foot,
.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.catalog-infinite .catalog-load-more-wrap {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
}
.catalog-feed-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.catalog-feed-status--err {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.link-arrow { font-weight: 600; white-space: nowrap; }

.page-hero { padding: 7rem 0 2rem; }
.page-hero--sm { padding-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.page-hero p { color: var(--muted); margin-top: 0.5rem; }
.page-hero__map-action { margin-top: 1rem; }
.page-hero__map-action .btn { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); }

/* Списковые страницы: каталог новостроек, ЖК, статьи */
.page-catalog .page-hero,
.page-complexes .page-hero,
.page-articles .page-hero {
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 0.75rem;
}
.page-catalog .page-hero p,
.page-complexes .page-hero p,
.page-articles .page-hero p {
  margin-top: 0.4rem;
}
.page-catalog .section,
.page-complexes .section,
.page-articles .section {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}
.page-complexes .section__lead {
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.page-articles .page-hero__meta {
  margin-top: 0.4rem;
}
.page-catalog .page-hero__map-action {
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  .page-catalog .page-hero,
  .page-complexes .page-hero,
  .page-articles .page-hero {
    padding-top: calc(var(--header-height) + 0.5rem);
    padding-bottom: 0.35rem;
  }
  .page-catalog .page-hero p,
  .page-complexes .page-hero p,
  .page-articles .page-hero p {
    margin-top: 0.3rem;
  }
  .page-catalog .section,
  .page-complexes .section,
  .page-articles .section {
    padding-top: 0.65rem;
    padding-bottom: 2.25rem;
  }
  .page-catalog .page-hero__map-action { margin-top: 0.65rem; }
  .page-catalog .catalog-map-open-wrap {
    margin-top: 0;
    margin-bottom: 0.85rem;
  }
}

/* Каталог — компактный фильтр на мобильном */
.page-catalog .filters--catalog {
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 4;
}
.page-catalog .filters .ui-select.is-open {
  z-index: 150;
}
.page-catalog .filters .ui-select__menu {
  z-index: 151;
}
.page-catalog .filters__drawer {
  width: 100%;
  overflow: visible;
}
.page-catalog .filters__summary {
  display: none;
}
.page-catalog .filters__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
  overflow: visible;
}
.page-catalog .filters__fields {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 1rem;
  align-items: flex-end;
  min-width: 0;
  overflow: visible;
}
.page-catalog .filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}
.page-catalog .filters__label-short {
  display: none;
}
@media (max-width: 767px) {
  .page-catalog .filters--catalog {
    padding: 0.65rem 0.75rem;
    margin-bottom: 1.15rem;
  }
  .page-catalog .filters__summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.15rem 0;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
  }
  .page-catalog .filters__summary::-webkit-details-marker {
    display: none;
  }
  .page-catalog .filters__summary::marker {
    content: '';
  }
  .page-catalog .filters__summary-main {
    display: inline-flex;
    align-items: center;
    gap: var(--icon-gap-xs, 0.35rem);
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
  }
  .page-catalog .filters__summary-main .ui-icon {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    color: var(--accent);
  }
  .page-catalog .filters__summary-hint,
  .page-catalog .filters__summary-active {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-catalog .filters__summary-active {
    color: var(--accent);
    font-weight: 600;
  }
  .page-catalog .filters__summary-badge {
    flex-shrink: 0;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
  }
  .page-catalog .filters__summary::after {
    content: '';
    flex-shrink: 0;
    width: 0.42rem;
    height: 0.42rem;
    margin-left: 0.15rem;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s;
  }
  .page-catalog .filters__drawer[open] .filters__summary::after {
    transform: rotate(-135deg) translateY(1px);
  }
  .page-catalog .filters__drawer[open] .filters__summary {
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
  }
  .page-catalog .filters__body {
    display: block;
  }
  .page-catalog .filters__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "rooms district"
      "complex complex";
    gap: 0.55rem 0.65rem;
    margin-bottom: 0.65rem;
  }
  .page-catalog .filters__group--rooms { grid-area: rooms; }
  .page-catalog .filters__group--district { grid-area: district; }
  .page-catalog .filters__group--complex { grid-area: complex; }
  .page-catalog .filters__group--select {
    min-width: 0;
    flex: none;
  }
  .page-catalog .filters__group label {
    font-size: 0.68rem;
    margin-bottom: 0.2rem;
  }
  .page-catalog .filters__label-long {
    display: none;
  }
  .page-catalog .filters__label-short {
    display: inline;
  }
  .page-catalog .filters .ui-select__trigger {
    min-height: 38px;
    padding: 0.48rem 0.7rem;
    font-size: 0.86rem;
    border-radius: 10px;
  }
  .page-catalog .filters__actions {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0.5rem;
  }
  .page-catalog .filters__actions .btn {
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    justify-content: center;
  }
}
@media (min-width: 768px) {
  .page-catalog .filters--catalog {
    padding: 1.5rem;
  }
  .page-catalog .filters__drawer > .filters__summary {
    display: none;
  }
  .page-catalog .filters__drawer .filters__body {
    display: flex !important;
  }
}

/* Каталог — ссылка на карту */
.catalog-map-open-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.catalog-map-open-btn--secondary {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}
.district-map-legend__item.is-active {
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--zone-color, var(--accent));
}

/* Карточки районов над картой (districts-map) */
.district-map-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
}
.district-map-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-left: 3px solid var(--zone-color, var(--accent));
  transition: opacity 0.2s, box-shadow 0.2s;
}
.district-map-card.is-hidden {
  opacity: 0.45;
}
.district-map-card.is-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--zone-color, var(--accent)) 50%, transparent);
}
.district-map-card__toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem 0.42rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.district-map-card__toggle:hover .district-map-card__name {
  color: var(--accent);
}
.district-map-card__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--zone-color, var(--accent)) 40%, transparent);
  border: 2px solid var(--zone-color, var(--accent));
  transition: opacity 0.2s;
}
.district-map-card.is-hidden .district-map-card__swatch {
  opacity: 0.35;
}
.district-map-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.district-map-card__name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  transition: color 0.15s;
  white-space: nowrap;
}
.district-map-card__tag {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.district-map-card__about {
  display: block;
  padding: 0.32rem 0.55rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.district-map-card__about:hover {
  background: rgba(45, 212, 191, 0.08);
  text-decoration: underline;
}

.catalog-map-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--icon-gap-sm);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.catalog-map-open-btn__icon,
.section-map-btn__icon {
  flex-shrink: 0;
}
.catalog-map-open-btn__icon .ui-icon { width: 1.05rem; height: 1.05rem; font-size: 1.05rem; }
.section-map-btn__icon .ui-icon { width: 0.95rem; height: 0.95rem; font-size: 0.95rem; }

/* Страницы с полноэкранной картой (каталог, районы) */
.page-catalog-map .footer { margin-top: 0; }
.page-catalog-map main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-height);
  box-sizing: border-box;
}
.catalog-map-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.catalog-map-page__bar {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.catalog-map-page__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
}
.catalog-map-page__title {
  font-size: 1.15rem;
  margin: 0;
}
.catalog-map-page__title em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.catalog-map-page__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.catalog-map-page__map-link:hover { text-decoration: underline; }
.catalog-map-page__status {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.catalog-map-page__map {
  flex: 1;
  min-height: 320px;
  width: 100%;
  position: relative;
}
@media (min-width: 768px) {
  .catalog-map-page__map { min-height: calc(100vh - var(--header-height) - 11rem); }
}
.catalog-map-page__map .leaflet-container {
  height: 100% !important;
  width: 100% !important;
  background: var(--bg2);
}
.catalog-map-page__hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}
.catalog-map-page__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.district-map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.district-map-legend__item:hover { color: var(--accent); }
.district-map-legend__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 0.15rem;
}
.district-map-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--zone-color, var(--accent)) 45%, transparent);
  border: 3px solid var(--zone-color, var(--accent));
  flex-shrink: 0;
}
.leaflet-tooltip.district-map-tooltip {
  background: rgba(7, 26, 46, 0.88);
  border: 1px solid var(--accent);
  color: #e8f4fc;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.leaflet-tooltip.district-map-tooltip::before {
  display: none;
}
.catalog-map-page__notice {
  margin: 0;
  padding: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.catalog-map-page__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}

/* Кластер объявлений на карте каталога */
.catalog-map-cluster-wrap {
  background: transparent !important;
  border: none !important;
}
.catalog-map-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  min-width: 64px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #0c2744;
  box-shadow: 0 8px 22px rgba(7, 26, 46, 0.5);
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s;
}
[data-theme="light"] .catalog-map-cluster,
html:not([data-theme]) .catalog-map-cluster { background: #fff; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-cluster { background: #fff; }
}
.catalog-map-cluster:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(7, 26, 46, 0.55);
}
.catalog-map-cluster__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.catalog-map-cluster__count {
  font-size: 1rem;
  font-weight: 800;
  color: #2dd4bf;
  line-height: 1;
  min-width: 1.1rem;
  text-align: center;
}
[data-theme="light"] .catalog-map-cluster__count,
html:not([data-theme]) .catalog-map-cluster__count { color: #0d9488; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-cluster__count { color: #0d9488; }
}

.catalog-map-pin-wrap {
  background: transparent !important;
  border: none !important;
}
.catalog-map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 160px;
  border-radius: 12px;
  overflow: visible;
  border: 2px solid var(--accent);
  background: #0c2744;
  box-shadow: 0 10px 28px rgba(7, 26, 46, 0.55);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  font-family: var(--font);
}
[data-theme="light"] .catalog-map-pin,
html:not([data-theme]) .catalog-map-pin {
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 26, 46, 0.22);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-pin {
    background: #fff;
    box-shadow: 0 10px 28px rgba(7, 26, 46, 0.22);
  }
}
.catalog-map-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: var(--accent);
  pointer-events: none;
}
.catalog-map-pin:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #5eead4;
  box-shadow: 0 14px 32px rgba(7, 26, 46, 0.65);
}
.catalog-map-pin__media {
  position: relative;
  width: 100%;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #071a2e;
}
[data-theme="light"] .catalog-map-pin__media,
html:not([data-theme]) .catalog-map-pin__media { background: #e0f2fe; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-pin__media { background: #e0f2fe; }
}
.catalog-map-pin__img {
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}
.catalog-map-pin__img--logo {
  width: 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  opacity: 0.95;
}
.catalog-map-pin__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem 0.5rem;
  background: #0c2744;
  border-radius: 0 0 10px 10px;
  border-top: 1px solid rgba(45, 212, 191, 0.25);
}
[data-theme="light"] .catalog-map-pin__body,
html:not([data-theme]) .catalog-map-pin__body {
  background: #fff;
  border-top-color: rgba(7, 26, 46, 0.1);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-pin__body {
    background: #fff;
    border-top-color: rgba(7, 26, 46, 0.1);
  }
}
.catalog-map-pin__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8eb4cc;
  line-height: 1.2;
  margin-bottom: 0.12rem;
}
[data-theme="light"] .catalog-map-pin__label,
html:not([data-theme]) .catalog-map-pin__label { color: #5a7a94; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-pin__label { color: #5a7a94; }
}
.catalog-map-pin__addr {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.catalog-map-pin__address {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #e8f4fc;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="light"] .catalog-map-pin__address,
html:not([data-theme]) .catalog-map-pin__address { color: #0c2744; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-pin__address { color: #0c2744; }
}
.catalog-map-pin__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.5rem;
}
.catalog-map-pin__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.catalog-map-pin__value {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e8f4fc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-map-pin__value--price {
  font-size: 0.7rem;
  font-weight: 800;
  color: #2dd4bf;
}
[data-theme="light"] .catalog-map-pin__value,
html:not([data-theme]) .catalog-map-pin__value { color: #0c2744; }
[data-theme="light"] .catalog-map-pin__value--price,
html:not([data-theme]) .catalog-map-pin__value--price { color: #0d9488; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-pin__value { color: #0c2744; }
  html:not([data-theme]) .catalog-map-pin__value--price { color: #0d9488; }
}

.catalog-map-stack-wrap {
  background: transparent !important;
  border: none !important;
}
.catalog-map-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.catalog-map-stack__center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #0c2744;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(7, 26, 46, 0.45);
}
[data-theme="light"] .catalog-map-stack__center,
html:not([data-theme]) .catalog-map-stack__center { background: #fff; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-stack__center { background: #fff; }
}
.catalog-map-stack__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}
.catalog-map-stack__orbit {
  position: absolute;
  inset: 0;
}
.catalog-map-stack__chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(var(--stack-angle)) translateY(calc(-1 * var(--stack-radius, 88px))) rotate(calc(-1 * var(--stack-angle)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 88px;
  max-width: 108px;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: #0c2744;
  color: #e8f4fc;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 6px 16px rgba(7, 26, 46, 0.4);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
[data-theme="light"] .catalog-map-stack__chip,
html:not([data-theme]) .catalog-map-stack__chip {
  background: #fff;
  color: #0c2744;
  box-shadow: 0 6px 16px rgba(7, 26, 46, 0.15);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-stack__chip {
    background: #fff;
    color: #0c2744;
    box-shadow: 0 6px 16px rgba(7, 26, 46, 0.15);
  }
}
.catalog-map-stack__chip:hover {
  border-color: #5eead4;
  transform: translate(-50%, -50%) rotate(var(--stack-angle)) translateY(calc(-1 * var(--stack-radius, 88px) - 4px)) rotate(calc(-1 * var(--stack-angle))) scale(1.05);
  box-shadow: 0 10px 22px rgba(7, 26, 46, 0.5);
}
.catalog-map-stack__chip-rooms {
  font-weight: 600;
  white-space: nowrap;
}
.catalog-map-stack__chip-price {
  font-weight: 800;
  color: #2dd4bf;
  white-space: nowrap;
  font-size: 0.72rem;
}
[data-theme="light"] .catalog-map-stack__chip-price,
html:not([data-theme]) .catalog-map-stack__chip-price { color: #0d9488; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .catalog-map-stack__chip-price { color: #0d9488; }
}

/* Grid & Cards */
.grid { display: grid; gap: 1.5rem; }
.grid--3, .grid--cards { grid-template-columns: 1fr; }
@media (min-width: 480px) { .grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--cards, .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; display: block; background: #ffffff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
}
.card__badges .card__badge {
  position: static;
  top: auto;
  left: auto;
}
.card__badges--inline {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.card__badge {
  display: inline-block;
  background: var(--accent2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.card__badge--hit,
.card__badge--tone-1 {
  background: var(--accent2);
  color: #fff;
}
.card__badge--done,
.card__badge--tone-2 {
  background: #16a34a;
  color: #fff;
}
.card__badge--new {
  background: var(--accent);
  color: #042f2e;
}
[data-theme="light"] .card__badge--new,
html:not([data-theme]) .card__badge--new {
  color: #fff;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .card__badge--new {
    color: #fff;
  }
}
.card__badge--premium {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}
.card__badge--exclusive,
.card__badge--tone-3 {
  background: #0284c7;
  color: #fff;
}
.card__badge--sale {
  background: #ef4444;
  color: #fff;
}
.card__badge--mortgage,
.card__badge--tone-4 {
  background: #f59e0b;
  color: #1c1917;
}
.card__badge--tone-5 {
  background: #db2777;
  color: #fff;
}
.card__overlay {
  position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(7,26,46,0.9));
  display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity 0.3s;
}
.card:hover .card__overlay { opacity: 1; }
.card__body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.card__meta-item.icon-inline .ui-icon {
  width: 0.88rem;
  height: 0.88rem;
  font-size: 0.88rem;
  color: var(--accent);
}
.card__title { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card__title a { color: var(--text); }
.card__complex { display: block; font-size: 0.78rem; font-weight: 500; margin-top: 0.25rem; }
.card__complex a { color: var(--accent); }
.card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-bottom: 1rem; }
.card__tags li {
  font-size: 0.72rem; padding: 0.2rem 0.5rem; background: rgba(45,212,191,0.15);
  color: var(--accent); border-radius: 4px;
}
.card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: auto;
}
.card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.card__actions .btn {
  min-width: 0;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-size: 0.78rem;
}
.card__actions .btn__icon .ui-icon {
  width: 0.88rem;
  height: 0.88rem;
  font-size: 0.88rem;
}
.card__price-wrap { display: flex; flex-direction: column; }
.card__price { font-size: 1.15rem; color: var(--sand); }
.card__price--icon.icon-inline .ui-icon {
  width: 0.92rem;
  height: 0.92rem;
  font-size: 0.92rem;
  color: var(--accent);
}
.card--complex .card__meta {
  gap: 0.45rem 0.65rem;
}
.card--complex .card__footer .btn {
  width: 100%;
}
@media (max-width: 1023px) {
  .card--complex .card__meta-item.icon-inline {
    font-size: 0.78rem;
  }
  .card--complex .card__price--icon {
    font-size: 1.05rem;
  }
}
.card__mortgage { font-size: 0.75rem; color: var(--accent); font-weight: 500; margin-top: 0.15rem; }

/* Districts */
.districts__group-title {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.districts__group-title:first-of-type { margin-top: 1.25rem; }
.districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 0.75rem; }
.district {
  display: flex;
  flex-direction: column;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.district:hover { border-color: var(--accent); background: rgba(45,212,191,0.08); }
.district__num { font-size: 2rem; font-weight: 800; color: var(--accent); opacity: 0.4; }
.district h3 { margin: 0.5rem 0; font-size: 1.2rem; }
.district p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.district__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
.district__link { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.district__link:hover { text-decoration: underline; }

.complex-hero-full {
  position: relative;
  padding-top: calc(var(--header-height) + 0.75rem);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg);
}
.complex-hero-full__container {
  position: relative;
  display: flex;
  flex-direction: column;
}
.complex-hero-full__crumbs {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
.complex-hero-full__crumbs::-webkit-scrollbar {
  display: none;
}
.complex-hero-full__crumbs .breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}
.complex-hero-full__crumbs .breadcrumb__current {
  display: inline-block;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.complex-hero-full__crumb-short {
  display: inline;
}
.complex-hero-full__crumb-long {
  display: none;
}
.complex-hero-full__crumbs,
.complex-hero-full__crumbs a {
  color: var(--muted) !important;
}
.complex-hero-full__crumbs a:hover {
  color: var(--text) !important;
}
.complex-hero-full__media {
  position: relative;
  flex-shrink: 0;
  height: clamp(180px, 42vw, 220px);
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  background: var(--surface);
}
.complex-hero-full__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.complex-hero-full__overlay {
  display: none;
}
.complex-hero-full__panel {
  max-width: 900px;
  color: var(--text);
}
.complex-hero-full__badges {
  margin-bottom: 0.75rem;
}
.complex-hero-full__title {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.complex-hero-full__address {
  display: flex;
  align-items: flex-start;
  gap: var(--icon-gap-sm, 0.4rem);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}
.complex-hero-full__address > .ui-icon {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  font-size: 1.1em;
  margin-top: 0.12em;
}
.complex-hero-full__lead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.complex-hero-full__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ch-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ch-stat__label {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-xs, 0.3rem);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ch-stat__label > .ui-icon {
  width: 0.95em;
  height: 0.95em;
  font-size: 0.95em;
}
.ch-stat__val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.ch-stat__val--accent {
  color: var(--accent);
  font-size: 1.1rem;
}
.complex-hero-full__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.complex-hero-full__actions .btn {
  width: 100%;
  justify-content: center;
}
.complex-hero-full__gallery-trigger {
  width: 100%;
}
.complex-hero-full__gallery-trigger .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .complex-hero-full {
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    background: transparent;
  }
  .complex-hero-full__crumbs {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    overflow: visible;
    white-space: normal;
  }
  .complex-hero-full__crumbs .breadcrumb__current {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }
  .complex-hero-full__crumb-short {
    display: none;
  }
  .complex-hero-full__crumb-long {
    display: inline;
  }
  .complex-hero-full__crumbs,
  .complex-hero-full__crumbs a {
    color: rgba(255, 255, 255, 0.7) !important;
  }
  .complex-hero-full__crumbs a:hover {
    color: #fff !important;
  }
  .complex-hero-full__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    transform: none;
    z-index: 0;
  }
  .complex-hero-full__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 18, 31, 0.1) 0%, rgba(6, 18, 31, 0.85) 80%, rgba(6, 18, 31, 0.95) 100%);
  }
  .complex-hero-full__container {
    position: static;
    z-index: auto;
    width: 100%;
    align-items: center;
  }
  .complex-hero-full__crumbs,
  .complex-hero-full__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .complex-hero-full__crumbs {
    text-align: center;
  }
  .complex-hero-full__panel {
    color: #fff;
    padding: 0 1rem;
    text-align: center;
  }
  .complex-hero-full__title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: #fff;
  }
  .complex-hero-full__address {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
  }
  .complex-hero-full__lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
  }
  .complex-hero-full__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .ch-stat__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
  }
  .ch-stat__val {
    font-size: 1.25rem;
    color: #fff;
  }
  .ch-stat__val--accent {
    color: #2dd4bf;
    font-size: 1.5rem;
  }
  .complex-hero-full__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
  .complex-hero-full__actions .btn {
    width: auto;
    flex: 0 0 auto;
  }
  .complex-hero-full__gallery-trigger {
    width: auto;
    margin-left: 0;
  }
  .complex-hero-full__gallery-trigger .btn {
    width: auto;
  }
}
@media (min-width: 992px) {
  .complex-hero-full__panel {
    padding: 0 2rem;
  }
}
@media (min-width: 1200px) {
  .complex-hero-full__panel {
    padding: 0;
  }
}

.breadcrumb--inverse, .breadcrumb--inverse a {
  color: rgba(255, 255, 255, 0.7) !important;
}
.breadcrumb--inverse a:hover {
  color: #fff !important;
}
@media (max-width: 767px) {
  .complex-hero-full__crumbs.breadcrumb--inverse,
  .complex-hero-full__crumbs.breadcrumb--inverse a {
    color: var(--muted) !important;
  }
  .complex-hero-full__crumbs.breadcrumb--inverse a:hover {
    color: var(--text) !important;
  }
}
.btn--white {
  background: #fff;
  color: #0c2744;
  border: none;
}
.btn--white:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .complex-hero-full__actions .btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
  .complex-hero-full__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .complex-hero-full__actions .complex-tour-btn,
  html[data-theme="light"] .complex-hero-full__actions .complex-tour-btn,
  html:not([data-theme]) .complex-hero-full__actions .complex-tour-btn {
    background: rgba(160, 87, 239, 0.2);
    border-color: rgba(160, 87, 239, 0.6);
    color: #fff;
  }
  .complex-hero-full__actions .complex-tour-btn:hover,
  html[data-theme="light"] .complex-hero-full__actions .complex-tour-btn:hover,
  html:not([data-theme]) .complex-hero-full__actions .complex-tour-btn:hover {
    background: rgba(160, 87, 239, 0.4);
    border-color: rgba(196, 136, 255, 0.8);
    color: #fff;
  }
}


.btn--scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  scroll-behavior: smooth;
}

/* New Layout Below Hero */
.complex-info-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 992px) {
  .complex-info-grid {
    grid-template-columns: 1fr 350px;
  }
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.section-title--center {
  text-align: center;
}
.complex-features-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.complex-features-box__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.complex-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.complex-features-tags li {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.complex-media-section {
  margin-bottom: 4rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  border: 1px solid var(--border);
}
@media (max-width: 767px) {
  .complex-media-section {
    padding: 2rem 1rem;
  }
}
.complex-video-gallery {
  display: grid;
  gap: 2rem;
}
.complex-video-gallery--single {
  max-width: 900px;
  margin: 0 auto;
}
.complex-video-gallery--grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .complex-video-gallery--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.complex-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #000;
}
.complex-video-wrapper iframe,
.complex-video-wrapper video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* Adaptive 3D Tour Button */
.complex-tour-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: #d8b4fe; border-color: rgba(160, 87, 239, 0.5);
  background: linear-gradient(135deg, rgba(160, 87, 239, 0.2), rgba(126, 58, 242, 0.1));
  transition: all 0.2s;
}
.complex-tour-btn:hover {
  background: linear-gradient(135deg, rgba(170, 104, 245, 0.3), rgba(126, 58, 242, 0.2));
  border-color: rgba(196, 136, 255, 0.8); color: #fff;
}
[data-theme="light"] .complex-tour-btn {
  color: #7e22ce; border-color: rgba(126, 34, 206, 0.3);
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.08), rgba(107, 33, 168, 0.03));
}
[data-theme="light"] .complex-tour-btn:hover {
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.15), rgba(107, 33, 168, 0.08));
  border-color: rgba(126, 34, 206, 0.5); color: #581c87;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .complex-tour-btn {
    color: #7e22ce; border-color: rgba(126, 34, 206, 0.3);
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.08), rgba(107, 33, 168, 0.03));
  }
  html:not([data-theme]) .complex-tour-btn:hover {
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.15), rgba(107, 33, 168, 0.08));
    border-color: rgba(126, 34, 206, 0.5); color: #581c87;
  }
}
.complex-tour-btn__icon {
  width: 1.2rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
}
.complex-tour-btn__icon svg { width: 1.1rem; height: 1.1rem; display: block; }

.complex-properties-section {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}
.complex-tour-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: block;
  padding: 0;
}
.complex-tour-modal[hidden] { display: none; }
.complex-tour-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 31, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}
.complex-tour-modal__box {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.complex-tour-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  border: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.complex-tour-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
  pointer-events: auto;
}
.complex-tour-modal__content .article-content {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  line-height: 1;
}
.complex-tour-modal__content > * {
  width: 100%;
  height: 100%;
  max-width: none !important;
  margin: 0 !important;
}
.complex-tour-modal__content p,
.complex-tour-modal__content div,
.complex-tour-modal__content section,
.complex-tour-modal__content figure {
  max-width: none !important;
}
.complex-tour-modal__content p:has(iframe),
.complex-tour-modal__content div:has(iframe),
.complex-tour-modal__content section:has(iframe),
.complex-tour-modal__content figure:has(iframe) {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}
.complex-tour-modal__content iframe,
.complex-tour-modal__content object,
.complex-tour-modal__content embed {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  min-height: 100%;
  border: 0;
  display: block;
  margin: 0 !important;
}
.complex-tour-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  border: 0 !important;
  display: block !important;
}

/* Home CTA — премиальные блоки заявок */
.section--cta { padding: 2.5rem 0; }
.section--cta-sm { padding: 1.5rem 0; }

.home-cta {
  --hc-surface: color-mix(in srgb, var(--bg2) 88%, var(--accent) 12%);
  --hc-panel: color-mix(in srgb, var(--bg) 55%, transparent);
  --hc-panel-border: var(--border);
  --hc-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --hc-shadow: 0 24px 56px color-mix(in srgb, var(--bg) 72%, #000 28%);
  --hc-final-bg: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bg2) 92%, var(--accent) 8%) 0%,
    var(--bg2) 52%,
    color-mix(in srgb, var(--bg2) 85%, var(--accent) 15%) 100%
  );
  --hc-final-panel: color-mix(in srgb, var(--surface) 90%, transparent);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 42%),
    linear-gradient(200deg, color-mix(in srgb, var(--accent2) 12%, transparent) 0%, transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent2) 8%, transparent), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 80%, #0e7490 20%) 0%, var(--hc-surface) 100%);
  box-shadow: var(--hc-shadow);
}
.home-cta__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hc-glow), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: ctaSeaGlow 7s ease-in-out infinite;
}
.home-cta--band .home-cta__glow {
  inset: -60% -10% auto auto;
}

/* Морские волны — общий фон для всех CTA */
.cta-sea {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cta-sea__wave {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 54%;
  border-radius: 46% 54% 0 0 / 100% 100% 0 0;
  opacity: 0.48;
  will-change: transform;
}
.cta-sea__wave--1 {
  bottom: -20%;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 58%, transparent) 0%,
    color-mix(in srgb, var(--accent) 24%, transparent) 100%
  );
  animation: ctaSeaWave1 5.5s ease-in-out infinite;
}
.cta-sea__wave--2 {
  bottom: -28%;
  height: 50%;
  opacity: 0.36;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent2) 52%, transparent) 0%,
    color-mix(in srgb, var(--accent) 20%, transparent) 100%
  );
  animation: ctaSeaWave2 7s ease-in-out infinite;
  animation-delay: -2.5s;
}
.cta-sea__wave--3 {
  bottom: -12%;
  height: 40%;
  opacity: 0.26;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #fff 30%, var(--accent) 70%) 0%,
    transparent 100%
  );
  animation: ctaSeaWave3 4.5s ease-in-out infinite;
  animation-delay: -1.2s;
}
.cta-sea__shimmer {
  position: absolute;
  inset: -25% -35%;
  background: linear-gradient(
    105deg,
    transparent 34%,
    color-mix(in srgb, #fff 45%, var(--accent) 55%) 46%,
    color-mix(in srgb, #fff 70%, var(--accent2) 30%) 50%,
    color-mix(in srgb, #fff 40%, var(--accent) 60%) 54%,
    transparent 66%
  );
  background-size: 240% 100%;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  animation: ctaSeaShimmer 3.8s linear infinite;
}
@keyframes ctaSeaWave1 {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(1) rotate(0deg); }
  33% { transform: translate3d(-5%, -4%, 0) scaleX(1.06) rotate(-0.8deg); }
  66% { transform: translate3d(4%, -2%, 0) scaleX(0.96) rotate(0.6deg); }
}
@keyframes ctaSeaWave2 {
  0%, 100% { transform: translate3d(2%, 0, 0) scaleX(1.02); }
  40% { transform: translate3d(-4.5%, -3%, 0) scaleX(1.05) rotate(0.5deg); }
  75% { transform: translate3d(5%, 1.5%, 0) scaleX(0.94) rotate(-0.4deg); }
}
@keyframes ctaSeaWave3 {
  0%, 100% { transform: translate3d(1%, 0, 0) scaleX(1); }
  50% { transform: translate3d(-3.5%, 2.5%, 0) scaleX(1.04) rotate(-0.5deg); }
}
@keyframes ctaSeaShimmer {
  0% { background-position: 130% 50%; }
  100% { background-position: -130% 50%; }
}
@keyframes ctaSeaGlow {
  0%, 100% { opacity: 0.8; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(0, -8px, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-sea__wave,
  .cta-sea__shimmer,
  .home-cta__glow,
  .article-inline-cta__glow {
    animation: none;
  }
}
.home-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .home-cta--split .home-cta__inner,
  .home-cta--panel .home-cta__inner {
    grid-template-columns: 1.15fr minmax(260px, 0.85fr);
    align-items: center;
    gap: 2.5rem;
  }
  .home-cta--band .home-cta__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }
}
.home-cta__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.home-cta__title {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.home-cta__title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.home-cta__text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
}
.home-cta__perks {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}
.home-cta__perks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text);
}
.home-cta__perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}
.home-cta__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 20px;
  border: 1px solid var(--hc-panel-border);
  background: var(--hc-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-cta--band .home-cta__panel {
  padding: 1.25rem 1.5rem;
  min-width: min(100%, 280px);
}
.home-cta__panel-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.home-cta__btn { width: 100%; }
.home-cta__phone { width: 100%; }
.home-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--icon-gap-sm);
  width: 100%;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.home-cta__link .btn__icon .ui-icon { font-size: 0.95rem; }
.home-cta__link:hover { color: var(--accent); }
.home-cta--band .home-cta__link { display: none; }

.home-cta--final {
  background: var(--hc-final-bg);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}
.home-cta__inner--final { gap: 2rem; }
@media (min-width: 900px) {
  .home-cta__inner--final {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}
.home-cta__panel--final {
  background: var(--hc-final-panel);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}
.home-cta__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.home-cta__messengers .btn { flex: 1 1 auto; min-width: 0; }

[data-theme="light"] .home-cta {
  --hc-surface: color-mix(in srgb, #fff 92%, var(--accent) 8%);
  --hc-panel: color-mix(in srgb, #fff 82%, var(--bg2) 18%);
  --hc-shadow: 0 20px 48px color-mix(in srgb, var(--bg2) 14%, transparent);
  --hc-glow: color-mix(in srgb, var(--accent) 20%, transparent);
  --hc-final-bg: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 48%, #ecfeff 100%);
  --hc-final-panel: color-mix(in srgb, #fff 78%, var(--accent) 6%);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 38%),
    linear-gradient(200deg, color-mix(in srgb, #7dd3fc 38%, transparent) 0%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
    linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #ecfeff 100%);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .home-cta {
    --hc-surface: color-mix(in srgb, #fff 92%, var(--accent) 8%);
    --hc-panel: color-mix(in srgb, #fff 82%, var(--bg2) 18%);
    --hc-shadow: 0 20px 48px color-mix(in srgb, var(--bg2) 14%, transparent);
    --hc-glow: color-mix(in srgb, var(--accent) 20%, transparent);
    --hc-final-bg: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 48%, #ecfeff 100%);
    --hc-final-panel: color-mix(in srgb, #fff 78%, var(--accent) 6%);
    background:
      linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 38%),
      linear-gradient(200deg, color-mix(in srgb, #7dd3fc 38%, transparent) 0%, transparent 48%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
      linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #ecfeff 100%);
    border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  }
}

[data-theme="dark"] .home-cta {
  --hc-surface: color-mix(in srgb, var(--bg2) 90%, var(--accent) 10%);
  --hc-panel: color-mix(in srgb, var(--bg) 62%, transparent);
  --hc-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
  --hc-glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --hc-final-bg: linear-gradient(135deg, #0c2744 0%, #0a3048 55%, #0d4a5c 100%);
  --hc-final-panel: color-mix(in srgb, #fff 6%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 36%),
    linear-gradient(200deg, color-mix(in srgb, #0e7490 42%, transparent) 0%, transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
    linear-gradient(180deg, #0a2540 0%, color-mix(in srgb, var(--bg2) 86%, #0d4a5c 14%) 100%);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .home-cta {
    --hc-surface: color-mix(in srgb, var(--bg2) 90%, var(--accent) 10%);
    --hc-panel: color-mix(in srgb, var(--bg) 62%, transparent);
    --hc-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    --hc-glow: color-mix(in srgb, var(--accent) 30%, transparent);
    --hc-final-bg: linear-gradient(135deg, #0c2744 0%, #0a3048 55%, #0d4a5c 100%);
    --hc-final-panel: color-mix(in srgb, #fff 6%, transparent);
    background:
      linear-gradient(165deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 36%),
      linear-gradient(200deg, color-mix(in srgb, #0e7490 42%, transparent) 0%, transparent 50%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
      linear-gradient(180deg, #0a2540 0%, color-mix(in srgb, var(--bg2) 86%, #0d4a5c 14%) 100%);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  }
}

/* Viewing CTA — онлайн-просмотр */
.section--viewing-cta {
  padding: 2.5rem 0 3rem;
}

.viewing-cta {
  --vc-surface: color-mix(in srgb, var(--bg2) 88%, var(--accent) 12%);
  --vc-panel: color-mix(in srgb, var(--bg) 55%, transparent);
  --vc-glow: color-mix(in srgb, var(--accent2) 22%, transparent);
  --vc-glow-2: color-mix(in srgb, var(--accent) 20%, transparent);
  --vc-border: color-mix(in srgb, var(--accent) 28%, var(--border));
  --vc-shadow: 0 24px 56px color-mix(in srgb, var(--bg) 72%, #000 28%);
  --vc-inset: color-mix(in srgb, #fff 10%, transparent);
  --vc-frame-bg: color-mix(in srgb, var(--bg) 55%, transparent);
  --vc-frame-border: color-mix(in srgb, #fff 18%, var(--accent) 82%);
  --vc-frame-screen: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg2) 70%, var(--accent) 30%),
    color-mix(in srgb, var(--bg) 80%, transparent)
  );
  --vc-badge-text: color-mix(in srgb, var(--accent2) 80%, #fff 20%);
  --vc-sea-opacity: 0.55;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--vc-border);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 42%),
    linear-gradient(200deg, color-mix(in srgb, var(--accent2) 12%, transparent) 0%, transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 80%, var(--accent) 20%) 0%, var(--vc-surface) 100%);
  box-shadow: var(--vc-shadow), inset 0 1px 0 var(--vc-inset);
}

.viewing-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.viewing-cta__bg .cta-sea {
  opacity: var(--vc-sea-opacity);
}

.viewing-cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: viewingCtaOrb 9s ease-in-out infinite;
}

.viewing-cta__orb--1 {
  top: -18%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--vc-glow), transparent 68%);
}

.viewing-cta__orb--2 {
  bottom: -24%;
  left: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--vc-glow-2), transparent 70%);
  animation-delay: -3.5s;
}

.viewing-cta__frame {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: min(34vw, 220px);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid var(--vc-frame-border);
  background: var(--vc-frame-bg);
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--bg) 55%, #000 45%),
    inset 0 0 0 1px var(--vc-inset);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  opacity: 0.72;
  transform: rotate(4deg);
}

.viewing-cta__frame-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent2) 70%, #fff 30%);
  opacity: 0.85;
}

.viewing-cta__frame-screen {
  position: absolute;
  inset: 2.1rem 0.85rem 0.85rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    var(--vc-frame-screen);
  border: 1px solid color-mix(in srgb, var(--vc-inset) 80%, var(--border));
}

.viewing-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.viewing-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vc-badge-text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

.viewing-cta__badge .ui-icon {
  font-size: 1rem;
}

.viewing-cta__eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.viewing-cta__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.viewing-cta__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.viewing-cta__text {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 82%, var(--muted) 18%);
}

.viewing-cta__perks {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.viewing-cta__perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--text) 88%, var(--muted) 12%);
}

.viewing-cta__perks .ui-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.viewing-cta__panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  border-radius: 22px;
  background: var(--vc-panel);
  border: 1px solid color-mix(in srgb, var(--vc-inset) 70%, var(--border));
  backdrop-filter: blur(12px);
}

.viewing-cta__panel-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 78%, var(--muted) 22%);
}

.viewing-cta__btn,
.viewing-cta__phone {
  width: 100%;
}

.viewing-cta__note {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes viewingCtaOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -8px, 0) scale(1.04); }
}

[data-theme="light"] .viewing-cta {
  --vc-surface: color-mix(in srgb, #fff 92%, var(--accent) 8%);
  --vc-panel: color-mix(in srgb, #fff 82%, var(--bg2) 18%);
  --vc-glow: color-mix(in srgb, var(--accent) 20%, transparent);
  --vc-glow-2: color-mix(in srgb, var(--accent2) 16%, transparent);
  --vc-border: color-mix(in srgb, var(--accent) 24%, var(--border));
  --vc-shadow: 0 20px 48px color-mix(in srgb, var(--bg2) 14%, transparent);
  --vc-inset: color-mix(in srgb, #fff 65%, transparent);
  --vc-frame-bg: color-mix(in srgb, #fff 88%, var(--bg2) 12%);
  --vc-frame-border: color-mix(in srgb, var(--accent) 28%, var(--border));
  --vc-frame-screen: linear-gradient(
    180deg,
    color-mix(in srgb, #e0f2fe 80%, var(--accent) 20%),
    color-mix(in srgb, #fff 90%, var(--bg2) 10%)
  );
  --vc-badge-text: color-mix(in srgb, var(--accent) 78%, var(--text) 22%);
  --vc-sea-opacity: 0.42;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 38%),
    linear-gradient(200deg, color-mix(in srgb, #7dd3fc 38%, transparent) 0%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
    linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #ecfeff 100%);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .viewing-cta {
    --vc-surface: color-mix(in srgb, #fff 92%, var(--accent) 8%);
    --vc-panel: color-mix(in srgb, #fff 82%, var(--bg2) 18%);
    --vc-glow: color-mix(in srgb, var(--accent) 20%, transparent);
    --vc-glow-2: color-mix(in srgb, var(--accent2) 16%, transparent);
    --vc-border: color-mix(in srgb, var(--accent) 24%, var(--border));
    --vc-shadow: 0 20px 48px color-mix(in srgb, var(--bg2) 14%, transparent);
    --vc-inset: color-mix(in srgb, #fff 65%, transparent);
    --vc-frame-bg: color-mix(in srgb, #fff 88%, var(--bg2) 12%);
    --vc-frame-border: color-mix(in srgb, var(--accent) 28%, var(--border));
    --vc-frame-screen: linear-gradient(
      180deg,
      color-mix(in srgb, #e0f2fe 80%, var(--accent) 20%),
      color-mix(in srgb, #fff 90%, var(--bg2) 10%)
    );
    --vc-badge-text: color-mix(in srgb, var(--accent) 78%, var(--text) 22%);
    --vc-sea-opacity: 0.42;
    background:
      linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 38%),
      linear-gradient(200deg, color-mix(in srgb, #7dd3fc 38%, transparent) 0%, transparent 48%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
      linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #ecfeff 100%);
  }
}

[data-theme="dark"] .viewing-cta {
  --vc-surface: color-mix(in srgb, var(--bg2) 90%, var(--accent) 10%);
  --vc-panel: color-mix(in srgb, var(--bg) 62%, transparent);
  --vc-glow: color-mix(in srgb, var(--accent2) 30%, transparent);
  --vc-glow-2: color-mix(in srgb, var(--accent) 26%, transparent);
  --vc-border: color-mix(in srgb, var(--accent) 34%, var(--border));
  --vc-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
  --vc-inset: color-mix(in srgb, #fff 6%, transparent);
  --vc-frame-bg: color-mix(in srgb, var(--bg) 68%, transparent);
  --vc-frame-border: color-mix(in srgb, var(--accent2) 42%, var(--border));
  --vc-frame-screen: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg2) 55%, var(--accent) 45%),
    color-mix(in srgb, var(--bg) 85%, transparent)
  );
  --vc-badge-text: color-mix(in srgb, var(--accent2) 82%, #fff 18%);
  --vc-sea-opacity: 0.62;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 36%),
    linear-gradient(200deg, color-mix(in srgb, var(--accent2) 18%, transparent) 0%, transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 86%, var(--accent) 14%) 0%, var(--vc-surface) 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .viewing-cta {
    --vc-surface: color-mix(in srgb, var(--bg2) 90%, var(--accent) 10%);
    --vc-panel: color-mix(in srgb, var(--bg) 62%, transparent);
    --vc-glow: color-mix(in srgb, var(--accent2) 30%, transparent);
    --vc-glow-2: color-mix(in srgb, var(--accent) 26%, transparent);
    --vc-border: color-mix(in srgb, var(--accent) 34%, var(--border));
    --vc-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    --vc-inset: color-mix(in srgb, #fff 6%, transparent);
    --vc-frame-bg: color-mix(in srgb, var(--bg) 68%, transparent);
    --vc-frame-border: color-mix(in srgb, var(--accent2) 42%, var(--border));
    --vc-frame-screen: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg2) 55%, var(--accent) 45%),
      color-mix(in srgb, var(--bg) 85%, transparent)
    );
    --vc-badge-text: color-mix(in srgb, var(--accent2) 82%, #fff 18%);
    --vc-sea-opacity: 0.62;
    background:
      linear-gradient(165deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 36%),
      linear-gradient(200deg, color-mix(in srgb, var(--accent2) 18%, transparent) 0%, transparent 50%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
      linear-gradient(180deg, color-mix(in srgb, var(--bg2) 86%, var(--accent) 14%) 0%, var(--vc-surface) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewing-cta__orb,
  .viewing-cta__bg .cta-sea__wave,
  .viewing-cta__bg .cta-sea__shimmer {
    animation: none !important;
  }
}

/* Legacy CTA (другие страницы) */
.cta-block {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 3rem; background: linear-gradient(135deg, var(--bg2), #0f3d5c);
  border-radius: 24px; border: 1px solid var(--border);
}
.cta-block__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  margin-bottom: 2rem; padding: 1.5rem; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.filters__group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; letter-spacing: 0.02em; }
.filters__group--select { min-width: min(100%, 11rem); flex: 1 1 11rem; }
.filters .ui-select { min-width: 0; }






.prop-showcase {
  background: var(--bg);
}
.prop-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 992px) {
  .prop-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.prop-head__info { max-width: 800px; }
.prop-head__badge { margin-bottom: 1rem; }
.prop-head__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.prop-head__address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.prop-head__price-wrap {
  text-align: left;
}
@media (min-width: 992px) {
  .prop-head__price-wrap { text-align: right; }
}
.prop-head__price {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--sand);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.prop-head__price--request { font-size: 1.75rem; color: var(--text); }
.prop-head__mortgage { font-size: 1rem; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.prop-head__m2 { font-size: 0.95rem; color: var(--muted); }

.prop-gallery {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 4rem;
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .prop-gallery {
    grid-template-columns: 2fr 1fr;
    height: 550px;
  }
}
.prop-gallery__main, .prop-gallery__item {
  position: relative;
  width: 100%;
  height: 100%;
}
.prop-gallery button {
  display: block; width: 100%; height: 100%; padding: 0; border: none; background: #ffffff; cursor: zoom-in;
}
.prop-gallery img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.95; transition: opacity 0.3s, transform 0.7s; display: block;
}
.prop-gallery button:hover img { opacity: 1; transform: scale(1.02); }
.prop-gallery__grid {
  display: none;
}
@media (min-width: 768px) {
  .prop-gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
  }
}
.prop-gallery__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 600; backdrop-filter: blur(2px);
}
.prop-gallery__mobile-count {
  position: absolute; bottom: 1rem; right: 1rem; background: rgba(0,0,0,0.6); color: #fff;
  padding: 0.4rem 0.75rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem; backdrop-filter: blur(4px);
}
@media (min-width: 768px) {
  .prop-gallery__mobile-count { display: none; }
}

.prop-body {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 992px) {
  .prop-body { grid-template-columns: 1fr 380px; }
}

.prop-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
@media (max-width: 767px) {
  .prop-specs {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}
.prop-spec-item { display: flex; flex-direction: column; gap: 0.35rem; }
.prop-spec-val { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.prop-spec-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.prop-section { margin-bottom: 4rem; }
.prop-section__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--text); }
.prop-desc-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.prop-desc-content p { margin-bottom: 1.25rem; }

.prop-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}
.prop-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text);
}
.prop-feature-icon {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(45,212,191,0.15);
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}

.prop-video-grid { display: grid; gap: 1.5rem; }
.prop-video-wrapper { border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.prop-video-wrapper iframe, .prop-video-wrapper video { width: 100%; height: 100%; border: none; display: block; }
.prop-map { position: relative; z-index: 0; isolation: isolate; height: 450px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.prop-map .leaflet-container { height: 100% !important; width: 100% !important; z-index: 0 !important; }

.prop-contact-box {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}
html[data-theme="dark"] .prop-contact-box { border: 1px solid var(--border); box-shadow: none; }
.prop-contact-box__head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.prop-contact-box__avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.prop-contact-box__name { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.prop-contact-box__status { font-size: 0.95rem; color: var(--muted); }
.prop-contact-box__actions { display: flex; flex-direction: column; gap: 1rem; }
.prop-btn-full { width: 100%; padding: 1.1rem; font-size: 1.05rem; border-radius: 16px; }

/* Property page */
.pr-page { background: var(--bg); }

.pr-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
  color: #fff;
  margin-bottom: 4rem;
}
.pr-hero__bg {
  position: absolute; inset: 0; z-index: -1;
}
.pr-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.pr-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}

.breadcrumb--light { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.breadcrumb--light a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.breadcrumb--light a:hover { color: #fff; }

.pr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 992px) {
  .pr-hero__grid { grid-template-columns: 1fr auto; gap: 4rem; }
}

.pr-badge { margin-bottom: 1rem; display: inline-block; }
.pr-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
}
.pr-address {
  font-size: 1.1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pr-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.pr-spec-pill {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.pr-price-box {
  margin-bottom: 1.5rem;
}
@media (min-width: 992px) {
  .pr-price-box { text-align: right; }
}
.pr-price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.pr-price--request { font-size: 2rem; }
.pr-mortgage {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}

.pr-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 280px;
}
.pr-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  border-radius: 16px;
}
.pr-btn--white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.pr-btn--white:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.pr-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.pr-complex-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 4rem;
}
.pr-complex-link__label { font-size: 1rem; color: var(--muted); }
.pr-complex-link__val {
  font-size: 1.25rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 0.5rem;
}

.pr-section { margin-bottom: 4rem; }
.pr-section__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text);
}
.pr-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

.pr-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.pr-photo-item {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: #ffffff;
}
.pr-photo-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; opacity: 0.9;
}
.pr-photo-item:hover img { transform: scale(1.05); opacity: 1; }

.pr-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pr-tag {
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

.pr-video-grid { display: grid; gap: 1.5rem; }
.pr-video-wrapper { border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.pr-video-wrapper iframe, .pr-video-wrapper video { width: 100%; height: 100%; border: none; display: block; }

.pr-map { position: relative; z-index: 0; isolation: isolate; height: 450px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.pr-map .leaflet-container { height: 100% !important; width: 100% !important; z-index: 0 !important; }

.pr-cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}
.pr-cta-banner__content h3 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.pr-cta-banner__content p { font-size: 1.15rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.6; }
.pr-cta-banner__actions { display: flex; gap: 1rem; width: 100%; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) {
  .pr-hero { min-height: 85vh; padding-bottom: 2rem; }
  .pr-cta-banner__actions { flex-direction: column; }
  .pr-cta-banner__actions .btn { width: 100%; }
}

/* Contacts page */
.page-contacts .section:first-of-type { padding-top: 0; }

.ct-hero {
  position: relative;
  padding: clamp(6.5rem, 14vw, 8.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  overflow: hidden;
}
.ct-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 40%, transparent), transparent 55%);
}
.ct-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.ct-hero__orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -8%;
  right: -6%;
  background: var(--accent);
}
.ct-hero__orb--2 {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  bottom: 0;
  left: -4%;
  background: var(--accent2);
  opacity: 0.25;
}
.ct-hero__inner { position: relative; max-width: 760px; }
.ct-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ct-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.ct-hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.ct-hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 58ch;
}

.ct-zero { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.ct-zero__card {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 24px;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)),
    var(--surface);
  box-shadow: 0 24px 56px color-mix(in srgb, var(--accent) 12%, transparent);
}
@media (min-width: 720px) {
  .ct-zero__card {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem;
  }
}
.ct-zero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #14b8a6);
  color: #042f2e;
  text-align: center;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 35%, transparent);
  flex-shrink: 0;
}
.ct-zero__badge-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.ct-zero__badge-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}
.ct-zero__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.ct-zero__text {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.ct-zero__text strong { color: var(--text); }
.ct-zero__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.ct-zero__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: var(--text);
}
.ct-zero__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.ct-main__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 960px) {
  .ct-main__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.ct-about__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ct-about__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.ct-about__title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.ct-about__text {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.ct-about__text:last-of-type { margin-bottom: 1.5rem; }

.ct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (max-width: 520px) {
  .ct-stats { grid-template-columns: 1fr; }
}
.ct-stat {
  padding: 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.ct-stat__val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.ct-stat__lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.ct-services {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.ct-services li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent) 4%);
}
.ct-services__icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.ct-services__icon .ui-icon { width: 1.1rem; height: 1.1rem; font-size: 1.1rem; }
.ct-services li strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}
.ct-services li p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.ct-form-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--bg2) 18%, transparent);
}
.ct-form-card__head { margin-bottom: 1.25rem; }
.ct-form-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.ct-form-card__sub {
  font-size: 0.88rem;
  color: var(--muted);
}
.ct-form .btn--lg { margin-top: 0.25rem; }

.ct-channels__head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2rem;
}
.ct-channels__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.ct-channels__sub {
  color: var(--muted);
  font-size: 0.95rem;
}
.ct-channels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto 1.5rem;
}
.ct-channel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ct-channel--link:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 10%, transparent);
  color: inherit;
}
.ct-channel__icon {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  color: var(--accent);
}
.ct-channel__icon .ui-icon { width: 1.25rem; height: 1.25rem; font-size: 1.25rem; }
.ct-channel__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ct-channel__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
a.ct-channel__value:hover { color: var(--accent); }
.ct-channel__meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.ct-messengers {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ct-messengers { grid-template-columns: repeat(2, 1fr); }
}
.ct-messenger {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ct-messenger:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 14%, transparent);
  color: inherit;
}
.ct-messenger--telegram {
  border-color: color-mix(in srgb, #2aabee 35%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, #2aabee 10%, var(--surface)), var(--surface));
}
.ct-messenger--max {
  border-color: transparent;
  background: var(--max-gradient);
  color: #fff;
}
.ct-messenger--max:hover {
  border-color: transparent;
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(73, 48, 224, 0.28);
  color: #fff;
}
.ct-messenger--max .ct-messenger__handle,
.ct-messenger--max .ct-messenger__text,
.ct-messenger--max .ct-messenger__cta {
  color: rgba(255, 255, 255, 0.92);
}
.ct-messenger--max .ct-messenger__handle { color: #fff; }
.ct-messenger--max .ct-messenger__icon {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ct-messenger__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.ct-messenger__icon,
.ct-messenger__glyph {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: contain;
}
.ct-messenger__glyph {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #2aabee 20%, transparent);
  font-size: 1.2rem;
}
.ct-messenger__glyph .ui-icon { width: 1.35rem; height: 1.35rem; font-size: 1.35rem; }
.ct-messenger--telegram .ct-messenger__glyph {
  color: #2aabee;
}
.ct-messenger__name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
}
.ct-messenger__handle {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.ct-messenger__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.ct-messenger__cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.ct-legal { padding-top: 0; }
.ct-legal__shell {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 6%, var(--surface)), var(--surface)),
    var(--surface);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--bg2) 14%, transparent);
}
@media (min-width: 900px) {
  .ct-legal__shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 2.5rem;
  }
}
.ct-legal__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ct-legal__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.ct-legal__brand-line {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.ct-legal__brand-line strong { color: var(--text); }
.ct-legal__brand-mark {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.ct-legal__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.ct-legal__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ct-legal__facts li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.ct-legal__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .ct-legal__tiles { grid-template-columns: 1fr; }
}
.ct-legal-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 35%, var(--surface));
  min-height: 4.5rem;
}
.ct-legal-tile--wide { grid-column: 1 / -1; }
.ct-legal-tile__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ct-legal-tile__value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}
.ct-legal-tile__value--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
a.ct-legal-tile__link {
  color: var(--accent);
  text-decoration: none;
}
a.ct-legal-tile__link:hover { color: #5eead4; }
.ct-legal__note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  text-align: center;
}

/* Form */
.form label { display: block; margin-bottom: 1rem; }
.form label span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }
.form input, .form textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit;
}
.form__note { font-size: 0.85rem; margin-top: 0.75rem; min-height: 1.2em; }
.form__note.ok { color: var(--accent); }
.form__note.err { color: var(--accent2); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.modal__box {
  position: relative; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; width: min(420px, 100%); max-height: 90vh; overflow-y: auto;
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer;
}
.modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal__heading { margin: 0 0 0.5rem; font-size: 1.35rem; line-height: 1.25; }
.modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal__swap { position: relative; }
.modal__state {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.modal__state--form.is-active { opacity: 1; transform: translateY(0); position: relative; }
.modal__state--form:not(.is-active) {
  opacity: 0; transform: translateY(10px); pointer-events: none; position: absolute; inset: 0; visibility: hidden;
}
.modal__state--success.is-active { opacity: 1; transform: translateY(0); position: relative; }
.modal__state--success:not(.is-active) {
  opacity: 0; transform: translateY(10px); pointer-events: none; position: absolute; inset: 0; visibility: hidden;
}
.modal-success { text-align: center; padding: 0.5rem 0 0.25rem; }
.modal-success__icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 212, 191, 0.15); color: var(--accent); font-size: 1.75rem; font-weight: 700;
}
.modal-success__title { margin: 0 0 0.75rem; font-size: 1.35rem; }
.modal-success__text { color: var(--muted); margin: 0 0 1.5rem; line-height: 1.5; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); margin-top: 4rem; overflow-x: clip; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; min-width: 0; }
.footer__grid > div { min-width: 0; }
.footer__tagline { color: var(--muted); margin-top: 0.5rem; font-size: 0.9rem; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
.footer__links { list-style: none; }
.footer__links a { color: var(--text); }
.contact-phone-link {
  gap: var(--icon-gap-contact);
}
.btn.contact-phone-link {
  gap: var(--icon-gap-contact);
}
.contact-phone-link .btn__icon .ui-icon {
  width: 1em;
  height: 1em;
  color: var(--accent);
}
.footer__contact-btn .btn__icon .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
  color: var(--accent);
}
.footer__contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.footer__contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--icon-gap-contact);
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}
.footer__contact-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
}
.footer__contact-btn > span:not(.btn__icon):not(.messenger-link__label) {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  flex: 0 1 auto;
}
.footer__contact-btn .btn__icon { line-height: 0; flex-shrink: 0; }
.footer__contact-btn--max {
  border-color: transparent;
}
.footer__contact-btn .messenger-link__label {
  flex: 0 1 auto;
  text-align: center;
}
.footer__email {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer__email a { color: var(--text); }
.footer__hours {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  width: 100%;
}
.footer__address {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  align-items: flex-start;
}
.footer__address .ui-icon {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.12em;
  color: var(--accent);
  font-size: 0.95rem;
}
.footer__messengers { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.15rem; min-width: 0; }
.footer__tg {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--icon-gap-contact);
  white-space: nowrap;
  line-height: 1;
  max-width: 100%;
}
.messenger-link {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--icon-gap-sm);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.messenger-link__icon {
  width: 1.125rem;
  height: 1.125rem;
  max-width: 1.125rem;
  max-height: 1.125rem;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}
.messenger-link__label {
  flex: 0 1 auto;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}
.messenger-link__icon--ph {
  width: 1.125rem;
  height: 1.125rem;
  font-size: 1.125rem;
}
.messenger-link__icon--ph > .ui-icon {
  width: 1.125rem;
  height: 1.125rem;
  font-size: 1.125rem;
}
.messenger-link--max,
.btn--max {
  background: var(--max-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.messenger-link--max:hover,
.btn--max:hover {
  filter: brightness(1.06);
  color: #fff !important;
  border-color: transparent !important;
}
.messenger-link--telegram {
  border-color: color-mix(in srgb, #2aabee 40%, var(--border));
}
.header__actions .messenger-link.btn {
  gap: var(--icon-gap-contact);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.footer__contact-btn.messenger-link,
.footer__tg,
.footer__messengers .messenger-link {
  gap: var(--icon-gap-contact);
}
.footer__messengers .messenger-link {
  flex-wrap: nowrap;
}
.footer__messengers .messenger-link--max {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  overflow: hidden;
}
.footer__contact-btn--max {
  padding: 0.5rem 0.75rem;
}
.footer__contact-btn--max .messenger-link__label {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.footer__messengers .messenger-link--max .messenger-link__icon {
  border-radius: 0.35rem;
}
.footer__legal { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.footer__disclaimer { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.5rem; }
.footer__org { font-size: 0.78rem; color: var(--muted); margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer__legal-links a { color: var(--muted); }
.footer__legal-links a:hover { color: var(--text); }
.form__legal { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.4; }
.form__legal a { color: var(--accent); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.page-legal__updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.legal-prose { max-width: 42rem; color: var(--text); line-height: 1.65; }
.legal-prose h2 { font-size: 1.1rem; margin: 2rem 0 0.75rem; font-family: var(--font); }
.legal-prose ul { margin: 0 0 1rem 1.25rem; }
.legal-prose p { margin-bottom: 1rem; color: var(--muted); }
.legal-prose p:first-child { color: var(--text); }
.legal-prose__note { font-size: 0.85rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Form */
.demo-badge { background: var(--accent2); color: #fff; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }

.empty { text-align: center; padding: 4rem 0; }
.empty p { color: var(--muted); margin-bottom: 1.5rem; }
.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Admin login */
.page-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-login .header { position: fixed; }
.page-login main { flex: 1; display: flex; flex-direction: column; }
.page-login__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-login__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-login__bg .hero__orb--1 { width: 320px; height: 320px; top: 10%; right: 5%; }
.page-login__bg .hero__orb--2 { width: 260px; height: 260px; bottom: 15%; left: 0; }
.page-login__card {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  padding: 2rem 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}
.page-login__head { text-align: center; margin-bottom: 1.75rem; }
.page-login__head .logo { justify-content: center; margin-bottom: 0.75rem; font-size: 1.5rem; }
.page-login__head h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.page-login__head h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 600; }
.page-login__head p { font-size: 0.9rem; color: var(--muted); }
.page-login__back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.page-login__back:hover { color: var(--accent); }
.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert--err {
  background: rgba(255, 107, 74, 0.15);
  border: 1px solid var(--accent2);
  color: var(--accent2);
}
[data-theme="light"] .alert--err { color: #c2410c; }

/* Theme switch */
.theme-switch {
  position: relative;
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.theme-switch__trigger {
  min-width: 36px;
  min-height: 36px;
  border: none;
  background: var(--accent);
  color: #042f2e;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.theme-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2px;
  min-width: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.theme-switch__menu[hidden] { display: none !important; }
.theme-switch__options {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-switch__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1),
    background-color 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch__indicator,
  .theme-switch__trigger { transition: none; }
}
.theme-switch__btn {
  position: relative;
  z-index: 1;
  min-width: 36px;
  min-height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: color 0.25s ease;
}
.theme-switch__btn .ui-icon { width: 1rem; height: 1rem; font-size: 1rem; }
.theme-switch__btn.active {
  color: #042f2e;
}
.theme-switch__btn:hover:not(.active) {
  color: var(--text);
}
.hide-mobile { display: inline-flex; }
/* Главная — блок «Жизнь у моря» */
.section--sea-life {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.sea-life {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 992px) {
  .sea-life {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
}
.sea-life__title {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}
.sea-life__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 38rem;
}
.sea-life__partner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 10%, var(--surface)),
    color-mix(in srgb, var(--accent) 4%, var(--bg))
  );
}
.sea-life__partner-icon {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.sea-life__partner-icon .ui-icon {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 1.2rem;
}
.sea-life__partner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.sea-life__partner-text strong {
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text);
}
.sea-life__partner-text span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.sea-life__grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .sea-life__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sea-life__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.sea-life__card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--bg) 55%, #000 45%);
}
.sea-life__card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sea-life__card-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  transition: background-color 0.2s, color 0.2s;
}
.sea-life__card:hover .sea-life__card-icon {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
}
.sea-life__card-icon .ui-icon {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 1.1rem;
}
.sea-life__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.sea-life__card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.sea-life__card-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.sea-life__card-arrow {
  align-self: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.sea-life__card:hover .sea-life__card-arrow {
  opacity: 1;
  color: var(--accent);
  transform: translateX(2px);
}
.sea-life__card-arrow .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
}
@media (max-width: 559px) {
  .section--sea-life {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .sea-life__partner {
    margin-top: 0.85rem;
  }
}

.footer__domain { margin-top: 0.5rem; font-size: 0.9rem; }

/* Map */
.property-map {
  position: relative;
  width: 100%;
  height: 280px;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
  z-index: 0;
  isolation: isolate;
}
@media (min-width: 768px) { .property-map { height: 400px; min-height: 400px; } }
.property-map .leaflet-container,
#map-picker .leaflet-container {
  height: 100% !important;
  width: 100% !important;
  z-index: 0 !important;
  font-family: var(--font);
  cursor: grab;
  touch-action: none;
}
.property-map .leaflet-container:active,
#map-picker .leaflet-container:active { cursor: grabbing; }
.leaflet-container { font-family: var(--font); }
.leaflet-pane { z-index: 1; }
.leaflet-top, .leaflet-bottom { z-index: 2; }
.pv-map .leaflet-pane,
.pv-map .leaflet-map-pane,
.pv-map .leaflet-tile-pane,
.pv-map .leaflet-overlay-pane,
.pv-map .leaflet-shadow-pane,
.pv-map .leaflet-marker-pane,
.pv-map .leaflet-tooltip-pane,
.pv-map .leaflet-popup-pane,
.pv-map .leaflet-top,
.pv-map .leaflet-bottom,
.prop-map .leaflet-pane,
.prop-map .leaflet-map-pane,
.prop-map .leaflet-tile-pane,
.prop-map .leaflet-overlay-pane,
.prop-map .leaflet-shadow-pane,
.prop-map .leaflet-marker-pane,
.prop-map .leaflet-tooltip-pane,
.prop-map .leaflet-popup-pane,
.prop-map .leaflet-top,
.prop-map .leaflet-bottom,
.pr-map .leaflet-pane,
.pr-map .leaflet-map-pane,
.pr-map .leaflet-tile-pane,
.pr-map .leaflet-overlay-pane,
.pr-map .leaflet-shadow-pane,
.pr-map .leaflet-marker-pane,
.pr-map .leaflet-tooltip-pane,
.pr-map .leaflet-popup-pane,
.pr-map .leaflet-top,
.pr-map .leaflet-bottom,
.property-map .leaflet-pane,
.property-map .leaflet-map-pane,
.property-map .leaflet-tile-pane,
.property-map .leaflet-overlay-pane,
.property-map .leaflet-shadow-pane,
.property-map .leaflet-marker-pane,
.property-map .leaflet-tooltip-pane,
.property-map .leaflet-popup-pane,
.property-map .leaflet-top,
.property-map .leaflet-bottom {
  z-index: 1 !important;
}
.leaflet-control-attribution,
.leaflet-bottom.leaflet-right .leaflet-control-attribution {
  display: none !important;
}

/* Articles */
.grid--articles {
  align-items: start;
}
.article-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.article-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.article-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; background: #ffffff; }
.article-card__body { padding: 1.25rem; }
.article-card--compact .article-card__body { padding: 0.9rem 1rem 1rem; }
.article-card--compact h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0.35rem 0 0.4rem;
}
.article-card--compact p {
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__date { font-size: 0.8rem; color: var(--muted); }
.article-content { max-width: 720px; margin: 0 auto; line-height: 1.65; }
.article-content img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; height: auto; }
.article-content h2, .article-content h3 { margin: 1.5rem 0 0.75rem; color: var(--text); }
.article-content p { color: var(--muted); margin: 0 0 1rem; }
.article-content p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { margin: 0 0 1rem 1.25rem; color: var(--muted); }
.article-content li { margin-bottom: 0.35rem; }
.article-content a { color: var(--accent); }

/* Страница района */
.district-page__hero {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}
.district-page__type {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
}
.district-page__hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.district-page__lead {
  margin: 0 auto 1.5rem;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}
.district-page__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.district-page__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.district-page__stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}
.district-page__stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}
.district-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.district-page__content {
  margin-top: 2rem;
}
.district-page__footer-cta {
  text-align: center;
}
.district-page__footer-cta h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.district-page__footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.article-page__cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.article-share {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1rem auto 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 720px;
  text-align: center;
}
.article-share__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.article-share__widget {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.article-inline-cta {
  --aic-surface: color-mix(in srgb, var(--bg2) 88%, var(--accent) 12%);
  --aic-panel: color-mix(in srgb, var(--bg) 55%, transparent);
  --aic-panel-border: var(--border);
  --aic-glow: color-mix(in srgb, var(--accent) 26%, transparent);
  --aic-shadow: 0 18px 44px color-mix(in srgb, var(--bg) 70%, #000 30%);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 2.25rem auto;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 40%),
    linear-gradient(200deg, color-mix(in srgb, var(--accent2) 10%, transparent) 0%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 78%, #0e7490 22%) 0%, var(--aic-surface) 100%);
  box-shadow: var(--aic-shadow);
}
.article-inline-cta__glow {
  position: absolute;
  inset: -50% auto auto -25%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aic-glow), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: ctaSeaGlow 7s ease-in-out infinite;
}
.article-inline-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.65rem);
}
@media (min-width: 640px) {
  .article-inline-cta__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }
}
.article-inline-cta__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-inline-cta__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.article-inline-cta__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}
.article-inline-cta__panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--aic-panel-border);
  background: var(--aic-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: min(100%, 220px);
}
.article-inline-cta__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
/* Старый формат CTA в уже сохранённых статьях */
.article-inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 !important;
}
.article-inline-cta > p:not(.article-inline-cta__eyebrow):not(.article-inline-cta__actions) {
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.article-inline-cta > h3:not(.article-inline-cta__title) {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text);
}

[data-theme="light"] .article-inline-cta {
  --aic-surface: color-mix(in srgb, #fff 92%, var(--accent) 8%);
  --aic-panel: color-mix(in srgb, #fff 84%, var(--bg2) 16%);
  --aic-shadow: 0 16px 40px color-mix(in srgb, var(--bg2) 12%, transparent);
  --aic-glow: color-mix(in srgb, var(--accent) 18%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 38%),
    linear-gradient(200deg, color-mix(in srgb, #7dd3fc 36%, transparent) 0%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
    linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #ecfeff 100%);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .article-inline-cta {
    --aic-surface: color-mix(in srgb, #fff 92%, var(--accent) 8%);
    --aic-panel: color-mix(in srgb, #fff 84%, var(--bg2) 16%);
    --aic-shadow: 0 16px 40px color-mix(in srgb, var(--bg2) 12%, transparent);
    --aic-glow: color-mix(in srgb, var(--accent) 18%, transparent);
    background:
      linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 38%),
      linear-gradient(200deg, color-mix(in srgb, #7dd3fc 36%, transparent) 0%, transparent 48%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
      linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #ecfeff 100%);
    border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  }
}
[data-theme="dark"] .article-inline-cta {
  --aic-surface: color-mix(in srgb, var(--bg2) 90%, var(--accent) 10%);
  --aic-panel: color-mix(in srgb, var(--bg) 62%, transparent);
  --aic-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
  --aic-glow: color-mix(in srgb, var(--accent) 30%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 36%),
    linear-gradient(200deg, color-mix(in srgb, #0e7490 40%, transparent) 0%, transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
    linear-gradient(180deg, #0a2540 0%, color-mix(in srgb, var(--bg2) 86%, #0d4a5c 14%) 100%);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .article-inline-cta {
    --aic-surface: color-mix(in srgb, var(--bg2) 90%, var(--accent) 10%);
    --aic-panel: color-mix(in srgb, var(--bg) 62%, transparent);
    --aic-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
    --aic-glow: color-mix(in srgb, var(--accent) 30%, transparent);
    background:
      linear-gradient(165deg, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 36%),
      linear-gradient(200deg, color-mix(in srgb, #0e7490 40%, transparent) 0%, transparent 50%),
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
      linear-gradient(180deg, #0a2540 0%, color-mix(in srgb, var(--bg2) 86%, #0d4a5c 14%) 100%);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  }
}

.articles-page__cta {
  max-width: 960px;
  margin: 0 auto;
}

.articles-page__cta .home-cta {
  margin: 0;
}

.page-hero__meta {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pagination__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination__link.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

.pagination__ellipsis {
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pagination__btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.pagination__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.article-page__footer-cta {
  margin: 2.75rem auto 0;
  max-width: 720px;
  display: flex;
  justify-content: center;
}
.article-page__footer-cta .home-cta {
  margin: 0;
  width: 100%;
}
.article-page .article-content,
.article-page h1,
.article-page > .container > .article-card__date,
.article-page > .container > .breadcrumb {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.article-page > .container > .breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}
.article-page > .container > .breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.article-page > .container > .breadcrumb a:hover {
  color: var(--accent);
}
.article-page > .container > .breadcrumb span {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}
.article-page h1 {
  margin-top: 0;
}
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 2rem 0 1rem;
  max-width: 720px;
}
.article-gallery__item {
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  cursor: zoom-in;
  background: #ffffff;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.article-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-video {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 720px;
  border: 1px solid var(--border);
}
.article-video iframe,
.article-video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.article-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .prop-body { grid-template-columns: 1fr; }
  .prop-head__price-wrap { text-align: left; margin-top: 1rem; }
  .prop-head { gap: 1rem; }
  .prop-gallery { height: 40vh; min-height: 300px; border-radius: 16px; }
  .prop-specs {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .burger { display: block; }
  .hide-mobile { display: none !important; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .header__inner { gap: 0.75rem; justify-content: space-between; }
  .logo { flex-shrink: 0; min-width: 0; }
  .footer { padding: 2.5rem 0 1.5rem; margin-top: 2.5rem; }
  .footer .container {
    width: min(1200px, 100%);
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    box-sizing: border-box;
  }
  .footer__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.35rem;
    margin-bottom: 1.35rem;
  }
  .footer__brand {
    order: 1;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .footer__brand .logo { justify-content: flex-start; }
  .footer__brand .footer__domain { margin-top: 0.35rem; }
  .footer__tagline { display: none; }
  .footer h4 {
    text-align: left;
    margin-bottom: 0.65rem;
  }
  .footer__contact {
    order: 2;
    width: 100%;
  }
  .footer__nav {
    order: 3;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .footer__nav .footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .footer__contact-card {
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 90%, var(--bg));
    width: 100%;
    box-sizing: border-box;
  }
  .footer__contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.35rem;
  }
  .footer__contact-btn,
  .footer__contact-btn.messenger-link {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    box-sizing: border-box;
  }
  .footer__contact-btn > span:not(.btn__icon):not(.messenger-link__label),
  .footer__contact-btn .messenger-link__label {
    min-width: 0;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    text-align: center;
  }
  .footer__contact-meta {
    gap: 0.5rem;
    width: 100%;
  }
  .footer__email {
    margin: 0;
    text-align: left;
    font-size: 0.88rem;
  }
  .footer__hours {
    margin: 0;
    text-align: center;
    font-size: 0.88rem;
    width: 100%;
  }
  .footer__messengers {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0;
  }
  .footer__tg,
  .footer__messengers .messenger-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-sizing: border-box;
    white-space: normal;
    flex-wrap: nowrap;
    max-width: none;
  }
  .footer__address {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.15rem;
    width: 100%;
    text-align: left;
  }
  .footer__legal {
    padding-left: 0;
    padding-right: 0;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
  }
  .footer__legal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .home-cta--band .home-cta__inner {
    grid-template-columns: 1fr;
  }
  .home-cta__messengers { flex-direction: column; }
  .home-cta__messengers .btn { width: 100%; }
  .viewing-cta__inner {
    grid-template-columns: 1fr;
  }
  .viewing-cta__frame {
    display: none;
  }
  .viewing-cta__panel {
    padding: 1.1rem;
  }
  .filters:not(.filters--catalog) { flex-direction: column; align-items: stretch; }
  .filters .ui-select__trigger, .btn { min-height: 44px; }
}
