

.navbar {
  min-height: 80px;
  padding: 0;
  background: #c4e1f8;
  box-shadow: 0 4px 24px 0 rgba(31, 108, 170, 0.3);
  border-bottom: 2px solid #89b7de;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left:unset !important;
  padding-top: unset !important;
  justify-content: flex-start;

}
.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar-toggler {
  position: absolute;
  right: 20px;
  display: block !important;
  border: none !important;
  outline: none !important; 
  box-shadow: none !important; 
}

.navbar-toggler-icon {
  display:none;
  width: 30px;
  height: 30px;
  opacity: 1;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%234d89b9' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  border-radius: 4px;
}


@media (max-width: 790px) {
  .navbar-toggler {
    right: 10px;
  }
  .navbar-toggler-icon{
      display:block;
  }
}

.language-switcher {
  position: absolute;
  right: calc(20px + 50px);
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  gap: 16px;
  transition: gap 0.1s ease, font-size 0.1s ease;
  z-index: 9;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-container {
  position: relative;
  width: 60px; 
  height: 26px;
  display: flex;
  border-radius: 8px;
  background-color: #89b7de;
  overflow: hidden;
  cursor: pointer;
}

.switch-button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  height: 100%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 0.8rem;
}

  .switch-button.active {
    background-color: #4d89b9;
    color: white;
    font-weight: bold;
    text-decoration: underline;
  }

  .switch-button:not(.active):hover {
    background-color: #4d89b9;
  }

.center-7e {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px; 
  position: relative;
  min-width: 0;
  margin-top: 10px;
  transition: gap 0.1s ease, font-size 0.1s ease; 
}

@media (max-width: 1400px) {


  .nav-link {
    font-size: 0.6rem; 
  }
}

@media (max-width: 1400px) {
  .center-7e {
    gap: 6px;
  }

  .nav-link {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  
  .center-7e {
    gap: 8px;
  }

  .nav-link {
    font-size: 0.5rem; 
  }

 
  .navbar-collapse {
    flex-direction: column; 
    align-items: center;
  }

  .collapse.navbar-collapse {
    margin-right: 0;
  }
}

.rectangle-7b {
  flex-shrink: 0;
  position: relative;
  max-width: 380px;
  width: 100%;
  min-height: 80px;
  top: 0;
  left: -1px;
  background: url(../images/a5178b8f-554d-4b84-a470-ec559328c20e.png) no-repeat center;
  background-size: cover;
  z-index: 198;
}
.navbar-brand-1 {
  background: url(../images/rect.png) no-repeat center center;
  background-size: 100% 100%;
  height: 80px;
  width: auto; /* изменено */
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 2vw; /* адаптивный padding */
  margin: 0;
  box-sizing: border-box;
}

  .navbar-brand-1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../images/rect.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: -1;
  }


@media (max-width: 1400px) {
  .navbar-brand {
    margin-left: 10px;
    width: 20vw; 
    height: auto; 
  }
}

@media (max-width: 900px) {
  .navbar-brand {
    margin-left: 7px;
    width: 16vw; 
    height: auto;
  }
}

  @media (max-width: 1300px) {
  .navbar {
    padding-left: 16px; /* Меньший отступ слева */
    padding-right: 16px; /* Меньший отступ справа */
  }

  .navbar-brand {
    margin-left: 48px; /* Логотип с отступом от левого края */
  }
}

/* Для экранов больше 1400px */
@media (min-width: 1301px) {
  .navbar {
    padding-left: 32px; /* Отступ слева для больших экранов */
    padding-right: 32px; /* Отступ справа для больших экранов */
  }

  .navbar-brand {
    margin-left: 64px; /* Логотип с большим отступом для широких экранов */
  }
}

/* Для мобильных экранов (когда navbar сжимаются) */
@media (max-width: 790px) {
  .navbar-collapse {
    visibility:hidden;
    flex-direction: column;
    align-items: center; /* Центрируем меню */
  }

  .navbar-brand {
    margin-left: 16px; /* Меньший отступ слева для мобильных устройств */
  }

  .navbar-toggler {
    position: absolute;
    right: 16px;
  }
}


@media (max-width: 767px) {
  .navbar-toggler {
    position: relative;
    right: auto;
    z-index: 20;
  }

 /* .language-switcher {
    display: none;
  }*/
}

/*.nav-item {
  height: 26px;
  border-radius: 8px;
}*/

.button-all {
  padding: 8px 20px 8px 20px;
  cursor: pointer;
  background: #89b7de;
  height: 26px;
  border-radius: 8px;
  color: white;
  border: none;
  font-size: 14px;
  white-space: nowrap;
  font-size: 1rem;
  width: auto;
  transition: padding 0.1s ease, font-size 0.1s ease, width 0.1s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; /* SemiBold */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1200px) {

  .button-all {

    padding: 8px 16px;
  }
}

@media (max-width: 992px) {

  .button-all {
    height: 20px;
    padding: 6px 12px;
  }
}

@media (max-width: 767px) {

  .button-all {
    height: 20px;
    padding: 5px 10px;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .button-all {
    padding: 4px 8px; 
    width: 100%;
  }
}


.button-all.active-button {
  background: #4d89b9 !important;
  color: white !important;
  /*border: 2px solid #89b7de !important*/;
  text-decoration: underline;
}

  .button-all:hover {
    border-radius: 8px;
    background: #4d89b9;
    text-decoration: underline;
    color: white;
  }

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }

  /*.button-all {
    display: block;
    width: 100%;
  }*/
}

.nav-text {
  height: auto;
  color: #ffffff;
  font-family: Montserrat, var(--default-font-family);
  font-size: clamp(8px, 0.9vw, 14px);
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  transition: color 0.3s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .nav-text:hover {
    color: white;
  }

.button-all.active-button .nav-text {
  color:white
}

.nav-item:active {
  text-decoration: underline;
  text-decoration-color: white;
}

.navbar-nav .nav-item .nav-link:focus {
  text-decoration: underline;
}

.logo-7a {
  width: clamp(150px, 20vw, 340px); /* логотип адаптивный */
}

.logo-7a img {
  width: 12vw;
  max-width: 340px;
  height: auto;
  transition: width 0.1s ease;
}

@media (max-width: 1350px) {
  .logo-7a img {
    width: 13vw; 
  }
}


@media (max-width: 992px) {
  .logo-7a img {
    width: 13vw; 
  }
}


@media (max-width: 788px) {
  .logo-7a img {
    width: 36vw;
  }
}

  .navbar-brand-1 {
    background: unset;
  }

  @media (max-width: 576px) {
    .logo-7a img {
      width: 36vw;
    }
  }

  @media (max-width: 1200px) {
    .language-switcher {
      gap: 12px;
    }

    .switch-button {
      padding: 6px 10px;
      font-size: 0.7rem;
    }
  }

  @media (max-width: 992px) {

    .switch-button {
      padding: 5px 8px;
      font-size: 0.6rem;
    }
  }

  @media (max-width: 768px) {
    .language-switcher {
      gap: 6px;
      margin-right: 10px;
    }

    .switch-button {
      padding: 4px 6px;
      font-size: 0.55rem;
    }
  }

  @media (max-width: 576px) {
    .language-switcher {
      gap: 4px;
    }

    .switch-button {
      padding: 3px 5px;
      font-size: 0.5rem;
    }
  }

  @media (max-width: 1200px) {
    .switch-container {
      width: 70px;
      height: 26px;
    }
  }


  @media (max-width: 992px) {
    .switch-container {
      width: 60px;
      height: 20px;
    }
  }

  @media (max-width: 768px) {
    .switch-container {
      width: 60px;
      height: 20px;
    }
  }

  @media (max-width: 576px) {
    .switch-container {
      width: 60px;
      height: 20px;
    }
  }


  .custom-dropdown {
    position: absolute !important;
    top: 100%;
    min-width: 200px;
    background: #E1F0FC;
    /*  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(31, 108, 170, 0.3);*/
    border: 1px solid #89b7de;
    padding: 10px 0;
  }

  .dropdown-item {
    padding: 10px 15px;
    color: #A6C4DC;
    font-weight: bold;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    border-bottom: 1px solid #89b7de;
  }

    .dropdown-item:hover {
      background: #89b7de;
      color: white;
    }

    .dropdown-item:last-child {
      border-bottom: none;
    }

