/* Визуальная система портала: спокойный тёмный фон, тонкие границы и компактные карточки. */
:root {
  --bg: #191919;
  --bg-soft: #202020;
  --bg-card: #202020;
  --bg-card-hover: #242424;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #e3e2e0;
  --text-muted: rgba(227, 226, 224, .74);
  --text-soft: rgba(227, 226, 224, .5);
  --primary: #58d6c1;
  --primary-2: #6cb6ff;
  --accent: #f5c16c;
  --gradient: #58d6c1;
  --gradient-warm: #f5c16c;
  --gradient-hero: none;
  --shadow: none;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-full: 11px;
  --container: 1180px;
}

html { background: var(--bg); }
body { background: var(--bg); }

.header,
.header.scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(25, 25, 25, .94);
  backdrop-filter: blur(14px);
}

.logo-mark {
  border-color: var(--border);
  border-radius: 12px;
  background: #f3f1ec;
  box-shadow: none;
}

.nav a { border-radius: 9px; }
.nav a:hover { background: var(--bg-soft); }

.btn {
  min-height: 43px;
  border-radius: 11px;
  padding: 10px 17px;
  font-weight: 750;
  box-shadow: none !important;
}
.btn-primary { border: 1px solid var(--primary); background: var(--primary); color: #10211f; }
.btn-wa { border: 1px solid var(--primary); background: var(--primary); color: #10211f; }
.btn-tg { border: 1px solid rgba(108, 182, 255, .5); background: rgba(108, 182, 255, .12); color: var(--primary-2); }
.btn-ghost { border: 1px solid var(--border); background: var(--bg-soft); backdrop-filter: none; }
.btn:hover { transform: translateY(-1px); }

.hero {
  min-height: auto;
  overflow: visible;
  background: var(--bg);
  padding: calc(var(--header-h) + 46px) 0 70px;
}
.hero::before { display: none; }
.hero-grid {
  position: relative;
  min-height: 610px;
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(88, 214, 193, .08), var(--bg-card) 48%, rgba(108, 182, 255, .06));
  padding: clamp(38px, 6vw, 72px);
}
.hero-grid::after {
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  right: -280px;
  top: -310px;
  border: 1px solid rgba(108, 182, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(108, 182, 255, .025), 0 0 0 140px rgba(88, 214, 193, .018);
  content: "";
}
.hero-content,
.hero-card { position: relative; z-index: 1; }
.hero-badge {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.hero-badge-dot { width: 24px; height: 1px; border-radius: 0; background: var(--primary); box-shadow: none; }
.hero-badge-dot span { display: none; }
.hero h1 { max-width: 680px; font-size: clamp(3.1rem, 6vw, 4.75rem); line-height: .97; letter-spacing: -.055em; }
.hero h1 .grad { color: var(--primary); background: none; -webkit-text-fill-color: currentColor; font-family: Georgia, serif; font-weight: 400; }
.hero-lead { color: var(--text-muted); }
.hero-card {
  border-color: rgba(88, 214, 193, .25);
  border-radius: 20px;
  background: rgba(25, 25, 25, .72);
  box-shadow: none;
}
.hero-card::before { display: none; }
.mini-item { border-color: var(--border); background: transparent; border-radius: 10px; }
.mini-item:hover { border-color: rgba(88, 214, 193, .4); background: rgba(88, 214, 193, .06); }
.mini-icon { border: 1px solid rgba(88, 214, 193, .22); background: rgba(88, 214, 193, .08); }
.stat { border-color: var(--border); }

.section { padding: 88px 0; }
.section-label { color: var(--primary); font-size: .7rem; font-weight: 820; }
.section-label::before { width: 24px; height: 1px; border-radius: 0; box-shadow: none; }
.section-title { letter-spacing: -.045em; }
.services,
.process,
.airport,
.reviews,
.contact { background: var(--bg); }
.services::before { display: none; }
.services-grid { gap: 13px; }
.service-card,
.review-card,
.why-item,
.process-step {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: none;
}
.service-card { padding: 24px; }
.service-card:hover,
.review-card:hover,
.why-item:hover { border-color: rgba(88, 214, 193, .42); transform: translateY(-2px); box-shadow: none; }
.service-card.featured { border-color: rgba(88, 214, 193, .25); background: linear-gradient(145deg, rgba(88, 214, 193, .08), var(--bg-card) 64%); }
.service-card.featured::before { display: none; }
.service-icon,
.why-item-icon { border: 1px solid rgba(88, 214, 193, .25); border-radius: 13px; background: rgba(88, 214, 193, .08); }
.service-list li::before { box-shadow: none; }
.service-card .btn { width: 100%; }

.why-visual {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(108, 182, 255, .08), var(--bg-card));
  box-shadow: none;
}
.why-visual::before { opacity: .25; }
.why-visual-badge,
.airport-banner,
.contact-box {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: none;
  backdrop-filter: none;
}
.airport-banner { border-radius: 24px; background: linear-gradient(135deg, rgba(88, 214, 193, .08), var(--bg-card)); }
.airport-banner::after { opacity: .2; }
.contact-box { border-radius: 24px; background: var(--bg-card); }
.channel,
.form-group input,
.form-group select,
.form-group textarea { border-color: var(--border); background: var(--bg); }
.footer { border-color: var(--border); }
.footer-brand-logo { border-color: var(--border); border-radius: 15px; box-shadow: none; }
.float-btn { width: 50px; height: 50px; border-radius: 14px; box-shadow: none; }
.float-btn.wa { background: var(--primary); }
.float-btn.tg { border: 1px solid rgba(108, 182, 255, .45); background: #263342; }

/* Каталог недвижимости — композиция и карточки как на портале. */
.realty-page { padding: calc(var(--header-h) + 42px) 0 90px; }
.realty-intro {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(88, 214, 193, .08), var(--bg-card) 58%);
  padding: clamp(30px, 6vw, 64px);
}
.realty-intro::after {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -155px;
  top: -185px;
  border: 1px solid rgba(88, 214, 193, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(88, 214, 193, .025);
  content: "";
}
.realty-intro > * { position: relative; z-index: 1; }
.realty-intro h1 { max-width: 760px; margin: 14px 0 15px; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.realty-intro > p:last-of-type { max-width: 680px; color: var(--text-muted); font-size: 1.05rem; }
.realty-intro-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.realty-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 42px 0 20px; }
.realty-toolbar h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); letter-spacing: -.04em; }
.realty-filter-groups { display: grid; gap: 10px; min-width: min(100%, 560px); }
.realty-filter-group { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; }
.realty-filter-group > span { color: var(--text-soft); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.realty-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.realty-filter { border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); padding: 7px 13px; color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.realty-filter.is-active { border-color: var(--primary); background: rgba(88, 214, 193, .1); color: var(--primary); }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.property-status { margin: -8px 0 14px; color: var(--text-soft); font-size: .78rem; }
.property-card { min-width: 0; height: 100%; display: flex; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); cursor: pointer; flex-direction: column; transition: border-color .18s ease, transform .18s ease; }
.property-card[hidden] { display: none; }
.property-card:hover { border-color: rgba(88, 214, 193, .45); transform: translateY(-2px); }
.property-card:focus-visible { border-color: var(--primary); outline: 3px solid rgba(88, 214, 193, .14); outline-offset: 3px; }
.property-cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(145deg, rgba(108, 182, 255, .11), #1b1b1b); color: rgba(227, 226, 224, .18); }
.property-cover[data-tone="coast"] { background: linear-gradient(145deg, rgba(88, 214, 193, .14), #1b2423); }
.property-cover[data-tone="warm"] { background: linear-gradient(145deg, rgba(245, 193, 108, .14), #24211b); }
.property-cover svg { width: 62px; height: 62px; }
.property-cover img { width: 100%; height: 100%; object-fit: cover; }
.property-deal { position: absolute; left: 11px; top: 11px; border-radius: 7px; background: rgba(108, 182, 255, .9); padding: 4px 9px; color: #101820; font-size: .66rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.property-deal.sale { background: rgba(88, 214, 193, .9); color: #10211f; }
.property-photo-count { position: absolute; right: 11px; bottom: 11px; border-radius: 7px; background: rgba(0, 0, 0, .58); padding: 4px 8px; color: white; font-size: .68rem; font-weight: 700; }
.property-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.property-price { font-size: 1.32rem; font-weight: 850; letter-spacing: -.035em; }
.property-card h3 { min-height: 2.7em; margin-top: 4px; font-size: 1rem; line-height: 1.35; letter-spacing: -.015em; }
.property-place { margin-top: 5px; color: var(--text-soft); font-size: .8rem; }
.property-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.property-facts span { border: 1px solid var(--border); border-radius: 7px; padding: 3px 7px; color: var(--text-muted); font-size: .72rem; }
.property-facts .guarantee { border-color: rgba(245, 193, 108, .35); color: var(--accent); }
.property-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; border-top: 1px solid var(--border); padding-top: 13px; }
.property-details,
.property-whatsapp { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; font-size: .76rem; font-weight: 800; }
.property-details { justify-content: space-between; border-color: rgba(88, 214, 193, .32); background: rgba(88, 214, 193, .08); color: var(--primary); }
.property-whatsapp { color: var(--text-muted); }
.property-details:hover { background: rgba(88, 214, 193, .14); }
.property-whatsapp:hover { border-color: rgba(88, 214, 193, .4); color: var(--primary); }

/* Полная страница объекта. */
.property-page { padding: calc(var(--header-h) + 34px) 0 90px; }
.property-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--text-muted); font-size: .82rem; font-weight: 750; }
.property-back:hover { color: var(--primary); }
.property-detail { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); gap: 20px; align-items: start; }
.property-gallery { min-width: 0; }
.property-gallery-stage { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(145deg, rgba(108, 182, 255, .11), #1b1b1b); color: rgba(227, 226, 224, .18); touch-action: pan-y; }
.property-gallery-stage[data-tone="coast"] { background: linear-gradient(145deg, rgba(88, 214, 193, .14), #1b2423); }
.property-gallery-stage[data-tone="warm"] { background: linear-gradient(145deg, rgba(245, 193, 108, .14), #24211b); }
.property-gallery-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #141414; opacity: 0; transform: scale(1.015); transition: opacity .28s ease, transform .38s ease; pointer-events: none; }
.property-gallery-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.property-gallery-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.property-gallery-placeholder svg { width: 100px; height: 100px; }
.property-gallery-stage .property-deal { left: 16px; top: 16px; z-index: 3; }
.gallery-arrow { position: absolute; top: 50%; z-index: 4; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(15,15,15,.76); color: white; font-size: 2rem; line-height: 1; transform: translateY(-50%); backdrop-filter: blur(8px); transition: background .18s ease, transform .18s ease; }
.gallery-arrow:hover { background: rgba(15,15,15,.94); transform: translateY(-50%) scale(1.05); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-counter { position: absolute; right: 16px; bottom: 16px; z-index: 4; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(0,0,0,.68); padding: 5px 9px; color: white; font-size: .72rem; font-weight: 750; backdrop-filter: blur(8px); }
.property-gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 8px; overflow-x: auto; margin-top: 10px; padding: 2px 2px 7px; scrollbar-width: thin; }
.gallery-thumb { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); opacity: .62; transition: opacity .18s ease, border-color .18s ease, transform .18s ease; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .9; }
.gallery-thumb.is-active { border-color: var(--primary); opacity: 1; transform: translateY(-1px); }
.property-detail-panel { position: sticky; top: calc(var(--header-h) + 18px); border: 1px solid var(--border); border-radius: 22px; background: var(--bg-card); padding: clamp(22px, 4vw, 34px); }
.property-detail-panel h1 { margin: 10px 0 9px; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.02; letter-spacing: -.05em; }
.property-detail-price { color: var(--primary); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 850; letter-spacing: -.035em; }
.property-detail-location { margin-top: 8px; color: var(--text-muted); }
.property-detail-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.property-detail-facts span { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text-muted); font-size: .78rem; font-weight: 650; }
.property-detail-description { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; color: var(--text-muted); line-height: 1.75; }
.property-detail-description h2 { margin-bottom: 10px; color: var(--text); font-size: 1rem; }
.property-detail-actions { display: grid; gap: 9px; margin-top: 26px; }
.property-detail-actions .btn { width: 100%; }
.property-empty { border: 1px solid var(--border); border-radius: 22px; background: var(--bg-card); padding: clamp(28px, 6vw, 64px); text-align: center; }
.property-empty h1 { margin: 9px 0; }
.property-empty p { margin-bottom: 22px; color: var(--text-muted); }
.realty-contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 54px; border: 1px solid rgba(88, 214, 193, .26); border-radius: 23px; background: linear-gradient(135deg, rgba(88, 214, 193, .08), var(--bg-card)); padding: clamp(28px, 5vw, 48px); }
.realty-contact h2 { max-width: 650px; margin: 9px 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -.045em; }
.realty-contact p { max-width: 620px; color: var(--text-muted); }

@media (max-width: 960px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realty-contact { grid-template-columns: 1fr; }
  .property-detail { grid-template-columns: 1fr; }
  .property-detail-panel { position: static; }
}

@media (max-width: 768px) {
  .nav { background: rgba(25, 25, 25, .98); }
  .hero { padding-top: calc(var(--header-h) + 22px); }
  .hero-grid { min-height: auto; border-radius: 21px; padding: 30px 22px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .section { padding: 70px 0; }
  .realty-page { padding-top: calc(var(--header-h) + 22px); }
  .property-page { padding-top: calc(var(--header-h) + 22px); }
}

@media (max-width: 580px) {
  .property-grid { grid-template-columns: 1fr; }
  .realty-toolbar { align-items: flex-start; }
  .realty-filters { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .realty-filter-groups { min-width: 100%; }
  .realty-filter-group { grid-template-columns: 1fr; gap: 5px; }
  .realty-filter { flex: 0 0 auto; }
  .realty-intro { border-radius: 20px; padding: 28px 20px; }
  .realty-contact { border-radius: 20px; padding: 28px 20px; }
  .realty-contact .btn { width: 100%; }
  .property-gallery-stage { aspect-ratio: 1 / 1; border-radius: 18px; }
  .property-gallery-slide { object-fit: contain; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 1.65rem; }
  .gallery-prev { left: 9px; }
  .gallery-next { right: 9px; }
  .property-gallery-thumbs { grid-auto-columns: 76px; }
  .property-detail-panel { border-radius: 18px; padding: 22px 18px; }
  .property-actions { grid-template-columns: 1fr 1fr; }
}
