.hero {
    padding-top: 15.4em;
    padding-bottom: 135px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}
.hero-bg__slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}
.hero__main {
    display: flex;
    flex-direction: column;
    color: var(--white);
    max-width: 710px;
}
.hero-games__slide a {
    display: flex;
    width: 100%;
    padding: 35px;
    height: 300px;
    justify-content: center;
}
.hero__trust {
    margin-bottom: 34px;
    min-height: 32px;
}
.hero__title {
    font-size: 96px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -3.84px;
    margin-bottom: 32px;
}
.hero__text {
    font-size: var(--font-h5);
    line-height: 1.34;
    max-width: 550px;
}
.hero__btns {
    margin-top: 64px;
    display: flex;
    gap: 32px;
}
.hero__btn {
    padding: 17px 64px;
    font-size: var(--font-body-small);
}
.hero__container {
    display: flex;
    gap: 120px;
    align-items: flex-end;
}
.hero__game {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
}
.hero-games__swiper {
    width: 590px;
}
.hero-games {
    border-radius: 16px 16px 0px 0px;
    background: rgba(6, 3, 12, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
}
.hero-games__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-games__slide img {
    height: auto;
    max-height: 266px;
    width: 100%;
    max-width: 395px;
    object-fit: contain;
}
.hero-games__wrapper {
    align-items: stretch;
}
.hero-games__progress {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0;
    height: 3px;
    background: #fff;
    z-index: 5;
    width: 100%;
}
.hero-games__progress {
    position: absolute;
    left: 0;
    bottom: 0;
}
.hero-games__progress--start .progress__line {
    animation: changeWidth 4500ms linear;
    animation-fill-mode: forwards;
}

@keyframes changeWidth {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}
.hero__newest {
    display: flex;
    text-align: right;
    justify-content: right;
}
.hero-pagination {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.hero-pagination__item {
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}
.hero-pagination__item--active {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    max-width: 100%;
    flex: 1;
}
.hero-pagination__img {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}
.hero-pagination__img img {
    width: 100%;
    height: auto;
}
.hero-pagination__content {
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: absolute;
    width: 300px;
    left: 72px;
    pointer-events: none;
    opacity: 0;
}
.hero-pagination__item--active .hero-pagination__content {
    opacity: 1;
    pointer-events: all;
}

.hero-pagination__name {
    font-weight: 700;
    line-height: 1.36;
    letter-spacing: 0.18px;
    font-size: 18px;
}
.hero-pagination__text {
    letter-spacing: var(--letter-spacing-normal);
    font-size: var(--font-body-small);
    line-height: 1.26;
}
@media (min-width: 1699px) {
    .hero {
        min-height: 98.4vh;
    }
}
@media (min-width: 1921px) {
    .hero {
        min-height: 87vh;
        padding-top: 15%;
    }
}
@media (max-width: 1920px) and (min-width: 1600px) and (min-height: 1081px) {
    .hero {
        min-height: 1px;
        max-height: 937px;
    }

}
@media (max-width: 1680px) and (min-width: 1440px) {
    .hero__main {
        flex-basis: 49%;
        max-width: 49%;
    }
}
@media (max-width: 1670px) {
    .hero__title {
        font-size: clamp(95px, calc(23px + 5vw), 110px);
    }
}
@media (max-width: 1445px) and (min-width: 1411px) {
    .hero__container {
        gap: 32px;
    }
}
@media (max-width: 1439px) {
    .hero__container {
        padding: 0 32px;
    }
}
@media screen and (max-width: 1439px) and (min-width: 1016px) {
    .hero-pagination__content {
        display: none;
    }
    .hero-pagination__item--active {
        flex: 0 0 auto;
    }
}
@media (max-width: 1410px) {
    .hero__title {
        font-size: 90px;
    }
    .hero__container {
        gap: 20px;
    }
}

@media (max-width: 1260px) and (min-width: 1016px) {
    .hero__main {
        flex: 0 0 auto;
        max-width: calc(56% - 20px);
        flex-basis: calc(56% - 20px);
    }
    .hero__game {
        flex: 0 0 auto;
        max-width: 44%;
        flex-basis: 44%;
    }
    .hero-games__swiper {
        width: 100%;
    }
    .hero-pagination {
        flex-wrap: wrap;
    }
    .hero-pagination__item {
        flex: 0 0 auto;
    }
    .hero-pagination__text{
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 77%;
        white-space: nowrap;
    }

}
@media (max-width: 1150px) {
    .hero__btn {
        padding: 14px 32px;
    }
    .hero__title {
        font-size: 80px;
    }
}
@media (max-width: 1090px) {
    .hero__game {
        margin-top: 65px;
    }
    .hero {
        padding-top: 160px;
        padding-bottom: 70px;
    }
    .hero-games__swiper {
        width: 458px;
    }
    .hero-pagination__content {
        width: 208px;
    }
    .hero-pagination__name {
        font-size: 16px;
    }
    .hero-pagination__img {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 1015px) {
    .hero {
        margin-bottom: 110px;
    }
    .hero__container {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero__title {
        font-size: 100px;
        margin-left: -7px;
    }
    .hero__btn {
        padding: 18px 64px;
    }

    .hero__game {
        margin-top: 44px;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero__newest {
        flex: 1 0 100%;
        text-align: left;
        justify-content: left;
    }
    .hero-games__swiper {
        width: 445px;
    }
    .hero-pagination {
        flex: 1;
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 30px;
    }
    .hero-pagination__item.hero-pagination__item--active {
        flex: 1 0 50%;
    }
    .hero-pagination__content {
        opacity: 1;
    }
    .hero-pagination__item {
        flex-basis: 100%;
    }
}

@media (max-width: 862px) {
    .hero-pagination__item.hero-pagination__item--active {
        flex: 1 0 100%;
    }
}
@media (max-width: 730px) {
    .hero-games {
        flex: 1 0 100%;
    }
    .hero-pagination__item.hero-pagination__item--active {
        flex: 1 0 50%;
    }
    .hero__title {
        font-size: 70px;
    }
    .hero {
        padding-top: 120px;
    }
}
@media (max-width: 545px) {
    .hero__btns {
        flex-direction: column;
        gap: 16px;
    }
    .hero__btn {
        text-align: center;
        justify-content: center;
    }
}
@media (max-width: 478px) {
    .hero-pagination {
        display: none;
    }
    .hero__main {
        display: block;
        position: relative;
        z-index: 10;
    }
    .hero__btns {
        order: 5;
        margin-top: 40px;
        width: 100%;
    }
    .hero__container {
        gap: 0;
    }
    .hero__trust {
        margin-bottom: 20px;
    }
    .hero__game {
        margin-top: 140px;
    }
    .hero {
        padding-top: 72px;
        margin-bottom: 0;
    }
    .hero-games__swiper {
        width: 335px;
    }
    .hero__title {
        font-size: 58px;
    }
    .hero-games__slide a {
        height: 184px;
    }
    .hero-bg__slide {
        background-position: center;
        background-size: auto 474px
    }
    .hero-bg {
        top: 80px;
    }
    .hero__container:before {
        content: '';
        position: absolute;
        top: -35px;
        left: 0;
        width: 100%;
        filter: blur(15px);
        z-index: 9;
        background: #000;
        height: 55%;
        opacity: 0.8;
    }
}
@media (max-width: 400px) {
    .hero__text {
        font-size: 20px;
    }
    .hero__title {
        font-size: 52px;
    }
}
@media (max-width: 370px) {
    .hero__title {
        font-size: 46px;
    }
}
@media (max-width: 360px) {
    .hero__btn {
        padding: 16px 64px;
    }
    .hero-games__slide a {
        height: 195px;
    }
}
