.hero-section {
    margin-bottom: 2rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slider {
    display: flex;
    transition: transform 1s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-in-out;
}

.hero-slide:hover img {
    transform: scale(1.1);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    padding-bottom: 60px; 
    color: #fff;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.slide-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    color: white;
}

.slide-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color .3s;
}

.slide-button:hover {
    background-color: #45a049;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 10;
}

.slider-pagination {
    display: flex;
    gap: 8px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color .3s;
}

.pagination-dot.active {
    background-color: #fff;
}

.hero-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%; 
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 0; 
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform .4s ease-in-out;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
}

.category-card.product-card {
    border: none;
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px; 
    }
    .hero-categories {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto; 
        height: auto; 
    }
    .category-card {
        aspect-ratio: 1; 
    }
    .slide-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .slide-content {
        padding: 20px;
    }
    .slide-title {
        font-size: 1.5rem;
    }
    .slide-description {
        font-size: 1rem;
    }
    .hero-categories {
        grid-template-columns: repeat(2, 1fr);
    }
} 