@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Space+Mono:wght@400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Mono', monospace;
    background: #fff;
    color: #1f1f1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
}

:root {
    --color-bg: #ffffff;
    --color-dark: #262626;
    --color-darker: #1f1f1f;
    --color-accent: #ff4a3b;
    --color-red: #9a0c00;
    --color-text: #1f1f1f;
    --font-heading: 'Italiana', serif;
    --font-body: 'Space Mono', monospace;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 18.125px;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 74, 59, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.site-header {
    background: var(--color-dark);
    padding: 10px 60px;
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo__text {
    font-family: var(--font-heading);
    font-size: 30px;
    color: #fff;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 37.5px;
    font-family: var(--font-body);
    font-size: 16px;
    white-space: nowrap;
}

.nav__link {
    color: #fff;
    transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-accent);
}

.burger {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 14px;
}

.burger img {
    width: 100%;
    height: 100%;
}

.site-footer {
    background: var(--color-dark);
    padding: 60px 60px 0;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 11.25px;
    width: 400px;
    max-width: 400px;
}

.footer-contact {
    display: flex;
    gap: 9.375px;
    align-items: center;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.3;
}

.footer-contact--top {
    align-items: flex-start;
}

.footer-contact__icon {
    width: 12.5px;
    height: 12.5px;
    flex-shrink: 0;
}

.footer-logo {
    width: 200px;
    height: 140px;
    object-fit: cover;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: inline-flex;
    width: 60.798px;
    height: 60.798px;
    transition: opacity 0.2s ease;
}

.footer-social:hover {
    opacity: 0.8;
}

.footer-social img {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    background: var(--color-darker);
    padding: 10px 60px 11px;
    border-radius: 3.125px 3.125px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 18.125px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-info {
    display: flex;
    gap: 15.625px;
    flex-wrap: wrap;
}

.footer-info a {
    color: #fff;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--color-accent);
}

.footer-copy__accent {
    color: var(--color-accent);
}

.section {
    padding: 60px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section--full {
    max-width: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 1;
    color: var(--color-darker);
    text-transform: capitalize;
    margin: 0;
}

.section-title--center {
    text-align: center;
}

.text-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}

.text-body p + p {
    margin-top: 24px;
}

.hero {
    position: relative;
    padding: 60px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
    max-width: 1080px;
}

.hero__title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 100px;
    line-height: 0.9;
    text-transform: capitalize;
    margin: 0;
    width: 100%;
}

.hero__text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    text-align: right;
    max-width: 824px;
    width: 100%;
}

.hero__text p + p {
    margin-top: 24px;
}

.hero__cta-wrap {
    width: 100%;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.about__image {
    width: 439.484px;
    height: 337.663px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.about__content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.why {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.why__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.why__row {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.why__row--bottom {
    gap: 16px;
}

.why__card {
    background: var(--color-red);
    border-radius: 10px;
    color: #fff;
    padding: 20px 9px;
    height: 216px;
    width: 257.806px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-family: var(--font-body);
}

.why__card-num {
    font-size: 41.806px;
    line-height: 1.16;
    text-transform: capitalize;
    margin: 0;
    white-space: nowrap;
}

.why__card-text {
    font-size: 16px;
    line-height: 1.3;
    width: 239px;
    margin: 0;
}

.why__img {
    width: 257.806px;
    height: 216px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.why__text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.3;
    color: #000;
    width: 247px;
    flex-shrink: 0;
}

.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.faq__item {
    border: 1px solid #000;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
}

.faq__head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.faq__q {
    flex: 1 0 0;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

.faq__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-top: 2px;
}

.faq__a {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    margin-top: 10px;
    display: none;
}

.faq__item--open .faq__icon {
    transform: rotate(45deg);
}

.faq__item--open .faq__a {
    display: block;
}

.cta-banner {
    position: relative;
    background: var(--color-red);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    width: 100%;
}

.cta-banner__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 1;
    color: #fff;
    text-align: center;
    text-transform: capitalize;
    max-width: 1080px;
    margin: 0;
}

.cta-banner__img {
    position: absolute;
    width: 223px;
    height: 289px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.discover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.discover__content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.discover__image {
    width: 439.484px;
    height: 337.663px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.catalog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.catalog__lead {
    text-align: center;
    max-width: 1080px;
    width: 100%;
}

.catalog__grid {
    position: relative;
    width: 100%;
    height: 515.197px;
}

.catalog__card {
    position: absolute;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.catalog__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.catalog__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.catalog__card--1 {
    left: 0.16%;
    top: 0;
    width: 15.39%;
    height: 156.648px;
}

.catalog__card--2 {
    left: 42.39%;
    top: 358.55px;
    width: 15.39%;
    height: 156.648px;
}

.catalog__card--3 {
    left: 84.61%;
    top: 0;
    width: 15.39%;
    height: 156.648px;
}

.catalog__card--4 {
    left: 0;
    top: 177.53px;
    width: 40.69%;
    height: 337.663px;
}

.catalog__card--5 {
    left: 42.47%;
    top: 0;
    width: 32.15%;
    height: 337.663px;
}

.catalog__card--6 {
    left: 76.23%;
    top: 177.53px;
    width: 23.77%;
    height: 337.663px;
}

.catalog__mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.catalog__mobile-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.catalog__mobile-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.catalog__mobile-card:hover {
    transform: translateY(-4px);
}

.catalog__mobile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.catalog__mobile-card--sm {
    width: 166.221px;
    height: 156.648px;
}

.catalog__mobile-card--lg {
    width: 100%;
    max-width: 439.484px;
    height: 337.663px;
}

.catalog__mobile-card--md {
    width: 100%;
    max-width: 347.236px;
    height: 337.663px;
}

.catalog__mobile-card--sm-tall {
    width: 100%;
    max-width: 256.728px;
    height: 337.663px;
}

.game-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.game-hero__content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.game-hero__title {
    font-family: var(--font-heading);
    font-size: 60px;
    line-height: 1;
    color: var(--color-darker);
    text-transform: capitalize;
    margin: 0;
    width: 100%;
}

.game-hero__text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    width: 100%;
}

.game-hero__image {
    width: 439.484px;
    height: 337.663px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-features {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-features__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.game-feature-card {
    background: var(--color-red);
    border-radius: 10px;
    color: #fff;
    padding: 20px 9px;
    height: 216px;
    width: 520px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    font-family: var(--font-body);
}

.game-feature-card__title {
    font-size: 26px;
    line-height: 1.16;
    text-transform: capitalize;
    margin: 0;
    width: 100%;
}

.game-feature-card__text {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    width: 100%;
}

.game-feature-img {
    width: 520px;
    max-width: 100%;
    height: 216px;
    border-radius: 10px;
    object-fit: cover;
}

.policy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.policy__title {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 1;
    color: var(--color-darker);
    text-transform: capitalize;
    margin: 0;
    width: 100%;
    max-width: 1080px;
    text-align: left;
}

.policy__body {
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}

.policy__body p {
    margin: 0 0 10px;
}

.policy__body p:last-child {
    margin-bottom: 0;
}

.policy__body ul {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 10px;
}

.policy__body ul li {
    margin: 0;
}

.policy__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.policy__body a:hover {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .site-header {
        padding: 10px 20px;
    }

    .header-inner {
        max-width: 100%;
    }

    .nav {
        display: none;
    }

    .nav--open {
        display: flex;
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--color-dark);
        padding: 20px;
        border-radius: 10px;
        flex-direction: column;
        gap: 16px;
        z-index: 100;
    }

    .site-header {
        position: relative;
    }

    .burger {
        display: block;
    }

    .section {
        padding: 40px 20px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero__inner {
        align-items: stretch;
        gap: 20px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__text {
        text-align: left;
        max-width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .about,
    .discover {
        flex-direction: column;
        gap: 20px;
    }

    .discover {
        flex-direction: column-reverse;
    }

    .about__image,
    .discover__image {
        width: 100%;
        max-width: 390px;
        height: 300px;
    }

    .about__content,
    .discover__content {
        width: 100%;
    }

    .why {
        gap: 20px;
    }

    .why__grid {
        flex-direction: column;
        gap: 20px;
    }

    .why__row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .why__card {
        width: 100%;
        max-width: 390px;
        height: auto;
        min-height: 150px;
    }

    .why__card-text {
        width: 100%;
    }

    .why__img {
        width: 100%;
        max-width: 390px;
        height: 216px;
    }

    .why__text {
        width: 100%;
        max-width: 390px;
        text-align: left;
    }

    .faq {
        gap: 20px;
    }

    .cta-banner {
        padding: 40px 20px;
    }

    .cta-banner__title {
        font-size: 50px;
    }

    .cta-banner__img {
        width: 152px;
        height: 197px;
    }

    .site-footer {
        padding: 40px 20px 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .footer-contacts {
        width: 100%;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px 20px 11px;
        text-align: center;
    }

    .catalog {
        gap: 20px;
    }

    .catalog__grid {
        display: none;
    }

    .catalog__mobile {
        display: flex;
    }

    .game-hero {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .game-hero__title {
        font-size: 28px;
    }

    .game-hero__image {
        width: 100%;
        max-width: 390px;
        height: 300px;
    }

    .game-feature-card {
        width: 100%;
        max-width: 390px;
        height: auto;
        min-height: 130px;
    }

    .game-feature-img {
        width: 100%;
        max-width: 390px;
        height: 216px;
    }

    .policy {
        gap: 20px;
    }

    .policy__title {
        font-size: 28px;
    }
}

/* ===== Hover effects ===== */
.logo__icon,
.footer-logo {
    transition: transform 0.3s ease;
}

.logo:hover .logo__icon,
.footer-logo:hover {
    transform: scale(1.06) rotate(-3deg);
}

.about__image,
.discover__image,
.game-hero__image,
.why__img,
.game-feature-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about__image:hover,
.discover__image:hover,
.game-hero__image:hover,
.why__img:hover,
.game-feature-img:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.why__card,
.game-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why__card:hover,
.game-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(154, 12, 0, 0.3);
}

.faq__item {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq__item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nav__link {
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* ===== Floating CTA mascot ===== */
@keyframes float {
    0%,
    100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, calc(-50% - 12px));
    }
}

.cta-banner__img {
    animation: float 3.5s ease-in-out infinite;
}

/* ===== Scroll reveal ===== */
.has-reveal .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 744px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    padding: 40px;
    transform: translateY(calc(100% + 48px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, visibility 0.45s ease;
}

.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner__title {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1;
    color: var(--color-darker);
    margin: 0;
}

.cookie-banner__text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}

.cookie-banner__text p + p {
    margin-top: 16px;
}

.cookie-banner__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    min-width: 160px;
}

@media (max-width: 1024px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 24px;
        border-radius: 16px;
    }

    .cookie-banner__title {
        font-size: 28px;
    }

    .cookie-banner__btn {
        flex: 1 0 0;
        min-width: 0;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .has-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cta-banner__img {
        animation: none;
    }

    .btn:hover,
    .about__image:hover,
    .discover__image:hover,
    .game-hero__image:hover,
    .why__img:hover,
    .game-feature-img:hover,
    .why__card:hover,
    .game-feature-card:hover,
    .logo:hover .logo__icon,
    .footer-logo:hover {
        transform: none;
    }
}
