/* Главная страница */
.home-hero {
    background: #1c1c1e;
    padding: 44px 0;
    position: relative;
    overflow: hidden;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.home-hero__title {
    margin: 0 0 16px;
}

.home-hero__title-main {
    display: block;
    font-size: clamp(14px, 4.3vw, 38px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
    white-space: nowrap;
}

.home-hero__title-sub {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.home-hero__desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    margin: 0 0 18px;
    line-height: 1.5;
}

.home-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.home-hero__badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

.home-cats {
    padding: 36px 0;
}

.home-cats__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.home-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.home-cat-card {
    display: block;
    text-decoration: none !important;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    background: #eef0f2;
    transition: box-shadow 0.2s;
}

.home-cat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-cat-card:last-child:nth-child(odd) {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.home-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-cat-card:hover .home-cat-card__img {
    transform: scale(1.04);
}

.home-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.05) 55%);
    pointer-events: none;
}

.home-cat-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.home-cat-card--noimage {
    background: linear-gradient(135deg, #f0f7e8, #dcefd0);
}

.home-cat-card--noimage .home-cat-card__overlay {
    display: none;
}

.home-cat-card--noimage .home-cat-card__name {
    position: relative;
    bottom: auto;
    color: #2a4a2a;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 16px;
}

@media (min-width: 576px) {
    .home-cats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .home-cat-card:last-child:nth-child(odd) {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .home-cat-card__name {
        font-size: 14px;
        padding: 12px;
    }
}

@media (min-width: 992px) {
    .home-hero {
        padding: 72px 0;
    }

    .home-hero__title-main {
        font-size: 38px;
    }

    .home-hero__title-sub {
        font-size: 22px;
    }

    .home-hero__desc {
        font-size: 17px;
    }

    .home-cats {
        padding: 56px 0;
    }

    .home-cats__title {
        font-size: 30px;
    }

    .home-cats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .home-cat-card:last-child:nth-child(odd) {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
    }

    .home-cat-card__name {
        font-size: 16px;
        padding: 14px 16px;
    }
}
