html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

.nav-label-short,
.mobile-menu {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .topbar {
    border-top-width: 2px;
    overflow: visible;
  }

  .topbar .container.nav,
  .nav {
    width: 100%;
    max-width: 100%;
    min-height: 64px;
    height: auto;
    padding: 8px 12px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow: visible;
  }

  .brand {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    gap: 0;
  }

  .brand img {
    width: clamp(78px, 22vw, 96px);
    height: auto;
    display: block;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu {
    display: block;
    position: relative;
    margin-left: auto;
    flex: 0 0 auto;
    z-index: 80;
  }

  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #dfe7ef;
    background: #fff;
    color: #10243e;
    box-shadow: 0 8px 20px rgba(16, 36, 62, .09);
    user-select: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .hamburger-icon {
    display: block;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    transform: translateY(-1px);
  }

  .mobile-menu[open] summary {
    border-color: #b8d47b;
    background: #f6fbec;
    color: #4e8500;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 50px;
    right: 0;
    width: min(260px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 10px;
    border: 1px solid #e4ebf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(16, 36, 62, .18);
    display: grid;
    gap: 6px;
    z-index: 90;
  }

  .mobile-menu-panel a {
    display: block;
    width: 100%;
    padding: 12px 13px;
    border-radius: 13px;
    color: #253143;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
  }

  .mobile-menu-panel a:hover {
    background: #f1f8e7;
    color: #4e8500;
  }

  .mobile-lang-form {
    display: grid;
    gap: 7px;
    margin-top: 4px;
    padding: 10px;
    border-radius: 14px;
    background: #f7fafc;
  }

  .mobile-lang-form label {
    color: #697386;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-lang-form select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #fff;
    color: #253143;
    font: inherit;
    font-weight: 800;
    padding: 8px 12px;
  }

  .container,
  .assessment-card,
  .assessment-header,
  .assessment-body,
  .hero,
  .hero-grid,
  .result-page,
  .result-hero,
  .panel {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .topbar .container.nav,
  .nav {
    min-height: 58px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-menu summary {
    width: 38px;
    height: 38px;
  }

  .hamburger-icon {
    font-size: 21px;
  }

  .mobile-menu-panel {
    top: 46px;
    width: min(250px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}
