.catalog-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.catalog-link:hover {
    color: #fff;
}

.catalog-section {
    margin-bottom: clamp(60px, 10vw, 30px);
}

.catalog-title-wrapper {
    display: flex;
    margin-bottom: clamp(15px, 4vw, 50px);
    align-items: center;
    gap: 30px;
}

.catalog-title {
    font-weight: 700;
    font-size: clamp(24px, 4vw, 48px);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
    margin: 0 !important;
    transition: margin-bottom 0.3s ease;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(8px, 1.5vw, 20px);
    transition: gap 0.3s ease;
}

.catalog-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.catalog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-card:hover img {
    transform: scale(1.05);
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: clamp(15px, 4vw, 30px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
    color: #fff;
    transition: background 0.3s ease;
}

.catalog-card:hover .catalog-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.7) 100%);
}

.catalog-text {
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 30px);
    line-height: 1.3;
    transition: font-size 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ---- МАЛЕНЬКИЕ МОБИЛЬНЫЕ ---- */
@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        aspect-ratio: 344 / 300;
    }

    .catalog-text {
        font-size: 16px;
    }

    .catalog-overlay {
        padding: 20px;
        align-items: flex-end;
    }
}

/* ---- ПЛАНШЕТЫ ---- */
@media (min-width: 481px) and (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 2vw, 24px);
    }

    .catalog-card {
        aspect-ratio: 4 / 3;
    }

    .catalog-text {
        font-size: clamp(16px, 2vw, 22px);
    }

    .catalog-overlay {
        padding: clamp(20px, 4vw, 28px);
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.6) 100%);
    }
}

/* ---- ДЕСКТОП ---- */
@media (min-width: 1025px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-card {
        aspect-ratio: 1 / 1;
    }
}