@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');

html {
    scroll-behavior: smooth;
}

body { 
    background-color: #202020; 
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #EFEFEF;
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.box-hr {
  background-color: #1a1a1a;
  width: 100%;
}

.nav {
    position: relative;
    z-index: 10;
}

.nav__container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 20px 0; 
}

.nav__logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo-img {
    height: 50px; 
    width: auto;
}

.nav__list {
    grid-column: 2;
    justify-self: center; 
    display: flex;
    gap: 60px; 
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item {
    margin: 0;
}

.nav::after {
    content: "";
    grid-column: 3;
    width: var(--logo-width, 100px); 
    visibility: hidden;
}

.nav__link {
    color: #ffffff;
    text-decoration: none;
    font-size: 46px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #ff0000;
}

.nav__link_active {
    color: #ff0000;
    border-bottom: 2px solid #ff0000;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 100px 0;
}

.hero__image-box {
    flex: 1;
    margin-left: -140px;
}

.hero__image {
    width: 100%;
    max-width: 600px; 
    height: auto;
    display: block;
    object-fit: contain;
}

.hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.hero__title {
    font-size: 63px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: bold;
}

.hero__text {
    max-width: 585px;
    width: 100%;
    font-size: 32px;
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero__btn {
    display: inline-block;
    padding: 16px 36px;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 32px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.hero__btn:hover {
    background-color: #cc0000;
}

.ganes__hr {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 60px;
}

.title {
    font-size: 64px;
}

.game__block_up {
    background-color: #171717;
    display: flex;
    align-items: center;
    border-radius: 50px;
    margin-bottom: 50px;
    overflow: hidden;
}

.game__img {
    height: 350px;
    width: 500px;
    flex-shrink: 0;
}

.game__img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.games__text__block {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.games__title {
    margin-bottom: 20px;
}

.games__desc {
    font-size: 24px;
    color: #BFBFBF;
    line-height: 1.4;
}

.games__button-google {
    display: inline-block;
    margin-top: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.games__button-google img {
    height: 70px;
    width: auto;
    display: block;
}

.games__button-google:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.game__block_down {
    background-color: #171717;
    padding: 30px 0; 
}

.game__mg__list {
    display: flex;
    list-style: none; 
    margin: 0;
    padding: 0 0 15px 0; 
    gap: 20px;        
    overflow-x: auto;  
    white-space: nowrap; 
}

.game__img__item {
    flex: 0 0 400px; 
}

.game__img__item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: 20px; 
}

.game__mg__list::-webkit-scrollbar {
    height: 8px; 
}

.game__mg__list::-webkit-scrollbar-track {
    background: #202020;
    border-radius: 10px;
}

.game__mg__list::-webkit-scrollbar-thumb {
    background: #ff0000; 
    border-radius: 10px;
}

.footer {
    padding: 60px 0;
    margin-top: 80px; 
}

.footer__container {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.footer__about {
    flex: 1;
    max-width: 600px;
}

.footer__title {
    margin-bottom: 20px;
}

.footer__text {
    font-size: 24px;
    color: #aaaaaa;
    line-height: 1.5;
}

.footer__contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__subtitle {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__link {
    font-size: 28px;
    color: #BFBFBF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #ff0000; 
}

@media (max-width: 1024px) {
    .hero {
        gap: 40px;
        padding: 60px 0;
    }
    
    .hero__image-box {
        margin-left: 0;
    }

    .hero__title { font-size: 54px; }
    .hero__text { font-size: 28px; }
    .hero__btn { font-size: 28px; }

    .game__block_up {
        flex-direction: column;
        align-items: stretch;
    }

    .game__img {
        width: 100%;
        height: 400px;
    }

    .games__text__block {
        padding: 30px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav__container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .nav__list {
        grid-column: 1;
        gap: 40px;
    }

    .nav::after {
        display: none;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero__content {
        align-items: center;
    }

    .hero__image-box {
        max-width: 400px;
        width: 100%;
    }

    .ganes__hr {
        height: 90px;
        margin-bottom: 40px;
    }

    .title { font-size: 48px; }

    .footer__container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer__about {
        max-width: 100%;
    }

    .footer__contacts {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav__link { font-size: 36px; }
    
    .hero__title { font-size: 44px; }
    .hero__text { font-size: 22px; }
    .hero__btn { font-size: 24px; padding: 12px 28px; }

    .game__img { height: 250px; }
    .games__desc { font-size: 20px; }

    .game__img__item {
        flex: 0 0 280px;
    }
    
    .game__img__item img {
        height: 180px;
    }

    .footer__subtitle { font-size: 32px; }
    .footer__link { font-size: 22px; }
    .footer__text { font-size: 20px; }
}
