/* Основной контейнер языкового переключателя */
.lang {
  position: relative;
  display: inline-block;
  z-index: 100;
}

.lang-utility {
  margin-right: 15px;
}

/* Кнопка выбора языка */
.lang__link_select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.lang__link_select:hover {
  background: #f5f5f5;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Изображение флага */
.lang__img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

/* Выпадающий список языков */
.lang__list {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 110;
}

.lang:hover .lang__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Элементы списка */
.lang__link {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.lang__link:hover {
  background: #f5f5f5;
}

.lang__link_sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Стили для поиска */
.search-box {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 400px;
}

.search-box input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  height: 40px;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: #0077bb;
  box-shadow: 0 0 0 2px rgba(0,119,187,0.2);
}

.search-button {
  background: #0077bb;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  padding: 0 15px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: #0060a0;
}

.search-button i {
  font-size: 20px;
}

/* Панель утилит */
.utility-bar {
  background: #f8f8f8;
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 0.01rem solid #e0e0e0;
}

.utility-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .utility-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-box {
    width: 100%;
    max-width: none;
  }
  
  .lang-utility {
    align-self: stretch;
  }
  
  .lang__link_select {
    justify-content: center;
  }
}

.lang__link_select span {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .lang__link_select span {
    font-size: 13px;
  }
}

.lang-wrapper {
  position: relative;
}

#ytWidget {
  display: none !important;
}

.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px; /* или другое подходящее значение */
}

.search-box form {
  display: flex;
  width: 100%;
}

.search-box .search-button:hover {
  background: #0068a4;
}

.search-box .material-icons-round {
  font-size: 20px;
}

@media (max-width: 768px) {
  .search-box {
    max-width: 100%;
  }
  
  .search-box input[type="text"] {
    padding: 8px;
  }
}