  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Maven Pro', Arial, sans-serif;
            background-color: #2c2c2c;
            color: #bcb6b8;
            min-height: 100vh;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

.header {
    display: flex; background-color: #454545;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 70px;
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;   
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 0 0 6px 6px;  border-bottom:1px solid #7c7c7c;
}

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 0 1 auto;
        }

        .logo {
            font-size: 15px;
            font-weight: bold;
            text-transform: uppercase;
            color: #fff;
            white-space: nowrap;
        }
        .logo span {
            color: #cccccc;
        }

        .nav-desktop {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .nav-desktop a {
            font-size: 15px;
            color: #cccccc;
            padding: 5px 0;
            border-bottom: 0px solid transparent;
            transition: 0.3s ease;
        }
        .nav-desktop a:hover,
        .nav-desktop a.active {
            color: #fff;
        }

        .menu-btn {
            display: none;
            background: none;
            border: none;
            color: #000;
            font-size: 24px;
            cursor: pointer;
            padding: 4px;
            line-height: 1;
        }
        .menu-btn:hover {
            color: #c17600;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 0 1 auto;
        }

        .search {
            display: flex;
            align-items: center;
            background-color: #6c6c6c; border-bottom: 1px solid #777777!important;
            border-radius: 4px;
            overflow: hidden;font-size: 13px!important;
            height: 32px;
            border: 1px solid transparent;
            transition: 0.3s ease;
        }
        .search:focus-within {
            border-color: #717171;
        }

        .search input {
            background: none;
            border: none;
            outline: none;
            padding: 0 8px;
            height: 100%;
            font-size: 14px!important;
            color: #ffa8a8;
            width: 180px;
            min-width: 100px;
        }
        .search input::placeholder {
            color: #fafafa;
        }

        .search button {
            background: none;
            border: none;
            color: #ffa8a8;
            font-size: 14px;
            cursor: pointer;
            padding: 0 12px;
            height: 100%;
            display: flex;
            align-items: center;
            transition: 0.3s ease;
        }
        .search button:hover {
            color: #fafafa;
        }

        .search-btn {
            display: none;
            background: none;
            border: none;
            color: #f8f2f4;
            font-size: 20px;
            cursor: pointer;
            padding: 4px;
            line-height: 1;
        }
        .search-btn:hover {
            color: #ff9c00;
        }

        .mobile-nav {
            display: none;
            flex-basis: 100%;
            flex-direction: column;
            gap: 4px;
            padding: 10px 0 6px 0;
            border-top: 1px solid #302a2c;
            margin-top: 4px;
        }
        .mobile-nav.open {
            display: flex;
        }
        .mobile-nav a {
            font-size: 15px;
            color: #000;
            padding: 8px 12px;
            border-radius: 4px;
            transition: 0.3s ease;
        }
        .mobile-nav a:hover,
        .mobile-nav a.active {
            background-color: #302a2c;
            color: #f8f2f4;
        }

        .mobile-search {
            display: none;
            flex-basis: 100%;
            padding: 6px 0 2px 0;
            border-top: 1px solid #302a2c;
            margin-top: 4px;
        }
        .mobile-search.open {
            display: flex;
        }
        .mobile-search form {
            display: flex;
            align-items: center;
            width: 100%;
            background-color: #302a2c;
            border-radius: 4px;
            overflow: hidden;
            height: 36px;
        }
        .mobile-search input {
            background: none;
            border: none;
            outline: none;
            padding: 0 12px;
            height: 100%;
            flex: 1;
            font-size: 15px;
            color: #000;
        }
        .mobile-search input::placeholder {
            color: #000;
        }
        .mobile-search button {
            background: none;
            border: none;
            color: #000;
            font-size: 18px;
            cursor: pointer;
            padding: 0 14px;
            height: 100%;
            display: flex;
            align-items: center;
            transition: 0.3s ease;
        }
        .mobile-search button:hover {
            color: #ff9c00;
        }

    

        @media (max-width: 767px) {
            .header {
                padding: 8px 14px;
                gap: 6px;
            }

            .nav-desktop {
                display: none;
            }

            .menu-btn {
                display: block;
            }

            .search {
                display: none;
            }

            .search-btn {
                display: block;
            }

            .logo {
                font-size: 15px;
            }
        }

        @media (min-width: 768px) and (max-width: 1023px) {
            .menu-btn {
                display: none;
            }
            .search-btn {
                display: none;
            }
            .search {
                display: flex;
            }
            .search input {
                width: 140px;
                min-width: 80px;
                font-size: 15px;
            }
            .nav-desktop a {
                font-size: 15px;
            }
        }

        @media (min-width: 1024px) {
            .menu-btn {
                display: none;
            }
            .search-btn {
                display: none;
            }
            .search {
                display: flex;
            }
            .search input {
                width: 200px;
                font-size: 15px;
            }
            .nav-desktop a {
                font-size: 15px;
            }
        }


        .container {
            max-width: 1620px;
            margin: 0 auto;
            padding: 0 16px; background-color: #111111;
        }


        .page-title {
            font-size: 20px;
            font-weight: bold;
            color: #fff;
            margin: 1px 0 16px 0; padding-top: 25px;
        }

        .thumbs-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 4px;
            max-width: 1620px;
            margin: 0 auto;
        }

      
.thumb {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #1c1618;
    display: flex;
    flex-direction: column;  
}


.thumb-link {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; 
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    flex-shrink: 0; 
}

.thumb-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s ease;
}
.thumb-link:hover img {
    transform: scale(1.04);
}

.thumb-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}

.thumb-title-link {
    display: block;
    font-size: 16px;
    color: #f8f2f4;
    padding: 8px 4px 10px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.3s ease;
    border-radius: 0 0 4px 4px;
    flex-shrink: 0;
    background-color: #1c1618; font-size: 14px; font-weight: bold;
}
.thumb-title-link:hover {
    color: #cccccc;
    background-color: rgba(238, 172, 104, 0.05);
}

        @media (max-width: 1200px) {
            .thumbs-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 992px) {
            .thumbs-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 640px) {
            .thumbs-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 420px) {
            .thumbs-grid {
                grid-template-columns: 1fr;
            }
        }

        .thumb-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #2a2426, #1a1416);
            color: #888;
            font-size: 14px;
            font-weight: bold;
        }

        .footer {
            text-align: center;
            padding: 30px 16px 20px;
            color: #6a6466;
            font-size: 13px;
            margin-top: 20px;
            border-top: 1px solid #444444; background-color: #111;
        }
        .footer a {
            color: #ff9c00;
            transition: 0.3s ease;
        }
        .footer a:hover {
            color: #333;
        }


.text-block {
    max-width: 1620px; /* Такая же, как у .container */
    margin: 40px auto 0 auto;
    padding: 0 16px;
}

.text-inner {
    background-color: #1c1618;
    border-radius: 6px;
    padding: 24px 30px;
}

.text-title {
    font-size: 22px;
    font-weight: 700;
    color: #f8f2f4;
    margin-bottom: 14px;
}

.text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #bcb6b8;
    margin-bottom: 16px;
    text-align: justify;
}

.text-content:last-child {
    margin-bottom: 0;
}

/* --- Адаптив для текста --- */
@media (max-width: 768px) {
    .text-inner {
        padding: 16px 18px;
    }
    .text-title {
        font-size: 19px;
    }
    .text-content {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .text-inner {
        padding: 12px 14px;
    }
    .text-title {
        font-size: 17px;
    }
    .text-content {
        font-size: 14px;
        line-height: 1.5;
    }
}

.banners-block {
    max-width: 1620px;
    margin: 10px auto 0 auto;
    padding: 0 16px;
}

.banners-block2 {
    width: 1420px;
    margin:0 auto; display: block;
    padding: 16px; overflow: hidden;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 4px;
    justify-content: center;
    background-color: #1c1618;
    border-radius: 6px;
    padding: 16px 20px;
}

.banner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 250px;
}

.banner-item iframe {
    width: 300px;
    height: 250px;
    border: none;
    border-radius: 4px;
    background-color: #302a2c;
    display: block;
}

/* ============================================
   АДАПТИВ
   ============================================ */

/* Планшеты: 2 баннера в ряд */
@media (max-width: 992px) {
    .banners-grid {
        grid-template-columns: repeat(2, 300px);
        gap: 4px;
        justify-content: center;
        padding: 16px;
    }
}

/* Мобилки: только 1 баннер, остальные скрыты */
@media (max-width: 640px) {
    .banners-grid {
        grid-template-columns: 300px;
        gap: 4px;
        justify-content: center;
        padding: 12px 16px;
    }
    
    /* Скрываем 2-й и 3-й баннеры */
    .banner-item:nth-child(2),
    .banner-item:nth-child(3) {
        display: none;
    }
}

/* Очень маленькие экраны: баннер подстраивается под ширину */
@media (max-width: 420px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        justify-content: center;
        padding: 10px 12px;
    }
    
    .banner-item {
        width: 100%;
        height: auto;
        aspect-ratio: 300 / 250;
    }
    
    .banner-item iframe {
        width: 100%;
        height: 100%;
    }
    
    /* Скрываем 2-й и 3-й баннеры */
    .banner-item:nth-child(2),
    .banner-item:nth-child(3) {
        display: none;
    }
}

.nav {
    max-width: 1620px;
    margin: 30px auto 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background-color: #1c1618;
    border-radius: 6px;
    list-style: none;
    margin: 0;
}

.nav li {
    display: inline-block;
    margin: 0;
}

.nav li a,
.nav li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 400;
    color: #bcb6b8;
    background-color: #302a2c;
    border-radius: 4px;
    transition: 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

/* --- Ссылки (неактивные) --- */
.nav li a:hover {
    background-color: rgba(188, 122, 54, 0.2);
    color: #f8f2f4;
}

/* --- Активная страница (active) --- */
.nav li a.active,
.nav li.active a {
    background-color: #bc7a36;
    color: #ffffff;
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

/* --- Разделитель "..." --- */
.nav li span {
    background: none;
    color: #6a6466;
    cursor: default;
    min-width: 24px;
    padding: 0 4px;
}

/* --- Стрелки "вперед/назад" (если будут) --- */
.nav li.arrow a {
    font-size: 18px;
    min-width: 36px;
    padding: 0 6px;
}

.nav li.arrow a:hover {
    background-color: rgba(188, 122, 54, 0.15);
    color: #f8f2f4;
}

/* --- Кнопка "наверх" (если будет в пагинации) --- */
#scroll-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: #bc7a36;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 999;
}
#scroll-top:hover {
    background-color: #d4924a;
    transform: translateY(-2px);
}
#scroll-top:before {
    content: '↑';
    display: block;
    line-height: 44px;
}

.thumb--with-cats .thumb-categories {
    display: block; /* или flex */
    font-size: 12px;
    color: #ааа;
    padding: 0 4px 8px 4px;
    background-color: #1c1618;
    border-radius: 0 0 4px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* По умолчанию — скрыты для всех остальных */
.thumb-categories {
    display: none;
}

/* --- Стили внутри .thumb--with-cats --- */
.thumb--with-cats .thumb-categories .cat-label {
    color: #fff;
    font-weight: 400;
    margin-right: 2px;
}

.thumb--with-cats .thumb-categories .cat-link {
    color: #fff;
    transition: 0.3s ease;
    font-size: 12px;
}

.thumb--with-cats .thumb-categories .cat-link:hover {
    color: #777;
}

.thumb--with-cats .thumb-categories .cat-sep {
    color: #777;
    margin: 0 2px;
}

/* --- Чтобы название не съезжало --- */
.thumb--with-cats .thumb-title-link {
    padding-bottom: 2px; /* Меньше отступ, чтобы категории были ближе */
}


.media {
    max-width: 1620px;
    margin: 0 auto;
    padding: 0 4px; /* ← ОТСТУПЫ 4px СПРАВА И СЛЕВА */
    background-color: #0d0b0c;
    position: relative;
    overflow: hidden;
}

.media .player {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Ratio */
    background-color: #000000;
    border-radius: 6px;
}

.media .player iframe,
.media .player video,
.media .player .fluid_video_wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 none !important;
    z-index: 10 !important;
    border-radius: 6px;
}

/* Анимация загрузки (как было в твоём CSS) */
.media::before {
    color: rgb(250, 250, 250);
    content: '';
    height: 42px;
    width: 42px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top-width: 4px;
    border-top-style: solid;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: inherit;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes spinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}