/* css/categories.css - стили для категорий */

.categories-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.categories-section__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.categories-section__title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    font-family: var(--font-heading);
}

.categories-section__subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card__image {
    height: 200px;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__image img {
    transform: scale(1.05);
}

.category-card__content {
    padding: 30px;
    position: relative;
}

.category-card__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: absolute;
    top: -35px;
    left: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card__icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.category-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 15px 0 10px;
    color: #333;
    font-family: var(--font-heading);
}

.category-card__description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.category-card__count {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-card__arrow {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__arrow {
    transform: translateX(5px);
}

.categories-section__footer {
    text-align: center;
}

/* Страница архива категории */
.category-hero {
    background: linear-gradient(135deg, #1e3a5c 0%, #2c3e50 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.category-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.category-hero__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.category-hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.category-hero__description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .categories-section__title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 60px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .categories-section__title {
        font-size: 2rem;
    }

    .category-hero__title {
        font-size: 2.2rem;
    }

    .category-card__content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .categories-section__title {
        font-size: 1.8rem;
    }

    .category-hero__title {
        font-size: 1.8rem;
    }

    .category-card__icon {
        width: 60px;
        height: 60px;
        top: -30px;
    }

    .category-card__icon img {
        width: 30px;
        height: 30px;
    }
}