.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
}

.header__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3b3b3b;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.header__link:hover {
  color: #0560fa;
}

.header__link--active {
  font-weight: 600;
  color: #0560fa;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language selector button */
.language-selector {
  position: relative;
}

.language-selector__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #ffffff;
  border: 0.5px solid #e1e7ef;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3b3b3b;
  transition: border-color 0.2s ease;
}

.language-selector__trigger:hover {
  border-color: #0560fa;
}

.language-selector__flag {
  font-size: 16px;
  line-height: 1;
}

.language-selector__chevron {
  width: 14px;
  height: 14px;
  color: #6b6b6b;
  transition: transform 0.2s ease;
}

.language-selector__chevron--open {
  transform: rotate(90deg);
}

/* Modal overlay */
.language-selector__modal-overlay {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
}

[dir="rtl"] .language-selector__modal-overlay {
  right: auto;
  left: 0;
}

.language-selector__modal-content {
  width: 220px;
  max-width: calc(100vw - 48px);
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.language-selector__modal-title {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin: 0 0 10px;
}

.language-selector__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.language-selector__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.language-selector__option:hover {
  background-color: #f5f5f5;
}

.language-selector__option--selected {
  background-color: #f0f7ff;
}

.language-selector__option-flag {
  font-size: 18px;
  line-height: 1;
}

.language-selector__option-name {
  flex: 1;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
}

.language-selector__option--selected .language-selector__option-name {
  color: #0560fa;
  font-weight: 600;
}

.language-selector__check {
  width: 20px;
  height: 20px;
  color: #0560fa;
}

/* Mobile menu */
.header__menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #3b3b3b;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .header__container {
    box-sizing: border-box;
    width: 100%;
    padding: 0 12px;
    gap: 8px;
  }

  .header__logo {
    min-width: 0;
  }

  .header__logo svg {
    width: clamp(88px, 31vw, 120px);
    height: auto;
  }

  .header__menu-button {
    display: flex;
    flex-shrink: 0;
    padding: 6px;
  }

  .header__nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__link {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
  }

  .header__link:last-child {
    border-bottom: none;
  }

  .header__actions {
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
  }

  .language-selector__trigger {
    gap: 5px;
    padding: 7px 9px;
    font-size: 14px;
    white-space: nowrap;
  }
}
