/* ==========================================================
   АРХИВЫ IK.NEWS
   ========================================================== */
.ik-archive-page {
    width: 100%;

    background: #eeeeee;

    padding: 24px 0 40px;

    box-sizing: border-box;
}

.ik-archive {
    width: min(100% - 32px, 1500px);

    margin: 24px auto 0;

    box-sizing: border-box;
}

.ik-archive__container {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        327px;
    gap: 28px;
    align-items: start;
}

/* ==========================================================
   ОСНОВНАЯ КОЛОНКА
   ========================================================== */

.ik-archive__content {
    min-width: 0;

    background: #ffffff;
    border-radius: 8px;

    padding: 20px;

    box-sizing: border-box;
}


.ik-archive__header {
    margin: -20px -20px 16px;
    padding: 14px 20px;

    background: #dddddd;

    border-bottom: 1px solid #d8d8d8;
    border-radius: 8px 8px 0 0;

    box-sizing: border-box;
}


.ik-archive__header h1 {
    margin: 0;

    color: #222222;

    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
}


/* ==========================================================
   СЕТКА НОВОСТЕЙ
   ========================================================== */

.ik-archive__grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* ==========================================================
   КАРТОЧКА
   ========================================================== */

.ik-archive-card {
    min-width: 0;
    box-sizing: border-box;
}


.ik-archive-card__image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 6px;

    background: #e6e6e6;
}

.ik-archive-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}


.ik-archive-card:hover .ik-archive-card__image img {
    transform: scale(1.03);
}


/* ==========================================================
   РУБРИКА И ВРЕМЯ
   ========================================================== */

.ik-archive-card__meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 8px;
}

.ik-archive-card__category {
    color: #d71920;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;

    text-transform: uppercase;
}


.ik-archive-card__meta time {
    color: #777777;

    font-size: 10px;
    line-height: 1;

    white-space: nowrap;
}


/* ==========================================================
   ЗАГОЛОВОК
   ========================================================== */

.ik-archive-card__title {
    margin: 6px 0 0;

    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}


.ik-archive-card__title a {
    color: #222222;

    text-decoration: none;
}


.ik-archive-card__title a:hover {
    color: #d71920;
}


/* ==========================================================
   ПРАВАЯ КОЛОНКА
   ========================================================== */

.ik-archive__sidebar {
    display: flex;

    flex-direction: column;

    gap: 24px;
}


/* ==========================================================
   ПОСЛЕДНИЕ НОВОСТИ
   ========================================================== */

.ik-archive-sidebar-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 16px;
    box-sizing: border-box;
}

.ik-archive-sidebar-card h2 {
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    color: #222222;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}


.ik-archive-sidebar-card__item {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid #eeeeee;
    text-decoration: none;
}

.ik-archive-sidebar-card__item:last-child {
    border-bottom: 0;
}


.ik-archive-sidebar-card__item span {
    display: block;
    color: #222222;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.ik-archive-sidebar-card__item:hover span {
    color: #d71920;
}


.ik-archive-sidebar-card__item time {
    display: block;
    margin-top: 3px;
    color: #888888;
    font-size: 9px;
    line-height: 1;
}


/* ==========================================================
   БАННЕР
   ========================================================== */

.ik-archive-sidebar-banner {
    width: 327px;
    max-width: 100%;
}


.ik-archive-sidebar-banner .ik-banner {
    width: 100%;

    overflow: hidden;

    border-radius: 8px;
}


.ik-archive-sidebar-banner .ik-banner-image {
    display: block;

    width: 100%;
    height: auto;
}


/* ==========================================================
   ПАГИНАЦИЯ
   ========================================================== */

.ik-archive__pagination {
    grid-column: 1 / -1;

    width: 100%;

    margin-top: 22px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.ik-archive__pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 0;
    padding: 0;

    white-space: nowrap;
}

.ik-archive__pagination ul.page-numbers {
    display: flex;

    flex-direction: row;
    flex-wrap: nowrap;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ik-archive__pagination ul.page-numbers li {
    display: inline-flex;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ik-archive__pagination a,
.ik-archive__pagination span {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;

    padding: 0 9px;

    box-sizing: border-box;

    border-radius: 5px;

    background: #ffffff;

    color: #222222;

    font-size: 12px;

    text-decoration: none;

    white-space: nowrap;
}

.ik-archive__pagination .current {
    background: #d71920;
    color: #ffffff;
}

/* ==========================================================
   НОУТБУК
   ========================================================== */

@media (max-width: 1200px) {

    .ik-archive {
        width: calc(100% - 40px);
    }

    .ik-archive__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 360px);
    }

    .ik-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */

@media (max-width: 900px) {

    .ik-archive {
        width: calc(100% - 20px);

        margin: 12px 10px 0;
    }

    .ik-archive__container {
        grid-template-columns: 1fr;
    }

    .ik-archive__sidebar {
        order: 2;
    }

}


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

@media (max-width: 600px) {

    .ik-archive__content {
        padding: 14px;
    }

    .ik-archive__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .ik-archive__header h1 {
        font-size: 23px;
    }

}

/* ==========================================================
   СЕРАЯ ВЕРХНЯЯ ШАПКА НА СТРАНИЦЕ ВСЕХ НОВОСТЕЙ
   ========================================================== */

body:has(.ik-archive-page) .topbar-v2 {
    background: #ffffff;
}

/* ==========================================================
   ВЕРХНИЙ БАННЕР — СЕРЫЙ ФОН НА АРХИВЕ
   ========================================================== */

body:has(.ik-archive-page) .site-wrapper > .header-banner-section {
    background: #eeeeee !important;

    padding: 20px 0 !important;

    margin-top: -40px !important;
    margin-bottom: 0 !important;

    box-sizing: border-box;
}

/* ==========================================================
   УМЕНЬШАЕМ РАССТОЯНИЕ ОТ ШАПКИ ДО ВЕРХНЕГО БАННЕРА
   ========================================================== */

body:has(.ik-archive-page) > .site-wrapper > header {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

body:has(.ik-archive-page) > .site-wrapper > .header-banner-section {
    margin-top: -20px !important;
}

/**

 */

.ik-archive__pagination ul.page-numbers {
    list-style: none !important;
}

.ik-archive__pagination ul.page-numbers li {
    list-style: none !important;
}