/* ===================================================== */
/* === ПОИСК (OVERLAY ЧЕРЕЗ МЕНЮ) ====================== */
/* === Современное окно поиска по центру экрана ========= */
/* ===================================================== */

/* ОБЩИЙ ФОН (ЗАТЕМНЕНИЕ) */
#searchOverlay {
    display: none;
    position: fixed;
    z-index: 9999;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.45);

    align-items: center;
    justify-content: center;
}

/* КОНТЕЙНЕР ПОИСКА */
.search-box {
    width: 80%;
    max-width: 700px;
}

/* ПОЛЕ ВВОДА */
.search-box input {
    width: 100%;

    padding: 18px 22px;

    font-size: 18px;

    border-radius: 12px;
    border: none;

    background: #ffffff;

    box-shadow: 0 15px 50px rgba(0,0,0,0.25);

    outline: none;
}

/* ЭФФЕКТ ПРИ ФОКУСЕ */
.search-box input:focus {
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* ===================================================== */
/* === МОБИЛЬНАЯ ВЕРСИЯ ================================ */
/* ===================================================== */

@media (max-width: 768px) {

    .search-box {
        width: 90%;
    }

    .search-box input {
        font-size: 16px;
        padding: 14px 18px;
    }

}

/* ===================================================== */
/* === КОНЕЦ БЛОКА ПОИСКА ============================== */
/* ===================================================== */



/* ===================================================== */
/* === HEADER FINAL GRIDBOX — ВЕЗДЕ ОДИНАКОВЫЙ ========= */
/* ===================================================== */

/* ОСНОВА ХЕДЕРА НА ВСЕХ ТИПАХ СТРАНИЦ */
.site-header,
#masthead {
    background: #0f1230 !important;
    border-radius: 14px;
    margin: 12px auto !important;
    max-width: 1200px;
    padding: 12px 16px !important;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

/* УБИРАЕМ ТЕКСТ ПОД ЛОГОТИПОМ */
.site-title,
.site-description {
    display: none !important;
}

/* ЛОГО */
.site-branding,
#logo {
    margin-bottom: 6px !important;
}

/* ===================================================== */
/* === МЕНЮ ПК / ПЛАНШЕТ =============================== */
/* ===================================================== */

@media (min-width: 769px) {

    .site-header .main-navigation ul,
    #masthead .main-navigation ul,
    .primary-navigation .main-navigation ul {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .site-header .main-navigation ul li a,
    #masthead .main-navigation ul li a,
    .primary-navigation .main-navigation ul li a {
        display: block;
        padding: 6px 12px;
        border-radius: 8px;

        background: rgba(255,255,255,0.08) !important;
        color: #fff !important;

        font-size: 13px;
        font-weight: 600;
        text-decoration: none;

        transition: 0.2s;
    }

    .site-header .main-navigation ul li a:hover,
    #masthead .main-navigation ul li a:hover,
    .primary-navigation .main-navigation ul li a:hover,
    .site-header .main-navigation ul li.current-menu-item a,
    #masthead .main-navigation ul li.current-menu-item a {
        background: #f4c15d !important;
        color: #000 !important;
    }
}

/* ===================================================== */
/* === МОБИЛКА — НЕ ЛОМАЕМ TOGGLE ====================== */
/* ===================================================== */

@media (max-width: 768px) {

    .site-header,
    #masthead {
        padding: 6px 8px !important;
        margin: 8px !important;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }

    .site-branding,
    #logo {
        margin-bottom: 2px !important;
    }

    .menu-toggle,
    .primary-menu-toggle {
        padding: 5px !important;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.25);
    }

    /* display НЕ трогаем — иначе ломается бургер */
    .site-header .main-navigation ul,
    #masthead .main-navigation ul,
    .primary-navigation .main-navigation ul {
        margin-top: 6px;
    }

    .site-header .main-navigation ul li a,
    #masthead .main-navigation ul li a,
    .primary-navigation .main-navigation ul li a {
        display: block;
        width: 100%;

        padding: 8px 10px;
        margin-bottom: 4px;

        border-radius: 8px;

        background: rgba(255,255,255,0.05) !important;
        color: #fff !important;

        font-size: 13px;
        font-weight: 600;
        text-decoration: none;

        transition: 0.2s;
    }

    .site-header .main-navigation ul li a:hover,
    #masthead .main-navigation ul li a:hover,
    .primary-navigation .main-navigation ul li a:hover,
    .site-header .main-navigation ul li.current-menu-item a,
    #masthead .main-navigation ul li.current-menu-item a {
        background: #f4c15d !important;
        color: #000 !important;
    }
}

/* ===================================================== */
/* === ПОИСК =========================================== */
/* ===================================================== */

.search-form input {
    border-radius: 10px;
    padding: 10px 12px;
}

/* ===================================================== */
/* === КОНЕЦ HEADER FINAL GRIDBOX ====================== */
/* ===================================================== */






/* ===================================================== */
/* === НАЧАЛО БЛОКА: КАРУСЕЛЬ PREMIUM (ФИНАЛ) ========== */
/* ===================================================== */

/* ОБЁРТКА */
.carousel-wrap {
    max-width: 1200px;
    margin: 15px auto 25px;
    padding: 0 10px;
}

/* SWIPER */
.carousel-wrap .swiper {
    border-radius: 16px;
    overflow: hidden;
}

/* СЛАЙД */
.carousel-wrap .swiper-slide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;

    aspect-ratio: 2 / 3; /* ФИКС — убирает серые зоны */
}

/* КАРТИНКА */
.carousel-wrap .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* убирает нижний зазор */

    transition: transform 0.4s ease, filter 0.4s ease;
}

/* ЗАТЕМНЕНИЕ (НЕ ЛОМАЕТ КЛИКИ!) */
.carousel-wrap .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.05)
    );

    transition: 0.3s;

    pointer-events: none;
}

/* HOVER */
.carousel-wrap .swiper-slide:hover img {
    transform: scale(1.07);
    filter: brightness(1.1);
}

.carousel-wrap .swiper-slide:hover::after {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.02)
    );
}

/* ССЫЛКА */
.slider-card {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* ===================================================== */
/* === СТРЕЛКИ ========================================= */
/* ===================================================== */

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.4);

    width: 40px;
    height: 40px;
    border-radius: 50%;

    backdrop-filter: blur(6px);

    transition: 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #f4c15d;
    color: #000;
}

/* МОБИЛКА — СТРЕЛКИ МЕНЬШЕ */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
}

/* ===================================================== */
/* === МОБИЛЬНАЯ ВЕРСИЯ ================================ */
/* ===================================================== */

@media (max-width: 768px) {

    .carousel-wrap {
        margin: 10px 8px 15px;
    }

    .carousel-wrap .swiper {
        border-radius: 12px;
    }

}

/* ===================================================== */
/* === КОНЕЦ БЛОКА: КАРУСЕЛЬ PREMIUM ==================== */
/* ===================================================== */



/* ===================================================== */
/* === H1 ============================================== */
/* ===================================================== */

.main-h1-wrap {
    text-align: center;
    margin: 14px 0 6px;
}

.main-h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

/* линия под H1 */
.main-h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #ff6a00;
    margin: 6px auto 0;
    border-radius: 2px;
}

/* ===================================================== */
/* === SEO БЛОК ======================================== */
/* ===================================================== */

.seo-wrap {
    margin: 10px 0 14px;
    padding: 12px 14px;

    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

/* заголовок */
.seo-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 5px;
    color: #222;
}

/* текст */
.seo-text {
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

/* убираем лишний воздух */
.seo-text p {
    margin: 3px 0;
}

/* СКРЫТАЯ ЧАСТЬ SEO-БЛОКА */
.seo-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .25s ease;
}

/* ОТКРЫТОЕ СОСТОЯНИЕ SEO-БЛОКА */
.seo-hidden.is-open {
    max-height: 500px;
    opacity: 1;
}

/* кнопка */
.seo-btn {
    display: block;
    margin: 6px auto 0;

    padding: 6px 12px;

    font-size: 11px;
    font-weight: 600;

    background: #ff6a00;
    color: #fff;

    border: none;
    border-radius: 6px;

    cursor: pointer;
    transition: 0.2s;
}

.seo-btn:hover {
    background: #e55d00;
}

/* ===================================================== */
/* === МОБИЛКА ========================================= */
/* ===================================================== */

@media (max-width: 768px) {

    .main-h1 {
        font-size: 18px;
    }

    .seo-wrap {
        margin: 8px;
        padding: 10px;
    }

    .seo-title {
        font-size: 13px;
    }

    .seo-text {
        font-size: 12px;
        line-height: 1.35;
    }

    .seo-text p {
        margin: 2px 0;
    }

    .seo-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
}







/* ===================================== */
/* === НАЧАЛО: ГЛОБАЛЬНЫЙ UI GRIDBOX === */
/* ===================================== */


/* === СЕТКА === */
.post-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -14px !important;
}

.post-wrapper .post-column {
    width: 33.333% !important;
    padding-right: 14px !important;
    margin-bottom: 22px !important;
    box-sizing: border-box;
}


/* === ПЛАНШЕТ === */
@media (max-width: 1024px) {
    .post-wrapper .post-column {
        width: 50% !important;
        padding-right: 12px !important;
    }
    .post-wrapper {
        margin-right: -12px !important;
    }
}


/* === МОБИЛКА === */
@media (max-width: 768px) {
    .post-wrapper .post-column {
        width: 100% !important;
        padding-right: 0 !important;
    }
    .post-wrapper {
        margin-right: 0 !important;
    }
}


/* === КАРТОЧКА === */
.post-wrapper .type-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.post-wrapper .type-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}


/* === КАРТИНКА === */
.wp-post-image-link {
    display: block;
    overflow: hidden;
}

.wp-post-image {
    width: 100%;
    display: block;
    transition: 0.35s;
}

.type-post:hover .wp-post-image {
    transform: scale(1.045);
}


/* === ЗАГОЛОВКИ === */
.entry-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

.single-post .entry-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}


/* === META === */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 0;
}

.entry-meta span::after {
    display: none !important;
}


/* === ДАТА === */
.meta-date {
    font-size: 10px !important;
    padding: 3px 6px;
    background: #f3f4f6;
    border-radius: 999px;
    color: #888;
    display: inline-flex;
    align-items: center;
}


/* === КАТЕГОРИИ === */
.meta-category {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-category a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px !important;
    padding: 3px 8px;
    border-radius: 14px;

    background: #ff6a00;
    color: #fff !important;

    text-decoration: none;
    line-height: 1;
}

.meta-category a:hover {
    background: #ff8533;
}


/* === УБИРАЕМ ЛИШНЕЕ === */
.entry-content.entry-excerpt {
    display: none !important;
}

.meta-comments {
    display: none !important;
}


/* ===================================== */
/* === ФИКС ОТСТУПОВ ВНУТРИ КАРТОЧКИ === */
/* ===================================== */

.post-wrapper .entry-header {
    padding: 14px 16px 16px !important;
}

.post-wrapper .entry-content {
    padding: 0 16px 16px !important;
}

.post-wrapper .meta-category {
    margin-top: 6px;
}

.post-wrapper .meta-date {
    margin-top: 4px;
}


/* ===================================== */
/* === КОНЕЦ: ГЛОБАЛЬНЫЙ UI GRIDBOX === */
/* ===================================== */






/* ===================================== */
/* === НАЧАЛО: КРАСИВЫЙ HOVER / FOCUS === */
/* ===================================== */


/* убираем стандартный пунктир */
.entry-title a:focus,
.entry-title a:active,
a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* === HOVER (мышка) === */
.post-wrapper .type-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}


/* === FOCUS (клик / клавиатура) === */
.post-wrapper .type-post:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px rgba(255,106,0,0.25),
                0 12px 30px rgba(0,0,0,0.10);
}


/* === АКЦЕНТ НА ЗАГОЛОВОК === */
.entry-title a:focus,
.entry-title a:hover {
    color: #ff6a00 !important;
}


/* === ЛЁГКОЕ ОСВЕТЛЕНИЕ КАРТОЧКИ === */
.post-wrapper .type-post:focus-within::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}


/* ===================================== */
/* === КОНЕЦ: КРАСИВЫЙ HOVER / FOCUS === */
/* ===================================== */






/* ===================================================== */
/* === КАТЕГОРИИ: ЕДИНЫЙ СТИЛЬ (ТОП + НИЖНИЕ) ========= */
/* ===================================================== */

/* === ОБЩИЙ GRID ДЛЯ ВСЕХ КАТЕГОРИЙ === */

.home-top-categories,
.home-all-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 25px 0 35px;
}

/* === КАРТОЧКА === */

.cat-card {
    display: block;
    text-decoration: none;
}

/* === КАРТИНКА === */

.cat-card img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 14px;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* === HOVER НА КАРТИНКУ === */

.cat-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* === НАЗВАНИЕ ПОД КАРТИНКОЙ === */

.cat-title {
    display: block;
    margin-top: 10px;

    font-size: 15px;
    font-weight: 600;

    text-align: center;
    color: #222;

    padding: 6px 10px;

    border-radius: 8px;
    background: #fff;

    transition: all 0.2s ease;
}

/* === HOVER НА ТЕКСТ === */

.cat-card:hover .cat-title {
    color: #ff7a00;
    transform: translateY(-2px);
}

/* === УБИРАЕМ СТИЛИ ТЕМЫ === */

.home-all-categories span,
.home-top-categories span {
    all: unset;
}

/* ===================================================== */
/* === ЗАГОЛОВКИ БЛОКОВ ================================ */
/* ===================================================== */

.home-cat-title {
    display: inline-block;

    font-size: 20px;
    font-weight: 700;

    margin: 30px 0 15px;

    padding: 6px 14px;

    background: linear-gradient(135deg, #ff7a00, #ffb347);
    color: #fff;

    border-radius: 10px;
}

/* ===================================================== */
/* === АДАПТИВ ======================================== */
/* ===================================================== */

/* планшет */
@media (max-width: 1024px) {
    .home-top-categories,
    .home-all-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* телефон */
@media (max-width: 768px) {
    .home-top-categories,
    .home-all-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-title {
        font-size: 13px;
    }
}

/* ===================================================== */
/* === КОНЕЦ =========================================== */
/* ===================================================== */








/* ===== НАЧАЛО БЛОКА: Похожие записи (улучшенный UI) ===== */

/* контейнер */
.related-posts {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* заголовок как плашка */
.related-posts h3 {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    background: #111;
    color: #fff;
    border-radius: 6px;

    margin-bottom: 18px;
}

/* сетка */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* карточка */
.related-item {
    display: block;
    text-decoration: none;
    color: #111;
    transition: all 0.25s ease;
}

/* картинка */
.related-thumb {
    overflow: hidden;
    border-radius: 12px;
    background: #f3f3f3;
}

.related-thumb img {
    width: 100%;
    display: block;
    transition: transform 0.35s ease;
}

/* hover */
.related-item:hover {
    transform: translateY(-4px);
}

.related-item:hover img {
    transform: scale(1.08);
}

/* заголовок поста */
.related-title {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    color: #333;
    transition: color 0.2s ease;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* hover текста */
.related-item:hover .related-title {
    color: #e60023; /* можно поменять цвет */
}

/* планшет */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== КОНЕЦ БЛОКА: Похожие записи (улучшенный UI) ===== */









/* ===================================== */
/* === НИЖНИЙ SEO БЛОК — ЖЁСТКИЙ ФИКС === */
/* ===================================== */

.site-main .seo-bottom {
    position: relative !important;
    width: 100% !important;

    margin: 24px 0 18px !important;
    padding: 12px 16px 10px !important;

    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;

    box-shadow: 0 4px 14px rgba(0,0,0,0.05) !important;

    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #222 !important;

    overflow: hidden !important;
}

/* верхняя оранжевая полоска */
.site-main .seo-bottom::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #ff6a00, #ffb347) !important;
}

/* заголовок */
.site-main .seo-bottom h2 {
    margin: 3px 0 6px !important;
    padding: 0 !important;

    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;

    color: #111 !important;
}

/* абзацы */
.site-main .seo-bottom p {
    margin: 0 0 4px !important;
    padding: 0 !important;

    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* последний абзац */
.site-main .seo-bottom p:last-child {
    margin-bottom: 0 !important;
}

/* мобилка */
@media (max-width: 768px) {
    .site-main .seo-bottom {
        margin: 20px 0 14px !important;
        padding: 10px 12px 9px !important;
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    .site-main .seo-bottom h2 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    .site-main .seo-bottom p {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        margin-bottom: 3px !important;
    }
}

/* ===================================== */
/* === КОНЕЦ: НИЖНИЙ SEO БЛОК =========== */
/* ===================================== */





/* ===== НАЧАЛО БЛОКА: Footer красивый минимализм ===== */

#footer-text {
    text-align: center;
    padding: 18px 0 10px;
}

/* сам текст */
#footer-text .site-info {
    display: inline-block;

    font-size: 12px;
    letter-spacing: 0.5px;

    color: #aaa;

    padding: 8px 14px;

    background: rgba(255,255,255,0.03);
    border-radius: 6px;

    transition: all 0.25s ease;
}

/* лёгкий hover */
#footer-text .site-info:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ===== КОНЕЦ БЛОКА: Footer красивый минимализм ===== */









/* ===== НАЧАЛО БЛОКА: 18+ предупреждение ===== */

.caution-box {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 10px 0 20px;
    padding: 12px 15px;

    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    color: #eaeaea;
    font-size: 14px;
    line-height: 1.5;

    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.caution-box img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.caution-box p {
    margin: 0;
}

/* ===== КОНЕЦ БЛОКА: 18+ предупреждение ===== */



/* ===== НАЧАЛО БЛОКА: Реклама (Outstream) ===== */

.ts-outstream-container {
    margin: 15px 0 25px;
    padding: 10px;

    background: #111;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

/* чтобы видео не ломало ширину */
.ts-outstream-container iframe,
.ts-outstream-container video {
    max-width: 100% !important;
    border-radius: 10px;
}

/* ===== КОНЕЦ БЛОКА: Реклама ===== */








/* ===== РУБРИКИ — СОВРЕМЕННЫЙ ВИД ===== */

.widget_categories {
    margin-bottom: 25px;
}

.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* пункт */
.widget_categories li {
    margin-bottom: 6px;
}

/* ссылка */
.widget_categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 12px;

    background: #f6f6f6;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    color: #222;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* hover */
.widget_categories a:hover {
    background: #e60023;
    color: #fff;
}

/* количество постов */
.widget_categories .count {
    font-size: 12px;
    background: rgba(0,0,0,0.08);
    padding: 2px 8px;
    border-radius: 20px;
}

/* hover для count */
.widget_categories a:hover .count {
    background: rgba(255,255,255,0.2);
}

/* ===== АДАПТИВ ===== */

@media (max-width: 768px) {
    .widget_categories a {
        font-size: 13px;
        padding: 9px 10px;
    }
}





/* =========================================================
   FIX: УБИРАЕМ МИГАНИЕ / РАСТЯГИВАНИЕ КАРУСЕЛИ GRIDBOX
   ПРОБЛЕМА:
   При загрузке страницы первая картинка карусели
   на долю секунды показывается во весь экран,
   а потом Swiper/Gridbox инициализируется нормально.

   ЭТОТ CSS:
   - скрывает карусель до полной загрузки Swiper
   - заранее задаёт размеры контейнера
   - убирает визуальный "взрыв" картинки
   ========================================================= */


/* --- Основной контейнер карусели --- */
.gb-swiper,
.swiper,
.swiper-container {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}


/* --- Пока Swiper НЕ загрузился — карусель скрыта --- */
.gb-swiper:not(.swiper-initialized),
.swiper:not(.swiper-initialized),
.swiper-container:not(.swiper-initialized) {
    opacity: 0;
    visibility: hidden;
}


/* --- После полной инициализации показываем карусель --- */
.gb-swiper.swiper-initialized,
.swiper.swiper-initialized,
.swiper-container.swiper-initialized {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease;
}


/* --- Настройки слайдов --- */
.swiper-slide {
    height: auto;
}


/* --- Настройки изображений внутри карусели --- */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================================
   КОНЕЦ FIX ДЛЯ GRIDBOX / SWIPER FLASH BUG
   ========================================================= */




/* =========================================================
   GRIDBOX / SWIPER FIX

   ЧТО ДЕЛАЕТ ЭТОТ CSS:
   - убирает мигание карусели при загрузке
   - убирает растягивание первой картинки на весь экран
   - СИЛЬНЕЕ подтягивает SEO-описание к карусели

   ДЛЯ:
   Gridbox / Swiper Slider
   ========================================================= */


/* --- Основной контейнер карусели --- */
.gb-swiper,
.swiper,
.swiper-container {
    position: relative;
    overflow: hidden;

    /* СИЛЬНО уменьшаем расстояние снизу */
    margin-bottom: -35px !important;
    padding-bottom: 0 !important;

    /* убираем искусственную высоту */
    min-height: unset !important;
    height: auto !important;
}


/* --- Пока Swiper НЕ загрузился — скрываем карусель --- */
.gb-swiper:not(.swiper-initialized),
.swiper:not(.swiper-initialized),
.swiper-container:not(.swiper-initialized) {
    opacity: 0;
    visibility: hidden;
}


/* --- После полной загрузки показываем --- */
.gb-swiper.swiper-initialized,
.swiper.swiper-initialized,
.swiper-container.swiper-initialized {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease;
}


/* --- Слайды карусели --- */
.swiper-slide {
    height: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* --- Картинки внутри карусели --- */
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* =========================================================
   КОНЕЦ FIX GRIDBOX / SWIPER
   ========================================================= */






/* ===================================================== */
/* === КНОПКА ПОИСКА В ОКНЕ ПОИСКА ====================== */
/* ===================================================== */

.search-box form{
    display:flex;
    gap:10px;
}

.search-box input[type="text"]{
    flex:1;
}

.search-box button{
    padding:12px 20px;
    cursor:pointer;
    border:none;
    background:#ff5b2e;
    color:#fff;
    font-weight:700;
}

/* ===================================================== */
/* === КОНЕЦ БЛОКА ===================================== */
/* ===================================================== */





/* ===================================================== */
/* НАЧАЛО БЛОКА "ОБНОВЛЁН" ДЛЯ MULTCOOL.ORG */
/* Показывает красную плашку на постах с меткой "обновлен" */
/* ===================================================== */

/* Контейнер картинки */
.multcool-thumb-wrap{
    position:relative;
}

/* Красная плашка "Обновлён" */
.multcool-updated-badge{

    position:absolute;
    top:10px;
    right:10px;

    z-index:999;

    padding:7px 12px;

    background:linear-gradient(
        135deg,
        #ff003c 0%,
        #ff315f 100%
    );

    color:#ffffff;

    font-size:13px;
    font-weight:700;

    line-height:1;

    border-radius:10px;

    text-transform:uppercase;

    letter-spacing:.3px;

    border:1px solid rgba(255,255,255,.25);

    box-shadow:
        0 0 10px rgba(255,0,60,.55),
        0 4px 12px rgba(0,0,0,.25);

    pointer-events:none;
}

/* Немного уменьшаем на телефонах */
@media (max-width:768px){

    .multcool-updated-badge{

        top:8px;
        right:8px;

        padding:5px 8px;

        font-size:11px;

    }

}
/* КОНЕЦ БЛОКА "ОБНОВЛЁН" ДЛЯ MULTCOOL.ORG */