/**
 * ВАРИАНТ 3 - Индустриальный стиль
 * Kuzbass-Empire.ru - Промышленная тематика
 */

/* ========== CSS ПЕРЕМЕННЫЕ ========== */

:root {
    /* Светлая тема - Индустриальный стиль */
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f0;
    --bg-tertiary: #e5e5e5;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-hint: #71717a;
    --border-color: #d4d4d8;
    --shadow: rgba(0, 0, 0, 0.15);
    
    /* Промышленные цвета */
    --coal-dark: #27272a;
    --coal-gray: #52525b;
    --metal-gray: #71717a;
    --rust-red: #dc2626;
    --gold-dark: #ca8a04;
    --gold: #eab308;
    --gold-light: #fbbf24;
    
    /* Telegram */
    --telegram-blue: #3390ec;
    --telegram-blue-dark: #2b7cd3;
    
    /* Акценты */
    --success: #16a34a;
    --error: #dc2626;
    --warning: #ea580c;
}

[data-theme="dark"] {
    /* Тёмная тема - Индустриальный угольный */
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-tertiary: #3a3a3c;
    --text-primary: #f5f5f5;
    --text-secondary: #d1d1d6;
    --text-hint: #98989d;
    --border-color: #48484a;
    --shadow: rgba(0, 0, 0, 0.6);
}

/* ========== ОБЩИЕ СТИЛИ ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Тонкая текстура угля на фоне (subtle) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        );
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
}

body > * {
    position: relative;
    z-index: 1;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== ШАПКА ========== */

.header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--coal-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-primary-rgb, 250, 250, 250), 0.95);
    box-shadow: 0 2px 8px var(--shadow);
}

[data-theme="dark"] .header {
    background: rgba(28, 28, 30, 0.95);
    border-bottom-color: var(--metal-gray);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.header-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.header-nav a:hover::after {
    width: 100%;
}

.btn-login {
    padding: 10px 24px;
    background: var(--coal-gray);
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.btn-login:hover {
    background: var(--coal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Переключатель темы */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: 16px;
}

.theme-toggle:hover {
    background: var(--coal-gray);
    border-color: var(--gold);
    transform: scale(1.05);
}

.theme-toggle:hover #theme-icon {
    filter: brightness(1.2);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 2px solid var(--coal-gray);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: 0 8px 16px var(--shadow);
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .header-nav a {
        padding: 12px 24px;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* ========== HERO СЕКЦИЯ (Индустриальная) ========== */

.hero {
    background: 
        linear-gradient(135deg, rgba(39, 39, 42, 0.95) 0%, rgba(82, 82, 91, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23000" width="100" height="100"/><circle fill="%23333" cx="25" cy="25" r="2"/><circle fill="%23333" cx="75" cy="75" r="2"/><circle fill="%23333" cx="75" cy="25" r="1"/><circle fill="%23333" cx="25" cy="75" r="1"/></svg>');
    color: white;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.4));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 48px;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gold);
    color: var(--coal-dark) !important;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.3);
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========== КОНТЕЙНЕРЫ ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section {
    margin-bottom: 100px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 56px;
    font-weight: 500;
}

/* ========== КАРТОЧКИ ОСОБЕННОСТЕЙ (Промышленные) ========== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: var(--rust-red);
    transition: height 0.4s;
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: -8px 8px 24px var(--shadow);
    border-color: var(--gold);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.feature-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== КАК НАЧАТЬ (Промышленные шаги) ========== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 56px;
}

.step {
    text-align: center;
    position: relative;
    padding: 24px;
}

.step::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.step:last-child::before {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--coal-gray), var(--coal-dark));
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--rust-red);
    border-radius: 50%;
}

.step-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== СТАТИСТИКА (Индустриальные счётчики) ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(234, 179, 8, 0.05) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.stat-value {
    font-size: 44px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 12px;
    position: relative;
    text-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== СКРИНШОТЫ (Промышленная рамка) ========== */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-left: 6px solid var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-hint);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
}

.screenshot-placeholder::before {
    content: '⛏️';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
}

.screenshot-placeholder:hover {
    border-color: var(--gold);
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--shadow);
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* ========== CTA БЛОК (Индустриальный призыв) ========== */

.cta {
    background: 
        linear-gradient(135deg, var(--coal-dark) 0%, var(--coal-gray) 100%);
    color: white;
    padding: 70px 32px;
    text-align: center;
    border-radius: 12px;
    margin: 100px 24px;
    border: 3px solid var(--metal-gray);
    border-top: 6px solid var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '⚙️';
    position: absolute;
    font-size: 400px;
    opacity: 0.03;
    top: 50%;
    left: -50px;
    transform: translateY(-50%) rotate(15deg);
}

.cta-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.cta-text {
    font-size: 19px;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* ========== ФУТЕР (Индустриальный) ========== */

.footer {
    background: var(--bg-secondary);
    border-top: 4px solid var(--coal-gray);
    padding: 56px 24px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
    transition: all 0.2s;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-hint);
    font-size: 13px;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--coal-gray);
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-4px);
}

/* ========== УТИЛИТЫ ========== */

.text-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ========== АДАПТИВ ========== */

@media (max-width: 768px) {
    .container {
        padding: 50px 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ========== АНИМАЦИИ ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ========== СТРАНИЦЫ ДОКУМЕНТОВ (Индустриальный стиль) ========== */

.document-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px;
}

.document-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.document-date {
    color: var(--text-hint);
    font-size: 13px;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
}

.document-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--gold);
    border-radius: 8px;
    padding: 48px;
}

.document-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 10px;
}

.document-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.document-content p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.document-content ul,
.document-content ol {
    margin: 18px 0 18px 28px;
    color: var(--text-secondary);
}

.document-content li {
    margin-bottom: 10px;
}

.document-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.document-content a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    .document-content {
        padding: 28px;
    }
    
    .document-title {
        font-size: 28px;
    }
}



