/* ==========================================================
   ОСНОВНАЯ СЕТКА ГЛАВНОЙ
   ========================================================== */

.ik-home {
    width: calc(100% - 92px);
    max-width: 1404px;
    margin: 20px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.ik-home {
    --main-width: min(1000px, 52vw);
    --sidebar-width: min(380px, 20vw);
    --home-gap: 24px;

    width: calc(100% - 92px);
    max-width: 1404px;
    margin: 20px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.ik-home__grid {
    display: grid;

    grid-template-columns:
        minmax(0, var(--main-width))
        minmax(0, var(--sidebar-width));

    gap: var(--home-gap);

    align-items: start;
    justify-content: center;
}


.ik-home__main {
    min-width: 0;
}

.ik-home__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ik-home-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.ik-home-card__header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.ik-home-card__header h2,
.ik-home__news-day h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.ik-home-card__placeholder {
    min-height: 250px;
    padding: 30px 20px;
    box-sizing: border-box;
    color: #888888;
}

.ik-home__news-day {
    width: 100%;
    max-width: none;
    margin: 24px 0 0;

    background: #ffffff;
    border-radius: 8px;
    padding: 20px;

    box-sizing: border-box;
}

.ik-home__news-day-placeholder {
    min-height: 180px;
    margin-top: 15px;
    color: #888888;
}


/* ==========================================================
   IK.NEWS — ГЛАВНОЕ
   ========================================================== */

.ik-featured {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 0;

    box-sizing: border-box;

    overflow: hidden;

    border-radius: 8px;

    background: #111;
}


/* ==========================================================
   СЛАЙД
   ========================================================== */

.ik-featured__slides {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 8;

    overflow: hidden;
}


.ik-featured__slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: opacity 0.3s ease;
}


.ik-featured__slide.is-active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    z-index: 2;
}


/* ==========================================================
   КАРТИНКА
   ========================================================== */

.ik-featured__image,
.ik-featured__image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}


.ik-featured__image img {
    display: block;

    object-fit: cover;
}


/* ==========================================================
   ЗАТЕМНЕНИЕ
   ========================================================== */

.ik-featured__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
            linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.88) 0%,
                    rgba(0, 0, 0, 0.52) 35%,
                    rgba(0, 0, 0, 0.05) 72%,
                    rgba(0, 0, 0, 0) 100%
            );
}

/* ==========================================================
   КОНТЕНТ
   ========================================================== */

.ik-featured__content {
    position: absolute;

    inset: 0;

    z-index: 3;

    padding: 22px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    pointer-events: none;

}

.ik-featured__title a {
    pointer-events: auto;
}


.ik-featured__badge {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 0 12px;

    background: #d71920;

    border-radius: 5px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    width: fit-content;
}


.ik-featured__bottom {
    max-width: 850px;
}


.ik-featured__meta {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 9px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 12px;
}


.ik-featured__category {
    display: inline-flex;

    align-items: center;

    min-height: 23px;

    padding: 0 9px;

    border-radius: 4px;

    background: #d71920;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}


.ik-featured__title {
    margin: 0;

    font-size: 28px;
    font-weight: 800;

    line-height: 1.12;

    color: #ffffff;
}


.ik-featured__title a {
    color: inherit;

    text-decoration: none;
}


.ik-featured__excerpt {
    max-width: 780px;

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;

    line-height: 1.45;
}


/* ==========================================================
   СТРЕЛКИ
   ========================================================== */

.ik-featured__controls {
    position: absolute;

    top: 24px;
    right: 20px;

    z-index: 10;

    display: flex;

    gap: 8px;
}


.ik-featured__arrow {
    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


.ik-featured__arrow span {
    width: 8px;
    height: 8px;

    border-top: 2px solid #222;
    border-right: 2px solid #222;
}


.ik-featured__arrow--prev span {
    transform: rotate(-135deg);
}


.ik-featured__arrow--next span {
    transform: rotate(45deg);
}


/* ==========================================================
   ТОЧКИ
   ========================================================== */

.ik-featured__dots {
    position: absolute;

    right: 26px;
    bottom: 22px;

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 8px;
}


.ik-featured__dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.8);

    cursor: pointer;
}


.ik-featured__dot.is-active {
    background: #d71920;
}


/* ==========================================================
   НОУТБУК
   ========================================================== */

@media (max-width: 1200px) {

    .ik-featured__title {
        font-size: 32px;
    }

}
/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */

@media (max-width: 700px) {

    .ik-featured {
        margin: 0;
        width: 100%;
        border-radius: 6px;
    }

    .ik-featured__slides {
        aspect-ratio: 4 / 3;
    }

    .ik-featured__content {
        padding: 16px;
    }

    .ik-featured__title {
        font-size: 25px;
    }

    .ik-featured__excerpt {
        display: none;
    }

}


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

@media (max-width: 480px) {

        .ik-featured {
            margin: 0;
            width: 100%;
        }

    .ik-featured__slides {
        aspect-ratio: 4 / 3;
    }

    .ik-featured__content {
        padding: 12px;
    }

    .ik-featured__badge {
        min-height: 26px;

        padding: 0 9px;

        font-size: 10px;
    }

    .ik-featured__meta {
        font-size: 10px;
    }

    .ik-featured__title {
        font-size: 20px;
    }

    .ik-featured__controls {
        top: 12px;
        right: 12px;
    }

    .ik-featured__arrow {
        width: 30px;
        height: 30px;
    }

    .ik-featured__dots {
        right: 14px;
        bottom: 12px;
    }

    .ik-featured__dot {
        width: 7px;
        height: 7px;
    }

}


@media (max-width: 900px) {

    .ik-home {
        width: calc(100% - 20px);
        margin: 12px 10px 0;
    }

    .ik-home__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ik-home__sidebar {
        width: 100%;
    }

    .ik-home__news-day {
        width: 100%;
        margin-top: 12px;
    }

}

@media (max-width: 600px) {

    .ik-home {
        padding: 0 10px;
    }

    .ik-home__grid {
        gap: 12px;
    }

    .ik-home__sidebar {
        gap: 12px;
    }

}
 /* ==============
  серый фон
  =========== */

body.home {
    background: #eeeeee;
}

body.home .site-wrapper {
    background: transparent;
}

body.home .topbar-v2 {
    background: transparent;
}

/* =================
 блок лайв тикера
 ============ */

body.home .ik-live-ticker {
    width: calc(100% - 64px);
    max-width: 1400px;

    margin: 10px auto 0;

    min-height: 48px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

    box-sizing: border-box;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================
   ПОПУЛЯРНОЕ / В РОССИИ
   ========================================================== */

.ik-popular {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}


.ik-popular__tabs {
    display: flex;
    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid #dcdcdc;
}


.ik-popular__tab {
    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 18px 12px 14px;

    margin-right: 22px;

    border: 0;
    background: transparent;

    color: #8a8a8a;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}


.ik-popular__tab.is-active {
    color: #222;
}


.ik-popular__tab.is-active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 3px;

    background: #d71920;
}


.ik-popular__icon {
    font-size: 17px;
}


.ik-popular__content {
    padding: 8px 20px 12px;
}


.ik-popular__list {
    display: none;
}


.ik-popular__list.is-active {
    display: block;
}


.ik-popular__item {
    display: grid;

    grid-template-columns: 150px minmax(0, 1fr);

    gap: 16px;

    padding: 12px 0;

    border-bottom: 1px solid #e5e5e5;

    color: #222;

    text-decoration: none;
}


.ik-popular__item:last-child {
    border-bottom: 0;
}


.ik-popular__thumb {
    width: 150px;
    height: 84px;

    overflow: hidden;

    border-radius: 5px;

    background: #eee;
}


.ik-popular__thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.ik-popular__info {
    min-width: 0;
}


.ik-popular__info h3 {
    margin: 0;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}


.ik-popular__meta {
    margin-top: 8px;

    color: #888;

    font-size: 12px;
}


.ik-popular__item:hover .ik-popular__info h3 {
    color: #d71920;
}


@media (max-width: 1200px) {

    .ik-popular__item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .ik-popular__thumb {
        width: 120px;
        height: 72px;
    }

}


@media (max-width: 900px) {

    .ik-popular__item {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .ik-popular__thumb {
        width: 140px;
        height: 80px;
    }

}


@media (max-width: 600px) {

    .ik-popular__tabs {
        padding: 0 12px;
    }

    .ik-popular__tab {
        font-size: 14px;
        margin-right: 12px;
    }

    .ik-popular__content {
        padding: 6px 12px 10px;
    }

    .ik-popular__item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
    }

    .ik-popular__thumb {
        width: 100px;
        height: 62px;
    }

    .ik-popular__info h3 {
        font-size: 13px;
    }

}

/* ==========================================================
   ПОПУЛЯРНОЕ — выравнивание карточек
   ========================================================== */

.ik-popular__item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;

    min-height: 72px;
    align-items: stretch;
}

.ik-popular__thumb {
    width: 130px;
    height: 72px;
    flex-shrink: 0;
}

.ik-popular__info {
    min-width: 0;
    height: 72px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ik-popular__info h3 {
    margin: 0;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.ik-popular__meta {
    margin-top: auto;
    padding-top: 5px;

    font-size: 11px;
    line-height: 1;
    color: #888;
}

.ik-popular__tab {
    font-size: 14px;
    font-weight: 800;

    padding: 15px 10px 12px;
    gap: 6px;
}

.ik-popular__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ik-popular__icon img {
    display: block;
    object-fit: contain;
}

/* Иконка «Популярное» */
.ik-popular__icon--popular img {
    width: 18px;
    height: 18px;
}

/* Иконка «В России» */
.ik-popular__icon--russia img {
    width: 24px;
    height: 24px;
}

/* Неактивная иконка */
.ik-popular__tab:not(.is-active) .ik-popular__icon img {
    filter: grayscale(1);
    opacity: 0.5;
}

/* Активная иконка */
.ik-popular__tab.is-active .ik-popular__icon img {
    filter: none;
    opacity: 1;
}

.ik-popular__info {
    min-width: 0;
    height: 72px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ik-popular__info h3 {
    margin: 0;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.ik-popular__meta {
    margin-top: auto;
    padding-top: 4px;

    font-size: 11px;
    line-height: 1;
    color: #888;
    white-space: nowrap;
}

/* ==========================================================
   ПОПУЛЯРНОЕ — НОУТБУКИ
   ========================================================== */

@media (min-width: 901px) and (max-width: 1700px) {

    .ik-popular__tabs {
        display: flex;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .ik-popular__tab {
        flex: 1 1 50%;
        min-width: 0;

        margin: 0;
        padding: 13px 6px 11px;

        font-size: 13px;
        line-height: 1.1;

        white-space: nowrap;

        justify-content: center;
        gap: 5px;
    }

    .ik-popular__icon {
        flex: 0 0 auto;
    }

    .ik-popular__content {
        padding: 8px 12px 12px;
        box-sizing: border-box;
    }

    .ik-popular__item {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;

        min-height: 62px;
        padding: 10px 0;
    }

    .ik-popular__thumb {
        width: 105px;
        height: 62px;
    }

    .ik-popular__info {
        width: 100%;
        height: 62px;
        min-height: 62px;
        min-width: 0;
    }

    .ik-popular__info h3 {
        font-size: 13px;
        line-height: 1.2;

        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .ik-popular__meta {
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

}

/* ==========================================================
   НОВОСТИ ДНЯ
   ========================================================== */

.ik-home__news-day {
    width: var(--main-width);

    margin-top: 24px;
    margin-left: calc(
            (100% - var(--main-width) - var(--sidebar-width) - var(--home-gap)) / 2
    );
    margin-right: 0;

    background: #ffffff;
    border-radius: 8px;
    padding: 20px;

    box-sizing: border-box;
}

.ik-home__news-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}


.ik-home__news-day-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}


.ik-home__news-day-header > a {
    color: #222;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}


.ik-home__news-day-header > a:hover {
    color: #d71920;
}


/* 4 новости слева направо */

.ik-home__news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


/* Карточка */

.ik-news-day-card {
    min-width: 0;
}


/* Фотография */

.ik-news-day-card__image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 6px;

    background: #eeeeee;
}


.ik-news-day-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.25s ease;
}


.ik-news-day-card:hover .ik-news-day-card__image img {
    transform: scale(1.03);
}


/* Рубрика */

.ik-news-day-card__category {
    margin-top: 9px;

    color: #d71920;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}


/* Нижняя часть */

.ik-news-day-card__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 8px;

    margin-top: 5px;
}


.ik-news-day-card h3 {
    margin: 0;

    min-width: 0;

    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}


.ik-news-day-card h3 a {
    color: #222;
    text-decoration: none;
}


.ik-news-day-card h3 a:hover {
    color: #d71920;
}


.ik-news-day-card time {
    flex: 0 0 auto;

    padding-top: 2px;

    color: #777;

    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 1100px) {

    .ik-home__news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .ik-home__news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ik-home__news-day {
        padding: 14px;
    }

}

/* ==========================================================
   РУБРИКИ ГЛАВНОЙ
   ========================================================== */

.ik-home-rubric {
    margin-top: 20px;

    padding: 16px;

    background: #ffffff;

    border-radius: 8px;

    box-sizing: border-box;
}


/* Заголовок рубрики */

.ik-home-rubric__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 1px solid #e5e5e5;
}


.ik-home-rubric__header h2 {
    position: relative;

    margin: 0;

    padding-bottom: 6px;

    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;

    text-transform: uppercase;
}


.ik-home-rubric__header h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -9px;

    width: 28px;
    height: 3px;

    background: #d71920;
}


.ik-home-rubric__header > a {
    color: #222;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


.ik-home-rubric__header > a:hover {
    color: #d71920;
}


/* 4 новости в ряд */

.ik-home-rubric__grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;
}


/* Карточка */

.ik-home-rubric__card {
    min-width: 0;
}


/* Фото */

.ik-home-rubric__image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 5px;

    background: #eeeeee;
}


.ik-home-rubric__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}


.ik-home-rubric__card:hover .ik-home-rubric__image img {
    transform: scale(1.03);
}


/* Рубрика + время */

.ik-home-rubric__meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 6px;

    margin-top: 7px;
}


.ik-home-rubric__category {
    color: #d71920;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    text-transform: uppercase;
}


.ik-home-rubric__meta time {
    color: #777;

    font-size: 10px;

    white-space: nowrap;
}


/* Заголовок */

.ik-home-rubric__card h3 {
    margin: 5px 0 0;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}


.ik-home-rubric__card h3 a {
    color: #222;

    text-decoration: none;
}


.ik-home-rubric__card h3 a:hover {
    color: #d71920;
}


/* Дата */

.ik-home-rubric__stats {
    margin-top: 7px;

    color: #888;

    font-size: 10px;
}


/* ==========================================================
   НОУТБУК
   ========================================================== */

@media (max-width: 1100px) {

    .ik-home-rubric__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

@media (max-width: 600px) {

    .ik-home-rubric {
        padding: 12px;
    }

    .ik-home-rubric__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ik-home-rubric__header h2 {
        font-size: 16px;
    }

}

@media (min-width: 901px) {

    .ik-home-rubric {
        width: var(--main-width);

        margin-left: calc(
                (100% - var(--main-width) - var(--sidebar-width) - var(--home-gap)) / 2
        );
        margin-right: 0;

        box-sizing: border-box;
    }

}

@media (max-width: 900px) {

    .ik-home__news-day,
    .ik-home-rubric {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

}

.ik-news-day-card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


.ik-news-day-card__category {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 7px;
    min-height: 14px;
}


.ik-news-day-card__category > span {
    color: #d71920;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    text-transform: uppercase;
}


.ik-news-day-card__category time {
    margin-left: auto;

    color: #777;

    font-size: 10px;
    font-weight: 400;
    line-height: 1;

    white-space: nowrap;
}


.ik-news-day-card__bottom {
    margin-top: 4px;
}


.ik-news-day-card__bottom h3 {
    margin: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


.ik-news-day-card__bottom h3 a {
    color: #222;
    text-decoration: none;
}


.ik-news-day-card__bottom h3 a:hover {
    color: #d71920;
}



/* ==========================================================
   БАННЕР СПРАВА — НА УРОВНЕ «НОВОСТЕЙ ДНЯ»
   ========================================================== */

.ik-home__sidebar {
    position: relative;
}

.ik-home-sidebar-banner {
    position: absolute;

    top: calc(var(--main-width) * 0.5 + 24px);
    left: 0;

    width: 100%;

    margin: 0;

    z-index: 2;
}

.ik-home-sidebar-banner .ik-banner {
    width: 100%;
    margin: 0;

    overflow: hidden;
    border-radius: 8px;
}

.ik-home-sidebar-banner .ik-banner-image {
    display: block;

    width: 100%;
    height: auto;
}


/****
=====
 */

@media (min-width: 901px) {

    .ik-home__sidebar .ik-popular {
        height: calc(var(--main-width) / 2);
        box-sizing: border-box;
    }

}

