/* Approved mobile homepage direction: introduction, real screenshot, prices, actions. */
.home-v2 .hero-mobile-intro,
.home-v2 .hero-mobile-summary { display: none; }

.home-v2 .button-primary,
.home-v2 #pricing.pricing-light .pricing-estimate .button-primary { color: #fff; border-color: #c34940; background: #c34940; }
.home-v2 .button-primary:hover,
.home-v2 #pricing.pricing-light .pricing-estimate .button-primary:hover { border-color: #ad3e36; background: #ad3e36; }

.home-v2 #top .hero-price-amount > small { display: none; }
.home-v2 #top .hero-prices > div { grid-template-rows: 1fr auto auto; justify-items: center; text-align: center; }
.home-v2 #top .hero-price-amount { justify-content: center; }
.home-v2 #top .hero-prices > div > span { color: #e6eaf0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.home-v2 #top .hero-prices .hero-price-unit { display: block; color: #e6eaf0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.home-v2 #top .hero-actions .button:last-child { color: var(--v2-text); border-color: #718493; background: transparent; }
.home-v2 #top .hero-actions .button:last-child:hover { background: #15212c; border-color: #aab5c1; }

@media (min-width: 1400px) {
  .home-v2 #top .v2-product { align-self: start; }
  .home-v2 #top .v2-hero-copy.hero-fit { height: var(--hero-fit-height); min-height: 0; }
  .home-v2 #top .hero-fit .hero-lead { flex: 0 0 auto; font-size: var(--hero-fit-font); margin-bottom: 12px; }
  .home-v2 #top .hero-fit :is(.hero-prices, .hero-actions) { flex-shrink: 0; }
  .home-v2 #top .hero-fit-compact .hero-lead { line-height: 1.35; }
  .home-v2 #top .hero-fit-compact .hero-lead p + p { margin-top: 8px; }
}

@media (min-width: 1181px) and (max-width: 1399px) {
  .home-v2 #top .v2-hero-grid { grid-template-columns: minmax(0, 1fr); width: min(920px, calc(100% - 40px)); gap: 28px; }
  .home-v2 #top .v2-product { grid-column: 1; grid-row: 1; align-self: start; justify-content: center; }
  .home-v2 #top .v2-product .app-window { width: 100%; }
  .home-v2 #top .v2-hero-copy { grid-column: 1; grid-row: 2; }
  .home-v2 #top .hero-prices { margin-top: 24px; }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .home-v2 #top .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html.home-page { --header-height: 56px; --sticky-nav-height: 56px; }
  .home-v2 .v2-header { height: 56px; background: #0d141c; }
  .home-v2 .v2-header .header-inner {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
    grid-template-rows: 56px;
    column-gap: 8px;
  }
  .home-v2 .v2-header .header-inner > .brand { max-width: 184px; }
  .home-v2 .v2-header .brand > img { max-width: 184px; }
  .home-v2 .v2-header .language-cycle,
  .home-v2 .v2-header .chapter-menu-toggle { border-color: transparent; background: transparent; }
  /* Keep the same menu glyph and size in both states; red indicates the open menu. */
  .home-v2 .v2-header .chapter-menu-toggle > .bi-list { font-size: calc(28px * 16 / 11); line-height: 1; transform: translateY(.5px); }
  .home-v2 .v2-header .chapter-menu-toggle[aria-expanded="true"] > .bi-list { display: block; color: var(--v2-red); }
  .home-v2 .v2-header .chapter-menu-toggle[aria-expanded="true"] > .bi-x-lg { display: none; }
  .home-v2 .v2-header .chapter-menu-toggle > i::before { display: block; }
  .home-v2 .primary-nav-links { inset-block-start: 56px; height: calc(100dvh - 56px); }
  html.chapter-menu-open .home-v2 { padding-block-start: 56px; }
  html.chapter-menu-open .home-v2 .v2-header { position: fixed; inset-block-start: 0; inset-inline: 0; width: 100%; }

  .home-v2 #top.v2-hero { padding: 28px 0 30px; }
  .home-v2 #top .v2-hero-grid {
    width: calc(100% - 32px);
    max-width: 560px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .home-v2 #top .hero-mobile-intro { display: grid; grid-column: 1; grid-row: 1; gap: 14px; }
  .home-v2 #top .hero-mobile-intro h1 {
    display: block;
    margin: 0;
    color: var(--v2-text);
    font-size: clamp(34px, 10.75vw, 46px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-align: start;
    white-space: pre-line;
    text-wrap: pretty;
  }
  .home-v2 #top .hero-mobile-intro p {
    margin: 0;
    color: var(--v2-muted);
    font-size: 16px;
    line-height: 1.5;
  }
  .home-v2 #top .hero-mobile-intro h1:lang(ru),
  .home-v2 #top .hero-mobile-intro h1:lang(uk) { font-size: clamp(28px, 8.6vw, 38px); line-height: 1.12; }
  .home-v2 #top .v2-product { grid-column: 1; grid-row: 2; width: 100%; min-width: 0; }
  .home-v2 #top .app-window-hero { width: 100%; max-width: none; margin: 0; }
  .home-v2 #top .v2-hero-copy {
    display: flex;
    grid-column: 1;
    grid-row: 3;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 0;
  }
  .home-v2 #top .hero-lead { display: none; }
  .home-v2 #top .hero-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border-block: 0;
  }
  .home-v2 #top .hero-prices > div {
    display: grid;
    grid-template-rows: 1fr auto auto;
    text-align: center;
    min-width: 0;
    gap: 6px;
    padding: 0 6px;
  }
  .home-v2 #top .hero-prices > div + div { border-inline-start: 1px solid var(--v2-line); }
  .home-v2 #top .hero-prices > div > span { align-self: center; font-size: 14px; line-height: 1.4; }
  .home-v2 #top .hero-price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
  }
  .home-v2 #top .hero-price-amount > small { display: none; }
  .home-v2 #top .hero-prices .hero-price-unit { display: block; color: #e6eaf0; font-size: 14px; font-weight: 600; line-height: 1.4; }
  .home-v2 #top .hero-prices strong { display: inline-flex; align-items: baseline; gap: 4px; font-size: 18px; line-height: 1.2; }
  .home-v2 #top .hero-prices strong b { font-size: 36px; font-weight: 800; }
  .home-v2 #top .hero-prices strong span { font-size: 14px; }
  .home-v2 #top .hero-actions { order: 2; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 22px 0 0; }
  .home-v2 #top .hero-actions .button { height: auto; min-height: 48px; padding: 12px 14px; font-size: 15px; line-height: 1.4; }
  .home-v2 #top .hero-mobile-summary {
    display: block;
    grid-column: 1;
    grid-row: 4;
    margin: 6px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--v2-line);
    color: var(--v2-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: start;
  }
}

/* Keep the longer Russian/Ukrainian/Kazakh overview and both actions within the desktop screenshot slot. */
@media (min-width: 1400px) {
  html:is([lang="ru"], [lang="uk"], [lang="kk"]) .home-v2 #top .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  html:is([lang="ru"], [lang="uk"], [lang="kk"]) .home-v2 #top .hero-fit-compact .hero-lead { line-height: 1.3; }
  html:is([lang="ru"], [lang="uk"], [lang="kk"]) .home-v2 #top .hero-fit-compact .hero-lead p + p { margin-top: 6px; }
}
