@media (max-width: 991px) {
  header {
    height: 72px !important;
    background-color: rgba(0, 0, 0, 0.76) !important;
  }

  header .menu-container,
  header .row,
  header .col-12,
  header .navbar,
  header .container-fluid {
    height: 100%;
  }

  header .row {
    margin: 0;
  }

  header .col-12 {
    padding: 0 16px;
  }

  header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 !important;
  }

  header .navbar-brand {
    position: static !important;
    left: auto !important;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: calc(100% - 118px);
    margin: 0 !important;
    padding: 0 !important;
  }

  header .navbar-brand img {
    width: 82px !important;
    height: auto !important;
    flex: 0 0 auto;
  }

  header .logo-text {
    max-width: 145px;
    margin-top: 0;
    padding-top: 3px;
    border-width: 2px 0 0 0;
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
  }

  header .navbar-toggler {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(243, 147, 55, 0.28);
  }

  header .navbar-toggler img {
    width: 20px;
    height: 20px;
  }

  header .header-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1;
  }

  header .navbar-collapse {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 8px 16px 18px;
    background-color: rgba(15, 19, 32, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  }

  header .navbar-nav {
    width: 100%;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  header .nav-item {
    width: 100%;
    min-height: 0;
    height: auto !important;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  header .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.25;
    letter-spacing: 0;
  }

  header .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100%;
    margin: 0 0 10px;
    padding: 0 0 0 14px !important;
    background: transparent !important;
    border: 0;
    transform: none !important;
  }

  header .dropdown-item {
    min-height: 38px;
    padding: 8px 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  header .dropdown-item:hover,
  header .dropdown-item:focus {
    color: #f39337 !important;
    background: transparent !important;
  }

  header .so-med {
    display: none !important;
  }
}

@media (max-width: 420px) {
  header .col-12 {
    padding: 0 12px;
  }

  header .navbar-brand {
    max-width: calc(100% - 110px);
  }

  header .navbar-brand img {
    width: 72px !important;
  }

  header .logo-text {
    max-width: 118px;
    font-size: 9px;
  }

  header .header-language {
    min-width: 50px;
    padding: 0 7px;
  }

  header .navbar-toggler {
    width: 40px;
    height: 40px;
  }
}
