/* ============================================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ЦВЕТА
   ============================================================ */
html {
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: url("../img/bg.png") repeat;
  color: #d4cfc6; 
  line-height: 1.6;
}

h1, h2, h3 {
  color: #d4cfc6 !important;
  margin-bottom: 1.25rem;
  font-weight: normal;
}

a {
  color: #a7afb5 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

a:hover {
  color: #d4cfc6 !important;
}

/* ============================================================
   2. ШАПКА (HEADER)
   ============================================================ */
.header {
  width: 100%;
  height: 80px;
  background: #35383b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px; /* Базовый отступ для ПК */
}

.header .logo img {
  height: 50px;
  width: auto;
}

.menu {
  display: flex;
  gap: 30px;
}

/* Запрещаем перенос слов в меню, чтобы "Об авторе" всегда было в одну строку */
.menu a {
  white-space: nowrap;
}

.header .social {
  display: flex;
  gap: 13px;
}

.header .social a img {
  width: 24px;
  height: 24px;
}

/* ============================================================
   3. ГЛАВНЫЙ БАННЕР (HERO)
   ============================================================ */
.hero {
  width: 100%;
  max-height: 900px;
  overflow: hidden;
  display: flex;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   4. СТРУКТУРА СТРАНИЦЫ И ТЕКСТА
   ============================================================ */
.new-work {
  max-width: 1200px;
  margin: 80px auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
  justify-content: center;
  align-items: flex-start; /* <--- ДОБАВЬТЕ ЭТО */
}

.new-work .cover {
  width: 300px;
  flex-shrink: 0;
}

.new-work .cover img {
  width: 100%; /* Занимать всё место в колонке 300px */
  height: auto !important; /* Убирает "сплющивание" */
  display: block;
  object-fit: contain; /* Гарантирует, что пропорции не нарушатся */
}

.new-work .text {
  flex: 1;
}

.text p, .full-content p {
  color: #d4cfc6;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.full-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 20px;
}

.full-content a {
  text-decoration: underline !important;
}

/* ============================================================
   5. СЕТКА НОВИНОК (LATEST WORKS)
   ============================================================ */
.latest-works-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.work-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 350px;
}

.work-card .card-cover {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.work-card h3 {
  font-size: 1.5rem;
}

.summary-content, .summary-content p {
  color: #d4cfc6 !important; 
  font-size: 1rem;
  margin-bottom: 10px;
}

.read-more-link {
  display: inline-block;
  font-weight: bold !important;
  margin-top: 10px;
  color: #a7afb5 !important;
}

.read-more-link:hover {
  color: #d4cfc6 !important;
}

/* ============================================================
   6. ПОДВАЛ (FOOTER)
   ============================================================ */
.footer {
  background: #35383b;
  color: #a7afb5;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
}

.footer .menu.vertical {
  display: flex;
  gap: 20px;
}

.footer .social a img {
  width: 28px;
  height: 28px;
}


/* ============================================================
   7. МОБИЛЬНАЯ АДАПТАЦИЯ (RESPONSIVE)
   ============================================================ */

/* СПЕЦИАЛЬНО ДЛЯ ГОРИЗОНТАЛЬНОГО РЕЖИМА И ПЛАНШЕТОВ (iPhone Landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header {
    padding: 0 25px !important; /* Прижимаем логотип и соцсети к краям */
  }
  .menu {
    gap: 15px !important; /* Сужаем расстояние между кнопками */
  }
}

/* ВЕРТИКАЛЬНЫЕ СМАРТФОНЫ */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }
  .menu {
    margin: 15px 0;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    max-height: 400px;
  }

  .new-work {
    flex-direction: column;
    margin: 40px auto;
    align-items: center;
  }
  
  .new-work .text {
    width: 100% !important;
    max-width: 100%;
  }

  .new-work .cover {
    width: 100%;
    max-width: 280px;
  }

  .latest-works-grid {
    flex-direction: column;
    align-items: center;
  }
  .work-card {
    max-width: 90%;
    margin-bottom: 50px;
  }

  #my-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
  }
  
  #my-form input, 
  #my-form textarea {
    width: 100% !important;
  }

  body {
    font-size: 17px !important;
  }
  .summary-content, .summary-content p {
    font-size: 1.05rem !important;
    color: #d4cfc6 !important;
  }
  .full-content, .full-content p {
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
  }
  .text h1, .text h2 {
    text-align: center;
    font-size: 1.7rem !important;
  }
  
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer .menu.vertical {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .card-text-wrapper p strong {
    font-size: 1.1rem !important; /* Увеличиваем "Жанр" на мобильных */
  }
}

/* ============================================================
   8. СТИЛЬ АУДИОПЛЕЕРА (ЕДИНЫЙ ДЛЯ ВСЕХ)
   ============================================================ */

/* Контейнер вокруг плеера (внешний прямоугольник) */
.audio-box {
    margin: 30px 0;
    padding: 20px;
    background: #282828; /* Темно-серый, как ваш хедер */
    border-radius: 12px;
    border: 1px solid rgba(167, 175, 181, 0.1); /* Еле заметная рамка */
}

/* Сам плеер */
audio {
    width: 100%;
    height: 40px;
    outline: none;
    /* МАГИЯ: Заставляем компьютерный Chrome стать темным */
    color-scheme: dark; 
    /* Фильтр, чтобы полоски навигации стали ближе к вашему бежевому цвету */
    filter: sepia(30%) brightness(90%) contrast(110%);
}

/* Специально для мобильных — чуть увеличим высоту, чтобы легче попадать пальцем */
@media (max-width: 768px) {
    .audio-box {
        padding: 15px;
        margin: 20px 0;
    }
    audio {
        height: 50px;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}