:root {
    --bg: #000000;
    --surface: #0b0b10;
    --surface-2: #12121a;
    --border: rgba(255, 255, 255, 0.09);
    --text: #ffffff;
    --muted: #9090a6;
    --tile-blue: #00a2ff;
    --tile-green: #22b100;
    --tile-orange: #ff8c00;
    --grad-brand: linear-gradient(90deg, #ff8a00 0%, #ff4e6a 38%, #8b5cf6 70%, #0088ff 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

.ambient-glow {
    position: fixed;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.13) 0%, rgba(139, 92, 246, 0.1) 45%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Навигация */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-wordmark {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.02em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 28px;
}

    .nav-links a {
        color: var(--muted);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: var(--text);
        }

/* Фирменный логотип со скриншотов */
.logo-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tile-gap, 8px);
    width: var(--logo-size, 124px);
    height: var(--logo-size, 124px);
    flex-shrink: 0;
}

.tile {
    position: relative;
    border-radius: calc(var(--logo-size, 124px) * 0.06);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.tile-blue {
    background: var(--tile-blue);
}

.tile-green {
    background: var(--tile-green);
}

.tile-orange {
    background: var(--tile-orange);
}

.pixel-glint {
    position: absolute;
    top: 16%;
    right: 16%;
    width: 22%;
    height: 22%;
}

    .pixel-glint::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.55);
    }

    .pixel-glint::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 55%;
        height: 55%;
        background: #ffffff;
    }

.orange-marks {
    position: absolute;
    bottom: 14%;
    left: 14%;
    right: 16%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: #111111;
    font-family: "Courier New", monospace;
    font-weight: 900;
    font-size: calc(var(--logo-size, 124px) * 0.14);
    line-height: 1;
    user-select: none;
}

/* Hero-секция */
.hero {
    padding: 88px 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 13px;
    color: #d6d6e6;
    margin-bottom: 26px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tile-green);
    box-shadow: 0 0 10px var(--tile-green);
}

.hero-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-wordmark {
    font-size: clamp(54px, 9vw, 108px);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 0.95;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

.anim-tiles {
    opacity: 0;
    transform: scale(0.86);
    animation: popIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.anim-win {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.anim-box {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    max-width: 650px;
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Кнопки */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    background: var(--grad-brand);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.26);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 36px rgba(255, 138, 0, 0.36);
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

    .btn-secondary:hover {
        background: var(--surface-2);
        border-color: rgba(255, 255, 255, 0.24);
    }

.btn-large {
    padding: 17px 36px;
    font-size: 16px;
}

/* Секции */
.section {
    padding: 76px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

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

    .section-header p {
        color: var(--muted);
        font-size: 16px;
    }

/* 3D-карточки в стиле Steam */
.steam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
    perspective: 1200px;
}

.steam-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
    cursor: pointer;
}

    .steam-card:hover {
        border-color: rgba(255, 255, 255, 0.28);
        box-shadow: 0 26px 50px rgba(0, 0, 0, 0.85), 0 0 32px rgba(139, 92, 246, 0.22);
    }

/* Динамический блик Steam-карточки */
.card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient( circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 35%, transparent 70% );
}

.steam-card:hover .card-glare {
    opacity: 1;
}

.card-media {
    position: relative;
    height: 210px;
    background: #07070c;
    overflow: hidden;
}

    .card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

.steam-card:hover .card-media img {
    transform: scale(1.07);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

.badge-blue {
    background: rgba(0, 162, 255, 0.25);
    color: #66c7ff;
    border: 1px solid rgba(0, 162, 255, 0.4);
}

.badge-green {
    background: rgba(34, 177, 0, 0.25);
    color: #6ee752;
    border: 1px solid rgba(34, 177, 0, 0.4);
}

.badge-orange {
    background: rgba(255, 140, 0, 0.25);
    color: #ffb347;
    border: 1px solid rgba(255, 140, 0, 0.4);
}

.card-content {
    padding: 24px;
    transform: translateZ(20px);
}

    .card-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
        transition: color 0.25s;
    }

.steam-card:hover .card-content h3 {
    color: #ff9e2c;
}

.card-content p {
    font-size: 14px;
    color: var(--muted);
}

/* Галерея фото и видео (без 3D, Bento-сетка) */
.media-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.media-item {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}

    .media-item:hover {
        border-color: rgba(255, 255, 255, 0.22);
    }

.media-video {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
}

    .media-video video {
        width: 100%;
        height: 360px;
        object-fit: cover;
        background: #050508;
        display: block;
    }

.media-photo {
    grid-column: span 4;
    cursor: zoom-in;
    display: flex;
    flex-direction: column;
}

    .media-photo img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.media-video + .media-photo img {
    height: 360px;
}

.media-photo:hover img {
    transform: scale(1.04);
}

.media-caption {
    padding: 16px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

    .media-caption .tag {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        color: #00a2ff;
        margin-bottom: 4px;
    }

    .media-caption h4 {
        font-size: 15px;
        font-weight: 600;
    }

/* Блок скачивания CTA */
.cta-box {
    position: relative;
    background: linear-gradient(180deg, #101018 0%, #09090d 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.18) 0%, rgba(0, 136, 255, 0.14) 50%, transparent 75%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 14px;
}

.cta-box p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 17px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

/* Подложка об издателе (Footer) */
.publisher-footer {
    background: #060609;
    border-top: 1px solid var(--border);
    padding: 64px 0 36px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-about {
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 340px;
}

.footer-col h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

    .footer-col a:hover {
        color: #ffffff;
    }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6d6d82;
}

/* Модальные окна и лайтбокс */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

    .modal-backdrop.active {
        display: flex;
    }

.modal-card {
    background: #0e0e15;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    max-width: 500px;
    width: 100%;
    padding: 28px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

    .spec-row span {
        color: var(--muted);
    }

    .spec-row code {
        font-size: 11px;
        color: #00a2ff;
        word-break: break-all;
        text-align: right;
    }

.modal-footer {
    margin-top: 24px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .lightbox-content p {
        margin-top: 12px;
        color: #ffffff;
        font-size: 15px;
    }

@media (max-width: 900px) {
    .media-video,
    .media-photo {
        grid-column: span 12;
    }

        .media-video video,
        .media-video + .media-photo img {
            height: 260px;
        }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
