
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.header__logo img {
  height: 44px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.header__logo--eng img {
  height: 36px;
}

.header__logo:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 4px 6px rgba(79, 168, 224, 0.3));
}

.header__nav {
  display: flex;
}

.nav__list {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.nav__link {
  position: relative;
  color: var(--color-text);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s ease;
  z-index: 1;
}


.nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(79, 168, 224, 0.1);
  border-radius: 100px;
  z-index: -1;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover::before,
.nav__link.active::before {
  transform: scale(1);
  opacity: 1;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__item-mobile {
  display: none;
}

.header__actions-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.header__actions {
  display: flex;
  align-items: center;
}

.header__lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-soft);
  border: 1.5px solid var(--color-border);
  padding: 3px;
  border-radius: var(--radius-full);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-primary);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
  .header__lang-switcher {
    margin-right: var(--space-sm);
  }
}


.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 10;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.header__burger:hover span {
  background-color: var(--color-primary);
}


.header--scrolled {
  
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}



@media (max-width: 1024px) {
  .header {
    width: 100%;
    top: 0;
    padding: 12px 0;
  }
  
  .header__actions-wrapper {
    margin-left: auto;
    margin-right: var(--space-sm);
  }

  .header__nav {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: var(--space-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }
  
  .header__nav.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
    width: 100%;
  }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
  }

  .nav__link::before {
    transform: scale(0.95);
  }

  .nav__item-mobile {
    display: block;
    width: 100%;
    margin-top: var(--space-md);
  }

  .nav__item-mobile .btn {
    width: 100%;
    justify-content: center;
  }
  
  .header__actions {
    display: none; 
  }
  
  .header__burger {
    display: block;
  }
  
  
  .header__burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header__burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
