/* --- ОСНОВНЕ --- */
:root {
    --primary-color: #FDB515;
    --rad-green: #8aff00;
    --dark-bg: #0b0c0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

h1,
h2,
h3,
.section-title,
.stalker-btn,
.header-buy-btn,
.header-nav a {
    font-family: 'Orbitron', sans-serif;
}

/* --- ВІДЕО ТА ЕФЕКТИ ЕКРАНУ --- */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: -2;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 40px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 30px;
}

.gsc-logo,
.game-logo {
    height: 35px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 30px;
    margin-left: 10px;
}

.header-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(253, 181, 21, 0.5);
}

.header-right {
    gap: 25px;
}

.socials-header {
    display: flex;
    gap: 15px;
}

.socials-header a {
    color: #888;
    font-size: 18px;
    transition: 0.3s;
}

.socials-header a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--primary-color);
}

/* --- ВИБІР МОВИ --- */
.lang-wrapper {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #aaa;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #222;
    padding: 25px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 40px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    color: #999;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    transition: 0.2s;
}

.lang-menu a:hover {
    color: #fff;
}

.lang-menu a.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* --- КНОПКИ --- */
.header-buy-btn {
    display: flex;
    align-items: center;
    background: #EAE3D2;
    color: #000;
    text-decoration: none;
    height: 42px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.3s;
    clip-path: polygon(2% 0, 98% 0, 100% 5%, 100% 95%, 98% 100%, 2% 100%, 0 95%, 0 5%);
}

.header-buy-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(234, 227, 210, 0.5);
}

.header-buy-btn .btn-icon {
    background: var(--primary-color);
    height: 100%;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
}

.header-buy-btn .btn-text {
    padding: 0 15px;
    letter-spacing: 1px;
}

.header-buy-btn .btn-arrow {
    padding-right: 12px;
    font-size: 14px;
}

/* Універсальна кнопка STALKER */
.stalker-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: all 0.3s ease-in-out;
    height: 65px;
    cursor: pointer;
}

.stalker-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(253, 181, 21, 0.4);
    transform: translateY(-3px);
}

.btn-accent {
    background: #000;
    color: var(--primary-color);
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Акцент на радіацію */
.hero .btn-accent i.fa-radiation {
    color: var(--rad-green);
    text-shadow: 0 0 10px var(--rad-green);
}

.btn-text {
    padding: 0 25px;
    letter-spacing: 2px;
}

.btn-arrow {
    padding-right: 15px;
    font-size: 18px;
}

/* Кнопки в картках */
.btn-small-size {
    height: 45px;
    font-size: 16px;
}

.btn-small-size .btn-accent {
    width: 45px;
    font-size: 16px;
}

.btn-small-size .btn-text {
    padding: 0 15px;
}

/* --- ВИПАДАЮЧЕ МЕНЮ КНОПОК --- */
.buy-wrapper {
    position: relative;
    display: inline-block;
}

.buy-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 250px;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.buy-wrapper:hover .buy-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.hero .buy-menu {
    left: 50%;
    transform: translateX(-50%);
}

.header-right .buy-menu {
    left: auto;
    right: 0;
}

.edition-card .buy-menu {
    top: auto;
    bottom: calc(100% + 5px);
}

.edition-card .buy-wrapper:hover .buy-menu {
    top: auto;
    bottom: 100%;
}

.buy-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: 0.2s;
}

.buy-menu a:hover {
    background: rgba(253, 181, 21, 0.1);
    color: var(--primary-color);
}

.buy-menu i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 110px);
    line-height: 1;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero .subtitle {
    font-size: 20px;
    letter-spacing: 15px;
    color: var(--primary-color);
    margin-bottom: 70px;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* Пульсація головної кнопки для ієрархії */
.hero .buy-wrapper {
    animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 0px rgba(253, 181, 21, 0));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(253, 181, 21, 0.6));
    }
}

/* --- СЕКЦІЇ (Більше повітря) --- */
.section-title {
    font-size: 48px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 4px;
    color: #fff;
}

.about-section {
    padding: 140px 50px;
    /* Збільшено відступи */
    background: #0b0c0b;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: -30px;
    margin-bottom: 60px;
}

.title-divider .line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.title-divider i {
    color: var(--primary-color);
    font-size: 14px;
    text-shadow: 0 0 10px var(--primary-color);
}

.about-content {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-description {
    font-size: 20px;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 35px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.about-list li::before {
    content: "■";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 4px;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.pegi-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #e30613;
    color: white;
    width: 60px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.pegi-number {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    margin-top: 5px;
}

.pegi-text {
    font-size: 8px;
    background: #000;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 2px 0;
    margin-top: auto;
}

/* --- MEDIA SECTION --- */
.media-section {
    padding: 140px 0;
    background: var(--dark-bg);
    position: relative;
}

.media-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 0 50px 60px 50px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.media-slider::-webkit-scrollbar {
    height: 6px;
}

.media-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 35vw;
    border-radius: 4px;
}

.media-slider::-webkit-scrollbar-thumb {
    background: rgba(253, 181, 21, 0.5);
    border-radius: 4px;
}

.media-slider::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.media-item {
    flex: 0 0 auto;
    width: 60vw;
    max-width: 700px;
    background: #111;
    overflow: hidden;
    border-radius: 8px;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.8);
}

.media-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* --- EDITIONS SECTION --- */
.editions-section {
    padding: 140px 50px;
    background: url('assets/img/noise.png'), #080808;
}

.editions-grid,
.detailed-editions-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.edition-card,
.detailed-edition-card {
    background: #111111;
    width: 380px;
    position: relative;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* GLOW ТА ХОВЕР КАРТОК */
.edition-card:hover,
.detailed-edition-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(253, 181, 21, 0.15);
    border-top-color: var(--primary-color);
}

.accent-card:hover {
    box-shadow: 0 20px 50px rgba(31, 138, 76, 0.2);
    border-top-color: #1f8a4c;
}

.card-img {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-img img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.card-features-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
}

.edition-card:hover .card-features-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.edition-card:hover .card-img img {
    transform: scale(1.05);
    filter: blur(5px) brightness(0.2);
}

.edition-features {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.edition-features li {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.edition-features li i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.edition-features li.disabled {
    color: #555;
    text-decoration: line-through;
}

.edition-features li.disabled i {
    color: #444;
}

.card-info {
    position: relative;
    z-index: 10;
    padding: 35px 30px;
    background: #111111;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(253, 181, 21, 0.3);
}

/* --- РОЗШИРЕНІ СПИСКИ (Для сторінки buy.html) --- */
.detailed-features {
    list-style: none;
    padding: 25px 0;
    margin: 20px 0;
    flex-grow: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detailed-features li {
    color: #ddd;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.detailed-features li.sub-item {
    color: #999;
    font-size: 15px;
    padding-left: 28px;
    margin-top: -10px;
}

.detailed-features li i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background: #050505;
    padding: 80px 50px 40px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.socials {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #555;
}

.socials i:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
    text-shadow: 0 0 15px var(--primary-color);
}

footer p {
    font-size: 15px;
    color: #444;
    letter-spacing: 1px;
}

/* --- АНІМАЦІЇ ПРИ СКРОЛІ --- */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-fade-up.show-anim {
    opacity: 1;
    transform: translateY(0);
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
.mobile-menu-btn {
    display: none;
    color: var(--primary-color);
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 1100px) {
    .mobile-menu-btn {
        display: block;
    }

    .header-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        text-align: center;
        border-bottom: 2px solid var(--primary-color);
        display: none;
    }

    .header-nav.active {
        display: flex;
    }

    .socials-header {
        display: none;
    }

    .header-buy-btn {
        height: 36px;
        font-size: 14px;
    }

    .header-buy-btn .btn-icon {
        width: 36px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 45px;
        letter-spacing: 4px;
    }

    .hero .subtitle {
        font-size: 14px;
        letter-spacing: 8px;
    }

    .about-section,
    .editions-section,
    .media-section {
        padding: 80px 20px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

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

    .media-item {
        width: 85vw;
        height: 250px;
    }

    .media-slider {
        padding: 0 20px 40px 20px;
    }

    .edition-card,
    .detailed-edition-card {
        width: 100%;
        max-width: 400px;
    }
}
