:root {
    --white: #ffffff;
    --black: #1a1a2e;
    --primary: #111282;
    --secondary: #632bd0;
    --accent: #981061;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
}
body {
    font-family: Arial, sans-serif;
    background-color: var(--white);
    color: var(--black);
    font-size: 1.1rem;
    line-height: 1.5;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}


.btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 40px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}




/* header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 16px;
}
.header__logo {
    display: block;
    width: 100px;
    height: 58px;
}
.header__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header__nav {
    margin-right: 24px;
    margin-left: auto;
}
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.header__menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.header__menu-toggle:hover {
    border-color: var(--accent);
}
.header__menu-toggle[aria-expanded="true"] {
    background: #f8f5ef;
    border-color: var(--accent);
}
.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.header__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style: none;
}
.header__nav ul a {
    display: block;
    color: var(--primary);
    font-size: 20px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.3s ease;
}
.header__nav ul a:hover {
    color: var(--accent);
    text-decoration: underline;
}





/* Hero */
.hero {
    background: var(--black);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}
.hero__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    z-index: 10;
}
.hero__content {
    flex: 1;
}
.hero__title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero__title span {
    display: block;
    font-size: 3rem;
}
.hero__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero__image {
    max-width: 440px;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
.hero__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    opacity: .5;
    z-index: 2;
}
.hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.head {
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.2;
}





.content-block {
    padding: 50px 0;
}
.content-block h2,
.content-block h3,
.content-block p,
.content-block ul,
.content-block ol,
.content-block .table-wrapper,
.content-block img {
    margin-bottom: 24px;
}
.content-block h2 {
    color: #000;
    font-size: 2.2rem;
    margin-top: 0.5rem;
    text-align: center;
}
.content-block h3 {
    color: #000;
    font-size: 1.6rem;
    text-align: center;
}
.content-block ul, 
.content-block ol {
    padding-left: 1.8rem;
}
.content-block li {
    margin-bottom: 8px;
}
.table-wrapper {
    overflow-x: auto;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.comparison-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.content-block img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 16px;
}
.caption {
    font-size: 0.85rem;
    color: #5a6874;
    text-align: center;
}




.best-prod {
    padding-top: 40px;
    padding-bottom: 40px;
    background: rgba(0, 0, 0, 0.05);
}
.best-prod__subhead {
    margin-bottom: 24px;
    color: var(--black);
    opacity: .7;
    font-size: 1.2rem;
    text-align: center;
}
.best-prod__list {

}
.best-prod-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 12px;
}
.best-prod-item__thumb {
    display: block;
    width: 100px;
    border-radius: 8px;
    overflow: hidden;
}
.best-prod-item__thumb-ins {
    display: block;
    width: 100%;
    padding-top: 100%;
    position: relative;
}
.best-prod-item__thumb-ins img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.best-prod-item__info {
    flex: 1;
}
.best-prod-item__bonus {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.2;
}
.best-prod-item__sub-bonus {
    color: var(--primary);
    font-size: 1rem;
}
.best-prod-item__rating {
    font-size: 1.2rem;
}
.best-prod-item__button {

}


.pros-cons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}
.pros-cons-item {
    width: calc(50% - 8px);
    border: 1px solid green;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
}
.pros-cons-item:last-child {
    border-color: red;
}
@media (max-width: 700px) {
    .pros-cons-item {
        width: 100%;
    }
}



.gallery {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
}
.gallery__head {
    margin-bottom: 1.2rem;
    font-size: 2rem;
    font-weight: bold;
}
.gallery__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    width: calc(100% + 20px);
    margin-left: -10px;
}
.gallery-item {
    width: calc(33.3% - 20px);
    margin: 0 10px 20px;
    border-radius: 4px;
    overflow: hidden;
}
.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3/1.8;
    object-fit: cover;
}






.faq {
    padding-top: 2rem;
    padding-bottom: 2.4rem;
}
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: var(--white);
    margin-bottom: 16px;
}
.faq-item__head {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    font-size: 1.2rem;
}
.faq-item__body {
    padding: 10px 20px 10px 40px;
}




.similar-games {
    padding: 60px 0;
    background-color: #f8fafc;
}
.similar-games__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--black);
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 500px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}
.game-card {
    text-decoration: none;
    color: var(--black);
    transition: transform 0.2s;
    display: block;
}
.game-card:hover {
    transform: translateY(-8px);
}
.game-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.9;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.game-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.game-card:hover .game-card__img img {
    transform: scale(1.05);
}
.game-card__title {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    display: block;
}





.footer {
    background-color: var(--black);
    color: #cbd5e1;
    padding: 40px 0 120px;
}
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #334155;
}
.footer__logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 120px;
}
.footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}
.footer__menu {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer__menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}
.footer__menu a:hover {
    text-decoration: underline;
}
.footer__middle {
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid #334155;
}
.footer__bottom {
    padding-top: 25px;
    text-align: left;
    font-size: 0.8rem;
}






.cta-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    border-radius: 60px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
.cta-popup.show {
    opacity: 1;
    visibility: visible;
}
.cta-popup__icon {
    font-size: 2rem;
    background: var(--secondary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}
.cta-popup__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-popup__text {
    font-weight: 500;
    color: var(--black);
    font-size: 1rem;
}
.cta-popup__text span {
    font-size: 1.2rem;
    font-weight: bold;
}
.cta-popup .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}





@media (max-width: 780px) {
    .header__container {
        flex-wrap: wrap;
    }
    .header__menu-toggle {
        display: inline-flex;
    }
    .header__nav {
        display: none;
        width: 100%;
        margin: 0;
        padding-top: 4px;
        order: 4;
    }
    .header__nav.is-open {
        display: block;
    }
    .header__nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }
    .header__nav ul li + li {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    .header__nav ul a {
        padding: 14px 18px;
        font-size: 18px;
    }
    .btn--play-header {
        min-height: 46px;
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .hero {
        padding: 60px 0 40px;
    }
    .hero__content {
        flex: none;
        width: 100%;
    }
    .hero__image {
        max-width: 320px;
        margin: 0 auto;
    }


    .best-prod-item__info {
        flex: none;
        width: calc(100% - 120px);
    }


    .cta-popup {
        width: calc(100% - 40px);
        border-radius: 50px;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 16px;
    }
    .cta-popup__text {
        font-size: 0.85rem;
    }
    .cta-popup__text span {
        font-size: 1rem;
        font-weight: bold;
    }
    .cta-popup__icon {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}



@media (max-width: 550px) {

    .hero__title {
        font-size: 1.8rem;
    }
    .hero__title span {
        font-size: 2.2rem;
    }


    .content-block h2 {
        font-size: 2rem;
        line-height: 1.2;
    }


    .best-prod-item__thumb {
        margin: 0 auto;
    }
    .best-prod-item__info {
        width: 100%;
        text-align: center;
    }
    .best-prod-item__rating {
        width: 100%;
        text-align: center;
    }
    .best-prod-item__button {
        margin: 0 auto;
    }


    .gallery__list {
        width: calc(100% + 16px);
        margin-left: -8px;
    }
    .gallery-item {
        width: calc(50% - 16px);
        margin: 0 8px 16px;
    }

}
