:root {
     --accent: #e53935;
     --radius: 30px;
 }
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Меню с категориями */
.slider-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 20;
    backdrop-filter: blur(10px);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    height: 50px;
    width: auto;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}
.menu-toggle {
    display: none;
}
.menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
.categories {
    display: flex;
    gap: 30px;
    align-items: center;
}
.category-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
    position: relative;
}
.category-link:hover,
.category-link.active {
    color: var(--accent);
}
.category-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 25;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.menu-toggle:checked ~ .mobile-menu {
    right: 0;
}
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.mobile-menu-close svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    stroke-width: 2;
}
.mobile-category {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.mobile-category:hover {
    color: var(--accent);
}

/* Слайдер */
.slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
}

/* Большое изображение */
.main-slide {
    flex: 1;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    transition: opacity 0.6s ease;
}
.main-slide.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Затемняющий оверлей */
.main-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--radius);
    z-index: 0;
}

/* Контент на большом фото */
.slide-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
    color: #fff;
    z-index: 1;
    max-width: 1400px;
    width: 90%;
    padding: 0 20px;
}
.slide-category {
    font-size: 20px;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.slide-title {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}
.slide-desc {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 30px;
}
.slide-author {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 35px;
}
.slide-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    transition: color 0.2s;
}
.slide-more-link svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}
.slide-more-link:hover {
    color: var(--accent);
}

/* Миниатюры */
.thumbs {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    max-width: 95vw;
    background: rgba(255, 255, 255, 0.95);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    display: flex;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 5;
}
.thumb {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.thumb:hover {
    transform: translateY(-3px);
}
.thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.thumb .desc {
    padding: 12px;
    font-size: 14px;
    color: #333;
}
.thumb .cat {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}
.thumb .title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}
.thumb .text {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

/* Стрелки */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
}
.nav-arrow.left {
    left: 18px;
}
.nav-arrow.right {
    right: 18px;
}
.nav-arrow svg {
    width: 30px;
    height: 30px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 44px;
    }
    .slide-desc {
        font-size: 20px;
    }
    .categories {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .categories {
        display: none;
    }
    .header-container {
        padding: 0 15px;
    }
    .slider {
        display: none;
    }
    .thumbs {
        display: none;
    }
}
@media (max-width: 480px) {
    .slide-title {
        font-size: 26px;
    }
    .slide-desc {
        font-size: 16px;
    }
    .slide-author {
        font-size: 14px;
    }
    .slide-more-link {
        font-size: 16px;
    }
    .thumb img {
        height: 80px;
    }
    .thumb .text {
        display: none;
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    .nav-arrow svg {
        width: 20px;
        height: 20px;
    }
    .nav-arrow.left {
        left: 10px;
    }
    .nav-arrow.right {
        right: 10px;
    }
    .slide-content {
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        padding: 10px;
        text-align: center;
    }
}