.page-shell,
#root,
html,
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.hero-media::before {
  right: 0;
}

.document-title {
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
}

.document-title br,
.donate-title br,
.partner-title br,
.contacts-title br {
  display: block;
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .header-links {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .header-links a {
    min-width: 0;
    max-width: 100%;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-title {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
    line-height: 1.04;
  }
}
