.home-catalog {
    --hc-gap: 14px;
    display: grid;
    grid-template-columns: 1.18fr .82fr .82fr;
    grid-auto-flow: row dense;
    grid-auto-rows: 360px;
    gap: var(--hc-gap);
    width: 100%;
    box-sizing: border-box;
}

.home-catalog *,
.home-catalog *::before,
.home-catalog *::after {
    box-sizing: border-box;
}

.home-catalog__card {
    --hc-fg: #07152f;
    --hc-muted: rgba(7,21,47,.64);
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    overflow: hidden;
    border-width: 1px;
    border-style: var(--hc-border-style, solid);
    border-color: var(--hc-border-color, rgba(13,34,68,.16));
    border-radius: 20px;
    background: var(--hc-bg, #f1f3f6);
    color: var(--hc-fg);
    text-decoration: none !important;
    transform: translateZ(0);
    transition:
        transform .45s cubic-bezier(.2,.7,.2,1),
        border-color .35s ease,
        box-shadow .45s ease;
}

.home-catalog__card--light {
    --hc-fg: #fff;
    --hc-muted: rgba(255,255,255,.72);
    
}

.home-catalog__card--tall {
    grid-row: span 2;
}

.home-catalog__card--wide {
    grid-column: span 2;
}

.home-catalog__media,
.home-catalog__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-catalog__media {
    z-index: -3;
    background-image: var(--hc-image, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.001);
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.home-catalog__shade {
    z-index: -2;
    background: transparent;
}

.home-catalog__card--has-image .home-catalog__shade {
    background:
        linear-gradient(180deg, rgba(3,11,25,.08) 0%, rgba(3,11,25,.08) 36%, rgba(3,11,25,.72) 100%),
        linear-gradient(90deg, rgba(3,11,25,.18), transparent 64%);
}

.home-catalog__top {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: .02em;
    color: var(--hc-fg);
}

.home-catalog__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--hc-fg);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

.home-catalog__arrow svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-catalog__content {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    width: min(90%, 620px);
    padding: 42px 30px 31px;
}

.home-catalog__eyebrow {
    margin-bottom: 20px;
    color: var(--hc-muted);
    font-size: 10px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-catalog__title {
    display: block;
    max-width: 95%;
    margin: 0;
    color: var(--hc-fg);
}

.home-catalog__description {
    display: block;
    max-width: 92%;
    margin: 20px 0 0;
    color: var(--hc-muted);
}

.home-catalog__note {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 29px;
    color: rgba(255,255,255,.62);
    font-size: clamp(26px, 2.3vw, 42px);
    line-height: 1;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.home-catalog__card--wide .home-catalog__content {
    width: 70%;
}

.home-catalog__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(17,33,58,.10);
}

.home-catalog__card:hover .home-catalog__media {
    transform: scale(1.055);
}

.home-catalog__card:hover .home-catalog__arrow {
    transform: translate(3px,-3px);
}

@media (max-width: 1100px) {
    .home-catalog {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 330px;
    }

    .home-catalog__card--tall {
        grid-row: span 2;
    }

    .home-catalog__card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .home-catalog {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .home-catalog__card,
    .home-catalog__card--tall,
    .home-catalog__card--wide {
        width: 100%;
        min-height: 360px;
    }

    .home-catalog__card--tall {
        min-height: 500px;
    }

    .home-catalog__top {
        top: 22px;
        left: 22px;
        right: 22px;
    }

    .home-catalog__content {
        width: 100%;
        padding: 38px 22px 24px;
    }

    .home-catalog__note {
        right: 22px;
        bottom: 22px;
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-catalog__card,
    .home-catalog__media,
    .home-catalog__arrow {
        transition: none !important;
    }

    .home-catalog__card:hover,
    .home-catalog__card:hover .home-catalog__media,
    .home-catalog__card:hover .home-catalog__arrow {
        transform: none !important;
    }
}

.home-catalog__title,
.home-catalog__description {
    font-family: inherit;
}
