/* hero.css — Immersive hero layout (Yandex Realty style) */
/* Core hero tokens are defined inline in complex.php <style> for critical-path rendering. */

:root {
  --c-bg: #ffffff;
  --c-card: #ffffff;
  --c-line: #ececf1;
  --c-text: #2b2b2f;
  --c-muted: #6b6b74;
  --c-accent: #ff0000;
  --c-radius: 16px;
}

/* Page base */
.complex-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
}

/* .complex-wrap — см. layout-rhythm.css */

/* Breadcrumbs */
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.crumbs a {
  color: var(--c-text);
  opacity: .92;
}

.crumbs a:hover {
  opacity: 1;
}

/* Hero container */
.hero {
  position: relative;
  margin-bottom: 0;
}

.glass {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  box-shadow: none;
}

/* Floating info panel — overlaps the main photo only */
.hero-side {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #eaeaea;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(31, 31, 34, .12);
  z-index: 5;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  color: #2b2b2f;
letter-spacing:0.03em;
}

.complex-hero-lead {
  font-size: 15px;
  line-height: 1.45;
  color: var(--c-muted);
  margin: 0;
}

.complex-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.complex-hero-actions .cta {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.complex-hero-micro {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.45;
}

.loc {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Адрес ЖК: полная строка, переносы (узкая колонка hero-side) */
#complexAddressBtn.loc,
button.loc.loc--address {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
  hyphens: auto;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(227, 6, 19, .08);
  border: 1px solid rgba(227, 6, 19, .24);
  font-size: 12px;
}

/* Теги под заголовком ЖК: на всех ширинах зазор между чипами (иначе на десктопе текст склеивается) */
.complex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.complex-tags:empty {
  display: none;
}

.complex-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #5f5f69;
  border: 1px solid #d8d8df;
  background: #fafafa;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.01em;
}

.facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fact {
  padding: 9px 11px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid var(--c-line);
  font-size: 12px;
  color: #4b4b53;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  background: #e60000;
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-side {
    position: static;
    width: 100%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    margin-top: 12px;
  }
}

@media (max-width: 700px) {
  .hero-side {
    padding: 18px;
    gap: 10px;
  }
  .price {
    font-size: 26px;
  }
}
