/* Only the three approved slides opt in; customization slide 2 is the reference. */
body.home-page .hero-aligned .hero-copy > .eyebrow { color: #00a7ad !important; }
@media (min-width: 1001px) {
  body .hero-aligned .hero-copy {
    display: grid;
    grid-template-rows: minmax(25.6px,auto) minmax(114.4px,auto) minmax(64px,auto) minmax(46px,auto) minmax(86.6px,auto);
    align-content: center;
    width: min(670px,52%);
    padding: 48px 0;
    font: 16px/1.6 "IBM Plex Sans","Segoe UI",sans-serif;
    text-align: start;
  }
  body .hero-aligned .hero-copy > .eyebrow {
    max-width: none;
    margin: 0 0 13px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 850;
    letter-spacing: 0;
  }
  body.home-page .hero-aligned .hero-copy > :is(h1,.hero-slide-title),
  body.customization-page .hero-slide.hero-aligned .hero-copy > h1 {
    margin: 0 0 24px;
    font-family: "Roboto Condensed","Arial Narrow",sans-serif;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  body.home-page .hero-aligned .hero-copy > p:not(.eyebrow),
  body.customization-page .hero-slide.hero-aligned .hero-copy > p.lead {
    max-width: 620px;
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.6;
  }
  body.home-page .hero-aligned .hero-actions,
  body.customization-page .hero-slide.hero-aligned .hero-actions { align-items: start; gap: 12px; margin: 0 0 40px; }
  body .hero-aligned .hero-actions a {
    min-height: 46px;
    height: auto;
    padding: 9px 23px;
    font-size: 16px;
    line-height: 26px;
  }
  body .hero-aligned :is(.hero-facts,.hero-benefits) {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid currentColor;
    border-top-color: color-mix(in srgb,currentColor 25%,transparent);
  }
  body .hero-aligned :is(.hero-facts > div,.hero-benefits > article) {
    min-width: 0;
    padding: 20px 16px 0 0;
    text-align: start;
  }
  body .hero-aligned .hero-facts { color: #fff; }
  body .hero-aligned .hero-facts strong { font-size: 25px; line-height: 40px; }
  body .hero-aligned .hero-facts span { font-size: 16px; line-height: 25.6px; }
  body.home-page .home-hero-slide.hero-aligned .hero-benefits { margin: 0; }
  body.home-page .hero-carousel { height: 796px; }
  body.home-page .hero-aligned .hero-copy {
    top: 76px;
    bottom: 0;
    left: auto;
    inset-inline-start: max(24px,calc((100% - 1420px)/2));
    width: min(670px,calc((100% - 48px)*.52));
    text-shadow: none;
  }
  body.home-page .hero-aligned .hero-benefits article {
    display: grid;
    grid-template-rows: 40px auto;
    align-content: start;
    gap: 0;
    font-size: 16px;
    line-height: 25.6px;
  }
  body.home-page .hero-aligned .hero-benefits svg { display: block; width: 29px; height: 29px; margin: 0; }
  body.customization-page .hero-aligned .shell { position: relative; }
  body.customization-page .hero-aligned .hero-copy { position: absolute; inset-block: 0; inset-inline-start: 0; }
}

/* Let tablet copy determine its slide height instead of compressing fixed rows. */
@media (min-width: 1001px) and (max-width: 1360px) {
  body.customization-page .hero-slide.hero-aligned .hero-copy {
    position: relative;
    display: block;
  }
}

@media (min-width: 1361px) {
  html[lang="ru"] body.customization-page .hero-slide.hero-aligned .hero-copy > h1 {
    font-size: 44px;
  }
}

/* Keep the two homepage slides in the same content-sized mobile frame. */
@media (max-width: 1000px) {
  body.home-page .hero-carousel { display: grid; height: auto; padding-top: 76px; background: #fff; }
  body.home-page .hero-aligned {
    position: relative;
    inset: auto;
    min-width: 0;
    display: grid;
    grid-area: 1/1;
    grid-template-rows: subgrid;
    grid-row: 1 / span 2;
    opacity: 0;
    visibility: hidden;
  }
  body.home-page .hero-aligned:after { display: none; }
  body.home-page .hero-aligned.active { opacity: 1; visibility: visible; }
  body.home-page .hero-aligned .hero-copy {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    align-content: start;
    gap: 0;
    position: static;
    top: auto;
    width: auto;
    padding: 28px 20px 24px;
    background: #fff;
    color: #102027;
  }
  body.home-page .hero-aligned .hero-copy > .eyebrow { margin: 0 0 13px; }
  body.home-page .hero-aligned .hero-copy > :is(h1,.hero-slide-title) {
    margin: 0 0 24px;
    font-size: 30px;
    line-height: 1.25;
    text-wrap: balance;
  }
  body.home-page .hero-aligned .hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 0; color: #364249; font-size: 16px; line-height: 1.6; }
  body.home-page .hero-aligned .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 24px 0; gap: 10px; }
  body.home-page .hero-aligned .hero-actions a { min-width: 0; min-height: 46px; padding: 8px; font-size: 14px; line-height: 1.35; }
  body.home-page .hero-aligned .secondary-button { color: #102027; background: #fff; }
  body.home-page .home-hero-slide.hero-aligned .hero-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; gap: 14px; }
  body.home-page .hero-aligned .hero-benefits article { display: flex; gap: 8px; text-align: start; }
  body.home-page .hero-aligned .hero-benefits svg { flex: 0 0 20px; width: 20px; height: 20px; }
  body.home-page .hero-aligned .hero-image { grid-row: 2; height: 260px; object-fit: cover; }
  body.home-page .home-hero-controls { right: 16px; bottom: 18px; }
}
@media (max-width: 760px) { body.home-page .hero-carousel { padding-top: 66px; } body.home-page .hero-aligned .hero-image { height: 200px; } }
