/* DOM1 responsive polish v3: safe gutters, readable type, legacy Chromium/Yandex fallbacks. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-wrap: break-word;
  word-spacing: 0.015em;
}

/* Physical margins and calc() are a reliable fallback for older Chromium/Yandex builds. */
.shell {
  width: calc(100% - 96px);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

h1 {
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h3 {
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.domain-primary {
  letter-spacing: -0.04em;
  line-height: 1;
}

p,
li,
dd,
figcaption,
.button {
  word-spacing: 0.03em;
}

.hero-kicker,
.eyebrow {
  display: block;
  max-width: 100%;
  letter-spacing: 0.075em;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
}

.eyebrow span {
  margin-right: 12px;
  vertical-align: middle;
}

.hero-lead,
.lead {
  line-height: 1.65;
}

.microcopy,
.source-note,
.materials-note,
.file-info p,
.roadmap-list p,
.role-grid article p,
.stop-grid p {
  line-height: 1.65;
}

/* Flex-gap was absent in older Chromium/Yandex Browser: use explicit margins. */
.header-inner,
.brand,
.desktop-nav,
.header-contacts {
  gap: 0;
}

.brand {
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  margin-left: 14px;
  line-height: 1.12;
}

.brand-copy strong {
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.brand-copy small {
  margin-top: 4px;
  letter-spacing: 0.025em;
  line-height: 1.25;
}

.mobile-menu nav {
  width: 290px;
  max-width: calc(100vw - 48px);
}

.dom1-film-caption {
  align-items: flex-end;
}

@media (min-width: 921px) {
  .header-contacts {
    margin-left: 24px;
  }

  .header-contacts a + a {
    margin-left: 18px;
  }

  .desktop-nav a + a {
    margin-left: clamp(14px, 2vw, 30px);
  }

  .header-cta {
    margin-left: 18px;
  }

  .language-switch {
    margin-left: 12px;
  }
}

@media (min-width: 1241px) and (max-width: 1400px) {
  .mobile-menu {
    margin-left: 10px;
  }
}

@media (max-width: 1240px) {
  .shell {
    width: calc(100% - 64px);
    max-width: 920px;
  }

  h1 {
    font-size: clamp(2.65rem, 6vw, 4.4rem);
  }

  h2,
  .dom1-film-copy h2 {
    font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  }

  .language-switch {
    margin-left: auto;
  }

  .mobile-menu {
    margin-left: 10px;
  }

  .slide-counter {
    right: 32px;
  }
}

@media (min-width: 921px) and (max-width: 1240px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 920px) {
  .shell {
    width: calc(100% - 56px);
    max-width: 760px;
  }

  .header-contacts {
    margin-left: 0;
  }

  .header-contacts a + a {
    margin-left: 0;
  }

  .header-contacts a,
  .header-contacts a:last-child {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-contacts strong {
    line-height: 1.3;
    letter-spacing: 0.005em;
  }

  .slide-counter {
    right: 28px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 48px);
    max-width: 560px;
  }

  .brand {
    flex: 0 1 auto;
    max-width: calc(100% - 132px);
  }

  .brand-copy {
    max-width: 150px;
  }

  .brand-copy small {
    max-width: 150px;
  }

  .slide {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .slide-counter {
    right: 24px;
  }

  h1 {
    max-width: 14ch;
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 9.5vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.09;
  }

  h2,
  .dom1-film-copy h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    letter-spacing: -0.025em;
    line-height: 1.11;
  }

  .hero-kicker,
  .eyebrow {
    margin-bottom: 20px;
    font-size: 0.74rem;
    letter-spacing: 0.065em;
    line-height: 1.5;
  }

  .hero-lead,
  .lead {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-facts {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .hero-facts div,
  .hero-facts div:first-child {
    min-height: 88px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .button {
    height: auto;
    min-height: 56px;
    padding: 14px 22px;
    line-height: 1.3;
  }

  .hero-actions > * + * {
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 44px);
  }

  .site-header .brand {
    max-width: calc(100% - 140px);
    margin-right: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.65rem;
  }

  .brand-copy {
    max-width: 96px;
    margin-left: 10px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    max-width: 96px;
    font-size: 0.5rem;
    line-height: 1.28;
  }

  .slide {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .slide-counter {
    right: 22px;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
    line-height: 1.1;
  }

  h2,
  .dom1-film-copy h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.35rem);
    line-height: 1.12;
  }

  .header-contacts a,
  .header-contacts a:last-child {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-contacts strong {
    font-size: 0.7rem;
  }
}

@media (orientation: landscape) and (max-height: 700px) and (min-width: 560px) and (max-width: 1240px) {
  .shell {
    width: calc(100% - 64px);
  }

  .slide {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.08;
  }

  h2,
  .dom1-film-copy h2 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    line-height: 1.1;
  }

  .hero-kicker,
  .eyebrow {
    margin-bottom: 18px;
  }

  .hero-lead,
  .lead {
    line-height: 1.62;
  }
}