/**
 * Блок «СМИ о нас» — публикации и упоминания платформы
 * @package INRESEARCH
 */

.media {
    position: relative;
    padding: 56px 0 40px;
    overflow: hidden;
    font-family: 'Unbounded', 'Inter', sans-serif;
}

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

/* Мягкая подсветка справа — как в methodology / regions-top */
.media::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(16, 204, 151, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.media__container {
    position: relative;
    z-index: 1;
}

/* ───────── Заголовок ───────── */

.media__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.media__heading {
    max-width: 720px;
}

.media__pretitle {
    margin: 0 0 8px;
}

.media__title {
    margin: 0;
}

.media__sub {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #8A8E9F;
    margin: 12px 0 0;
    max-width: 620px;
}

/* ───────── Сетка карточек ───────── */

.media__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ───────── Карточка ───────── */

.media__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 32px 24px;
    border: 1px solid rgba(21, 29, 63, 0.10);
    border-radius: 16px;
    background-color: #fff;
    color: #151D3F;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.media__card:hover,
.media__card:focus-visible {
    border-color: rgba(16, 204, 151, 0.55);
    box-shadow: 0 12px 32px rgba(21, 29, 63, 0.07);
}

.media__card:focus-visible {
    outline: 2px solid #10CC97;
    outline-offset: 3px;
}

/* Шапка карточки: источник + тип материала */
.media__card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.media__source {
    font-family: 'Unbounded', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.25;
    color: #151D3F;
    margin: 0;
}

.media__type {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    color: #0E9C74;
    padding: 7px 12px;
    border-radius: 999px;
    background-color: rgba(16, 204, 151, 0.12);
    white-space: nowrap;
}

/* Цитата — главный элемент карточки */
.media__quote {
    position: relative;
    margin: 0;
    padding-left: 20px;
    border-left: 2px solid #10CC97;
    font-family: 'Unbounded', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.45;
    color: #151D3F;
}

.media__note {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #8A8E9F;
    margin: 16px 0 0;
}

/* Подвал карточки */
.media__card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 22px;
}

.media__date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #8A8E9F;
}

.media__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #151D3F;
}

.media__go svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.media__card:hover .media__go svg {
    transform: translate(3px, -3px);
}

/* ───────── Адаптив ───────── */

@media (max-width: 1279px) {
    .media__card {
        padding: 24px 24px 20px;
    }

    .media__quote {
        font-size: 18px;
    }
}

@media (max-width: 1023px) {
    .media {
        padding: 40px 0 32px;
    }

    .media__header {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 767px) {
    .media__source {
        font-size: 18px;
    }

    .media__quote {
        font-size: 17px;
        padding-left: 16px;
    }

    .media__card-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .media__card,
    .media__go svg {
        transition: none;
    }
}
