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

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

.voiceovers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 30px auto 0;
    padding: 0;
    max-width: 1200px;
    list-style: none;
}

.voiceovers__voice {
    text-decoration: none;
    /* border: 1px solid #e4e5e7;  <-- Removed to match jingles style */
    list-style: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* Fill the grid cell */
    min-height: 515px;
    /* Maintain minimum height */
    margin: 0;

    /* Soft UI Styles from jingles.css */
    position: relative;
    z-index: 1;
}

.voiceovers__voice-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voiceovers__voice:hover {
    z-index: 10;
    /* Bring to front on hover */
}

.voiceovers__voice:hover .voiceovers__voice-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 94, 133, 0.15);
}

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

.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__content-container {
    position: relative;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.voiceovers__title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    color: #3B5E85;
}

.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: 0;
    margin-top: 10px;
    color: #142840;
    /* font-weight: 500; */
}

.voiceovers__description_span {
    display: flex;
    align-items: center;
    margin: 0;
    height: 65px;
}

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

.voiceovers__text-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
}

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

.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: 0px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B5E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 24px;
    height: 24px;
    border: none;
    outline: none;
    background-color: transparent;
    z-index: 2;
    transition: transform 0.2s ease;
}

.filter__button-heart:hover {
    cursor: pointer;
    transform: scale(1.1);
}


.filter__button-heart_black {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233B5E85' stroke='%233B5E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

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

.personal__heart-mod {
    transition: transform 0.2s ease;
    right: 0;
    top: 0;
}

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

.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;
}

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

.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);
}