/* Универсальные стили для современной шапки */
.header-top {
  padding: 15px 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.header-top .logo-section {
  display: flex;
  align-items: center;
}

.header-top .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-top .logo-link:hover,
.header-top .logo-link:focus {
  text-decoration: none;
}

.header-top .logo-link img {
  margin: 0 15px 0 0;
  width: 40px;
  height: 35px;
}

.header-top .company-name {
  margin: 0;
  line-height: 35px;
  text-transform: uppercase;
  color: #0f0f0f;
  font-family: Regular, Arial, sans-serif;
  font-size: 22px;
  white-space: nowrap;
}

.header-top .top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header-top .language-selector {
  margin-right: 15px;
}

.header-top .language-selector .select-age {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
}

.header-top .language-selector .select-age:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

.header-top .language-selector .select-age:hover {
  border-color: #d32f2f;
}

.header-top .booking-button {
  margin-right: 20px;
}

.header-top .booking-button .button {
  padding: 8px 20px;
  font-size: 14px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-top .booking-button .button:hover {
  background: #b71c1c;
  text-decoration: none;
}

.header-top .phone-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-top .phone-icon {
  flex-shrink: 0;
}

.header-top .phone-info {
  display: flex;
  flex-direction: column;
}

.header-top .phone-number {
  color: #0f0f0f;
  font-family: Regular, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.header-top .phone-number:hover,
.header-top .phone-number:focus {
  text-decoration: none;
  color: #d32f2f;
}

.header-top .phone-label {
  color: #666;
  font-family: Regular, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}

.header-bottom {
  padding: 15px 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.header-bottom .menu-section {
  display: flex;
  justify-content: center;
}

.header-bottom .main-menu ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.header-bottom .main-menu ul li {
  float: none;
  position: relative;
  display: block;
  padding-left: 0;
}

.header-bottom .main-menu ul li a {
  font-family: Regular, Arial, sans-serif;
  font-size: 16px;
  line-height: 35px;
  color: #0f0f0f;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-bottom .main-menu ul li a:hover {
  text-decoration: none;
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.1);
}

.header-bottom .main-menu ul li a:focus {
  text-decoration: none;
}

.header-bottom .main-menu ul li.active a {
  font-family: Medium, Arial, sans-serif;
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.1);
  font-weight: 600;
}

/* Мобильная версия шапки */
.mobile-header {
  display: none;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
}

.mobile-header.visible-sm,
.mobile-header.visible-xs {
  display: block;
}

/* Первый ряд: лого, языки и бургер-меню */
.mobile-logo {
  display: flex;
  align-items: center;
}

.mobile-logo .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-logo .logo-link img {
  width: 30px;
  height: 25px;
  margin-right: 10px;
}

.mobile-logo .company-name {
  margin: 0;
  font-size: 16px;
  color: #0f0f0f;
  font-family: Regular, Arial, sans-serif;
  text-transform: uppercase;
}

.mobile-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.mobile-languages {
  display: flex;
  align-items: center;
}

.mobile-languages .select-age {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
}

.mobile-languages .select-age:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

.mobile-languages .select-age:hover {
  border-color: #d32f2f;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
}

.burger-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.burger-menu-btn span {
  width: 25px;
  height: 3px;
  background: #d32f2f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu-btn:hover span {
  background: #b71c1c;
}

/* Мобильное меню */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

/* Стилизация скроллбара для мобильного меню */
.mobile-menu-content::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
  background: #d32f2f;
  border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
  background: #b71c1c;
}

/* Для Firefox */
.mobile-menu-content {
  scrollbar-width: thin;
  scrollbar-color: #d32f2f #f1f1f1;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-header h3 {
  margin: 0;
  color: #0f0f0f;
  font-size: 18px;
  font-weight: 600;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu-btn:hover {
  color: #d32f2f;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  color: #0f0f0f;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #d32f2f;
  text-decoration: none;
  padding-left: 10px;
}

.mobile-menu ul li.active a {
  color: #d32f2f;
  font-weight: 600;
  background: rgba(211, 47, 47, 0.1);
  padding-left: 10px;
}

/* Действия в мобильном меню */
.mobile-menu-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu-actions .button {
  padding: 12px 20px;
  font-size: 16px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.mobile-menu-actions .button:hover {
  background: #b71c1c;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.mobile-phone {
  text-align: center;
}

.mobile-phone .phone-number {
  display: block;
  color: #0f0f0f;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.mobile-phone .phone-number:hover {
  color: #d32f2f;
  text-decoration: none;
}

.mobile-phone .phone-label {
  color: #666;
  font-size: 12px;
  font-weight: 400;
}

/* Скрываем десктопную версию на мобильных */
@media (max-width: 767px) {
  .header-top,
  .header-bottom {
    display: none !important;
  }
}

/* Адаптивность для планшетов */
@media (max-width: 991px) {
  .header-top .top-controls {
    gap: 15px;
  }
  
  .header-top .booking-button {
    margin-right: 15px;
  }
  
  .header-top .phone-number {
    font-size: 14px;
  }
  
  .header-top .phone-label {
    font-size: 11px;
  }
  
  .header-top .company-name {
    font-size: 20px;
  }
  
  .header-top .logo-link img {
    width: 35px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  .header-top {
    padding: 10px 0;
  }
  
  .header-top .logo-section {
    margin-bottom: 10px;
  }
  
  .header-top .top-controls {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
  }
  
  .header-top .language-selector {
    margin-right: 0;
    margin-bottom: 5px;
  }
  
  .header-top .language-selector .select-age {
    font-size: 13px;
    padding: 5px 6px;
  }
  
  .header-top .booking-button {
    margin-right: 0;
    margin-bottom: 5px;
  }
  
  .header-top .phone-section {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  .header-top .phone-info {
    align-items: center;
    text-align: center;
  }
  
  .header-bottom {
    padding: 10px 0;
  }
  
  .header-bottom .main-menu ul {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .header-bottom .main-menu ul li a {
    font-size: 13px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 8px 0;
  }
  
  .header-top .company-name {
    font-size: 16px;
  }
  
  .header-top .logo-link img {
    width: 30px;
    height: 25px;
  }
  
  .header-top .language-selector .select-age {
    font-size: 12px;
    padding: 4px 5px;
  }
  
  .header-top .booking-button .button {
    padding: 6px 15px;
    font-size: 12px;
  }
  
  .header-top .phone-number {
    font-size: 12px;
  }
  
  .header-top .phone-label {
    font-size: 10px;
  }
  
  .header-bottom {
    padding: 8px 0;
  }
  
  .header-bottom .main-menu ul {
    gap: 8px;
  }
  
  .header-bottom .main-menu ul li a {
    font-size: 12px;
    padding: 2px 4px;
  }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
  .header-top .company-name {
    font-size: 14px;
  }
  
  .header-top .logo-link img {
    width: 25px;
    height: 20px;
  }
  
  .header-top .top-controls {
    gap: 8px;
  }
  
  .header-top .language-selector .select-age {
    font-size: 11px;
    padding: 3px 4px;
  }
  
  .header-top .booking-button .button {
    padding: 5px 12px;
    font-size: 11px;
  }
  
  .header-top .phone-number {
    font-size: 11px;
  }
  
  .header-top .phone-label {
    font-size: 9px;
  }
  
  .header-bottom .main-menu ul {
    gap: 6px;
  }
  
  .header-bottom .main-menu ul li a {
    font-size: 11px;
    padding: 1px 3px;
  }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
  .mobile-menu-content {
    width: 100%;
    right: 0;
  }
  
  .mobile-menu-content {
    padding: 15px;
  }
  
  .mobile-menu ul li a {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .mobile-menu-actions .button {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .mobile-phone .phone-number {
    font-size: 16px;
  }
}

/* Адаптивность для ландшафтной ориентации на мобильных */
@media (max-width: 767px) and (orientation: landscape) {
  .header-top {
    padding: 5px 0;
  }
  
  .header-top .top-controls {
    flex-direction: row;
    gap: 15px;
    align-items: center;
  }
  
  .header-top .phone-section {
    flex-direction: row;
    align-items: center;
  }
  
  .header-top .phone-info {
    align-items: flex-start;
    text-align: left;
  }
  
  .header-bottom {
    padding: 5px 0;
  }
  
  .header-bottom .main-menu ul {
    gap: 20px;
  }
  
  .header-bottom .main-menu ul li a {
    font-size: 14px;
    padding: 4px 8px;
  }
} 