/*
 * Главная: новости, СМИ, баннер Культура.РФ.
 * Все правила ограничены областью модуля rdku-home-media.
 * Каждое CSS-свойство располагается на собственной строке.
 */
.rdku-home-media {
    width: 100%;
    padding: 60px clamp(16px, 4vw, 64px) 64px;
    background: #fafafa;
    color: #20242b;
}

.rdku-home-media,
.rdku-home-media *,
.rdku-home-media *::before,
.rdku-home-media *::after {
    box-sizing: border-box;
}

.rdku-home-media__container {
    display: grid;
    grid-template-columns: minmax(0, 2.06fr) minmax(340px, 1fr);
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    align-items: stretch;
}

.rdku-home-media__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.rdku-home-media__right {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rdku-home-media__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.rdku-home-media__title {
    font-family: Oswald, 'Arial Narrow', sans-serif;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #202124;
}

.rdku-home-media__all-link {
    display: inline-block;
    flex: none;
    padding: 10px 16px;
    border: 1px solid #2366c0;
    border-radius: 8px;
    color: #1754a9;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rdku-home-media__all-link:hover,
.rdku-home-media__all-link:focus-visible {
    background: #185bb3;
    color: #fff;
}

/* Две последние новости */
.rdku-home-events__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rdku-home-events__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.13);
}

.rdku-home-events__image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1.42;
    background: #e6edf5;
}

.rdku-home-events__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rdku-home-events__image-link:hover .rdku-home-events__image {
    transform: scale(1.03);
}

.rdku-home-events__no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 15px;
    color: #6685a7;
}

.rdku-home-events__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
}

.rdku-home-events__story-title {
    font-family: Oswald, 'Arial Narrow', sans-serif;
    font-size: clamp(20px, 1.55vw, 24px);
    font-weight: 600;
    line-height: 1.22;
    margin: 0;
}

.rdku-home-events__story-title a {
    color: #171717;
    text-decoration: none;
}

.rdku-home-events__story-title a:hover {
    color: #1655a8;
}

.rdku-home-media__date {
    font-size: 13px;
    color: #737985;
}

.rdku-home-events__more {
    margin-top: auto;
    font-size: 14px;
    text-decoration: none;
    color: #1b1d20;
}

.rdku-home-events__more:hover {
    color: #1655a8;
}

/* Статичный баннер Культура.РФ */
.rdku-home-culture {
    display: grid;
    grid-template-columns: minmax(200px, 0.95fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.13);
}

.rdku-home-culture__logo {
    width: 100%;
    max-width: 290px;
    height: auto;
    object-fit: contain;
}

.rdku-home-culture__description {
    margin: 0 0 12px;
    line-height: 1.5;
    font-size: 15px;
    color: #272a31;
}

.rdku-home-culture__link {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #f6a817;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.rdku-home-culture__link:hover,
.rdku-home-culture__link:focus-visible {
    background: #dd8e00;
    color: #fff;
}

/* Публикации в СМИ */
.rdku-home-press {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.13);
}

.rdku-home-press__heading {
    margin: 0 0 10px;
}

.rdku-home-press__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
}

.rdku-home-press__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #dce1e8;
}

.rdku-home-press__item:last-child {
    border-bottom: none;
}

.rdku-home-press__story-title {
    display: block;
    margin: 0 0 10px;
    color: #135bab;
    line-height: 1.3;
    font-size: 16px;
    text-decoration: none;
    overflow-wrap: anywhere;
	font-weight: 600;
}

.rdku-home-press__story-title:hover {
    color: #be0c50;
}

.rdku-home-press__tag {
    display: inline-block;
    max-width: 100%;
    margin-top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #8351e8;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.rdku-home-press__preview {
    position: relative;
    display: block;
    width: 150px;
    height: 102px;
    border-radius: 11px;
    overflow: hidden;
    background: #e9eef4;
}

.rdku-home-press__placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #6d7e92;
    font-size: 12px;
    text-align: center;
}

.rdku-home-press__preview img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rdku-home-press__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.14);
}

.rdku-home-press__play::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 19px solid #fff;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.rdku-home-media__empty {
    margin: 10px 0;
    color: #687583;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .rdku-home-media__container {
        grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
    }

    .rdku-home-press {
        padding: 18px;
    }

    .rdku-home-press__item {
        grid-template-columns: minmax(0, 1fr) 116px;
    }

    .rdku-home-press__preview {
        width: 116px;
        height: 88px;
    }
}

@media (max-width: 900px) {
    .rdku-home-media__container {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdku-home-press__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }
}

@media (max-width: 600px) {
    .rdku-home-media {
        padding: 28px 16px 40px;
    }

    .rdku-home-media__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rdku-home-events__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdku-home-culture {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .rdku-home-press__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdku-home-press__item {
        grid-template-columns: minmax(0, 1fr) 116px;
        gap: 8px;
    }
}
