/* Лента Инпсихо Медиа (/media): стили SPA-компонентов components/Media/* для серверного рендера.
   Общие стили карточек и блоков — в media.css (подключается и на детальной странице). */

/* Размер rem как в SPA (base.css): layout2 задаёт его только для десктопа */
html {
    font-size: 1vw;
}
@media screen and (min-width: 1920px) {
    html {
        font-size: 0.8vw;
    }
}
@media screen and (min-width: 1200px) and (max-width: 1919px) {
    html.on-main {
        font-size: 0.85vw;
    }
}
@media screen and (max-width: 768px) {
    html {
        font-size: 1.95vw;
    }
}
@media screen and (max-width: 480px) {
    html {
        font-size: 4vw;
    }
}

/* Как в dpo.css: картинки внутри виджета ИИ-помощника (#Logos-widget) шире экрана телефона.
   clip вместо hidden: hidden на html и body делает body контейнером прокрутки,
   и sticky-шапка (#navigation в Vo/HeaderStandart.vue) перестаёт фиксироваться */
html, body {
    overflow-x: hidden;
    overflow-x: clip;
}

/* Отступы между блоками как в components/Media/Index.vue */
.media-index.media .wrapper-app .container {
    gap: 4.0849rem;
    margin-bottom: 0;
}
@media screen and (max-width: 1024px) {
    .media-index.media .wrapper-app .container {
        gap: 20px;
    }
}

/* Шапка: в SPA десктопная версия рендерится от 1000px, мобильная — меньше */
@media screen and (max-width: 999px) {
    .media-index .media-index__desktop {
        display: none;
    }
}
@media screen and (min-width: 1000px) {
    .media-index .media-index__mobile {
        display: none;
    }
}
.media-index .headline h1 {
    margin: 0;
    font: inherit;
}
/* Подзаголовок: в SPA стоял сразу за ссылкой .title, здесь ссылка обёрнута в h1 */
.media-index .headline h1 ~ p {
    font-size: 1.47rem;
    margin-top: 0.2em;
}

/* Блок новостей и форма подписки встают на разные позиции на мобильном (до 768px) и десктопе */
@media screen and (max-width: 768px) {
    .media-index .media-desktop-only {
        display: none;
    }
}
@media screen and (min-width: 769px) {
    .media-index .media-mobile-only {
        display: none;
    }
}

/* <picture> подставляет мобильную картинку. Картинки сразу с настоящим src (в SPA сначала была заглушка),
   и без min-width: 0 грид растягивался до собственной ширины изображения */
.media-index picture {
    display: block;
    width: 100%;
    height: 100%;
}
.media-index .wrapper-grid > *,
.media-index .grid > * {
    min-width: 0;
}

/* Заголовок мобильной шапки (components/Media/MobileFilter.vue) */
.media-index .mobile .title {
    position: relative;
    color: #292c3d;
    font-size: 3.9215rem;
    font-weight: 700;
    line-height: 3.9215rem;
}
.media-index .mobile .title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -12rem;
    width: 10.1699rem;
    height: .3267rem;
    background-color: #f42a3e;
    transform: translateY(-50%);
}
@media screen and (max-width: 768px) {
    .media-index .mobile .title {
        padding-left: 0;
        font-size: 24px;
        line-height: 48px;
    }
    .media-index .mobile .title::before {
        left: -9.5rem;
        width: 9.1699rem;
        height: 4px;
    }
}

/* Теги рубрик и формат внутри карточки-ссылки — span вместо вложенных ссылок */
.media-index .tag,
.media-index .type {
    cursor: pointer;
}
.media-index .component .type {
    color: #2A29B2;
}

/* Пагинация вместо кнопки «Еще статьи» (как в каталоге ДПО) */
.media-index .cards-pagination {
    display: flex;
    width: 100%;
    justify-content: center;
}
.media-index .cards-pagination__number,
.media-index .cards-pagination__arrow {
    display: flex;
    width: 2.6rem;
    height: 2.6rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 0.1rem solid #292C3D;
    border-radius: 50%;
    color: #292C3D;
    cursor: pointer;
}
.media-index .cards-pagination > * + * {
    margin-left: 0.9rem;
}
.media-index .cards-pagination__number {
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
}
.media-index .cards-pagination__number:hover,
.media-index .cards-pagination__number.active {
    background: #292C3D;
    color: #ffffff;
}
.media-index .cards-pagination__arrow {
    transition: opacity .2s ease-in-out, background-color .2s ease;
}
.media-index .cards-pagination__arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.media-index .cards-pagination__arrow:hover {
    background: #292C3D;
}
.media-index .cards-pagination__arrow:hover .cards-pagination__arrow-img {
    filter: invert(100%);
}
.media-index .cards-pagination__arrow-img {
    width: 0.86rem;
    height: 0.86rem;
    background-image: url('/images/arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotateZ(180deg);
}
.media-index .cards-pagination__arrow-img_first {
    background-image: url('/images/arrow-double.svg');
}
.media-index .cards-pagination__arrow-img_last {
    background-image: url('/images/arrow-double.svg');
    transform: rotateZ(360deg);
}
.media-index .cards-pagination__arrow-img_next {
    transform: rotateZ(360deg);
}
@media screen and (max-width: 768px) {
    .media-index .cards-pagination__number,
    .media-index .cards-pagination__arrow {
        width: 2.2rem;
        height: 2.2rem;
    }
    .media-index .cards-pagination > * + * {
        margin-left: 0.6rem;
    }
}

/* ===== Блок «Курсы для вас» (components/Media/CourseSlider.vue + Header.vue) ===== */
.media-index .media-courses > .title {
    position: relative;
    margin-bottom: 0.4084rem;
    font-weight: 700;
    font-size: 3.35rem;
    line-height: 3.35rem;
    color: #292C3D;
}
.media-index .media-courses > .title::before {
    content: '';
    position: absolute;
    left: -12rem;
    top: 50%;
    width: 10.1699rem;
    height: 0.3267rem;
    background-color: #F42A3E;
    transform: translateY(-50%);
}
.media-index .media-courses > .desc {
    margin-bottom: 4.4117rem;
    font-weight: 400;
    font-size: 1.6339rem;
    line-height: 1.6339rem;
    color: #000000;
}
.media-index .media-courses .swiper {
    overflow: visible;
    padding-bottom: 5.71rem;
}
.media-index .media-courses .swiper-button {
    width: 40px;
    height: 40px;
    margin: 0;
    cursor: pointer;
}
.media-index .media-courses .swiper-button svg {
    width: 100%;
    height: 100%;
}
.media-index .media-courses .swiper-button:hover {
    opacity: 1;
    transition: 0.3s;
}
.media-index .media-courses .swiper-button:hover svg path {
    transition: 0.3s;
    fill: #F42A3E;
}
.media-index .media-courses .swiper-button:hover svg circle {
    transition: 0.3s;
    stroke: #F42A3E;
}
.media-index .media-courses .swiper-button::after {
    display: none;
}
.media-index .media-courses .swiper-button-prev {
    transform: rotate(180deg);
}
.media-index .media-courses .swiper-button-next,
.media-index .media-courses .swiper-button-prev {
    top: auto;
    bottom: 20px;
}
.media-index .media-courses .swiper-button-next {
    right: 20px;
}
.media-index .media-courses .swiper-button-prev {
    left: unset;
    right: 100px;
}
.media-index .media-courses .swiper-slide {
    width: max-content;
}
@media screen and (max-width: 1024px) {
    .media-index .media-courses .swiper .swiper-button {
        width: 25px;
        height: 25px;
    }
}
@media screen and (max-width: 768px) {
    .media-index .media-courses > .title {
        padding-left: 26px;
        font-size: 24px;
        line-height: 48px;
    }
    .media-index .media-courses > .title::before {
        left: -9.5rem;
        height: 4px;
    }
    .media-index .media-courses > .desc {
        margin-bottom: 30px;
        font-size: 18px;
        line-height: 24px;
    }
    .media-index .media-courses .swiper {
        padding-bottom: 35px;
    }
    .media-index .media-courses .swiper-button-next,
    .media-index .media-courses .swiper-button-prev {
        bottom: 0;
    }
    .media-index .media-courses .swiper-button-prev {
        right: 80px;
    }
}

/* Карточки курсов ДПО и ВО (components/Media/DpoCard.vue, VoProfileCard.vue) */
.media-index .media-course-card .card {
    box-sizing: content-box;
    align-items: flex-start;
    background: #EFF3F8;
    box-shadow: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    text-overflow: ellipsis;
    transition-duration: .5s;
    transition-property: transform, box-shadow;
    transition-timing-function: ease-in-out;
    border-radius: 30px;
}
.media-index .media-course-card .card-wrapper {
    height: 100%;
    margin-bottom: 1.6rem;
    width: 28.682rem;
}
.media-index .media-course-card_vo .card-wrapper {
    height: 28.682rem;
}
.media-index .media-course-card .card__top-top {
    color: #8a8a93;
    display: flex;
    height: 3.5rem;
    font-size: .85rem;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: .08em;
    line-height: 1.2rem;
    margin-bottom: 1.3rem;
    text-transform: uppercase;
}
.media-index .media-course-card .card_partner {
    text-align: right;
    margin-left: 5px;
    transition: 0.5s;
}
.media-index .media-course-card .card_partner:hover {
    color: #F42A3E;
}
.media-index .media-course-card .card__top-middle {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 1.8rem;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 6rem;
}
.media-index .media-course-card .card__top-bottom {
    margin-bottom: 1rem;
    color: #8A8A93;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}
.media-index .media-course-card .card_time {
    color: #292c3d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.5rem;
}
.media-index .media-course-card .card_month {
    font-weight: 700;
}
.media-index .media-course-card .card_date {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: #292c3d;
    display: -webkit-box;
    margin-bottom: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.3rem;
    line-height: 1.5rem;
}
.media-index .media-course-card .card_date br {
    display: none;
}
.media-index .media-course-card .card_date span {
    color: #069D93;
    font-size: inherit !important;
}
.media-index .media-course-card .card_footer {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}
.media-index .media-course-card .card_button {
    background: linear-gradient(141.72deg, #E61A2E 0%, #E82C5E 100%);
    border-radius: 2.014rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2rem;
    padding: .6rem 1rem;
    white-space: nowrap;
}
.media-index .media-course-card .card_button.recommends,
.media-index .media-course-card .card_button.recommends2,
.media-index .media-course-card .card_button.recommends3,
.media-index .media-course-card .card_button.recommends4 {
    background: #069D93;
}
.media-index .media-course-card .card__bottom {
    display: flex;
    width: 100%;
}
.media-index .media-course-card .card__bottom--left {
    flex-grow: 1;
    flex-shrink: 1;
}
@media screen and (max-width: 768px) {
    .media-index .media-course-card * {
        box-sizing: border-box;
    }
    .media-index .media-course-card .card-wrapper {
        height: 33rem;
        margin-left: 0;
        margin-right: 0;
        width: 33rem;
    }
}
@media screen and (max-width: 480px) {
    .media-index .media-course-card .card_footer {
        align-items: baseline;
        height: auto;
        position: relative;
    }
    .media-index .media-course-card .card-wrapper {
        box-sizing: border-box;
        padding: 20px;
        width: 350px;
        height: 350px;
    }
    .media-index .media-course-card .card__top-top {
        margin-bottom: 10px;
        height: 30px;
        font-size: 10px;
        line-height: 12px;
    }
    .media-index .media-course-card .card_partner {
        font-size: 8px;
    }
    .media-index .media-course-card .card__top-middle {
        margin-bottom: 10px;
        height: 72px;
        font-size: 18px;
        line-height: 24px;
    }
    .media-index .media-course-card .card__top-bottom,
    .media-index .media-course-card .card_time,
    .media-index .media-course-card .card_date {
        font-size: 12px;
        line-height: 16px;
    }
    .media-index .media-course-card .card_time,
    .media-index .media-course-card .card_date {
        margin-bottom: 10px;
    }
    .media-index .media-course-card .card_button {
        display: inline-block;
        margin-bottom: 0.5rem;
        padding: 12px 18px;
        font-size: 12px;
        line-height: 18px;
    }
}

/* Карточка «Посмотреть все» (components/Media/CoursesAll.vue) */
.media-index .media-courses-all .card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #CAE2FF;
    box-shadow: unset;
    padding: 2rem;
    padding-top: 2.8594rem;
    text-overflow: ellipsis;
    border-radius: 30px;
}
.media-index .media-courses-all .card-wrapper {
    max-width: 32.6797rem;
    min-height: 32.6797rem;
    overflow: hidden;
    background-image: url('/images/courses-all-test.png');
    background-position: right bottom;
    background-repeat: no-repeat;
}
.media-index .media-courses-all .card__top {
    margin-bottom: 4.9019rem;
}
.media-index .media-courses-all .card__top-top {
    position: relative;
    margin-bottom: 1.3rem;
    font-weight: 700;
    font-size: 2.4509rem;
    line-height: 2.4509rem;
}
.media-index .media-courses-all .card__top-top::before {
    content: '';
    position: absolute;
    background-color: #f42a3e;
    height: 0.27rem;
    left: -2.8rem;
    top: 1rem;
    width: 2.39rem;
}
.media-index .media-courses-all .card__top-bottom {
    font-weight: 400;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.6339rem;
    line-height: 1.6339rem;
}
.media-index .media-courses-all .card_button {
    padding: 1.3071rem 1.9607rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.3071rem;
    line-height: 1.6339rem;
    color: #ffff;
    background-color: #E51A2E;
    cursor: pointer;
    transition: opacity .2s ease-in-out;
}
.media-index .media-courses-all .card_button:hover {
    opacity: .7;
}
.media-index .media-courses-all .card__bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.media-index .media-courses-all .card__bottom--left {
    width: 13.0718rem;
}
@media screen and (max-width: 768px) {
    .media-index .media-courses-all * {
        box-sizing: border-box;
    }
    .media-index .media-courses-all .card-wrapper {
        height: 33rem;
        margin-left: 0;
        margin-right: 0;
        width: 33rem;
    }
    .media-index .media-courses-all .card__bottom {
        flex-direction: column;
    }
    .media-index .media-courses-all .card_button {
        margin-bottom: 1.4rem;
    }
}
@media screen and (max-width: 480px) {
    .media-index .media-courses-all .card__top-bottom {
        font-size: 1rem;
        line-height: 1.2rem;
    }
    .media-index .media-courses-all .card_button {
        display: inline-block;
        font-size: .8rem;
        line-height: .8rem;
        margin-bottom: 0.5rem;
        padding: 0.8rem 1rem;
    }
    .media-index .media-courses-all .card-wrapper {
        width: 350px;
        height: 350px;
        min-height: auto;
        padding: 20px;
    }
    .media-index .media-courses-all .card__top-top {
        margin-bottom: 20px;
        font-size: 28px;
        line-height: 36px;
    }
}

/* Утилиты из base.css, на которых свёрстана плашка cookie (components/CookieAccept.vue);
   без них плашка не становится flex и растягивает страницу по ширине на мобильном */
.cookie.df {
    display: flex !important;
}
.cookie.ai-center {
    align-items: center !important;
}
.cookie.jc-between {
    justify-content: space-between !important;
}
.cookie .font-small {
    font-size: 1.1rem !important;
    line-height: 140%;
}

/* Мобильные размеры карточки (components/Media/SmallCard.vue): в SPA правила с :nth-child
   перекрывали общий top у тегов, а заголовок уменьшался до 20px */
@media screen and (max-width: 768px) {
    .media-index .img > .tag {
        right: 25px;
    }
    .media-index .img > .tag:nth-child(2) {
        top: 1.6339rem;
    }
    .media-index .img > .tag:nth-child(3) {
        top: 5rem;
    }
    .media-index .img > .tag:nth-child(4) {
        top: 8.4rem;
    }
    .media-index .grid .small-card .title {
        margin-bottom: 8px;
        font-size: 20px;
        line-height: 28px;
    }
}

/* Блок «Новости института» на мобильном (components/Media/Articles.vue): ссылка «Все новости» — под карточками */
@media screen and (max-width: 768px) {
    .media-index .articles .subform__left .desktop {
        display: none;
    }
    .media-index .articles .subform__left.mobile {
        margin-top: 2rem;
        display: block;
    }
}

/* Мобильная форма подписки (components/Media/SmallSubscribeForm.vue): в media.css статичные стили
   большой формы (.component .subform) делают её flex-строкой с фоновой картинкой */
.media-index .media-subscribe-small .subform {
    display: block;
    background-image: none;
}
/* layout2 делает поля ввода жирными, в SPA — обычное начертание */
.media-index .subform input {
    font-weight: 400;
}

/* ===== Мобильное меню (components/Media/MobileFilter.vue) ===== */
.media-index .mobile {
    z-index: 1;
}
.media-index .mobile .title {
    padding-left: 26px;
}
.media-index .mobile .burger-wrapper-list {
    position: fixed;
    top: calc(12rem - 20px);
    right: 0;
    left: 0;
    z-index: 1000;
    max-height: calc(100vh - 50px);
    padding: 9.3vw 11.6vw;
    background: #fff;
    border: 1px solid #CACACE;
    border-radius: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    animation: filter .3s forwards linear;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.media-index .mobile .burger-wrapper-list::-webkit-scrollbar {
    display: none;
}
.media-index .mobile .burger-wrapper-list .title {
    margin: 0;
    padding-left: 0;
    color: #292C3D;
}
.media-index .mobile-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
}
.media-index .mobile-menu > *:nth-child(odd) {
    padding-right: 12px;
}
.media-index .mobile-menu > *:nth-child(even) {
    padding-left: 12px;
}
.media-index .mobile-menu__subtitle {
    margin-bottom: 24px;
    padding-bottom: 0.35em;
    border-bottom: 1px solid #F1F1F1;
    font-weight: 700;
    font-size: 20px;
}
.media-index .mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.media-index .mobile-menu__list a {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}
.media-index .mobile-menu__list a + a {
    margin-top: 18px;
}
.media-index .mobile-menu__list a.themes-btn--active {
    text-decoration: underline;
    text-decoration-color: #F42A3E;
}
/* Первые 6 пунктов каждого списка, остальные — по «Еще» */
.media-index .mobile-menu__list a.hide {
    display: none;
}
.media-index .media-mobile-menu_all .mobile-menu__list a.hide {
    display: block;
}
.media-index .burger-wrapper-list .button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
}
.media-index .burger-wrapper-list .line {
    width: 100%;
    height: 0.0816rem;
    background-color: #CACACE;
}
.media-index .burger-wrapper-list .button__btn {
    padding: 0.5803rem 1.4509rem;
    border: 2px solid #F1F1F1;
    border-radius: 3.9215rem;
    font-weight: 700;
    font-size: 16px;
    color: #292C3D;
    white-space: nowrap;
    cursor: pointer;
}
.media-index .burger-wrapper-list .headline__categories {
    display: flex;
    margin-top: 20px;
    margin-left: auto;
    padding-top: 20px;
    border-top: 1px solid #F1F1F1;
    gap: 2.84em;
}
.media-index .burger-wrapper-list .headline__categories.headline__categories_no_br {
    margin-top: 0;
    border: none;
}
.media-index .burger-wrapper-list .headline__categories a {
    display: flex;
    align-items: center;
    height: 2.5em;
    padding: 0 1.25em;
    border: none;
    border-radius: 48px;
    font-weight: 700;
    font-size: 16px;
    transition: .3s;
}
.media-index .burger-wrapper-list .headline__categories a:hover {
    background: #F1F1F1;
}
/* В media.css кнопка позиционирована под детальную страницу (absolute !important), в SPA она fixed */
.media-index .mobile .burger-wrapper,
.media-index .mobile > div > .burger-wrapper {
    position: fixed !important;
    top: 12rem !important;
    right: 22px !important;
    z-index: 1001;
    border-radius: 50%;
    background: transparent;
}
.media-index .mobile .burger {
    position: relative;
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    padding: 17px 13px;
    border: 2px solid #E7002C;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border .3s ease-in-out;
}
.media-index .mobile .burger span {
    position: absolute;
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: #E7002C;
    transition: top .3s ease-in-out, bottom .3s ease-in-out, width .1s ease-in-out, color .3s ease-in-out, transform .3s ease-in-out;
}
.media-index .mobile .burger .line-1 {
    top: 17px;
    transform: none;
}
.media-index .mobile .burger .line-2 {
    top: 50%;
    width: 24px;
    transform: translateY(-50%);
}
.media-index .mobile .burger .line-3 {
    bottom: 17px;
    transform: none;
}
.media-index .mobile .active .burger .line-1 {
    top: 23px;
    transform: rotate(45deg);
}
.media-index .mobile .active .burger .line-2 {
    width: 0;
}
.media-index .mobile .active .burger .line-3 {
    bottom: 23px;
    transform: rotate(-45deg);
}
@media screen and (max-width: 480px) {
    .media-index .mobile .burger-wrapper-list {
        top: calc(5rem - 18px);
    }
    .media-index .mobile .burger-wrapper,
    .media-index .mobile > div > .burger-wrapper {
        top: 5rem !important;
    }
}

/* ===== Большая карточка 3x1 (components/Media/BigCard.vue) ===== */
.media-index .media-big-card {
    display: flex;
    justify-content: space-between;
    border-radius: 30px;
    transition: box-shadow .3s ease-in-out;
}
.media-index .media-big-card.revers {
    flex-direction: row-reverse;
}
.media-index .media-big-card:hover .title {
    color: #2A29B2;
}
.media-index .media-big-card:hover .desc {
    color: #000;
}
.media-index .media-big-card .left {
    flex: 0 1 66.9934rem;
}
.media-index .media-big-card .image {
    position: relative;
    height: 100%;
    max-height: 32.6797rem;
    border-radius: 30px;
    overflow: hidden;
}
.media-index .media-big-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}
.media-index .media-big-card .image > .tag {
    position: absolute;
    right: 2.4509rem;
}
.media-index .media-big-card .image > .tag:nth-child(2) {
    top: 1.6339rem;
}
.media-index .media-big-card .image > .tag:nth-child(3) {
    top: 5rem;
}
.media-index .media-big-card .image > .tag:nth-child(4) {
    top: 8.4rem;
}
.media-index .media-big-card .content {
    flex: 0 0 32.6797rem;
    box-sizing: border-box;
    height: auto;
    padding: 3.2679rem 1.2254rem 0 3.2679rem;
    display: flex;
    flex-direction: column;
}
.media-index .media-big-card .text-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0.8169rem;
    overflow: hidden;
}
.media-index .grid .media-big-card .title {
    margin: 0 0 0.6535rem;
    font-weight: 700;
    font-size: 2.4509rem;
    line-height: 2.4509rem;
    color: #000000;
    transition: color .2s ease-in-out;
}
.media-index .media-big-card .desc {
    display: block;
    font-weight: 400;
    font-size: 1.3071rem;
    line-height: 1.6339rem;
    color: #8A8A93;
    transition: color .2s ease-in-out;
}
.media-index .media-big-card .wrapper {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9803rem;
    line-height: 1.4705rem;
    text-transform: uppercase;
}
@media screen and (max-width: 1024px) {
    .media-index .media-big-card,
    .media-index .media-big-card.revers {
        flex-direction: column;
    }
    .media-index .media-big-card .left {
        flex: 0 1 49rem;
    }
    .media-index .media-big-card .image {
        max-height: 49rem;
    }
    .media-index .media-big-card .content {
        flex: 0 1 auto;
        padding: 3.2679rem;
    }
    .media-index .grid .media-big-card .title {
        margin-bottom: 2.4509rem;
    }
    .media-index .media-big-card .wrapper {
        margin-bottom: 2.5rem;
    }
}
@media screen and (max-width: 768px) {
    .media-index .media-big-card .content {
        padding: 16px 26px;
    }
    .media-index .grid .media-big-card .title {
        margin-bottom: 8px;
        font-size: 20px;
        line-height: 28px;
    }
    .media-index .media-big-card .desc {
        font-size: 16px;
        line-height: 20px;
    }
    .media-index .media-big-card .wrapper {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 18px;
    }
    .media-index .media-big-card .image > .tag {
        right: 25px;
    }
    .media-index .media-big-card .left {
        flex: 0 1 25rem;
    }
    .media-index .media-big-card .image {
        max-height: 25rem;
    }
}
@media screen and (max-width: 480px) {
    .media-index .media-big-card .image img {
        min-height: 25rem;
    }
}

/* ===== Вертикальная карточка 1x2 (components/Media/VerticalCard.vue) ===== */
.media-index .media-vertical-card {
    height: 100%;
}
.media-index .media-vertical-card .card {
    max-width: 32.6797rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    transition: box-shadow .3s ease-in-out;
}
.media-index .media-vertical-card .card:hover .card__header {
    color: #2A29B2;
}
.media-index .media-vertical-card .card:hover .card__text {
    color: #000;
}
.media-index .media-vertical-card .content {
    height: 100%;
    padding: 1.6339rem 0.8169rem 0.8169rem 0.8169rem;
    display: flex;
    flex-direction: column;
}
.media-index .media-vertical-card .card-top {
    position: relative;
    width: 100%;
    min-height: 47.6rem;
}
.media-index .media-vertical-card .card-top img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}
.media-index .media-vertical-card .card-top > .tag {
    position: absolute;
    right: 2.4509rem;
}
.media-index .media-vertical-card .card-top > .tag:nth-child(2) {
    top: 1.6339rem;
}
.media-index .media-vertical-card .card-top > .tag:nth-child(3) {
    top: 5rem;
}
.media-index .media-vertical-card .card-top > .tag:nth-child(4) {
    top: 8.4rem;
}
.media-index .media-vertical-card .card-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2075rem;
}
.media-index .media-vertical-card .card__left,
.media-index .media-vertical-card .card__right {
    font-weight: 700;
    font-size: 0.9803rem;
    line-height: 1.4705rem;
    text-transform: uppercase;
}
.media-index .media-vertical-card .card__left {
    color: #0E0CC1;
}
.media-index .media-vertical-card .card__right {
    color: #8A8A93;
}
.media-index .media-vertical-card .card__header {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-weight: 700;
    font-size: 1.61rem;
    line-height: 2.254rem;
    transition: color .2s ease-in-out;
}
.media-index .media-vertical-card .card__text {
    margin-bottom: 0.46rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-weight: 400;
    font-size: 1.3071rem;
    line-height: 1.6339rem;
    color: #8A8A93;
    transition: color .2s ease-in-out;
}
.media-index .grig-left__media {
    grid-column-start: 1;
}
.media-index .grig-right__media {
    grid-column-start: 3;
}
@media screen and (max-width: 1024px) {
    .media-index .media-vertical-card .card {
        max-width: none;
    }
    .media-index .grig-right__media {
        grid-column-start: 2;
    }
}
@media screen and (max-width: 768px) {
    .media-index .media-vertical-card .content {
        padding: 16px 26px;
    }
    .media-index .media-vertical-card .card-top {
        min-height: 45rem;
    }
    .media-index .media-vertical-card .card-top > .tag {
        right: 25px;
    }
    .media-index .media-vertical-card .card-wrapper {
        margin-bottom: 10px;
    }
    .media-index .media-vertical-card .card__left,
    .media-index .media-vertical-card .card__right {
        font-size: 12px;
        line-height: 18px;
    }
    .media-index .media-vertical-card .card__header {
        font-size: 20px;
        line-height: 28px;
    }
    .media-index .media-vertical-card .card__text {
        font-size: 16px;
        line-height: 20px;
    }
}
@media screen and (max-width: 672px) {
    .media-index .media-vertical-card .card-top {
        min-height: 14.7058rem;
    }
    .media-index .grig-right__media {
        grid-column-start: 1;
    }
}
@media screen and (max-width: 480px) {
    .media-index .media-vertical-card .card-top {
        min-height: 400px;
    }
}

/* Выбранный формат (components/Media/FormatFilter.vue) */
.media-index .media-index__formats a.themes-btn--active {
    background-color: #F1F1F1;
}
