@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pirata One', cursive !important;
/*  font-family: 'Roboto Slab', serif; */
  line-height: 1.6;
  color: #D9DED9;
}

/* Стиль для тройных линий hr с отступами 2px */
hr.section-divider {
  border: none;
  height: 0;
  margin: 10px 0; /* Отступ вокруг всего блока из 3 линий */
  position: relative;
  background-color: #F2CA16; /* Средняя линия */
  height: 1px; /* Высота средней линии */
}

hr.section-divider::before,
hr.section-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #F2CA16;
}

hr.section-divider::before {
  top: -3px; /* 1px линия + 2px отступ = 3px выше центральной линии */
}

hr.section-divider::after {
  top: 3px; /* 1px линия + 2px отступ = 3px ниже центральной линии */
}

/* Если вдруг где-то остаётся обычный <hr> — оставим базовый стиль */
hr {
  border: none;
  height: 1px;
  background-color: #F2CA16;
  margin: 4px 0;
}

/* Общие стили для wrapper */
.wrapper {
  background: #070626;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px;
}

/* Контейнер */
.container {
  padding: 5px;
}

/* Стили для header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #070626;
  padding: 3px 10px;
}

.header-logo {
  top: 7px;
  left: 20px;
}

.logo {
  width: 57px; /* обновлено под новые width/height из HTML */
  height: 35px;
  border-radius: 4px;
  border: 1px solid #F2CA16;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 34px;
  width: 42px;
  background: transparent;
  border-radius: 4px;
  border: 1px solid #F2CA16;
  cursor: pointer;
  top: 15px;
}

.burger-line {
  width: 30px;
  height: 2px;
  background: #B9BFBC;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Навигация */
nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
}

nav ul li {
  margin: 5 15px;
}

nav ul li a {
  text-decoration: none;
  color: #D9DED9;
  font-size: 17px;
  font-weight: bold;
}

/* Hero секция */
.hero {
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin: 3px 0;
}

.hero--info {
  padding-top: 3px;
  padding-bottom: 10px;
  /* font-weight: bold — уже в body */
}

.hero--info p {
  font-size: 17px;
}

.hero--info p a {
  color: #F2CA16;
  text-decoration: underline;
}

.hero--info h1 {
  color: #F2CA16;
  font-size: 27px;
  text-decoration: underline;
}

.hero img {
  border-radius: 7px;
  max-width: 100%;
  height: auto;
  border: 1px solid #F2CA16;
  padding: 1px;
  background-color: #F2CA16;
}

.audio-tracks-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 400px;
    margin: 6px 6px;
    padding: 0px 8px;
    box-sizing: border-box;
}

/* ===================== ОСНОВНЫЕ СТИЛИ ПЛЕЕРА ===================== */
.audio-tracks-container audio {
    width: 100%;
    height: 40px !important;           
    min-height: 40px !important;
    border-radius: 6px;
    border: 1px solid #00FF00 !important;   
    background-color: #696969 !important;
    outline: none;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
}

/* Панель управления — тёмная + скругление + обводка уже есть от border выше */
audio::-webkit-media-controls-panel {
    background-color: #696969 !important;
    border-radius: 5px !important;        /* на 1px меньше, чтобы обводка не обрезалась */
    height: 40px !important;
}

/* Энклоузер (обёртка) — тоже с отступом под обводку */
audio::-webkit-media-controls-enclosure {
    background-color: #696969 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    padding: 2px !important;
}

/* ===================== КНОПКА PLAY — с красной обводкой и скруглением ===================== */
audio::-webkit-media-controls-play-button {
    background-color: #00FF00 !important;
    border: 1px solid red !important;        /* Красная обводка 1px */
    border-radius: 4px !important;           /* Сохраняем скругление углов */
    width: 25px !important;
    height: 25px !important;
    transform: translateY(-10%) !important;
    margin-left: 3px !important;
    margin-right: 6px !important;
}

/* Дополнительно улучшаем видимость треугольника внутри кнопки */
audio::-webkit-media-controls-play-button {
    background-color: #00FF00 !important;
    color: white !important;
}

/* Ползунок времени */
audio::-webkit-media-controls-timeline {
    height: 4px !important;
    margin: 0 10px !important;
    border-radius: 2px;
    background-color: #444 !important;
}

/* ================================================================== */


/*
.audio-tracks-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 500px;
    margin: 5 auto;
    padding: 0 12px;
    box-sizing: border-box;
  }

.audio-tracks-container audio {
    width: 100%;
    min-height: 25px; /* Совместимость с iOS Safari */
/*    font-size: 14px; /* Улучшает отображение на iOS */
/*    border-radius: 4px;
/*  }

/* СТИЛИЗАЦИЯ КНОПКИ PLAY (WebKit) 
audio::-webkit-media-controls-play-button {
    transform: scale(1.2); /* увеличиваем кнопку 
    background-color: #2ecc71; /* зелёный цвет 
    border-radius: 4px;
}

/* Убираем серый фон к
audio::-webkit-media-controls-panel {
    background-color: #f2f2f2;
    border-radius: 4px;
}
*/

/* Service Offerings секция (была trending) */
.service-offerings {
  margin: 20px 0;
  text-align: center;
}

.service-offerings h2 {
  font-size: 20px;
  color: #F2CA16;
  margin-bottom: 10px;
  text-decoration: underline;
}

.service-offerings p {
  font-size: 16px;
}

.vehicle-types { 
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.block {
  padding-top: 20px;
  padding-bottom: 20px;
  flex: 1 1 calc(25% - 20px);
  text-align: center;
}

.block h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.block h3 a {
  color: #F2CA16;
  text-decoration: underline;
}

.block h3 a:hover {
  text-decoration: underline;
}

.block img {
  border-radius: 7px;
  max-width: 100%;
  height: auto;
  max-height: 70%;
  border: 1px solid #F2CA16;
  object-fit: cover;
}

/* Дополнительно: если нужны тройные линии внутри .block (как в старом HTML) */
hr.block-divider {
  border: none;
  height: 0;
  margin: 8px auto;
  width: 80%;
  position: relative;
}

hr.block-divider::before,
hr.block-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #F2CA16;
}

hr.block-divider::before {
  top: -4px;
}
hr.block-divider::after {
  top: 4px;
}
hr.block-divider {
  height: 1px;
  background-color: #F2CA16;
  display: block;
}

/* Big text секция */
.contact-info {
  margin: 20px 0;
  text-align: center;
  font-size: 21px;
}

.contact-info h2 {
  font-size: 23px;
  color: #F2CA16;
  margin-bottom: 10px;
  text-decoration: underline;
}

/* Footer */
footer.container {
  margin-top: 20px;
  background: #070626;
  border-top: 1px solid #F2CA16;
  padding: 16px 10px 20px;
  color: #D9DED9;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.footer-grid div h4 {
  color: #F2CA16;
  font-weight: bold;
}

.footer-grid a {
  color: #F2CA16;
  text-decoration: underline;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-word;
}

.footer-grid a:hover,
.footer-grid a:focus {
  color: #F2CA16;
  border-color: #F2CA16;
}

.copy {
  margin-top: 12px;
  font-size: 14px;
  color: #B9BFBC;
  text-align: center;
  opacity: 0.9;
}

footer.container a:focus-visible {
  outline: 2px dashed #F2CA16;
  outline-offset: 2px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .burger-btn {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  nav {
    display: none;
    flex-direction: column;
    background: #052E08;
    width: 100%;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  nav ul li {
    margin: 5px 0; /* Отступы между пунктами меню */
  }

  nav ul li a {
    color: #D9DED9;
    font-size: 16px; /* Увеличим размер текста в мобильном меню */
  }

  nav.active {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .vehicle-types {
    flex-direction: column;
  }

  .block {
    flex: 1 1 100%;
  }

  .contact-info {
    font-size: 16px;
  }

  .contact-info h2 {
    font-size: 16px;
  }

  .audio-tracks-container {
        padding: 0px 7px;
    }
    
    .audio-tracks-container audio {
        height: 40px !important;
        border: 1px solid #00FF00 !important;
        border-radius: 6px !important;
    }
    
    audio::-webkit-media-controls-play-button {
        width: 25px !important;
        height: 25px !important;
	transform: translateY(-10%) !important;
        border: 1px solid red !important;
        border-radius: 4px !important;
    }

}

@media (max-width: 480px) {
  header nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  nav ul li {
    margin: 5px 10px;
  }

  .audio-tracks-container {
      gap: 2px;
      margin: 7px 6px;
      padding: 0px 6px;
    }

.audio-tracks-container audio {
        height: 40px !important;
        min-height: 40px !important;
        border: 1px solid #00FF00 !important;     /* Красная обводка остаётся */
        border-radius: 7px !important;
        background-color: #696969 !important;
    }

    audio::-webkit-media-controls-panel,
    audio::-webkit-media-controls-enclosure {
        border-radius: 6px !important;        /* чтобы обводка красиво легла */
        overflow: hidden !important;
    }

    audio::-webkit-media-controls-play-button {
        width: 25px !important;
        height: 25px !important;
        border: 1px solid red !important;
        transform: translateY(-10%) !important;
        border-radius: 4px !important;        /* скругление сохранено */
        margin-left: 2px !important;
    }

    audio::-webkit-media-controls-timeline {
        margin: 0 6px !important;
    }

/*
    .audio-tracks-container audio {
      min-height: 25px;
      appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    }

   .audio-tracks-container audio::-webkit-media-controls {
    border-radius: 7px !important;
    overflow: hidden;
  }

  .audio-tracks-container audio::-webkit-media-controls-enclosure {
    border-radius: 7px !important;
    overflow: hidden;
  }
*/
}

@media (min-width: 600px) {
  footer.container .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  footer.container .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
