/**
 * Стили для сайта Kuzbass-Empire.ru
 * Telegram-синий + угольно-серый + золотой
 * Чистые линии, минимализм, элегантность
 */

/* ========== CSS ПЕРЕМЕННЫЕ (Адаптивная тема) ========== */

:root {
    /* Светлая тема */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;
    --text-primary: #000000;
    --text-secondary: #71717a;
    --text-hint: #a1a1aa;
    --border-color: #e4e4e7;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Бренд-цвета */
    --telegram-blue: #3390ec;
    --telegram-blue-dark: #2b7cd3;
    --coal-gray: #3f3f46;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    
    /* Акценты */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

[data-theme="dark"] {
    /* Тёмная тема (элегантный серый, не чёрный) */
    --bg-primary: #2d2d2d;
    --bg-secondary: #3a3a3a;
    --bg-tertiary: #4a4a4a;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --text-hint: #a1a1aa;
    --border-color: #4a4a4a;
    --shadow: rgba(0, 0, 0, 0.4);
}

/* ========== ОБЩИЕ СТИЛИ ========== */

* {
    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;
}

a {
    color: var(--telegram-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== ШАПКА ========== */

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.95);
}

[data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.95);
}

.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: 700;
    color: var(--text-primary);
}

.header-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.header-nav a:hover {
    color: var(--telegram-blue);
}

.btn-login {
    padding: 10px 20px;
    background: var(--telegram-blue);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(51, 144, 236, 0.3);
}

.btn-login:hover {
    background: var(--telegram-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 144, 236, 0.4);
    opacity: 1;
}

/* Переключатель темы */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: 16px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

/* Мобильное меню */
.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: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .header-nav a {
        padding: 12px 24px;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* ========== HERO СЕКЦИЯ ========== */

.hero {
    background: linear-gradient(135deg, #4fa3f7 0%, #52525b 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '⛏️';
    position: absolute;
    font-size: 400px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
}

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

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #ffffff;
    color: var(--telegram-blue) !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: #f0f9ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .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: 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ========== КАРТОЧКИ ОСОБЕННОСТЕЙ ========== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--telegram-blue);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== КАК НАЧАТЬ ========== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--telegram-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== СТАТИСТИКА ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== СКРИНШОТЫ ========== */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-hint);
    font-size: 14px;
    transition: all 0.3s;
}

.screenshot-placeholder:hover {
    border-color: var(--telegram-blue);
    color: var(--telegram-blue);
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ========== ФУТЕР ========== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--telegram-blue);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-hint);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--telegram-blue);
    color: white;
    transform: translateY(-2px);
}

/* ========== CTA БЛОК ========== */

.cta {
    background: linear-gradient(135deg, #52525b 0%, #3a3a3a 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
    border-radius: 24px;
    margin: 80px 24px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* ========== УТИЛИТЫ ========== */

.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: 40px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========== АНИМАЦИИ ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== СТРАНИЦЫ ДОКУМЕНТОВ ========== */

.document-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.document-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.document-date {
    color: var(--text-hint);
    font-size: 14px;
    margin-bottom: 32px;
}

.document-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.document-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.document-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.document-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.document-content ul,
.document-content ol {
    margin: 16px 0 16px 24px;
    color: var(--text-secondary);
}

.document-content li {
    margin-bottom: 8px;
}

.document-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.document-content a {
    color: var(--telegram-blue);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .document-content {
        padding: 24px;
    }
    
    .document-title {
        font-size: 24px;
    }
}

