@import "nullstyle.css";
@import "variables.css";

body {
  color: var(--text-dark-color);
}

.header-wrapper__logo{
  flex-shrink: 0;        
  min-width: 150px;
}
.header-wrapper__logo a {
  padding: 10px;
}

.header-wrapper__logo svg {
  width: 20rem;
}

.header {
    display: flex;
  width: 100%;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 100;
  background-color: transparent;
  -webkit-transition: background-color 0.3s, -webkit-box-shadow 0.3s;
  transition: background-color 0.3s, -webkit-box-shadow 0.3s;
  transition: background-color 0.3s, box-shadow 0.3s;
  transition: background-color 0.3s, box-shadow 0.3s, -webkit-box-shadow 0.3s;
}
.header .nav {
  height: 6rem;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.header .nav__logo,
.header .nav__toggle,
.header .nav__close {
  display: inline-block;
  color: #fff;
}
.header .header-wrapper__logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.header .nav__menu {
  display: flex;
  flex-wrap: nowrap;  
  white-space: nowrap; 
  justify-content: space-between;
  align-items: center;
  flex: 3;
}

.header .nav__list {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: space-evenly;
  text-align: center;
}

.header .nav__list .nav__link {
  /*text-transform: capitalize;*/
  color: var(--light-color);
  font-family: "Montserrat", sans-serif;
  -webkit-transition: background-color 0.4s;
  transition: background-color 0.4s;
}
header:hover .nav__list .nav__link {
  color: var(--text-hover);
}
.header .nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.header .nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
  display: none;
  font-family: "Montserrat", sans-serif;
}
.header .show-menu {
  top: 0;
}

.header .nav__icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  width: 20%;
}

.header .nav__icons a {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark-color);
  display: flex;
  align-items: center;
}

select {
  background-color: transparent;
  color: var(--body-color);
  font-size: 20px;
}

header:hover select {
  color: var(--text-hover);
}

.header-wrapper__logo .cls-1 {
  fill: #fff;
}
header:hover .header-wrapper__logo .cls-1 {
  fill: #003c83;
}
header:hover,
.bg-header .header-wrapper__logo .cls-1 {
  fill: #003c83;
}

.header-wrapper__logo .cls-2 {
  fill: #fff;
}
header:hover .header-wrapper__logo .cls-2 {
  fill: black;
}
header:hover,
.bg-header .header-wrapper__logo .cls-2 {
  fill: black;
}
header:hover,
.bg-header {
  background-color: var(--light-color);
  -webkit-box-shadow: 0 1px 2px var(--light-color);
  box-shadow: 0 1px 2px var(--light-color);
  z-index: 10;
}

header:hover .nav__list .nav__link,
.bg-header .nav__list .nav__link,
select {
  color: var(--text-hover);
}

header:hover,
.bg-header select {
  color: var(--text-hover);
}


.bg-header select {
  color: var(--text-hover);
}
header,
select {
  color: var(--light-color);
}

/* .show-menu{
  display: none;
} */
#mobileLogo {
  display: none;
}
#buter {
  display: none;
}
#buter {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark-color);
}

li a,
.nav__link {
  display: inline-block;
  /* color: white; */
  font-size: 18px;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* li a:hover,
.nav__items .nav__link {
  color: var(--dark-gray);
} */

.nav__icons .nav__list .nav__items {
  width: 25%;
  display: flex;
  justify-content: center;
    gap: 2px;
}
/* li.nav__items {
  display: inline-block;
} */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--light-color);
  min-width: 200px;
  z-index: 1;
  border-radius: 1rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.dropdown-content li a {
  color: var(--main-color);
  padding: 10px 8px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-radius: 1rem;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.nav__items:hover .dropdown-content {
  display: block;
  color: red;
}

#nav {
  list-style: none inside;
  margin: 0;
  padding: 0;
  text-align: center;
}

#nav li {
  display: block;
  position: relative;
  /* float: left; */
  /* menu background color */
}

/* #nav li a {
  display: block;
  padding: 0;
  text-decoration: none;
  line-height: 25px;
} */

#nav li li a {
  font-size: 95%;
}

#nav ul {
  position: absolute;
  padding: 0;
  left: 0;
  display: none;
  /* hides sublists */
}

#nav li:hover ul ul {
  display: none;
  color: red;
}



/* hides sub-sublists */

#nav li:hover ul {
  display: block;
  color: red;
}

/* shows sublist on hover */

#nav li li:hover ul {
  display: block;
  position: absolute;
  top: 0;
  left: 96%;
  margin-left: 8px;
  background: white;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.low-vision-btn {
  width: 100%;
}

.header-wrapper__logo svg {
  height: 60px;
  width: auto;
  min-width: 150px;
  max-width: none;
  display: block;
  color: #f0f0f0; /* Белый цвет по умолчанию */
  transition: color 0.3s ease;
}

header:hover .header-wrapper__logo svg {
  color: #203873; /* Синий цвет при наведении на header */
}

header:hover .header-wrapper__logo svg {
  color: #203873;       
}

.header-wrapper__logo svg {
  pointer-events: none;
}
.nav__list .nav__link {
  margin: 15px;
}

/* === Адаптивный header и меню для <= 992px === */

/* Скрываем мобильный логотип по умолчанию */
#mobileLogo {
  display: none;
}

/* Мобильный header */
        .mobile-header {
            display: none;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.07);
            z-index: 1000;
            position: relative;
        }
        
        .mobile-header__logo {
            width: 90px;
            margin-right: 10px;
        }
        
        .mobile-header__logo svg {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .mobile-header__info {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            flex: 1;
            margin-right: 10px;
        }
        
        .mobile-header__phone {
            color: #0066cc;
            font-size: 15px;
            text-decoration: none;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
        }
        
        .mobile-header__phone i {
            margin-right: 5px;
            font-size: 16px;
        }
        
        .mobile-header__locale {
            border: 1px solid #ddd;
            border-radius: 3px;
            padding: 2px 8px;
            font-size: 14px;
            background: #f8f8f8;
        }
        
        .mobile-header__actions {
            display: flex;
            align-items: center;
        }
        
        .mobile-menu-toggle {
            margin-left: 8px;
            background: none;
            border: none;
            width: 30px;
            height: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            padding: 0;
        }
        
        .mobile-menu-toggle .bar {
            display: block;
            width: 100%;
            height: 3px;
            background: #333;
            border-radius: 2px;
            transition: all 0.3s;
        }
        
        /* Мобильное меню */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 85%;
            height: 100vh;
            background: #fff;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            z-index: 1100;
            transition: left 0.3s ease;
            overflow-y: auto;
            padding-top: 20px;
        }
        
        .mobile-menu.active {
            left: 0;
        }
        
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1050;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .mobile-menu-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #333;
            cursor: pointer;
        }
        
        .mobile-search {
            padding: 15px;
            display: flex;
            border-bottom: 1px solid #eee;
        }
        
        .search-dropdown-container  {
            width: 90%;
        }
        
        .mobile-search button {
            background: #0066cc;
            color: white;
            border: none;
            padding: 0 15px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }
        
        .mobile-nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .mobile-nav-list li {
            border-bottom: 1px solid #eee;
        }
        
        .mobile-nav-list a {
            display: block;
            padding: 15px;
            color: #333;
            text-decoration: none;
        }
        
        .mobile-contacts {
            padding-top: 30px;
            padding-left: 100px;
            margin-top: auto;
            display: flex;
            font-size: 20px;
        }
        
        .contact-link {
            display: flex;
            align-items: center;
            color: #0066cc;
            padding-left: 20px;
            text-decoration: none;
        }
        
        .contact-link i {
            margin-right: 10px;
        }
        
        body.no-scroll {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }
        
        /* Анимация бургер-иконки */
        .mobile-menu-toggle.active .bar:nth-child(1) {
            transform: translateY(10px) rotate(45deg);
        }
        
        .mobile-menu-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }
        
        .mobile-menu-toggle.active .bar:nth-child(3) {
            transform: translateY(-10px) rotate(-45deg);
        }
        
        /* Медиа-запросы */
        @media (max-width: 992px) {
          #nav {
            display: none;
          } 
            .header {
                display: none;
            }
            
            .mobile-header {
                display: flex;
            }
            header, select {
            color: #203873 !important;
          }}
        
        @media (min-width: 993px) {
           
          .mobile-header {
                display: none;
            }
            
            .header {
                display: block;
            }
                      .phone-link {
              font-size: 1.2em; /* Увеличиваем размер шрифта для номера телефона */
          }

          .phone-link i.fa {
              font-size: 1.2em; /* Увеличиваем размер значка */
          }
          .mobile-contacts a:first-child {
              margin: 15px;
          }
          .mobile-contacts i {
              margin-right: 5px;
              padding-right: 5px;
          }
          .mobile-logo svg {
              color: #203873;
          }
          
          
        }