/* SDS mobile layout repair: container-based geometry; no scripts or content changes. */
.perviy-ekran__media[data-astro-cid-hvfzqu27] {
  width: max(min(84%, var(--shirina)), calc(100% - (var(--hero-progress) * 50%)));
}
@media (max-width: 47.99rem) {
  .perviy-ekran__stsena[data-astro-cid-hvfzqu27] {
    width: 100%;
    aspect-ratio: 100 / 126;
    max-height: 35.125rem;
  }
  .perviy-ekran__media[data-astro-cid-hvfzqu27] {
    position: absolute;
    inset: 0;
    width: calc(100% - (var(--hero-progress) * 25%));
    height: 100%;
    min-height: 0;
  }
  .perviy-ekran__overlay[data-astro-cid-hvfzqu27] h1[data-astro-cid-hvfzqu27] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .perviy-ekran__overlay[data-astro-cid-hvfzqu27] h1[data-astro-cid-hvfzqu27] span[data-astro-cid-hvfzqu27] {
    white-space: normal;
  }
  .polnyy-tsikl__ryady[data-astro-cid-lipuokbs] { width: 100%; }
  .polnyy-tsikl__media[data-astro-cid-lipuokbs] {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .polnyy-tsikl__tekst[data-astro-cid-lipuokbs] { padding-inline: var(--pole-stranitsy); }
}
@media (max-width: 47.99rem) and (orientation: landscape) and (max-height: 32rem) {
  .perviy-ekran__stsena[data-astro-cid-hvfzqu27] { aspect-ratio: auto; max-height: none; }
  .perviy-ekran__media[data-astro-cid-hvfzqu27] { position: relative; inset: auto; height: 100svh; min-height: 20rem; }
  .perviy-ekran__overlay[data-astro-cid-hvfzqu27] h1[data-astro-cid-hvfzqu27] { width: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .perviy-ekran__media[data-astro-cid-hvfzqu27] { width: 100%; }
}
@supports (container-type: inline-size) and (width: 1cqw) {
  .raboty[data-astro-cid-ueghscqt] { container-type: inline-size; }
  .raboty__polosa[data-astro-cid-ueghscqt] {
    --raboty-shirina-slayda: min(55cqw, 42rem);
    --raboty-otstup: max(var(--pole-stranitsy), calc((100cqw - var(--raboty-shirina-slayda)) / 2));
  }
  @media (max-width: 47.99rem) {
    .raboty__polosa[data-astro-cid-ueghscqt] {
      --raboty-shirina-slayda: min(calc(100cqw - 4rem), 28rem);
      --raboty-otstup: max(1rem, calc((100cqw - var(--raboty-shirina-slayda)) / 2));
    }
  }
}
