/* ===========================================================================
   СИБИРЬ — основной стиль
   =========================================================================== */

/* ─── Шрифт ────────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'AvanteInt';
    src: url('../fonts/ofont.ru_a_AvanteInt.woff2') format('woff2'),
         url('../fonts/ofont.ru_a_AvanteInt.woff')  format('woff'),
         url('../fonts/ofont.ru_a_AvanteInt.ttf')   format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #121212;
    --bg-2: #1a1a1a;
    --accent: #ff6b35;
    --accent-hover: #ff8555;
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
    --border: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'AvanteInt', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'AvanteInt', -apple-system, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.1;
    font-weight: 700;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
   /* background:
        linear-gradient(180deg, rgba(18,18,18,0.45) 0%, rgba(18,18,18,0.85) 60%, #121212 100%),
        url('../img/fon.jpg') center/cover no-repeat;*/
    text-align: center;
    padding: 80px 20px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    margin: 0 0 0.5rem;
    /* text-shadow убран — к картинкам не применяется */
}

.hero-logo {
    display: block;
    height: clamp(90px, 18vw, 220px);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    /* Мягкое свечение вокруг логотипа, как было у текста */
    filter: drop-shadow(0 6px 40px rgba(0,0,0,0.65));
}


.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Онлайн-бейдж */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.35);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.online-badge strong { color: var(--accent); font-weight: 600; }

/* ─── Кнопки ───────────────────────────────────────────────────────────── */
.btn-accent,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-accent {
    gap: 0.7rem;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 28px rgba(255,107,53,0.4);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255,107,53,0.55);
}

.btn-accent:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 14px rgba(255,107,53,0.5);
}

/* Маленькая кнопка для шагов */
.btn-accent.btn-sm {
    padding: 0.7rem 1.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}

.btn-accent.btn-sm:hover {
    box-shadow: 0 8px 22px rgba(255,107,53,0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost:active {
    transform: scale(0.98);
    background: rgba(255,107,53,0.08);
}

.btn-accent:focus-visible,
.btn-ghost:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Секции ───────────────────────────────────────────────────────────── */
.section { padding: 100px 20px; }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.section-title span { color: var(--accent); }

/* ─── Карточки ─────────────────────────────────────────────────────────── */
.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all .3s ease;
}

.feature-card:hover {
    border-color: rgba(255,107,53,0.5);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255,107,53,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    color: var(--accent);
}

.feature-card h3 { font-size: 1.6rem; margin-bottom: 0.7rem; color: #fff; }
.feature-card p  { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ─── Галерея ──────────────────────────────────────────────────────────── */
.shot {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    transition: all .3s;
}

.shot:hover { border-color: var(--accent); transform: scale(1.02); }

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

#gameplay .shot {
    cursor: zoom-in;
    position: relative;
}

#gameplay .shot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ─── Шаги ─────────────────────────────────────────────────────────────── */
.step {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-num {
    font-family: 'AvanteInt', -apple-system, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.step h3 { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.step p  { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.step .btn-accent.btn-sm { align-self: flex-start; }

/* ─── Финальный CTA ────────────────────────────────────────────────────── */
.cta-final {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 20px;
    text-align: center;
}

.cta-final h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    margin-bottom: 1rem;
}

.cta-final p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2.5rem; }

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Финальный CTA: обе кнопки ghost, hover = accent */
.cta-final .btn-ghost:hover,
.cta-final .btn-ghost:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255,107,53,0.55);
    outline: none;
}

.cta-final .btn-ghost:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 18px rgba(255,107,53,0.4);
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-2);
    position: relative;
    padding: 72px 0 24px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.site-footer .footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-footer .footer-col {
    flex: 1 1 280px;
}

.site-footer .footer-logo img {
    height: 48px;
    width: auto;
    opacity: 0.9;
    transition: opacity .2s;
}

.site-footer .footer-logo:hover img { opacity: 1; }

.footer-status { text-align: center; }

.footer-status .rate-img {
    max-width: 300px;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.footer-status .status-line {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.footer-status .status-line b {
    color: var(--text);
    font-weight: 600;
}

.footer-status #status-text,
.footer-status #online-text {
    color: var(--text);
    font-weight: 500;
}

.footer-copy {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all .2s;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--accent);
    background: rgba(255,107,53,0.08);
    outline: none;
}

.footer-social svg { width: 120px; height: auto; }

/* ─── Navbar ───────────────────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    transition: background .3s ease, border-color .3s ease;
}

.site-nav .nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav .nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: filter .25s ease;
}

.site-nav .nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-nav .nav-logo:hover {
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.6));
}

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav .nav-links a {
    display: inline-block;
    padding: 0.6rem 1rem;
    font-family: 'AvanteInt', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;          /* было 400 — жирнее, заметнее */
    text-transform: uppercase; /* капс — «навигационный» вид */
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color .2s, background .2s;
    position: relative;
}

.site-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform .25s ease;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a:focus-visible {
    color: var(--text);
    background: rgba(255, 107, 53, 0.06);
    outline: none;
}

.site-nav .nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.site-nav .nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text);
}

.site-nav .nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-nav .nav-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ─── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.94);
    transition: transform .25s ease;
    display: block;
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
    outline: none;
}

body.lightbox-open {
    overflow: hidden;
}

/* ─── Media ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .site-nav .nav-toggle { display: inline-flex; }

    .site-nav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
    }

    .site-nav.open .nav-links {
        max-height: 400px;
        padding: 1rem;
    }

    .site-nav .nav-links a {
        padding: 0.9rem 1rem;
        border-radius: 6px;
    }

    .site-nav .nav-links a::after { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 60px 20px; }
    .cta-final { padding: 60px 20px; }
    .hero { padding: 60px 16px; }

    .site-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer .footer-col { flex: 0 0 auto; }

    .footer-social { justify-content: center; }

    .lightbox { padding: 16px; }
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}