.krf-catalog {
    --krf-catalog-background: #f9fafb;
    width: 100%;
    padding: 54rem 0 110rem;
    background: var(--krf-catalog-background);
    color: #333;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}
.krf-catalog__container {
    width: 1500rem;
    max-width: calc(100% - 40rem);
    margin-inline: auto;
}
.krf-catalog__header {
    width: 100%;
    text-align: center;
}
.krf-catalog__title {
    margin: 0;
    color: #333;
    font-size: 48rem;
    line-height: 58rem;
    font-weight: 700;
}
.krf-catalog__subtitle {
    width: 683rem;
    max-width: 100%;
    margin: 15rem auto 0;
    color: #4b5563;
    font-size: 24rem;
    line-height: 28rem;
    font-weight: 400;
}
.krf-catalog__grid {
    margin-top: 52rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20rem;
}
.krf-catalog__card {
    position: relative;
    min-width: 0;
    height: 360rem;
    overflow: hidden;
    border-radius: 24rem;
    background: #fff;
}
.krf-catalog__card--1 { background: #eef2ff; }
.krf-catalog__card--2 { background: #fff; }
.krf-catalog__card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.krf-catalog__media {
    position: absolute;
    left: 12rem;
    right: 12rem;
    top: 8rem;
    height: 232rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.krf-catalog__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    transition: transform .25s ease;
}
.krf-catalog__content {
    position: absolute;
    left: 24rem;
    right: 24rem;
    bottom: 22rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10rem;
}
.krf-catalog__name {
    display: block;
    min-height: 46rem;
    color: #333;
    font-size: 19rem;
    line-height: 23rem;
    font-weight: 700;
}
.krf-catalog__more {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    color: #2563eb;
    font-size: 16rem;
    line-height: 20rem;
    font-weight: 500;
}
.krf-catalog__more img {
    width: 20rem;
    height: 19rem;
    flex: 0 0 auto;
}
.krf-catalog__card-link:hover .krf-catalog__image { transform: translateY(-3rem) scale(1.015); }
.krf-catalog__card-link:focus-visible { outline: 3rem solid rgba(37,99,235,.35); outline-offset: -3rem; }

@media (max-width: 767px) {
    .krf-catalog {
        padding: 70rem 20rem 80rem;
    }
    .krf-catalog__container {
        width: 440rem;
        max-width: 100%;
    }
    .krf-catalog__title {
        font-size: 28rem;
        line-height: 34rem;
    }
    .krf-catalog__subtitle {
        width: 440rem;
        margin-top: 23rem;
        font-size: 24rem;
        line-height: 28rem;
    }
    .krf-catalog__grid {
        margin-top: 48rem;
        grid-template-columns: 1fr;
        gap: 10rem;
    }
    .krf-catalog__card {
        height: 390rem;
        border-radius: 30rem;
    }
    .krf-catalog__media {
        left: 20rem;
        right: 20rem;
        top: 8rem;
        height: 270rem;
    }
    .krf-catalog__content {
        left: 35rem;
        right: 35rem;
        bottom: 29rem;
        gap: 10rem;
    }
    .krf-catalog__name {
        min-height: 0;
        font-size: 22rem;
        line-height: 26rem;
    }
    .krf-catalog__more {
        font-size: 18.75rem;
        line-height: 22.5rem;
        gap: 5rem;
    }
    .krf-catalog__more img {
        width: 19.535rem;
        height: 18.75rem;
    }
}
