/* ==========================================================
   ПОИСК
   ========================================================== */

.ik-search-page {
    width: min(100% - 32px, 1500px);

    margin: 24px auto 0;

    box-sizing: border-box;
}


.ik-search-page__container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 28px;

    align-items: start;
}

.ik-search-page__content {
    min-width: 0;

    background: #ffffff;

    border-radius: 8px;

    padding: 20px;

    box-sizing: border-box;
}


.ik-search-page__header {
    margin: -20px -20px 18px;

    padding: 18px 20px;

    background: #dddddd;

    border-radius: 8px 8px 0 0;

    box-sizing: border-box;
}


.ik-search-page__header h1 {
    margin: 0;

    color: #222222;

    font-size: 26px;

    line-height: 1.15;

    font-weight: 800;
}


.ik-search-page__header p {
    margin: 8px 0 0;

    color: #666666;

    font-size: 12px;
}


.ik-search-page__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.ik-search-card {
    min-width: 0;
}


.ik-search-card__image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 6px;

    background: #eeeeee;
}


.ik-search-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}


.ik-search-card:hover
.ik-search-card__image img {
    transform: scale(1.03);
}


.ik-search-card__meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-top: 7px;
}


.ik-search-card__meta span {
    color: #d71920;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.ik-search-card__meta time {
    color: #777777;

    font-size: 10px;

    white-space: nowrap;
}


.ik-search-card__title {
    margin: 6px 0 0;

    font-size: 15px;

    line-height: 1.25;

    font-weight: 700;
}


.ik-search-card__title a {
    color: #222222;

    text-decoration: none;
}


.ik-search-card__title a:hover {
    color: #d71920;
}


.ik-search-page__sidebar {
    display: flex;

    flex-direction: column;

    gap: 24px;
}


.ik-search-sidebar-card {
    background: #ffffff;

    border-radius: 8px;

    padding: 18px 20px;

    box-sizing: border-box;
}


.ik-search-sidebar-card h2 {
    margin: 0 0 10px;

    padding-bottom: 10px;

    border-bottom: 1px solid #e5e5e5;

    color: #222222;

    font-size: 20px;

    font-weight: 800;
}


.ik-search-sidebar-card__item {
    display: block;

    padding: 11px 0;

    border-bottom: 1px solid #eeeeee;

    text-decoration: none;
}


.ik-search-sidebar-card__item:last-child {
    border-bottom: 0;
}


.ik-search-sidebar-card__item span {
    display: block;

    color: #222222;

    font-size: 13px;

    line-height: 1.3;

    font-weight: 700;
}


.ik-search-sidebar-card__item:hover span {
    color: #d71920;
}


.ik-search-sidebar-card__item time {
    display: block;

    margin-top: 5px;

    color: #888888;

    font-size: 10px;
}


.ik-search-sidebar-banner {
    width: 100%;
}


.ik-search-sidebar-banner .ik-banner {
    width: 100%;

    overflow: hidden;

    border-radius: 8px;
}


.ik-search-sidebar-banner .ik-banner-image {
    display: block;

    width: 100%;

    height: auto;
}


.ik-search-page__pagination {
    margin-top: 22px;

    display: flex;

    justify-content: center;
}


.ik-search-page__empty {
    padding: 30px 0;

    text-align: center;

    color: #888888;
}


@media (max-width: 1200px) {

    .ik-search-page {
        width: calc(100% - 40px);
    }


    .ik-search-page__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 360px);
    }


    .ik-search-page__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .ik-search-page {
        width: calc(100% - 20px);

        margin: 12px 10px 0;
    }


    .ik-search-page__container {
        grid-template-columns: 1fr;
    }


    .ik-search-page__sidebar {
        order: 2;
    }

}


@media (max-width: 600px) {

    .ik-search-page__content {
        padding: 14px;
    }


    .ik-search-page__header {
        margin: -14px -14px 14px;

        padding: 14px;
    }


    .ik-search-page__header h1 {
        font-size: 22px;
    }


    .ik-search-page__grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .ik-search-page__sidebar {
        gap: 12px;
    }

}

/* ==========================================================
   ФОН СТРАНИЦЫ ПОИСКА
   ========================================================== */

body:has(.ik-search-page) {
    background: #eeeeee;
}

body:has(.ik-search-page) .site-wrapper {
    background: transparent;
}

/* ==========================================================
   ОСНОВНЫЕ БЛОКИ ПОИСКА
   ========================================================== */

body:has(.ik-search-page) .ik-search-page {
    padding-bottom: 30px;
}


/* Белый блок с результатами */

body:has(.ik-search-page) .ik-search-page__content {
    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;
}


/* Заголовок — серый, как на «Все новости» и рубриках */

body:has(.ik-search-page) .ik-search-page__header {
    background: #dddddd;
}


/* Правая колонка — отдельный белый блок */

body:has(.ik-search-page) .ik-search-sidebar-card {
    background: #ffffff;

    border-radius: 8px;
}


/* Баннер тоже отдельным блоком */

body:has(.ik-search-page) .ik-search-sidebar-banner {
    background: #ffffff;

    border-radius: 8px;

    padding: 0;

    overflow: hidden;
}

/* ==========================================================
   СЕРАЯ ШАПКА НА СТРАНИЦЕ ПОИСКА
   ========================================================== */

body:has(.ik-search-page) .topbar-v2 {
    background: #eeeeee !important;
}