.cda-collections {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.cda-collections__heading {
    margin: 0;
    color: #161837;
    font-family: "Playfair Display SC", serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.cda-collections__decoration {
    display: block;
    width: 160px;
    height: 55px;
    margin: -8px auto 50px;
    background: url("../img/under-title.png") no-repeat center;
    background-size: contain;
}

.cda-collections__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

.cda-collections .cda-collections__card {
    position: relative;
    flex: 0 1 calc((100% - 60px) / 4);
    height: 380px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 4px solid #E7502A;
    background: #161837;
    box-shadow: none;
}

.cda-collections .cda-collections__link {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 4px solid #FFFFFF;
    background: #161837;
    box-shadow: none;
    color: #fff;
    text-decoration: none;
}

.cda-collections__link:hover,
.cda-collections__link:focus {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.cda-collections__link:focus-visible {
    outline: 2px solid #E7502A;
    outline-offset: -2px;
}

.cda-collections .cda-collections__image {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(100% - 160px);
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    transition: height 0.5s ease, transform 0.5s ease;
}

.cda-collections__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 160px;
    padding: 24px 16px 18px;
    overflow: hidden;
    background: #161837;
    text-align: center;
    transition: height 0.5s ease, background-color 0.5s ease;
}

.cda-collections__title {
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(28px, 2.35vw, 37px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.cda-collections__tagline {
    margin-top: 12px;
    color: #E7502A;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
}

.cda-collections__description {
    max-width: 100%;
    margin-top: auto;
    color: #E7502A;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
}

.cda-collections .cda-collections__card .cda-collections__link:hover .cda-collections__content,
.cda-collections .cda-collections__card .cda-collections__link:focus .cda-collections__content {
    height: 100%;
    background-color: #161837c9;
}

.cda-collections__link:hover .cda-collections__image,
.cda-collections__link:focus .cda-collections__image {
    height: 100%;
    transform: scale(1.035);
}

.cda-collections__link:hover .cda-collections__description,
.cda-collections__link:focus .cda-collections__description {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .cda-collections .cda-collections__card {
        flex-basis: calc((100% - 20px) / 2);
    }

    .cda-collections__title {
        font-size: 37px;
    }
}

@media (max-width: 640px) {
    .cda-collections {
        padding: 36px 20px 50px;
    }

    .cda-collections__heading {
        font-size: 25px;
    }

    .cda-collections .cda-collections__card {
        flex-basis: 100%;
    }

    .cda-collections__description {
        font-size: 14px;
    }
}

@media (hover: none) {
    .cda-collections__content {
        height: 175px;
    }

    .cda-collections__description {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cda-collections__image,
    .cda-collections__content,
    .cda-collections__description {
        transition-duration: 0.01ms;
    }
}
