.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

html {
  scroll-padding-top: 112px;
}

.site-header {
  position: fixed;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 0.22s ease, background-color 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 8px 28px rgba(16, 43, 64, 0.14);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  opacity: 0.62;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a.active {
  opacity: 1;
}

.lang-switch a:hover {
  transform: translateY(-1px);
}

.lang-switch a img {
  width: 25px;
  height: 18px;
  border-radius: 2px;
  box-shadow: none;
}

.lang-switch a.active {
  box-shadow: none;
}

.visually-hidden {
  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: 1100px) {
  .site-header {
    position: fixed;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .site-header > .header-cta {
    display: none;
  }

  .site-header > .lang-switch {
    margin: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid #cbd8d2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 19px;
    height: 2px;
    background: #102b40;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d8e1de;
    box-shadow: 0 18px 40px rgba(16, 43, 64, 0.16);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu a {
    padding: 16px 20px;
    color: #102b40;
    border-bottom: 1px solid #e3e9e6;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu .mobile-specialist {
    color: #fff;
    background: #13844d;
    border-bottom: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 90px;
  }

  .site-header {
    width: calc(100% - 24px);
    height: 76px;
    padding: 0 10px;
  }

  .header-logo {
    max-width: 145px;
    height: 58px;
  }

  .lang-switch {
    gap: 5px;
    padding: 0;
  }

  .lang-switch a img {
    width: 23px;
    height: 16px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    top: 76px;
  }
}
