/* ========== HERO / ГЛАВНОЕ ПРЕДЛОЖЕНИЕ ========== */
.hero {
    padding: 28px 0;
    background-color: var(--color-bg-primary);
}

.hero__container {
    display: flex;
    gap: 30px;
    padding: 0 var(--container-padding-desktop);
    align-items: stretch;
}

/* Основной слайд (левый блок) */
.hero__main-slide {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero__main-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/image/slider/slider-1.jpg') no-repeat center / cover;
    z-index: 1;
}

.hero__main-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero__main-content {
    position: relative;
    z-index: 2;
    padding: 60px 50px;
    max-width: 600px;
    color: var(--color-bg-primary);
}

.hero__title {
    font-size: 38px;
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.hero__subtitle {
    font-size: var(--fs-h4);
    line-height: var(--lh-body);
    margin-bottom: 40px;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* ========== ВАЖНАЯ КНОПКА ========== */
.hero__cta-btn {
    padding: 18px 42px;
    height: auto;
    min-height: 56px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center;
    border-radius: var(--radius-md);
    
    /* Усиленный градиент */
    background: linear-gradient(90deg, #7CCC0E, #00B31B, #009E18);
    background-size: 200% auto;
    color: var(--color-text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 179, 27, 0.4);
    
    /* Анимации */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Эффект вспышки */
.hero__cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero__cta-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 179, 27, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero__cta-btn:hover::before {
    left: 100%;
}

.hero__cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 179, 27, 0.4);
}

/* Стрелка */
.hero__cta-btn::after {
    content: '→';
    margin-left: 12px;
    font-size: 22px;
    font-weight: var(--fw-bold);
    transition: transform 0.3s ease;
}

.hero__cta-btn:hover::after {
    transform: translateX(6px);
}

/* Блоки категорий (правый блок) */
.hero__categories {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Карточка категории */
.category-card {
    position: relative;
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all var(--transition-normal);
    min-height: 245px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card__bg2,
.category-card__bg3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card__bg2,
.category-card:hover .category-card__bg3 {
    transform: scale(1.05);
}

.category-card__bg2 {
    background: url('/image/slider/slider-2.jpg') no-repeat center / cover;
}

.category-card__bg3 {
    background: url('/image/slider/slider-3.jpg') no-repeat center / cover;
}

.category-card__bg2::before,
.category-card__bg3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    z-index: 1;
}

.category-card__content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    width: 100%;
}

.category-card__title {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    margin-bottom: 12px;
    color: var(--color-text-light);
    max-width: 100%;
}

.category-card__link {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.category-card__link::after {
    content: '→';
    font-size: 18px;
    transition: transform var(--transition-normal);
}

.category-card:hover .category-card__link {
    color: var(--color-text-light);
    background-color: var(--color-accent);
    padding: 6px 20px 6px 16px;
}

.category-card:hover .category-card__link::after {
    transform: translateX(6px);
}

/* ========== ПЛАНШЕТЫ (до 1024px) ========== */
@media (max-width: 1024px) {
    .hero__container {
        gap: 20px;
        padding: 0 var(--container-padding-tablet);
    }

    .hero__main-slide {
        min-height: 450px;
    }

    .hero__main-content {
        padding: 40px 30px;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__subtitle {
        font-size: var(--fs-body);
        margin-bottom: 30px;
    }

    .hero__cta-btn {
        padding: 16px 36px;
        min-height: 54px;
        font-size: 17px;
    }

    .hero__categories {
        flex: 0 0 320px;
        gap: 20px;
    }

    .category-card {
        min-height: 215px;
    }

    .category-card__content {
        padding: 25px 20px;
    }

    .category-card__title {
        font-size: calc(var(--fs-h3-rem) - 0.125rem);
    }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ (до 768px) ========== */
@media (max-width: 768px) {
    .hero {
        padding: 20px 0;
    }

    .hero__container {
        flex-direction: column;
        gap: 20px;
        padding: 0 var(--container-padding-tablet);
    }

    /* Основной слайд */
    .hero__main-slide {
        width: 100%;
        min-height: 380px;
        border-radius: var(--radius-lg);
    }

    .hero__main-content {
        padding: 40px 30px;
        max-width: 100%;
    }

    .hero__title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .hero__subtitle {
        font-size: var(--fs-body);
        margin-bottom: 28px;
    }

    .hero__cta-btn {
        padding: 14px 28px;
        min-height: 50px;
        font-size: 16px;
        min-width: 300px;
    }

    .hero__cta-btn::after {
        font-size: 20px;
        margin-left: 10px;
    }

    /* Блок категорий (две карточки в ряд) */
    .hero__categories {
        flex: none;
        width: 100%;
        flex-direction: row;
        gap: 20px;
    }

    .category-card {
        flex: 1;
        min-height: 200px;
    }

    .category-card__content {
        padding: 25px 20px;
    }

    .category-card__title {
        font-size: var(--fs-h4);
        margin-bottom: 10px;
        max-width: 200px;
    }

    .category-card__link {
        font-size: var(--fs-tiny);
        padding: 5px 14px;
    }
}

/* ========== МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px) ========== */
@media (max-width: 480px) {
    .hero__container {
        padding: 0 var(--container-padding-mobile);
    }

    .hero__main-slide {
        min-height: 320px;
    }

    .hero__main-content {
        padding: 30px 20px;
    }

    .hero__title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero__subtitle {
        font-size: var(--fs-small);
        margin-bottom: 24px;
    }

    .hero__cta-btn {
        padding: 12px 24px;
        min-height: 48px;
        font-size: 15px;
        min-width: 260px;
    }

    .hero__cta-btn::after {
        font-size: 18px;
        margin-left: 8px;
    }

    .hero__categories {
        flex-direction: column;
        gap: 16px;
    }

    .category-card {
        min-height: 180px;
    }

    .category-card__content {
        padding: 20px 15px;
    }

    .category-card__title {
        font-size: var(--fs-h4);
        margin-bottom: 8px;
        max-width: 180px;
    }
}

/* ========== ЭКРАНЫ 360px И МЕНЬШЕ ========== */
@media (max-width: 360px) {
    .hero__container {
        padding: 0 var(--container-padding-mobile);
    }

    .hero__main-slide {
        min-height: 280px;
    }

    .hero__main-content {
        padding: 25px 15px;
    }

    .hero__title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .hero__subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hero__cta-btn {
        padding: 10px 20px;
        min-height: 44px;
        font-size: 14px;
        min-width: 220px;
    }

    .hero__cta-btn::after {
        font-size: 16px;
        margin-left: 6px;
    }

    .category-card {
        min-height: 150px;
    }

    .category-card__content {
        padding: 15px 12px;
    }

    .category-card__title {
        font-size: 16px;
        margin-bottom: 6px;
        max-width: 150px;
    }

    .category-card__link {
        padding: 4px 12px;
        font-size: 11px;
    }

    .category-card__link::after {
        font-size: 14px;
    }
}

/* ========== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 320px) ========== */
@media (max-width: 320px) {
    .hero__container {
        padding: 0 calc(var(--container-padding-mobile) - 2px);
    }

    .hero__main-slide {
        min-height: 240px;
    }

    .hero__title {
        font-size: 20px;
    }

    .hero__subtitle {
        font-size: 12px;
    }

    .hero__cta-btn {
        min-width: 200px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .category-card {
        min-height: 130px;
    }

    .category-card__title {
        font-size: 14px;
        max-width: 130px;
    }

    .category-card__link {
        padding: 3px 10px;
        font-size: 10px;
    }
}