.hero {
    padding: 60px 0 100px;
}

.hero .hero-boxes-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 128px 64px;
}

.hero .hero-card {
    width: calc(25% - 64px);
    position: relative;
}

.hero .hero-boxes-wrapper {
    justify-content: center;
}

.hero .container:not(.container-wide) .hero-card {
    width: calc(20% - 32px);
}

.hero .hero-card::before {
    content: "";
    display: block;
    position: absolute;
    width: 50%;
    height: 50%;
    top: -12px;
    left: -12px;
    background-color: #E5046E;
    z-index: -1;
}

.hero .card-data {
    aspect-ratio: 264 / 364;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    align-items: flex-start;
    display: flex;
    width: 100%;
    height: auto;
    z-index: 1;
    position: relative;
}

.hero .card-data::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: background .3s ease;
}

.hero .card-data:hover::before {
    background-color: rgba(0, 0, 0, 0.4);
}

.hero .card-data span {
    background-color: #000;
    color: #fff;
    margin-left: 32px;
    margin-top: 64px;
    text-transform: uppercase;
    padding: 20px 12px 20px 32px;
    width: 100%;
    white-space: nowrap;
    margin-right: -32px;
    transition: background .3s ease, color .3s ease;
    z-index: 9;
}

.hero .card-data:hover span {
    background-color: #fff;
}

.hero .card-data em {
    transition: color .3s ease;
}

.hero .card-data:hover span,
.hero .card-data:hover em {
    color: #000;
}

.hero .card-link {
    position: absolute;
    right: -32px;
    bottom: -52px;
    z-index: 0;
    width: 70%;
    height: 50%;
    border: 1px solid #222;
    display: flex;
    align-items: flex-end;
    text-align: center;
    padding: 20px 32px 16px 20px;
    justify-content: flex-end;
    letter-spacing: 0.8px;
}

.hero .card-link span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero .card-link:hover {
    color: #222;
}

@media (max-width:1600px) {
    .hero .hero-card {
        width: calc(25% - 64px);
    }
}

@media (max-width:1199px) {
    .hero .container:not(.container-wide) .hero-card {
        width: calc(33.33333333% - 64px);
    }

    .hero .hero-card {
        width: calc(33.33333333% - 64px);
    }
}

@media (max-width:991px) {

    .hero .hero-card,
    .hero .container:not(.container-wide) .hero-card {
        width: calc(50% - 80px);
    }
}

@media (max-width:768px) {

    .hero .hero-card,
    .hero .container:not(.container-wide) .hero-card {
        width: 80%
    }
}