/* =========================================
   1. GLOBAL RESET & FONTS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: white;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Шрифти заголовків */
h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Контейнер для центрування */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   1.1 HERO IMAGE BACKGROUND SYSTEM (UPDATED)
   - HERO: normal hero.webp (NO blur layers)
   - секції 2/4/6: small blur + dark green overlay (0.90)
   - секції 3/5: small blur + very light green overlay (0.90)
   - Responsible: plain black (excluded)
   - Footer excluded
   ========================================= */
:root{
    --hero-bg-image: url('hero.webp');
    --overlay-dark: rgba(5, 28, 15, 0.90);
    --overlay-light: rgba(245, 255, 245, 0.90);
    --blur-amount: 10px; /* MUCH SMALLER BLUR */
}

/* HERO keeps original bg, no pseudo background layers */
.hero-section{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                var(--hero-bg-image) no-repeat center center/cover;
}

/* sections with blurred hero */
.trending-games-section,
.features-section,
.promo-section,
.devices-section,
.reviews-section{
    position: relative;
    overflow: hidden;
}

/* blurred image layer */
.trending-games-section::before,
.features-section::before,
.promo-section::before,
.devices-section::before,
.reviews-section::before{
    content:"";
    position:absolute;
    inset:-20px;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(var(--blur-amount));
    transform: scale(1.06);
    z-index: 0;
}

/* overlay layer */
.trending-games-section::after,
.features-section::after,
.promo-section::after,
.devices-section::after,
.reviews-section::after{
    content:"";
    position:absolute;
    inset:0;
    z-index: 1;
}

/* tint mapping */
.trending-games-section::after{ background: var(--overlay-dark); } /* 2 */
.features-section::after{ background: var(--overlay-light); }      /* 3 */
.promo-section::after{ background: var(--overlay-dark); }          /* 4 */
.devices-section::after{ background: var(--overlay-light); }       /* 5 */
.reviews-section::after{ background: var(--overlay-dark); }        /* 6 */

/* keep content above */
.trending-games-section > *,
.features-section > *,
.promo-section > *,
.devices-section > *,
.reviews-section > *{
    position: relative;
    z-index: 2;
}

/* =========================================
   2. BURGER MENU & NAVIGATION
   ========================================= */
.burger-menu-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 35px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 100;
}

.burger-line {
    width: 100%;
    height: 4px;
    background-color: #a2ff00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-active .burger-line:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-active .burger-line:nth-child(2) { opacity: 0; }
.nav-active .burger-line:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.full-screen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.full-screen-nav.nav-active { opacity: 1; pointer-events: auto; }

.nav-links { list-style: none; text-align: center; }
.nav-links li { margin: 25px 0; }

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    transition: color 0.3s;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

.nav-links a:hover { color: #a2ff00; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 20px 5%;
    text-align: left;
}

.content-container {
    max-width: 600px;
    z-index: 5;
    padding-top: 60px;
    margin: 0;
    text-align: left;
}

h1 {
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 0.9;
    color: white;
}

.hero-description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #e0e0e0;
    max-width: 90%;
}

/* =========================================
   Buttons: cutout + inner triangle look on ALL buttons
   ========================================= */
.btn-cutout{
    position: relative;
    background-color: #a2ff00;
    color: #0b140d;
    border: none;
    font-weight: 900;
    font-size: 20px;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - 15px) 50%,
        100% 100%,
        0 100%,
        15px 50%
    );
    text-decoration: none;
}

/* inner triangle (subtle) */
.btn-cutout::before{
    content:"";
    position:absolute;
    inset: 6px;
    background: rgba(255,255,255,0.12);
    clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - 11px) 50%,
        100% 100%,
        0 100%,
        11px 50%
    );
    pointer-events:none;
    mix-blend-mode: overlay;
    opacity: .9;
}

.btn-cutout > span{ position: relative; z-index: 1; } /* for <a><span> */
.btn-cutout:hover { transform: scale(1.05); background-color: #b4ff33; }

.btn-play { padding: 15px 50px; margin-bottom: 40px; font-family: 'Oswald', sans-serif; }
.btn-register { width: 100%; padding: 15px; margin-top: 10px; font-family: 'Oswald', sans-serif; }
.btn-cta { padding: 14px 45px; font-family: 'Oswald', sans-serif; font-size: 18px; }

.reg-card {
    background: white;
    padding: 30px 35px;
    border-radius: 12px;
    color: #333;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    text-align: left;
}

.reg-card h3 {
    text-align: left;
    font-size: 16px;
    margin-bottom: 25px;
    color: #000;
    font-weight: 900;
}

.input-group { display: flex; gap: 15px; margin-bottom: 20px; }

.input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
    outline: none;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.input-group input:focus { border-color: #a2ff00; }

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.4;
}

.checkbox-container input {
    margin-top: 4px;
    accent-color: #a2ff00;
    transform: scale(1.2);
}

.age-limit {
    margin-top: 20px;
    font-size: 13px;
    color: white;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    opacity: 0.8;
}

.age-icon {
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* =========================================
   4. TRENDING GAMES
   ========================================= */
.trending-games-section { padding: 60px 0; }

.section-header { margin-bottom: 30px; text-align: left; }

.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }

.section-header p {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    max-width: 900px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.game-card {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #222;
    aspect-ratio: 4/3;
    position: relative;
}

.game-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   5. FEATURES
   ========================================= */
.features-section {
    padding: 80px 0;
    text-align: center;
    color: #333;
}

.section-title { font-size: 36px; margin-bottom: 10px; color: #1a1a1a; }
.section-subtitle { font-size: 16px; color: #555; margin-bottom: 50px; }

.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: #0f1210;
    color: #fff;
    width: 350px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 2px;
    transition: transform 0.3s;
    clip-path: polygon(2% 0%, 98% 1%, 100% 98%, 2% 100%, 0% 50%, 1% 5%);
}

.feature-card:nth-child(2) { clip-path: polygon(1% 1%, 99% 3%, 97% 98%, 4% 96%); }
.feature-card:nth-child(3) { clip-path: polygon(4% 0%, 96% 2%, 100% 96%, 95% 100%, 0% 98%); }

.feature-card:hover { transform: translateY(-10px); }

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #ff8c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-circle i { font-size: 32px; color: #fff; }

.card-title { color: #d4e157; margin-bottom: 15px; font-size: 20px; }
.card-text { font-size: 14px; color: #ccc; line-height: 1.6; }

/* =========================================
   6. NO PURCHASE
   ========================================= */
.promo-section {
    position: relative;
    padding: 80px 0 0 0;
    min-height: 550px;
    display: flex;
    align-items: flex-end;
}

.content-wrapper-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.text-column { flex: 1; max-width: 600px; padding-bottom: 80px; }

.sub-headline {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    color: #ddd;
    display: block;
    font-weight: 400;
}

.headline { font-size: 60px; color: #fff; line-height: 1; margin-bottom: 20px; }

.description-promo {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.image-column { flex: 0 0 auto; position: relative; bottom: -5px; }
.image-column img { max-width: 650px; height: auto; display: block; }

/* =========================================
   7. DEVICES (remove black background under devices image)
   ========================================= */
.devices-section { padding: 80px 0; color: #333; overflow: hidden; }

.content-wrapper-devices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.devices-wrapper { flex: 1.2; position: relative; padding: 20px 20px 40px 0; }

.laptop-mockup {
    width: 90%;
    background: transparent; /* removed black */
    padding: 0;            /* remove frame padding */
    border-radius: 0;
    box-shadow: none;      /* remove frame shadow */
}
.laptop-mockup img { width: 100%; display: block; border-radius: 10px; }

.text-column-devices { flex: 1; text-align: right; }
.text-column-devices h2 { font-size: 56px; color: #1a1a1a; line-height: 1; margin-bottom: 20px; }
.text-column-devices .sub-headline { color: #546e7a; }

.description-devices {
    color: #455a64;
    margin-left: auto;
    max-width: 500px;
    line-height: 1.6;
}

/* =========================================
   8. REVIEWS
   ========================================= */
.reviews-section { padding: 80px 0; text-align: center; }

.review-container { display: flex; align-items: center; justify-content: center; gap: 20px; }

.review-box { max-width: 700px; transition: opacity .25s ease, transform .25s ease; }
.review-box.is-fading { opacity: 0; transform: translateY(6px); }

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
    object-fit: cover;
}

.review-box h3 { margin-bottom: 20px; font-size: 24px; }
.review-box p { font-style: italic; color: #ccc; line-height: 1.6; margin-bottom: 20px; }
.review-box h4 { color: #a2ff00; }

.stars { color: #a2ff00; margin-top: 10px; letter-spacing: 3px; }

.nav-arrow {
    background: #a2ff00;
    color: #0f2b1d;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.nav-arrow:hover { transform: scale(1.1); }

/* =========================================
   8.5 RESPONSIBLE (plain black)
   ========================================= */
.responsible-section {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.responsible-section h3 { color: #888; margin-bottom: 10px; font-size: 18px; }

.responsible-section p {
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 13px;
    line-height: 1.5;
}

.rg-badges { display: flex; justify-content: center; gap: 10px; }

.rg-badge {
    border: 1px solid #333;
    color: #555;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background-color: #000000;
    padding: 60px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #222;
}

.footer-disclaimer p {
    font-size: 11px;
    text-transform: uppercase;
    line-height: 1.6;
    color: #555;
    max-width: 900px;
    margin: 0 auto 30px;
}

.footer-line { width: 100%; height: 1px; background-color: #222; margin-bottom: 40px; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #a2ff00; }

/* =========================================
   10. MODALS
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background-color: #1a1a1a;
    border: 2px solid #a2ff00;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    color: #fff;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #a2ff00;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    color: #a2ff00;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ccc;
}

/* =========================================
   11. COOKIE BANNER
   ========================================= */
.cookie-banner{
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3000;
    display: none;
}

.cookie-banner.active{ display: block; }

.cookie-inner{
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(0,0,0,0.88);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    border-radius: 14px;
    padding: 16px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-text{
    color: #d0d0d0;
    font-size: 13px;
    line-height: 1.5;
    max-width: 760px;
}

.cookie-link{
    color: #a2ff00;
    text-decoration: underline;
}

.cookie-actions{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn{
    font-size: 14px;
    padding: 12px 18px;
}

.cookie-btn::before{ inset: 5px; } /* keep triangle consistent */

.cookie-btn-ghost{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}
.cookie-btn-ghost:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.45);
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .headline { font-size: 48px; }
    .text-column-devices h2 { font-size: 42px; }
    .image-column img { max-width: 350px; }
}

@media (max-width: 820px){
    .cookie-inner{
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-actions{
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .hero-section { align-items: flex-start; padding: 40px 20px; justify-content: center; }
    .content-container { text-align: center; padding-top: 80px; max-width: 100%; margin: 0 auto; }
    .reg-card { text-align: center; }
    .reg-card h3 { text-align: center; }
    .age-limit { justify-content: center; text-align: center; }

    h1 { font-size: 42px; }
    .input-group { flex-direction: column; gap: 10px; }

    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .feature-card { width: 100%; }

    .content-wrapper-promo { flex-direction: column; align-items: center; }
    .text-column { text-align: center; padding-bottom: 40px; max-width: 100%; }
    .image-column { margin-left: 0; width: 100%; justify-content: center; display: flex; }
    .image-column img { max-width: 300px; }

    .content-wrapper-devices { flex-direction: column-reverse; }
    .text-column-devices { text-align: center; margin-bottom: 40px; }
    .description-devices { margin: 20px auto; }
    .devices-wrapper { width: 100%; justify-content: center; padding-right: 0; display: flex; }
    .laptop-mockup { width: 95%; }

    .review-container { flex-direction: column; }
    .nav-arrow { display: inline-flex; margin: 10px; }
}