.header {
  color: #fff;
  position: relative;
  padding: 20px 0 0;
  z-index: 3;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #acacac, #c4c4c4);
  border-image-slice: 1;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  z-index: 4;
}

/* Логотип и текст рядом с ним */
.header__logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-text {
  font-size: 34px;
  font-weight: bold;
  margin-left: 0;
}

.logo-text__ol {
  color: #000000;
  font-weight: 800;
}

.logo-text__serwis {
  color: #08ccfc;
}

/* Навигационное меню */
.header__nav {
  display: none;
}

.header__nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav ul li {
  margin-right: 20px;
}

.header__nav ul li:last-child {
  margin-right: 0;
}

/* Стили для ссылок в меню с эффектом подчеркивания */
.header__links a,
.menu__links a {
  position: relative;
  text-decoration: none;
  color: #000000;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.header__links a:hover,
.menu__links a:hover {
  color: #08ccfc;
}

/* Линия под текстом, появляющаяся при наведении */
.header__links a::after,
.menu__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #08ccfc;
  transition: width 0.3s ease;
}

.header__links a:hover::after,
.menu__links a:hover::after {
  width: 100%;
}

/* Блок действий с кнопкой и переключателем языка */
.header__actions {
  display: none;
}

/* Оформление переключателя языка */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #f5f5f5;
  padding: 5px 10px;
  border-radius: 8px;
  position: relative;
}

.current-language {
  font-size: 16px;
  color: #333;
}

.language-switcher img {
  width: 20px;
  height: 20px;
  display: block;
}

.language-select {
  font-size: 16px;
  padding: 8px;
  border: none;
  background: none;
  color: #333;
  outline: none;
  cursor: pointer;
  appearance: none; /* Убирает стандартные стили браузера */
  font-family: inherit;
  background-color: #f5f5f5;
  border-radius: 5px;
  padding-right: 20px; /* Оставляем место для стрелки */
  position: relative;
}

/* Добавляем кастомную стрелку */
.language-switcher::after {
  content: "▼";
  font-size: 12px;
  color: #333;
  position: absolute;
  right: 10px;
  pointer-events: none;
}

/* Стили для выпадающих опций */
.language-select option {
  background-color: #ffffff;
  color: #333;
  font-size: 16px;
  padding: 10px;
}

/* Стили для кнопки "Начать сейчас" */
.cta-button {
  padding: 10px 20px;
  background-color: #08ccfc;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #06a3d2;
}

/* Бургер-меню для мобильных устройств */
.burger-menu {
  display: block;
  cursor: pointer;
}

.burger-menu img {
  width: 30px;
}

/* Оверлей меню для мобильных устройств */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
  z-index: 100;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Меню для мобильных устройств */
.menu {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #ffffff;
  transform: translateY(-100%);
  transition: transform 0.5s ease-in-out;
  align-items: flex-start;
  z-index: 101;
}

.menu.open {
  transform: translateY(0);
}

.menu__close {
  align-self: flex-end;
  cursor: pointer;
}

.menu__close img {
  width: 25px;
}

.menu__logo {
  display: flex;
  justify-content: flex-start;
  margin: 80px 0 30px;
}

.menu__links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  width: 100%;
  z-index: 102;
}

.menu__links li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Эффект подчеркивания для ссылок в мобильном меню */
.menu__links a {
  position: relative;
  text-decoration: none;
  color: #000000;
  font-size: 20px;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
  text-align: left;
}

.menu__links a:hover {
  color: #08ccfc;
}

.menu__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #08ccfc;
  transition: width 0.3s ease;
}

.menu__links a:hover::after {
  width: 100%;
}

/* Централизованный блок действий в мобильном меню */
.menu__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  width: 100%;
  z-index: 102;
  text-align: center;
}

.menu__actions .cta-button {
  margin-bottom: 15px;
  align-self: center;
}

.menu__actions .language-switcher {
  align-self: center;
  position: relative;
}

.menu .language-switcher select {
  font-size: 16px;
  padding: 5px;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .burger-menu {
    display: none;
  }

  .menu-overlay {
    display: none !important;
  }
}

.mobile-language-switcher {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.language-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.language-option img {
  width: 25px;
  height: 18px;
}

.language-option span {
  font-size: 12px;
  color: #333;
  margin-top: 5px;
}
