:root {
  --home-v26-black: #050505;
  --home-v26-paper: #f5f3ef;
  --home-v26-orange: #ff6418;
  --home-v26-height: clamp(36rem, 100svh, 52.75rem);
}

/* V26 hero: the typography stays primary; the quiet procedural relief only adds depth. */
body.home-page #home.home-v25-hero {
  height: auto;
  min-height: var(--home-v26-height);
  background: var(--home-v26-black);
  border-bottom: 1px solid rgba(255, 100, 24, 0.52);
}

body.home-page .home-v25-hero__visual {
  z-index: 1;
  inset: -0.75rem;
  background-color: var(--home-v26-black);
  opacity: 0;
  transform: translate3d(
      calc(var(--home-v25-x) * 5px),
      calc(var(--home-v25-y) * 4px),
      0
    ) scale(1.018);
  transition:
    opacity 1.05s ease,
    transform 1.45s var(--home-v25-ease);
  will-change: opacity, transform;
}

body.home-page .home-v25-hero.is-v25-ready.is-v26-canvas-ready .home-v25-hero__visual {
  opacity: 1;
  transform: translate3d(
      calc(var(--home-v25-x) * 5px),
      calc(var(--home-v25-y) * 4px),
      0
    ) scale(1.008);
}

body.home-page .home-v26-hero__canvas {
  position: absolute;
  inset: 0 0 0 auto;
  display: block;
  width: 58%;
  height: 100%;
  opacity: 0.96;
  pointer-events: none;
}

body.home-page .home-v25-hero__image {
  display: none;
  opacity: 0;
}

body.home-page .home-v25-hero__shade,
body.home-page .home-v25-hero__shade::before {
  background: transparent;
}

body.home-page .home-v25-hero__shade::before {
  display: none;
}

body.home-page .home-v25-hero .home-v9-hero__inner {
  height: var(--home-v26-height);
  min-height: var(--home-v26-height);
  padding-top: 7rem;
  padding-bottom: 1.15rem;
}

body.home-page .home-v25-hero .home-v25-hero__copy {
  width: min(50rem, 55vw);
  top: 2.3rem;
}

body.home-page .home-v25-hero h1 {
  position: relative;
  top: -1.25rem;
  max-width: 50rem;
  margin-top: 1.95rem;
  font-size: clamp(4.6rem, 6.55vw, 6.9rem);
  line-height: 1.06;
}

body.home-page .home-v25-hero .home-v25-hero__lead {
  max-width: 36rem;
  margin-top: 3rem;
  color: rgba(245, 243, 239, 0.88);
  font-size: 1.125rem;
  line-height: 1.6;
}

body.home-page .home-v25-hero__actions {
  margin-top: 1.5rem;
}

body.home-page .home-v25-hero-action {
  font-size: 0.875rem;
  text-transform: uppercase;
}

body.home-page .home-v25-hero-action--primary {
  width: 13.75rem;
  min-width: 13.75rem;
  min-height: 4rem;
  flex: 0 0 13.75rem;
  padding: 0.75rem 1.35rem;
  box-sizing: border-box;
  font-size: 0.875rem;
}

body.home-page .home-v25-hero-action--primary i,
body.home-page .home-v25-hero-action--primary:is(:hover, :focus-visible) i {
  width: auto;
  height: auto;
  background: transparent;
  color: currentColor;
}

body.home-page .home-v25-hero__foot {
  min-height: 3.7rem;
  color: rgba(245, 243, 239, 0.78);
  font-size: 0.75rem;
}

body.home-page .home-v25-hero__foot > a {
  margin-right: 2rem;
}

/*
 * Locale-safe display typography.
 * The reel remains one deliberate line, but its flex item may use the full
 * viewport-safe measure instead of being constrained by the short lead copy.
 */
@media (min-width: 821px) {
  body.home-page .home-v25-hero .home-v25-hero__copy {
    /* The reveal clip-path lives on this box. It must include the longest
       localized reel phrase even at the 6.9rem type-size ceiling. */
    width: min(70rem, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
  }

  body.home-page .home-v25-hero h1,
  body.home-page .home-v25-hero h1 > .home-v25-hero__reel {
    max-width: 100%;
  }

  body.home-page .home-v25-hero__word {
    white-space: nowrap;
  }

  /* Keep the rotating display word on a stable maximum measure. The previous
     inline active-word width changed while characters were entering, so a
     longer translation was visibly sliced until the width transition ended. */
  body.home-page .home-v12-manifesto__rotate {
    width: auto !important;
    min-width: 4em;
    padding-top: 0.16em;
    padding-bottom: 0.18em;
    margin-top: -0.16em;
    margin-bottom: -0.18em;
    transition: none;
  }

  body.home-page .home-v12-manifesto__rotate .home-v9-rotate__sizer {
    display: inline-flex !important;
    width: max-content;
  }

  body.home-page .home-v12-manifesto__rotate .home-v9-rotate__word {
    width: max-content;
    max-width: none;
  }

  html:is([lang="ru"], [lang="en"]) body.home-page .home-v12-manifesto.home-v8-manifesto {
    max-width: 100%;
    font-size: clamp(4.5rem, 6.4vw, 6.25rem);
    line-height: 0.94;
  }

  html[lang="ru"] body.home-page #home-v3-about-title {
    font-size: clamp(3.5rem, 5.75vw, 5rem);
  }

  html[lang="ru"] body.home-page #home-v3-about-title > span {
    white-space: nowrap;
  }

  /* English needs two intentional rows; wrapping only "support" looked broken. */
  html[lang="en"] body.home-page .home-v12-manifesto.home-v8-manifesto {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  html[lang="en"] body.home-page .home-v12-manifesto > span:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  html[lang="en"] body.home-page .home-v12-manifesto__rotate {
    grid-column: 2;
    grid-row: 1;
  }

  html[lang="en"] body.home-page .home-v12-manifesto > span:last-child {
    width: max-content;
    max-width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.08em;
    white-space: nowrap;
  }

  /* Russian remains a single editorial line on wide screens, but every
     column now owns its intrinsic width and shares the remaining space. */
  html[lang="ru"] body.home-page .home-v12-manifesto.home-v8-manifesto {
    grid-template-columns: max-content max-content max-content;
    justify-content: space-between;
    gap: 0 0.16em;
  }

  html[lang="ru"] body.home-page .home-v12-manifesto > span:first-child,
  html[lang="ru"] body.home-page .home-v12-manifesto > span:last-child {
    min-width: 0;
    white-space: nowrap;
  }

  html[lang="ru"] body.home-page .home-v12-manifesto__rotate {
    min-width: 4em;
    white-space: nowrap;
  }
}

/* A short desktop viewport must still present the complete primary action.
   The previous 48rem floor pushed both hero buttons below a 569–640px window
   and let the availability row overlap them. */
@media (min-width: 821px) and (max-height: 640px) {
  body.home-page #home.home-v25-hero {
    --home-v26-height: max(35rem, 100svh);
  }

  body.home-page .home-v25-hero .home-v9-hero__inner {
    grid-template-rows: minmax(0, 1fr);
    padding-top: 7rem;
    padding-bottom: 0.75rem;
  }

  body.home-page .home-v25-hero .home-v25-hero__copy {
    top: 0;
    align-self: start;
  }

  body.home-page .home-v25-hero h1 {
    top: 0;
    margin-top: 1.35rem;
    font-size: clamp(4.35rem, 6.2vw, 5.35rem);
    line-height: 0.98;
  }

  body.home-page .home-v25-hero .home-v25-hero__lead {
    margin-top: 1.3rem;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  body.home-page .home-v25-hero__actions {
    margin-top: 1rem;
  }

  body.home-page .home-v25-hero-action--primary {
    min-height: 3.5rem;
  }

}

/* The full-size title and actions still fit in medium-height desktop windows,
   but the secondary availability row would overlap the actions below 801px. */
@media (min-width: 821px) and (max-height: 800px) {
  body.home-page .home-v25-hero__foot {
    display: none;
  }
}

/* Between tablet and desktop, Russian needs the same deliberate two-row
   composition as English. Keeping three columns here forces the final word
   into the section mask at 821–1120 CSS px. */
@media (min-width: 821px) and (max-width: 1120px) {
  html[lang="ru"] body.home-page .home-v12-manifesto.home-v8-manifesto {
    grid-template-columns: max-content minmax(0, 1fr);
    justify-content: stretch;
  }

  html[lang="ru"] body.home-page .home-v12-manifesto > span:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  html[lang="ru"] body.home-page .home-v12-manifesto__rotate {
    grid-column: 2;
    grid-row: 1;
  }

  html[lang="ru"] body.home-page .home-v12-manifesto > span:last-child {
    width: max-content;
    max-width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin-top: 0.08em;
  }
}

/* Avoid the narrow two-column dead zone immediately above the phone layout. */
@media (min-width: 821px) and (max-width: 900px) {
  body.home-page .home-v3-section-head--about {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  body.home-page .home-v3-section-head--about .home-v3-section-intro {
    width: min(36rem, 100%);
  }
}

/* The three-column portal heading becomes too narrow before the wide desktop. */
@media (min-width: 821px) and (max-width: 1440px) {
  body.home-page .home-v15-portal__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.home-page .home-v15-portal__head > div:first-child {
    grid-column: 1 / -1;
  }

  body.home-page .home-v15-portal__head h2 {
    max-width: none;
  }

  body.home-page .home-v15-portal__head > p {
    width: min(40rem, 100%);
  }
}

@media (max-width: 1100px) {
  body.home-page .home-v25-hero .home-v25-hero__copy {
    width: min(58rem, calc(100vw - 3rem));
  }

  body.home-page .home-v25-hero h1 {
    font-size: clamp(4rem, 7.2vw, 6rem);
  }
}

@media (max-width: 760px) {
  body.home-page #home.home-v25-hero {
    min-height: max(40rem, calc(100svh - 4.5rem));
  }

  body.home-page .home-v25-hero .home-v9-hero__inner {
    height: max(40rem, calc(100svh - 4.5rem));
    min-height: max(40rem, calc(100svh - 4.5rem));
    padding-top: 6.75rem;
    padding-bottom: 1rem;
  }

  body.home-page .home-v25-hero__visual,
  body.home-page .home-v25-hero.is-v25-ready.is-v26-canvas-ready .home-v25-hero__visual {
    transform: none;
  }

  body.home-page .home-v26-hero__canvas {
    width: 78%;
    opacity: 0.56;
  }

  body.home-page .home-v25-hero .home-v25-hero__copy {
    width: 100%;
    top: 0;
  }

  body.home-page .home-v25-hero h1 {
    top: 0;
    max-width: 100%;
    margin-top: 1.7rem;
    font-size: clamp(2.65rem, 13.1vw, 4.35rem);
    line-height: 1.04;
  }

  body.home-page .home-v25-hero .home-v25-hero__lead {
    max-width: 29rem;
    margin-top: 1.55rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  body.home-page .home-v25-hero__actions {
    margin-top: 1.55rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  body.home-page .home-v25-hero-action--primary {
    width: 11rem;
    min-width: 11rem;
    min-height: 3.45rem;
    flex-basis: 11rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 390px) {
  body.home-page .home-v25-hero h1 {
    font-size: clamp(2.42rem, 12.5vw, 3.05rem);
  }

  body.home-page .home-v25-hero h1 > span:last-child {
    white-space: normal;
  }
}

@media (max-width: 340px) {
  body.home-page .home-v25-hero h1 {
    font-size: 2.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-v25-hero__visual,
  body.home-page .home-v25-hero.is-v25-ready.is-v26-canvas-ready .home-v25-hero__visual {
    transition: none;
    transform: none;
  }
}
