/**
 * Homepage Hero — loaded directly on app_home (see templates/home/index.html.twig).
 * Kept in public/ so styles apply without relying on webpack build output.
 */

/* ── Page shell: no horizontal overflow ── */
html:has(body.page-home),
body.page-home {
  overflow-x: clip;
  max-width: 100%;
}

body.page-home .home-page-container {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body.page-home main {
  max-width: 100%;
  overflow-x: clip;
}

/* ── Hero layout ── */
.page-home .home-hero-fullwidth {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  overflow-x: clip;
}

.page-home {
  overflow-x: clip;
}

.page-home .home-hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .home-hero-header-inner {
  max-width: 1200px;
  min-height: 56px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.page-home .home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: min(100vh, 920px);
  margin-top: 0;
  padding-top: 56px;
  align-items: stretch;
}

.page-home .home-hero-content {
  display: flex;
  flex-direction: column;
  padding: 0 2rem 2rem clamp(1.5rem, 6vw, 100px);
  min-height: min(100vh, 920px);
  min-width: 0;
  background: #fff;
  box-sizing: border-box;
}

.page-home .home-hero-content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.page-home .home-hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #111;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-home .home-hero-subheadline {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
  color: #555;
  overflow-wrap: anywhere;
}

.page-home .home-hero-cta {
  margin-top: 32px;
}

.page-home .home-hero-cta .btn-hero-primary {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-width: min(100%, 300px);
  text-align: center;
  white-space: normal;
}

.page-home .home-hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #888;
  max-width: 420px;
}

.page-home .home-hero-nav {
  width: 100%;
  min-width: 0;
}

.page-home .home-hero-nav-toggler {
  border-color: #dee2e6;
  padding: 0.35rem 0.55rem;
}

.page-home .home-hero-nav-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 23, 23, 0.15);
}

.page-home .home-hero-nav-collapse {
  min-width: 0;
}

.page-home .home-hero-nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.page-home .home-hero-nav-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  min-width: 0;
}

@media (min-width: 992px) {
  .page-home .home-hero-nav-collapse {
    justify-content: flex-end;
  }

  .page-home .home-hero-nav-cluster {
    margin-left: auto;
  }
}

.page-home .home-hero-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-home .home-hero-nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .home-hero-nav-link {
  color: #555;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.page-home .home-hero-nav-link:hover {
  color: #111;
}

.page-home .home-hero-nav-lang {
  font-size: 0.8125rem;
  color: #888;
  font-weight: 500;
}

.page-home .home-hero-lang-sep {
  margin: 0 0.35rem;
}

.page-home .home-hero-lang-active {
  font-weight: 600;
  color: #333;
}

.page-home .home-hero-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  background: #171717;
  color: #fff;
  border: 1px solid #171717;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-home .home-hero-nav-cta:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.page-home .home-hero-nav-logo__img {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
}

.page-home .btn-hero {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-home .btn-hero-primary {
  background: #171717;
  color: #fff;
  border: 1px solid #171717;
}

.page-home .btn-hero-primary:hover {
  background: #333;
  color: #fff;
}

/* ── Promo column (right) ── */
.page-home .home-hero-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 3vw, 2rem) 2rem 1.25rem;
  min-height: min(100vh, 920px);
  min-width: 0;
  align-self: stretch;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .page-home .home-hero-promo__stage {
    overflow: visible;
  }
}

.page-home .home-hero-promo__stage {
  position: relative;
  width: 100%;
  max-width: min(100%, 420px);
  margin: 0 auto;
  padding: 0.25rem 0;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .page-home .home-hero-promo__stage {
    width: fit-content;
    max-width: min(100%, calc(clamp(230px, 20vw, 285px) + 10rem));
    padding: 0.25rem 0.5rem 0.25rem 0;
  }
}

.page-home .home-hero-phone-anim {
  --tg-cycle: 16s;
}

/* ── Phone frame (9:16 portrait, height from aspect-ratio) ── */
.page-home .home-hero-phone {
  --hero-phone-w: clamp(230px, 20vw, 285px);
  position: relative;
  width: var(--hero-phone-w);
  max-width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.page-home .home-hero-phone__bezel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  padding: 10px 9px 12px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #3a3a40 0%, #141418 55%, #0a0a0c 100%);
  box-shadow:
    0 24px 48px rgba(10, 16, 28, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 2px rgba(0, 0, 0, 0.45);
}

.page-home .home-hero-phone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 68px;
  height: 18px;
  border-radius: 999px;
  background: #050508;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.page-home .home-hero-phone__screen {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
}

/* ── Telegram mock (dark mobile card) ── */
.page-home .home-hero-phone__screen.tg-mock {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.page-home .tg-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  border-radius: 22px;
  background: #0e1621;
  box-shadow:
    0 28px 56px rgba(10, 20, 40, 0.28),
    0 8px 20px rgba(10, 20, 40, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #e8edf2;
}

.page-home .tg-mock__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 0.7rem 0.5rem;
  background: #17212b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.page-home .tg-mock__back {
  flex-shrink: 0;
  width: 1.25rem;
  color: #6ab3f3;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  text-align: center;
}

.page-home .tg-mock__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b9ed9 0%, #2b7db8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .tg-mock__meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.page-home .tg-mock__title {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .tg-mock__subtitle {
  color: #6d7f8f;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.page-home .tg-mock__header-menu {
  flex-shrink: 0;
  color: #6ab3f3;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 0 0.15rem;
}

.page-home .tg-mock__messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.45rem 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(42, 171, 238, 0.06) 0%, transparent 55%),
    #0e1621;
}

.page-home .tg-mock__msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
}

.page-home .tg-mock__msg.tg-anim--msg3 {
  max-width: 100%;
}

.page-home .tg-mock__msg--bot {
  align-self: flex-start;
}

.page-home .tg-mock__msg--user {
  align-self: flex-end;
}

.page-home .tg-mock__bubble {
  position: relative;
  padding: 0.4rem 0.55rem 0.32rem;
  border-radius: 12px;
}

.page-home .tg-mock__msg--bot .tg-mock__bubble {
  background: #182533;
  border-top-left-radius: 4px;
}

.page-home .tg-mock__msg--user .tg-mock__bubble {
  background: #2f7c6a;
  border-top-right-radius: 4px;
}

.page-home .tg-mock__bubble p {
  margin: 0 2rem 0 0;
  padding: 0;
  color: #f0f4f8;
  font-size: 0.8125rem;
  line-height: 1.38;
}

.page-home .tg-mock__time {
  position: absolute;
  right: 0.45rem;
  bottom: 0.3rem;
  font-size: 0.625rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}

.page-home .tg-mock__msg--user .tg-mock__time {
  color: rgba(255, 255, 255, 0.55);
}

.page-home .tg-mock__ikb {
  margin-top: 0.25rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.page-home .tg-mock__ikb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}

.page-home .tg-mock__ikb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(33.333% - 0.2rem);
  min-width: 0;
  min-height: 1.5rem;
  height: auto;
  max-height: none;
  padding: 0.32rem 0.3rem;
  border-radius: 7px;
  background: rgba(24, 37, 51, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6ab3f3;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  box-sizing: border-box;
}

.page-home .tg-mock__ikb-btn--picked,
.page-home .tg-mock__ikb-btn--pickable.tg-mock__ikb-btn--picked {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.35);
  color: #b8e0ff;
}

/* ── Typing indicator ── */
.page-home .tg-mock__typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  border-top-left-radius: 4px;
  background: #182533;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .tg-mock__typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d7f8f;
  animation: tg-dot-pulse 1s ease-in-out infinite;
}

.page-home .tg-mock__typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.page-home .tg-mock__typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes tg-dot-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* ── Hero chat sequence (16s loop) ── */
.page-home .tg-anim {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

.page-home .tg-anim--msg1 {
  animation: tg-anim-msg1 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--msg2 {
  animation: tg-anim-msg2 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--typing1 {
  animation: tg-anim-typing1 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--msg3 {
  animation: tg-anim-msg3 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--ikb {
  animation: tg-anim-ikb var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--msg4 {
  animation: tg-anim-msg4 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--typing2 {
  animation: tg-anim-typing2 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--msg5 {
  animation: tg-anim-msg5 var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-mock__ikb-btn--pickable {
  animation: tg-anim-btn-pick var(--tg-cycle) ease-in-out infinite;
}

.page-home .tg-anim--lead {
  max-height: none;
  overflow: visible;
  margin-bottom: 0;
  animation: tg-anim-lead var(--tg-cycle) ease-in-out infinite;
}

@keyframes tg-anim-msg1 {
  0%, 2% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
  4%, 90% { opacity: 1; max-height: 120px; margin-bottom: 0.35rem; transform: translateY(0); }
  94%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
}

@keyframes tg-anim-msg2 {
  0%, 8% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
  10%, 90% { opacity: 1; max-height: 120px; margin-bottom: 0.35rem; transform: translateY(0); }
  94%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
}

@keyframes tg-anim-typing1 {
  0%, 14% { opacity: 0; max-height: 0; margin-bottom: 0; }
  16%, 22% { opacity: 1; max-height: 40px; margin-bottom: 0.35rem; }
  24%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; }
}

@keyframes tg-anim-msg3 {
  0%, 22% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
  24%, 90% { opacity: 1; max-height: 170px; margin-bottom: 0.35rem; transform: translateY(0); }
  94%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
}

@keyframes tg-anim-ikb {
  0%, 26% { opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; }
  28%, 88% { opacity: 1; max-height: 4.75rem; margin-top: 0.25rem; overflow: visible; }
  92%, 100% { opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; }
}

@keyframes tg-anim-msg4 {
  0%, 36% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
  38%, 90% { opacity: 1; max-height: 120px; margin-bottom: 0.35rem; transform: translateY(0); }
  94%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
}

@keyframes tg-anim-btn-pick {
  0%, 34% {
    background: rgba(24, 37, 51, 0.95);
    border-color: rgba(255, 255, 255, 0.06);
    color: #6ab3f3;
  }
  36%, 88% {
    background: rgba(42, 171, 238, 0.18);
    border-color: rgba(42, 171, 238, 0.35);
    color: #b8e0ff;
  }
  92%, 100% {
    background: rgba(24, 37, 51, 0.95);
    border-color: rgba(255, 255, 255, 0.06);
    color: #6ab3f3;
  }
}

@keyframes tg-anim-typing2 {
  0%, 42% { opacity: 0; max-height: 0; margin-bottom: 0; }
  44%, 50% { opacity: 1; max-height: 40px; margin-bottom: 0.35rem; }
  52%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; }
}

@keyframes tg-anim-msg5 {
  0%, 50% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
  52%, 90% { opacity: 1; max-height: 140px; margin-bottom: 0.35rem; transform: translateY(0); }
  94%, 100% { opacity: 0; max-height: 0; margin-bottom: 0; transform: translateY(8px); }
}

@keyframes tg-anim-lead {
  0%, 56% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  58%, 90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%, 100% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes tg-anim-lead-mobile {
  0%, 56% { opacity: 0; transform: translateY(10px); }
  58%, 90% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(10px); }
}

.page-home .tg-mock__composer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem 0.5rem;
  background: #17212b;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.page-home .tg-mock__menu-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #2f7c6a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.page-home .tg-mock__input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: #0e1621;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.page-home .tg-mock__input-placeholder {
  color: #6d7f8f;
  font-size: 0.8125rem;
}

.page-home .tg-mock__composer-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1;
  opacity: 0.55;
}

.page-home .tg-mock__composer-icon--mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #2f7c6a;
  opacity: 1;
  font-size: 0.75rem;
}

/* ── Floating New Lead card ── */
.page-home .home-hero-promo__lead-card {
  position: absolute;
  top: 1.5rem;
  left: calc(100% - 1.25rem);
  right: auto;
  width: 152px;
  max-width: min(152px, calc(100% - 1rem));
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  z-index: 6;
  opacity: 0;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
}

.page-home .home-hero-promo__lead-title {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.page-home .home-hero-promo__lead-fields {
  margin: 0;
}

.page-home .home-hero-promo__lead-fields div + div {
  margin-top: 0.45rem;
}

.page-home .home-hero-promo__lead-fields dt {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 0;
}

.page-home .home-hero-promo__lead-fields dd {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

/* Reduced motion: show full static state */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-phone-anim .tg-anim,
  .page-home .home-hero-phone-anim .tg-mock__ikb-btn--pickable,
  .page-home .home-hero-phone-anim .home-hero-promo__lead-card {
    animation: none !important;
    opacity: 1 !important;
    max-height: none !important;
    margin-bottom: 0.35rem !important;
    transform: none !important;
    overflow: visible !important;
  }

  .page-home .home-hero-phone-anim .tg-anim--typing1,
  .page-home .home-hero-phone-anim .tg-anim--typing2 {
    display: none !important;
  }

  .page-home .home-hero-phone-anim .tg-mock__ikb-btn--pickable {
    background: rgba(42, 171, 238, 0.18);
    border-color: rgba(42, 171, 238, 0.35);
    color: #b8e0ff;
  }

  .page-home .home-hero-phone-anim .home-hero-promo__lead-card {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* Bootstrap resets inside mock */
.page-home .home-hero-promo__lead-fields dd,
.page-home .home-hero-promo__lead-fields dt {
  float: none;
}

.page-home .tg-mock__header,
.page-home .tg-mock__composer {
  margin: 0;
}

/* Lead card: avoid absolute overflow beside phone on narrow desktops */
@media (max-width: 1199.98px) {
  .page-home .home-hero-promo__lead-card {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 280px;
    margin: 1rem auto 0;
    transform: none;
  }

  .page-home .tg-anim--lead {
    animation-name: tg-anim-lead-mobile;
  }
}

/* ── Mobile / tablet ── */
@media (max-width: 991.98px) {
  .page-home .home-hero-header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .page-home .home-hero-nav-cluster {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .page-home .home-hero-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-home .home-hero-nav-actions {
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
  }

  .page-home .home-hero-nav-actions .nav-user-menu {
    max-width: 100%;
  }

  .page-home .home-hero-nav-actions .nav-user-menu__toggle {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }

  .page-home .home-hero-nav-cta {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .page-home .home-hero-nav-logo__img {
    height: 30px;
  }
}

@media (max-width: 900px) {

  .page-home .home-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .page-home .home-hero-content {
    order: 1;
    min-height: auto;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .page-home .home-hero-promo {
    order: 2;
    min-height: auto;
    padding: 0 1rem 2rem;
    overflow: hidden;
  }

  .page-home .home-hero-promo__stage {
    width: 100%;
    max-width: min(100%, 360px);
    padding: 0 0 0.5rem;
  }

  .page-home .home-hero-phone {
    --hero-phone-w: min(280px, calc(100% - 0.5rem));
    width: var(--hero-phone-w);
    max-width: 100%;
    margin: 0 auto;
  }

  .page-home .tg-mock__ikb-btn {
    font-size: 0.6rem;
    padding: 0.3rem 0.22rem;
    min-height: 1.45rem;
    line-height: 1.25;
  }

  .page-home .home-hero-subheadline {
    max-width: none;
  }

  .page-home .home-hero-cta .btn-hero-primary {
    width: 100%;
    min-width: 0;
  }

  .page-home .home-hero-content-inner {
    padding: 1rem 0 0.5rem;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .page-home .home-hero-header-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .page-home .home-hero-content {
    padding: 1.25rem 1rem 1rem;
  }

  .page-home .home-hero-promo {
    padding: 0 0.75rem 1.5rem;
  }

  .page-home .home-hero-promo__stage {
    max-width: 100%;
  }

  .page-home .home-hero-phone {
    --hero-phone-w: min(260px, calc(100vw - 2rem));
  }

  .page-home .home-hero-title {
    font-size: clamp(1.625rem, 7.5vw, 2rem);
  }

  .page-home .home-hero-subheadline {
    font-size: 1rem;
  }

  .page-home .home-hero-cta .btn-hero-primary {
    width: 100%;
    min-width: 0;
  }

  .page-home .home-hero-note {
    max-width: 100%;
  }
}

/* ── Landing footer (home only, compact) ── */
.page-home .home-landing-footer {
  margin-top: 0;
  padding: 1rem 1rem 0.875rem;
  background: #fff;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.page-home .home-landing-footer__inner {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.page-home .home-landing-footer__brand-name {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  margin: 0;
  color: #111;
}

.page-home .home-landing-footer__tagline {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #666;
  margin: 0;
}

.page-home .home-landing-footer__links {
  font-size: 0.8125rem;
  line-height: 1.35;
  margin: 0;
}

.page-home .home-landing-footer__links a {
  color: #444;
  text-decoration: none;
}

.page-home .home-landing-footer__links a:hover {
  color: #111;
  text-decoration: underline;
}

.page-home .home-landing-footer__sep {
  color: #adb5bd;
}

.page-home .home-landing-footer__copy {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #868e96;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-home .home-landing-footer {
    padding: 0.875rem 0.75rem 0.75rem;
  }

  .page-home .home-landing-footer__inner {
    gap: 0.3rem;
  }
}
