/* ==========================================================
   IK.NEWS — ОСНОВНАЯ НАВИГАЦИЯ
   ========================================================== */

.ik-rubrics {
    width: 100%;
    background: #111111;

    border: 0;

    box-sizing: border-box;
}


/* Контент */

.ik-rubrics__inner {
    position: relative;

    width: 100%;
    max-width: none;

    min-height: 52px;

    margin: 0 auto;
    padding: 0 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    overflow: hidden;
}

/* ==========================================================
   ПУНКТ МЕНЮ
   ========================================================== */

.ik-rubric {
    position: relative;

    flex: 0 0 auto;

    height: 52px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
    text-decoration: none;

    transition:
            background-color 0.15s ease,
            color 0.15s ease;
}

/* Разделители */

.ik-rubric + .ik-rubric::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 1px;
    height: 22px;

    background: rgba(255, 255, 255, 0.18);

    transform: translateY(-50%);
}


/* Наведение */

.ik-rubric:hover {
    color: #ffffff;
    background: #1d1d1d;
}


/* ==========================================================
   АКТИВНЫЙ ПУНКТ
   ========================================================== */

.ik-rubric.is-active {
    color: #ffffff;
}

.ik-rubric.is-active::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 3px;

    background: #e21b23;
}


/* ==========================================================
   ЕЩЁ
   ========================================================== */

.ik-rubric--more {
    gap: 8px;
}

.ik-rubric__arrow {
    width: 6px;
    height: 6px;

    margin-top: -3px;

    border-right: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;

    transform: rotate(45deg);
}


/* ==========================================================
   ПОИСК
   ========================================================== */

.ik-rubrics__search {
    position: absolute;

    top: 0;
    right: 20px;

    width: 52px;
    height: 52px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

/* Лупа через CSS */

.ik-rubrics__search span {
    position: relative;

    width: 15px;
    height: 15px;

    border: 2px solid #ffffff;
    border-radius: 50%;
}

.ik-rubrics__search span::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 2px;

    right: -5px;
    bottom: -2px;

    background: #ffffff;

    transform: rotate(45deg);
    transform-origin: left center;
}


/* ==========================================================
   НОУТБУК
   ========================================================== */

@media (max-width: 1200px) and (min-width: 701px) {

    .ik-rubrics__inner {
        max-width: none;

        justify-content: center;

        padding: 0 72px;
    }

    .ik-rubric {
        height: 48px;

        padding-left: 13px;
        padding-right: 13px;

        font-size: 12px;
    }

    .ik-rubrics__search {
        height: 48px;
        flex-basis: 48px;
    }

}


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */

@media (max-width: 700px) and (min-width: 481px) {

    .ik-rubrics__inner {
        max-width: none;

        justify-content: flex-start;

        padding: 0 5px;
    }

    .ik-rubric {
        height: 46px;

        padding-left: 12px;
        padding-right: 12px;

        font-size: 11px;
    }

    .ik-rubrics__search {
        height: 46px;
        flex-basis: 46px;
    }

}


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

@media (max-width: 480px) {

    .ik-rubrics__inner {
        max-width: none;

        justify-content: center;

        padding: 0 2px;

        overflow-x: auto;
    }

    .ik-rubric {
        height: 44px;

        padding-left: 11px;
        padding-right: 11px;

        font-size: 10px;
    }

    .ik-rubric.is-active::after {
        left: 8px;
        right: 8px;

        height: 2px;
    }

    .ik-rubrics__search {
        height: 44px;
        flex-basis: 44px;

        background: #111111;
    }

}

/* ==========================================================
   MOBILE VERSION
   ========================================================== */

@media (max-width: 700px) {

    .ik-rubrics__desktop {
        display: none !important;
    }

    .ik-rubrics__mobile {
        width: 100%;
        height: 46px;

        display: flex !important;

        align-items: center;
        justify-content: center;

        padding: 0 14px;

        box-sizing: border-box;
    }

    /* Кнопка меню */

    .ik-mobile-menu-toggle,
    .ik-mobile-search,
    .ik-mobile-menu-close {
        border: 0;
        background: transparent;

        padding: 0;

        cursor: pointer;
    }

    .ik-mobile-menu-toggle {
        width: 44px;
        height: 46px;

        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .ik-menu-icon {
        position: relative;

        width: 20px;
        height: 14px;

        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
    }

    .ik-menu-icon::after {
        content: "";

        position: absolute;

        left: 0;
        top: 50%;

        width: 20px;
        height: 2px;

        background: #fff;

        transform: translateY(-50%);
    }


    /* Поиск */

    .ik-mobile-search {
        width: 44px;
        height: 46px;

        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .ik-mobile-search span {
        position: relative;

        width: 14px;
        height: 14px;

        border: 2px solid #fff;
        border-radius: 50%;
    }

    .ik-mobile-search span::after {
        content: "";

        position: absolute;

        width: 7px;
        height: 2px;

        right: -5px;
        bottom: -2px;

        background: #fff;

        transform: rotate(45deg);
    }


    /* Открытое меню */

    .ik-mobile-menu.is-open {
        display: block !important;

        background: #fff;
        color: #222;

        width: 100%;
    }

    .ik-mobile-menu__header {
        height: 46px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 14px;

        background: #111;
    }

    .ik-mobile-menu-close {
        color: #fff;

        width: 44px;
        height: 46px;

        font-size: 30px;
        line-height: 1;
    }

    .ik-mobile-menu__item {
        width: 100%;
        min-height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 14px;

        box-sizing: border-box;

        border: 0;
        border-bottom: 1px solid #e5e5e5;

        background: #fff;

        color: #444;

        font-family: 'Inter', Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;

        text-decoration: none;
        text-align: left;

        cursor: pointer;
    }

    .ik-mobile-menu__item:hover {
        background: #fafafa;
        color: #d71920;
    }

    body.ik-mobile-menu-open {
        overflow: hidden;
    }

}

/* ==========================================================
   МОБИЛЬНАЯ ВЕРСИЯ РУБРИК
   ========================================================== */

.ik-rubrics__mobile,
.ik-mobile-menu {
    display: none;
}


@media (max-width: 700px) {

    /* Десктопное меню скрываем */
    .ik-rubrics__desktop {
        display: none !important;
    }


    /* Полоса с кнопками */
    .ik-rubrics__mobile {
        width: 100%;
        height: 46px;

        display: flex !important;

        align-items: center;
        justify-content: center;

        padding: 0 14px;

        box-sizing: border-box;
    }


    /* =========================
       КНОПКА МЕНЮ
       ========================= */

    .ik-mobile-menu-toggle {
        width: 44px;
        height: 46px;

        padding: 0;
        border: 0;

        background: transparent;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        cursor: pointer;
    }

    .ik-menu-icon {
        position: relative;

        width: 20px;
        height: 14px;

        border-top: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
    }

    .ik-menu-icon::after {
        content: "";

        position: absolute;

        left: 0;
        top: 50%;

        width: 20px;
        height: 2px;

        background: #ffffff;

        transform: translateY(-50%);
    }


    /* =========================
       ПОИСК
       ========================= */

    .ik-mobile-search {
        width: 44px;
        height: 46px;

        padding: 0;
        border: 0;

        background: transparent;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        cursor: pointer;
    }

    .ik-mobile-search span {
        position: relative;

        width: 14px;
        height: 14px;

        border: 2px solid #ffffff;
        border-radius: 50%;
    }

    .ik-mobile-search span::after {
        content: "";

        position: absolute;

        width: 7px;
        height: 2px;

        right: -5px;
        bottom: -2px;

        background: #ffffff;

        transform: rotate(45deg);
    }


    /* =========================
       ОТКРЫТОЕ МОБИЛЬНОЕ МЕНЮ
       ========================= */

    .ik-mobile-menu.is-open {
        display: block !important;

        width: 100%;

        background: #ffffff;
    }

    .ik-mobile-menu__header {
        height: 46px;

        padding: 0 14px;

        background: #111111;

        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* Кнопка закрытия */

    .ik-mobile-menu-close {
        width: 44px;
        height: 46px;

        padding: 0;
        border: 0;

        background: transparent;

        color: #ffffff;

        font-size: 30px;
        line-height: 1;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        cursor: pointer;
    }


    /* Пункты */

    .ik-mobile-menu__item {
        width: 100%;
        min-height: 44px;

        padding: 0 14px;

        box-sizing: border-box;

        border: 0;
        border-bottom: 1px solid #e5e5e5;

        background: #ffffff;

        color: #444444;

        font-family: 'Inter', Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;

        text-decoration: none;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: left;

        cursor: pointer;
    }

    .ik-mobile-menu__item:hover {
        background: #fafafa;
        color: #d71920;
    }


    /* Регион */

    .ik-mobile-menu__region span {
        font-size: 20px;
        font-weight: 400;
    }


    /* Когда меню открыто */
    body.ik-mobile-menu-open {
        overflow: hidden;
    }

}

/* ==========================================================
   МОБИЛЬНЫЙ ВЫБОР РЕГИОНА
   ========================================================== */

@media (max-width: 700px) {

    .ik-mobile-menu__region {
        justify-content: space-between !important;
    }


    .ik-mobile-menu__region-arrow {
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
    }


    .ik-mobile-menu__regions {
        display: none;
    }


    .ik-mobile-menu__regions.is-open {
        display: block;
    }


    .ik-mobile-menu__region-item {
        width: 100%;

        min-height: 40px;

        padding: 0 28px;

        box-sizing: border-box;

        display: flex;

        align-items: center;

        justify-content: flex-start;

        background: #f7f7f7;

        border-bottom: 1px solid #eeeeee;

        color: #555555;

        font-family: 'Inter', Arial, sans-serif;

        font-size: 11px;

        font-weight: 600;

        text-decoration: none;
    }


    .ik-mobile-menu__region-item:hover {
        background: #eeeeee;
        color: #d71920;
    }

}

/* ==========================================================
   ПОИСК
   ========================================================== */

.ik-search-panel {
    display: none;

    position: absolute;

    top: 52px;
    right: 72px;

    width: 360px;

    padding: 12px;

    background: #ffffff;

    border-radius: 6px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);

    z-index: 1000;

    box-sizing: border-box;
}


.ik-search-panel.is-open {
    display: block;
}


.ik-search-form {
    display: flex;

    align-items: center;

    gap: 8px;

    width: 100%;
}


.ik-search-form__input {
    flex: 1;

    min-width: 0;

    height: 38px;

    padding: 0 12px;

    border: 1px solid #dddddd;

    border-radius: 5px;

    outline: none;

    font-family: inherit;

    font-size: 13px;

    box-sizing: border-box;
}


.ik-search-form__input:focus {
    border-color: #d71920;
}


.ik-search-form__submit {
    flex: 0 0 auto;

    height: 38px;

    padding: 0 14px;

    border: 0;

    border-radius: 5px;

    background: #d71920;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


@media (max-width: 700px) {

    .ik-search-panel {
        position: absolute;

        top: 46px;
        right: 8px;
        left: 8px;

        width: auto;

        padding: 10px;

        border-radius: 6px;
    }


    .ik-search-form__input {
        height: 36px;

        font-size: 12px;
    }


    .ik-search-form__submit {
        height: 36px;

        padding: 0 12px;

        font-size: 11px;
    }

}