.hero {
    grid-template-columns: 1fr 485px;
    grid-column-gap: 50px;
    align-items: start;
    padding-top: 20px;
}

.hero__banner {
    position: relative;
    display: grid;
    grid-row-gap: 10px;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    height: 100%;
}

.hero__promo {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: -1;
}

.hero__headline {
    line-height: 107px;
    font-size: 85px;
    color: var(--color-gray100);
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.7);
}

.hero__headline span {
    text-align: end;
    font-size: 25px;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.7);
    color: var(--color-gray100);
}

.hero__info {
    margin-bottom: 25px;
    grid-column-gap: 86px;
}

.hero__description {
    font-weight: 400;
    line-height: 16px;  
    color: var(--color-gray100);
    opacity: .5;
}

.hero__list {
    display: grid;
    grid-row-gap: 8px;
    border: 1px solid var(--color-red100);
    border-radius: 6px;
    overflow: hidden;
}

.hero__item {
    justify-content: start;
    padding: 8px;
    transition: all 0.2s;
}

.hero__item:hover {
    background: var(--color-red50);
    filter: drop-shadow(0px 12px 30px rgba(255, 97, 76, 0.3));
}

.hero__item:hover .hero__number {
    opacity: 1;
}

.hero__image {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.hero__game {
    margin-right: 6px;
    width: 145px;
    max-width: 145px;
}

.hero__text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray100);
}

.hero__number {
    width: 170px;
    max-width: 170px;
    opacity: 0.3;
}

.popular {
    padding-top: 58px;
    padding-bottom: 94px;
}

.popular__content {
    width: 100%;
    overflow: hidden;
}

.popular__header {
    margin-bottom: 24px;
}

.popular__item {
    position: relative;
    padding: 12px 12px 60px 12px;
    border-radius: 4px;
    border: 1px solid var(--color-blue100);
}

.popular__item_hover{
    border-color: var(--color-red50);
}

.popular__image  {
    margin-bottom: 12px;    
    width: 100%;
    height: 140px;
    border-radius: 4px;
    transition: all 0.2s;
}

.popular__item_hover 
.popular__image {
    filter: drop-shadow(0px 28px 50px rgba(227, 181, 56, 0.35));
}

.popular__link {
    margin-bottom: 4px;
    height: 19px;
    font-weight: 700;
    color: var(--color-gray100);
}

.popular__link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.popular__text {
    line-height: 15px;
    font-size: 14px;
    color: var(--color-gray100);
    opacity: 0.5;
}

@keyframes down {
    from {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-34px);
    }

    to {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes up {
    from {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    to {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-34px);
    }
}

.popular__game {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 34px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray100);
    background-color: var(--color-red50);
    transition: all 0.2s;
}

.popular__hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-34px);
}

.popular__game_close {
    animation: up .2s;
    animation-fill-mode: forwards;
}

.popular__game_hover {
    animation: down .2s;
    animation-fill-mode: forwards;
}

.popular__nav {
    grid-column-gap: 10px;
    padding-right: 10px;
}

.swiper__button {
    display: grid;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-gray100);
    transition: all 0.2;
}

.swiper__button:hover { 
    background-color: var(--color-red50);
    box-shadow: 0px 6px 15px rgba(255, 97, 76, 0.3);
    border: 1px solid var(--color-red50);
}

.swiper__button_next {
    transform: rotate(180deg);
}

.games {
    padding-bottom: 20px;
}

.games__headline {
    margin-bottom: 38px;
}

.games__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 80px;
    grid-row-gap: 40px;
}

.games__item {
    position: relative;
    transition: all 0.2s;
}

.games__item:hover {
    filter: drop-shadow(0px 28px 50px rgba(253, 158, 1, 0.23));
}

.games__image {
    margin-bottom: 12px;
    width: 100%;
    border-radius: 4px;
}

.games__link {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray100);
}

.games__link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.games__text {
    font-size: 14px;
    color: var(--color-gray100);
    opacity: 0.5;
}

.contact__wrapper {
    position: relative;
    padding-top: 76px;
    padding-bottom: 64px;
}

.contact__content {
    max-width: 400px;
}

.contact__image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 700px;
    height: 700px;
    z-index: -1;
    object-fit: contain;
}

.contact__description {
    margin-bottom: 25px;
    line-height: 19px;
    color: var(--color-white);
    font-weight: 400;
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 16px;
}

.contact__input {
    grid-column: 1 / 3;
}

.contact__textarea {
    grid-column: 1 / 3;
    padding: 12px 16px;
    height: 128px;
    border-radius: var(--border-rd-md);
    background: var(--color-white);
}

.contact__label {
    grid-column-gap: 8px;
}

.contact__label span {
    text-transform: capitalize;
    line-height: 17px;
    font-size: 14px;
    color: var(--color-white);
    font-weight: 400;
}

.contact__button {
    padding: 0;
    width: 124px;
    height: 36px;
}

.faq {
    padding-top: 40px;
    padding-bottom: 40px;
}

.faq__wrapper {
    display: grid;
    grid-row-gap: 20px;
}

.acc_container {
    border-bottom: 1px solid #8f8f8f;
}

.acc_header {
    cursor: pointer;
    background: var(--color-blue200);
    color: var(--color-white);
    padding: .9rem;
    position: relative;

}


.acc_content {
    background: var(--color-blue100);
    /*padding: .9rem;*/
    transition: max-height .3s;
    overflow: hidden;
    color: var(--color-white);
    max-height: 0;
    opacity: 0.8;
}

/*.acc_header:after {*/
/*    content: "h";*/
/*    position: absolute;*/
/*    right: 20px;*/
/*    top: 14px;*/
/*}*/


.acc_content_inner {
    padding: .9rem;
}

.acc_content.show {
    display: block;
    max-height: 300px;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    display: grid;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(2, 13, 49, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity .2s;
    animation: up .2s;
    animation-fill-mode: forwards;
    z-index: 10;
  }
  
  .modal_close {
    animation: down .2s;
    animation-fill-mode: forwards;
  }
  
  .modal_hidden {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }

@media (max-width: 1600px) {
    .games__list {
        grid-column-gap: 40px;
        grid-row-gap: 20px;
    }

    .popular {
        padding-bottom: 40px;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-row-gap: 24px;
    }

    .hero__banner {
        padding: 24px 0;
    }

    .hero__headline {
        line-height: 40px;
        font-size: 36px;
    }

    .hero__headline span {
        font-size: 18px;
    }

    .hero__info {
        grid-column-gap: 8px;
        justify-content: space-between;
    }

    .hero__text {
        width: auto;
        max-width: none;
    }

    .hero__item {
        justify-content: space-between;
    }

    .hero__number {
        padding-right: 24px;
    }

    .games__list {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .popular {
        padding-bottom: 15px;
    }
}

@media (max-width: 640px) {
    .contact__wrapper {
        padding: 36px 8px 0 8px
    }
}

@media (max-width: 520px) {
    .contact__content {
        max-width: 100%;
    }

    .contact__image {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 460px) {
    .hero__item {
        padding: 4px;
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__image {
        margin-right: 6px;
    }

    .hero__number {
        padding-right: 10px;
    }

    .games__list {
        grid-template-columns: 1fr 1fr;
    }
}