/* =============================================
   Shared Header & Navigation Styles
   ============================================= */

/* Logo */
.logo {
  max-width: 160px;
  height: auto;
}

/* Country Dropdown (base styles) */
.country-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.country-dropdown-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #1E2B69;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 20px;
}

.country-dropdown-btn::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #1E2B69;
}

.country-dropdown-btn:hover {
  background-color: #e8e8e8;
  border-color: #28A3DD;
}

.country-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  list-style: none;
  min-width: 150px;
  display: none;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.country-dropdown:hover .country-dropdown-list {
  display: block;
}

.country-dropdown-list li {
  padding: 10px 15px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #1E2B69;
  transition: background-color 0.2s ease;
}

.country-dropdown-list li:hover {
  background-color: #f0f0f0;
}

.country-dot {
  margin-right: 8px;
  font-size: 14px;
}

/* Mobile country icon - hidden by default (shown in mobile query) */
.header__country_mobile {
  display: none;
}

/* =============================================
   Desktop (min-width: 800px)
   ============================================= */
@media screen and (min-width: 800px) {
  header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 90;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
    font-weight: bold;
    border-bottom: 1px solid #f1f1f1;
  }

  header .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .header {
    height: 5.848vw;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: 2vw;
  }

  .header__group {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    gap: 1vw;
  }

  .header__item {
    padding: 0 0.5vw;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
  }

  .header__link {
    padding-bottom: 0.58479532vw;
    text-decoration: none;
    font-size: 1.0234vw;
    font-weight: 400;
    color: #1E2B69;
    -webkit-transition: opacity .2s ease;
    transition: opacity .2s ease;
    z-index: 5;
    display: flex;
    align-items: center;
  }

  .header__link:hover {
    border-bottom: 1px solid #28A3DD;
    color: #28A3DD;
  }

  .header__logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
  }

  .header__contacts {
    display: flex;
    align-items: center;
    gap: 1.5vw;
  }

  .header__social {
    display: flex;
    align-items: center;
    gap: 1.5vw;
  }

  .header__contacts_mobile {
    display: none;
  }

  .burger {
    display: none;
  }

  .burger:hover {
    opacity: .5;
  }

  .hide {
    top: -110px;
  }

  /* Burger Menu (slide-in from left) */
  .burger-menu {
    position: fixed;
    top: 0;
    left: -830px;
    width: 22%;
    height: 100%;
    border-right: 1px solid #dcd8d8;
    background-color: #fff;
    -webkit-box-shadow: -43px 0px 104px 0px rgba(0, 0, 0, 0.81);
    box-shadow: -43px 0px 104px 0px rgba(0, 0, 0, 0.81);
    z-index: 99;
    -webkit-transition: all .6s ease;
    transition: all .6s ease;
  }

  .burger-menu__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    height: 100%;
    padding-top: 120px;
  }

  .burger-menu__list {
    width: 50%;
  }

  .burger-menu__item {
    position: relative;
    padding-bottom: 25px;
    list-style: none;
  }

  .burger-menu__item .dropdown {
    top: 50%;
  }

  .burger-menu__link {
    font-size: 20px;
  }

  .burger-menu__link:hover {
    border-bottom: none;
  }

  .burger-menu__close {
    width: 30px;
    height: 30px;
    float: right;
    margin: 30px 30px 0 0;
    cursor: pointer;
    transition: opacity .3s ease;
  }

  .burger-menu_active {
    left: 0;
  }
}

/* =============================================
   Mobile (max-width: 800px)
   ============================================= */
@media screen and (max-width: 800px) {
  header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 90;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
    font-weight: bold;
    border-bottom: 1px solid #f1f1f1;
  }

  .header {
    height: 13.848vw;
    z-index: 5;
  }

  .header__wrapper {
    width: 100%;
  }

  .header__menu {
    position: absolute;
    top: 2.4854vw;
    left: 16.0819vw;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .header__item {
    padding: 0 1.0965vw;
    list-style: none;
    position: relative;
    display: none;
  }

  .header__link {
    padding-bottom: 0.58479532vw;
    text-decoration: none;
    font-size: 1.0234vw;
    font-weight: 400;
    color: #1E2B69;
    -webkit-transition: opacity .2s ease;
    transition: opacity .2s ease;
    z-index: 5;
  }

  .header__link:hover {
    border-bottom: 1px solid #28A3DD;
    color: #28A3DD;
  }

  .header__logo {
    position: absolute;
    top: 1.1696vw;
    left: 30.9795vw;
    width: 152px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-preferred-size: 24%;
    flex-basis: 24%;
  }

  .header__contacts {
    display: none;
  }

  .header__contacts_mobile {
    display: none !important;
  }

  .header__social {
    display: none;
  }

  .country-dropdown {
    display: none !important;
  }

  /* Mobile country icon + dropdown */
  .header__country_mobile {
    display: block;
    position: absolute;
    top: 3.193vw;
    right: 4vw;
    z-index: 101;
  }

  .header__country_mobile-icon {
    width: 7vw;
    height: auto;
    cursor: pointer;
    object-fit: contain;
  }

  .country-dropdown-list--mobile {
    display: none;
    position: fixed;
    top: 14vw;
    right: 4vw;
    left: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    list-style: none;
    min-width: 180px;
    padding: 8px 0;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 102;
  }

  .country-dropdown-list--mobile.active {
    display: block;
  }

  .country-dropdown-list--mobile li {
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1E2B69;
    transition: background-color 0.2s ease;
  }

  .country-dropdown-list--mobile li:hover {
    background-color: #f0f0f0;
  }

  /* Burger icon */
  .burger {
    width: 8.193vw;
    height: 8.193vw;
    background: url("../assets/img/icon menu.png") no-repeat center;
    background-size: contain;
    cursor: pointer;
    position: absolute;
    top: 3.193vw;
    left: 11.038vw;
    transition: opacity .3s ease;
  }

  .burger:hover {
    opacity: .5;
  }

  .hide {
    top: -110px;
  }

  /* Burger Menu (slide-in from left) */
  .burger-menu {
    position: fixed;
    top: 0;
    left: -830px;
    width: 70%;
    height: 100%;
    border-right: 1px solid #dcd8d8;
    background-color: #fff;
    -webkit-box-shadow: -43px 0px 104px 0px rgba(0, 0, 0, 0.81);
    box-shadow: -43px 0px 104px 0px rgba(0, 0, 0, 0.81);
    z-index: 99;
    -webkit-transition: all .6s ease;
    transition: all .6s ease;
  }

  .burger-menu__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    height: 100%;
    padding-top: 120px;
  }

  .burger-menu__list {
    width: 50%;
  }

  .burger-menu__item {
    position: relative;
    padding-bottom: 25px;
    list-style: none;
  }

  .burger-menu__item .dropdown {
    top: 50%;
  }

  .burger-menu__link {
    font-size: 20px;
  }

  .burger-menu__link:hover {
    border-bottom: none;
  }

  .burger-menu__close {
    width: 30px;
    height: 30px;
    float: right;
    margin: 30px 30px 0 0;
    cursor: pointer;
    transition: opacity .3s ease;
  }

  .burger-menu_active {
    left: 0;
  }
}
