.diktory,
.audioroliki {
  max-width: 1200px;
  margin: 30px auto 80px;
  position: relative;
  padding: 0 20px;
}

/* H1 над SEO-хедером */
#seo-h1-tag {
  text-transform: uppercase;
  font-size: 22px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
}

/* SEO-хедер над фильтрами (как на аудиороликах) */
#seo-header-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
  border: 1px solid #e4e5e7;
  padding: 20px;
  box-sizing: border-box;
  min-height: 381px;
}

#seo-header-container .audio__description-wrapper {
  flex: 1 1 0;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  box-sizing: border-box;
  background-color: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#seo-header-container .audio__description-wrapper_last {
  margin-right: 0;
  background-color: #ebf4ff;
  border: 2px solid #2c5282;
}

#seo-header-container .audio__description-wrapper_none {
  display: none;
}

#seo-header-container .audio__description-subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
  padding-bottom: 8px;
  text-align: justify;
  border-bottom: 1px solid #e4e5e7;
}

/* без подчёркивания последней строки в колонке */
#seo-header-container .audio__description-wrapper .audio__description-subtitle:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 800px) {
  #seo-header-container {
    padding: 15px;
  }
}

/* Сетка дикторов */

.voiceovers {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.voiceovers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 296px);
  gap: 5px;
  margin: 30px auto 80px;
  padding: 0;
  max-width: 1200px;
  list-style: none;
}

.voiceovers__voice {
  text-decoration: none;
  border: 1px solid #e4e5e7;
  list-style: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 281px;
  height: 515px;
  margin: 0 10px 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 10px;
  background-color: #fff;
}

.voiceovers__voice:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Обёртка изображения диктора */

.voiceovers__img-contain {
  position: relative;
  padding-bottom: 62.5%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.voiceovers__img-contain.foreigners-img-contain {
  padding-bottom: 41.5%;
  max-width: 60%;
  box-shadow: none;
}

.voiceovers__voice:hover .voiceovers__img-contain.foreigners-img-contain {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.voiceovers__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Тексты в карточках */

.voiceovers__title {
  font-size: 18px;
  line-height: 1.2;
  margin: 20px 6px 5px;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
}

.voiceovers__title.foreigners-title {
  min-height: 64px;
}

.voiceovers__title:hover {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.voiceovers__description {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 15px;
  color: #444;
  font-weight: 400;
  padding: 0 6px;
}

.voiceovers__description_span {
  display: flex;
  align-items: center;
  background: rgba(239, 244, 244, 0.28);
  margin: 0;
  height: 65px;
}

/* Контентный блок карточки */

.voiceovers__text-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Ссылки и подчёркивание имени диктора */

.voiceovers_link {
  text-decoration: none;
}

.voiceovers__voice a {
  text-decoration: none;
  color: inherit;
}

/* подчёркивание только у кликабельных имён (h2 внутри <a>) */
.voiceovers__voice a h2.voiceovers__title {
  position: relative;
}

.voiceovers__voice a h2.voiceovers__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  height: 1px;
  background: #282c34;
  transition: width 0.3s;
}

.voiceovers__voice a:hover h2.voiceovers__title::after {
  width: 100%;
}

/* Сердце выбора */

.filter__button-heart,
.filter__button-heart-filter {
  position: absolute;
  right: 7px;
  background-image: url("/static/images/heart.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 20px;
  height: 19px;
  border: none;
  outline: none;
  background-color: transparent;
  z-index: 2;
}

.filter__button-heart:hover {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.filter__button-heart_black {
  background-image: url("/static/images/heart-black.svg");
}

.filter__choice-button_position {
  right: 7px;
  bottom: 7px;
}

/* Сообщение «не найдено» */

.voicesection_not_found {
  font-size: 20px;
  line-height: 2;
  margin: 50px auto;
  font-weight: 500;
  text-transform: uppercase;
  max-width: 900px;
  padding: 100px 20px;
  border: 1px solid #e4e5e7;
}

.voicesection_not_found_unvisible {
  display: none;
}

/* Фильтры */

.filter-container {
  margin: 0 auto 10px;
}

.filtr-container {
  margin: 0 auto;
  width: fit-content;
}

.filtr__group-buttons-wrapper {
  display: flex;
  justify-content: space-between;
}

.filtr__buttons-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.filtr__buttons-wrapper_favorite {
  max-width: 100px;
}

.filtr__title {
  margin: 0 0 5px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.filtr__title_favorite {
  text-align: left;
}

.filtr__buttons-list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: 5px 0 0;
  padding-left: 0;
  list-style: none;
}

.filtr__buttons-list_favorite {
  max-width: 100px;
}

.filtr__buttons-item {
  margin: 0 10px 10px 0;
}

.filtr__buttons-item_search {
  margin-left: auto;
}

/* Базовый стиль кнопок фильтра */
.filtr__button {
  background-color: rgba(70, 131, 180, 0.79);
  color: #fff;
  font-weight: 500;
  border: 1px solid #4682b4;
  cursor: pointer;
  height: 35px;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  box-sizing: border-box;
  line-height: 1.2;
  text-decoration: none;
}

/* Активная / hover-кнопка фильтра */
.filtr__button:hover,
.filtr__button.active {
  background-color: transparent;
  color: #4682b4;
  border-color: #4682b4;
}

/* Универсальный disabled для фильтров */
.filtr__button[aria-disabled="true"],
.filtr__button:disabled,
.filtr__button.filter__button_disabled {
  background-color: #ffffff;
  color: #4682b4;
  border-color: #4682b4;
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

/* Специально для избранного: неактивное — как раньше: белое */
.favorite__button_disabled,
.favorite__button:disabled {
  background-color: #ffffff;
  color: #4682b4;
  border-color: #4682b4;
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

/* Обёртка группы фильтров disabled */
.filtr__buttons-wrapper_disabled {
  opacity: 0.5;
  pointer-events: none;
}

.filtr-search {
  height: 35px;
  box-sizing: border-box;
}

/* Баннер */

.banner-container {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 0;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e4e5e7;
  box-sizing: border-box;
}

.banner-image,
.banner-text {
  max-width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.banner-button {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.banner-button:hover {
  transform: scale(1.05);
}

.banner-button:active {
  transform: scale(0.95);
}

@media (max-width: 420px) {
  .banner-text {
    display: none !important;
  }

  .banner-link {
    max-width: 270px;
  }
}

/* Линки скачивания */

.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.7;
  border: none;
  background: transparent;
  margin-top: 10px;
}

.download-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Плавная смена SEO-контента (AJAX) */

#seo-header-container,
#seo-body-dynamic-content {
  transition: opacity 0.15s ease;
}

#seo-header-container.updating,
#seo-body-dynamic-content.updating {
  opacity: 0.5;
}

h1.audio__description-title {
  transition: opacity 0.2s ease;
}

/* SEO-контент под карточками дикторов (обёртка) */

.diktory-seo-container {
  max-width: 1170px;
  margin: 25px auto 40px;
  box-sizing: border-box;
}

/* Каждый блок SEO-текста — карточка как на jingles */
.diktory-seo-container .voiceovers__title-part {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  background-color: #f8fafc;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* Последний блок "Как заказать" */
.diktory-seo-container .voiceovers__title-part_cta {
  background-color: #ebf4ff;
  border: 2px solid #2c5282;
  box-shadow: 0 3px 7px rgba(0,0,0,0.12);
}

/* Текст внутри SEO-подблоков */
.diktory-seo-container .voiceovers__title-part p {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 12px;
  text-align: justify;
}

/* Заголовки внутри SEO-подблоков */
.diktory-seo-container .voiceovers__title-part h2,
.diktory-seo-container .voiceovers__title-part h3 {
  color: #2c5282;
  margin-top: 15px;
  font-weight: 700;
}

.diktory-seo-container .voiceovers__title-part h2 {
  border-left: 4px solid #2c5282;
  padding-left: 15px;
}

/* Подсветка ключевых мест */
.diktory-seo-container .highlight {
  color: #2c5282;
  font-weight: 700;
}

/* Адаптив для SEO-подблоков */
@media (max-width: 800px) {
  .diktory-seo-container .voiceovers__title-part {
    padding: 18px;
    margin-bottom: 20px;
  }

  .diktory-seo-container .voiceovers__title-part_cta {
    padding: 20px;
  }
}

/* SEO Header (две колонки — для совместимости, если используется audio__description) */

.audio__description {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1170px;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-sizing: border-box;
}

.audio__description-wrapper {
  flex: 1 1 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f8fafc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 20px;
}

.audio__description-wrapper_last {
  background-color: #ebf4ff;
  border: 2px solid #2c5282;
}

.audio__description-subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
  text-align: justify;
}

.audio__description-subtitle .highlight {
  color: #2c5282;
  font-weight: 700;
}

@media (max-width: 768px) {
  .audio__description {
    flex-direction: column;
    padding: 15px;
  }

  .audio__description-wrapper {
    flex: 1 1 100%;
  }
}
