.hero {
    margin-top: 90px;
}

.hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero__title {
    color: var(--card-bg);
}

.hero__box-btn {
    position: relative;
    display: inline-flex;
    gap: 10px;
    flex-wrap: nowrap;
    cursor: pointer;
}

.hero__btn-link,
.hero__card-main-link{
    position: absolute;
    z-index: 5;
    inset: 0;
}

.hero__btn {
    background-color: var(--accent-bg);
    color: var(--main-color);
    text-align: center;
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    line-height: 100%;
    font-family: var(--semibold);
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    transition: background-color 0.4s;
    -webkit-transition: background-color 0.4s;
    -moz-transition: background-color 0.4s;
    -ms-transition: background-color 0.4s;
    -o-transition: background-color 0.4s;
}

.hero__btn-arrow {
    background-color: var(--accent-bg);
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 46px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transition: background-color 0.4s;
    -webkit-transition: background-color 0.4s;
    -moz-transition: background-color 0.4s;
    -ms-transition: background-color 0.4s;
    -o-transition: background-color 0.4s;
}

.hero__btn-arrow svg {
    fill: var(--main-color);
    transition: rotate 0.4s;
    -webkit-transition: rotate 0.4s;
    -moz-transition: rotate 0.4s;
    -ms-transition: rotate 0.4s;
    -o-transition: rotate 0.4s;
}

.hero__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.hero__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    min-height: 168px;
}

.hero__card-avatars {
    display: flex;
}

.hero__card-avatars img {
    width: 53px;
    height: 53px;
    min-height: 53px;
    min-width: 53px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #ffffff67;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.hero__card-avatars img:not(:first-child) {
    margin-left: -10px;
}

.hero__card-top {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero__card-info-text {
    margin-top: 2px;
    font-family: var(--semibold);
}

@media (hover: hover) {
    .hero__box-btn:hover .hero__btn {
        color: var(--accent-bg);
        background-color: var(--main-color);
    }

    .hero__box-btn:hover .hero__btn-arrow {
        background-color: var(--main-color);
    }

    .hero__box-btn:hover .hero__btn-arrow svg {
        rotate: 135deg;
        fill: var(--accent-bg);
    }

    .hero__card.card:hover {
        background: rgba(247, 248, 250, 0.5);
    }
}

@media (max-width: 767px) {
    .hero__info {
        position: relative;
        aspect-ratio: 3/4;
        padding: 25px 15px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        justify-content: end;
        overflow: hidden;
        background-image: url(/img/hero/card_5.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border-radius: 15px;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        -ms-border-radius: 15px;
        -o-border-radius: 15px;
    }

    .hero__info::before,
    .hero__info::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

    .hero__info::before {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0) 100%);
    }

    .hero__info::after {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0) 100%);
    }

    .hero__info>* {
        position: relative;
        z-index: 1;
    }
}

@media (min-width: 768px) {
    .hero__content {
        display: flex;
        overflow: hidden;
        flex-direction: column;
        padding: 25px 15px;
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        justify-content: end;
        background-image: url(/img/hero/card_4.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border-radius: 15px;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        -ms-border-radius: 15px;
        -o-border-radius: 15px;
    }

    .hero__content::before,
    .hero__content::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

    .hero__content::before {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0) 100%);
    }

    .hero__content::after {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0) 100%);
    }

    .hero__content>* {
        position: relative;
        z-index: 1;
    }

    .hero__info {
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 60%;
        overflow: hidden;
    }

    .hero__cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hero__card.card {
        background-color: rgba(230, 230, 230, .3);
        border: 0.5px solid rgba(247, 248, 250, 0.15);
        backdrop-filter: blur(10px)
    }

    .hero__card {
        color: var(--card-bg);
    }

    .hero__card,
    .hero__card .title_min,
    .hero__card .text,
    .hero__card-info-rew,
    .hero__card-info-num,
    .hero__card-info-text {
        color: var(--card-bg);
    }


}

@media (min-width: 1200px) {
    .hero {
        margin-top: 120px;
    }
    .hero__content{
        padding: 25px;
        aspect-ratio: 16/7;
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        -ms-border-radius: 20px;
        -o-border-radius: 20px;
    }
    .hero__card-avatars img {
    width: 65px;
    height: 65px;
    min-height: 65px;
    min-width: 65px;
    object-fit: cover;
    object-position: center;
    border: none;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}
.hero__card-avatars img:not(:first-child) {
    margin-left: -15px;
}
}