.catalog {
    position: relative;
    background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 42%);
}

.catalog__container {
    position: relative;
    z-index: 1;
}

.catalog__head {
    max-width: 720px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.catalog__title {
    margin-bottom: 12px;
}

.catalog__intro {
    margin: 0;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.55;
    color: var(--text-gray-color);
    font-weight: 500;
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.2vw, 28px);
}

.catalog__card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--light-color);
    box-shadow:
        0 4px 6px rgba(0, 18, 63, 0.04),
        0 12px 28px rgba(0, 18, 63, 0.08);
    border: 1px solid rgba(0, 18, 63, 0.06);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.catalog__card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 8px 12px rgba(0, 18, 63, 0.06),
        0 24px 48px rgba(0, 18, 63, 0.12);
}

.catalog__card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

.catalog__card-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.catalog__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog__card:hover .catalog__card-img {
    transform: scale(1.08);
}

.catalog__card-shade {
    position: absolute;
    inset: 0;
    opacity: 0.92;
    background: linear-gradient(
        180deg,
        rgba(0, 18, 63, 0.05) 0%,
        rgba(0, 18, 63, 0.25) 45%,
        rgba(0, 18, 63, 0.82) 100%
    );
    transition: opacity 0.35s ease;
}

.catalog__card:hover .catalog__card-shade {
    opacity: 1;
}

.catalog__card-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(16px, 2.2vw, 24px);
}

.catalog__card-title {
    margin: 0;
    font-size: clamp(17px, 1.2vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--light-color);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.02em;
}

.catalog__card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.catalog__card:hover .catalog__card-arrow {
    background: var(--accent-color);
    border-color: transparent;
    color: var(--light-color);
    transform: translateX(4px);
}

@media (max-width: 970px) {
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 660px) {
    .catalog__grid {
        grid-template-columns: 1fr;
    }

    .catalog__card-visual {
        aspect-ratio: 16 / 11;
    }
}
