/* ═══════════════════════════════════════════════════════════════════════
   Hero v3 — evidence-driven revisions (see "Hero Research & Review")
   Variants are driven by data-* attributes on .v2-hero, toggled in Tweaks:
     data-veil    light | heavy
     data-facts   on | off          price · all-inclusive · free today
     data-owner   on | off          owner avatar + line in trust strip
     data-hl      category | benefit
     data-cta     brand | value
     data-height  peek | full
   Defaults in the markup match the recommended (new) state.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero height: peek the gallery vs full-screen ──────────────────────── */
.v2-hero[data-height="peek"] { height: 88svh; }
.v2-hero[data-height="full"] { height: 100svh; }

/* ── Veil: let the city breathe, scrim only behind the centered text ───── */
.v2-hero[data-veil="light"] .home-hero__veil {
  background:
    radial-gradient(120% 80% at 50% 48%,
      rgba(8, 10, 14, 0.56) 0%,
      rgba(8, 10, 14, 0.26) 42%,
      rgba(8, 10, 14, 0) 70%),
    linear-gradient(to bottom,
      rgba(13, 13, 13, 0.34) 0%,
      rgba(13, 13, 13, 0.06) 30%,
      rgba(13, 13, 13, 0.10) 60%,
      rgba(13, 13, 13, 0.46) 100%);
}
/* heavy = original recipe (kept for A/B) */
.v2-hero[data-veil="heavy"] .home-hero__veil {
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.55) 0%,
    rgba(13, 13, 13, 0.15) 35%,
    rgba(13, 13, 13, 0.35) 70%,
    rgba(13, 13, 13, 0.75) 100%
  );
}

/* ── Headline variant ──────────────────────────────────────────────────── */
.home-hero__h1 .hl { display: none; }
.v2-hero[data-hl="category"] .home-hero__h1 .hl--category { display: inline; }
.v2-hero[data-hl="benefit"]  .home-hero__h1 .hl--benefit  { display: inline; }

/* ── CTA label variant ─────────────────────────────────────────────────── */
.home-hero__cta-label { display: none; }
.v2-hero[data-cta="brand"] .home-hero__cta-label--brand { display: inline; }
.v2-hero[data-cta="value"] .home-hero__cta-label--value { display: inline; }

/* ── Facts line: от 17 000 ₸ · всё включено · свободно сегодня ──────────── */
.home-hero__facts {
  display: none;
  margin: 0 0 2.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.8rem;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.v2-hero[data-facts="on"] .home-hero__facts { display: inline-flex; }
.v2-hero[data-facts="on"] .home-hero__sub { margin-bottom: 1.35rem; }
.home-hero__fact { white-space: nowrap; }


.home-hero__fact-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34D27B; flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__fact-dot { animation: heroFreePulse 2.6s ease-out infinite; }
}
@keyframes heroFreePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 210, 123, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 210, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 210, 123, 0); }
}

/* ── Unified trust strip: owner (emotional) + rating (social) ──────────── */
.home-hero__trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-top: 1.5rem;
}
.home-hero__owner {
  display: none;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-full);
  transition: opacity var(--dur-base) var(--ease-standard);
}
.v2-hero[data-owner="on"] .home-hero__owner { display: inline-flex; }
.home-hero__owner:hover { opacity: 0.85; }

.home-hero__owner-avas .home-hero__owner-ava + .home-hero__owner-ava { margin-left: -14px; }
.home-hero__owner-ava {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}



.v2-hero[data-owner="on"] .home-hero__trust-div { display: block; }

/* Trustline inside the strip — kill its standalone top margin */
.home-hero__trust-strip .home-hero__trustline { margin: 0; }

/* Review count — sits between the score and the platforms */

.home-hero__trustline-reviews::before { content: "·"; margin-right: 0.5rem; opacity: 0.5; }

@media (max-width: 560px) {
  
  .home-hero__trust-strip { gap: 0.85rem; }
  .home-hero__facts { font-size: var(--fs-md); gap: 0.4rem 0.6rem; }
}

/* ── Clickable "Свободно сегодня" cue in the reassurance line ──────────── */
.v2-hero[data-cue="hide"] .home-hero__reassure { display: none; }

.home-hero__free {
  display: inline;
  gap: 0.4rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 550;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
/* inline иначе игнорирует [hidden] — нужно для случая «0 свободных» */
.home-hero__free[hidden] { display: none !important; }
.home-hero__free-label { white-space: nowrap; }
.home-hero__free:hover,
.home-hero__free:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  outline: none;
}
.home-hero__free-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #34D27B;
  vertical-align: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__free-dot { animation: heroFreePulse 2.6s ease-out infinite; }
}

/* ── Clickable rating line → reviews ──────────────────────────────────── */
a.home-hero__trustline {
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
a.home-hero__trustline:hover,
a.home-hero__trustline:focus-visible { outline: none; }
a.home-hero__trustline:hover .home-hero__trustline-plats,
a.home-hero__trustline:focus-visible .home-hero__trustline-plats {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* ── "Silent-frame" editorial layout — content anchored lower-left ─────── */
.v2-hero[data-layout="editorial"] .home-hero__content {
  max-width: none;
  width: var(--layout-rail);
  margin: 0 auto;
  /* Align the text's left edge to the site grid line (rail edge, no inner
     gutter) so the hero lines up with the header wordmark + apartment cards. */
  padding-inline: 0;
  align-items: flex-start;
  /* Lift the block into a vertical center-lower band (was flex-end) so it reads
     balanced over the skyline instead of sunk to the bottom. Asymmetric padding
     keeps a touch of editorial downward bias while filling the empty top. */
  justify-content: center;
  text-align: left;
  padding-top: clamp(5rem, 15vh, 12rem);
  padding-bottom: clamp(3rem, 9vh, 7rem);
}
.v2-hero .home-hero__h1 { max-width: 22ch; }
.v2-hero[data-layout="editorial"] .home-hero__h1 { max-width: 24ch; }
/* Subhead: split by sentence (hard <br>). width:max-content sizes the box to
   the longer (first) sentence so it never wraps mid-phrase → exactly 2 lines. */
.v2-hero .home-hero__sub {
  /* Hugs the single value-prop sentence (location line dropped — hero kept to one
     promise). max-content + max-width:100% keeps it one line on desktop, wraps on
     narrow screens; still correct if a second hard-<br> sentence is restored. */
  width: max-content !important;
  max-width: 100% !important;
  text-wrap: wrap !important;
}
.v2-hero[data-layout="editorial"] .home-hero__sub { margin-left: 0; margin-right: 0; }
.v2-hero[data-layout="editorial"] .home-hero__facts { align-items: flex-start; }
/* Editorial: CTA + availability/response cue share one row; trust strip drops below */
.v2-hero[data-layout="editorial"] .home-hero__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1.25rem;
  width: 100%;
}
.v2-hero[data-layout="editorial"] .home-hero__reassure { margin: 0; text-align: left; flex-basis: 100%; }
.v2-hero[data-layout="editorial"] .home-hero__trust-strip {
  flex-basis: 100%;
  justify-content: flex-start;
  margin-top: 0.5rem;
}
.v2-hero[data-layout="editorial"] .home-hero__trustline { text-align: left; }
/* Editorial: shift the scrim to lower-left (where the text sits over bright lights) */
.v2-hero[data-layout="editorial"][data-veil="light"] .home-hero__veil {
  background:
    radial-gradient(92% 82% at 22% 78%,
      rgba(8, 10, 14, 0.62) 0%,
      rgba(8, 10, 14, 0.30) 38%,
      rgba(8, 10, 14, 0) 70%),
    linear-gradient(to bottom,
      rgba(13, 13, 13, 0.30) 0%,
      rgba(13, 13, 13, 0.05) 35%,
      rgba(13, 13, 13, 0.18) 70%,
      rgba(13, 13, 13, 0.52) 100%);
}
/* Editorial · heavy = плотное затемнение (новый дефолт): сохраняем нижне-левый
   радиальный характер, но плотнее по альфе — город читается тише за текстом. */
.v2-hero[data-layout="editorial"][data-veil="heavy"] .home-hero__veil {
  background:
    radial-gradient(96% 86% at 22% 78%,
      rgba(8, 10, 14, 0.80) 0%,
      rgba(8, 10, 14, 0.48) 40%,
      rgba(8, 10, 14, 0) 72%),
    linear-gradient(to bottom,
      rgba(13, 13, 13, 0.50) 0%,
      rgba(13, 13, 13, 0.22) 32%,
      rgba(13, 13, 13, 0.40) 66%,
      rgba(13, 13, 13, 0.76) 100%);
}
/* Editorial: keep the CTA's whitespace — drop the response clause from the inline cue */
.v2-hero[data-layout="editorial"] .home-hero__resp { display: none; }
@media (max-width: 560px) {
  .v2-hero[data-layout="editorial"] .home-hero__content { justify-content: flex-end; padding-top: 0; padding-bottom: clamp(5rem, 20vh, 11rem); }
}
