.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 52px;
}

.collections-card {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.collections-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
    box-shadow: var(--focus-ring);
}

.collections-card__media {
    position: relative;
}

.collections-card__img {
    display: block;
    width: 100%;
    height: auto;
}

.collections-card__plate {
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 383px;
    height: 108px;
    display: block;
    /* line-height deliberately smaller than height — positions baseline per mockup */
    line-height: 92px;
    padding-left: 38px;
    padding-right: 16px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-weight: 300;
    font-size: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collections-card__descr {
    background: var(--neutral-300);
    padding: 35px 38px 41px;
    font-size: 18px;
    line-height: 25px;
}

.collections-card__plate::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid var(--ink);
    pointer-events: none;
}

.collections-card--no-banner .collections-card__plate {
    position: static;
    background: var(--white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.collections-card--no-descr .collections-card__plate {
    bottom: 0;
}

.collections-card--no-descr .collections-card__plate::after,
.collections-card--no-banner .collections-card__plate::after {
    content: none;
}

@media (max-width: 575px) {
    .collections-grid {
        row-gap: 30px;
    }

    .collections-card__plate {
        bottom: -10px;
        width: 188px;
        height: 52px;
        /* line-height deliberately smaller than height — positions baseline per mockup */
        line-height: 44px;
        font-size: 24px;
        padding-left: 16px;
        border-radius: 0 var(--r-sm) var(--r-sm) 0;
    }

    .collections-card__plate::after {
        bottom: 10px;
    }

    .collections-card__descr {
        padding: 26px 16px 15px;
        font-size: 13px;
        line-height: 16px;
    }

    .collections-card--no-descr .collections-card__plate {
        bottom: 0;
    }
}
