*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-main: #181a1f;
    --bg-card: #21242b;
    --bg-hover: #2b2f3a;
    --text-main: #e5e8ed;
    --text-sub: #7a8294;
    --accent: #ffd000;
    --tg: #24A1DE;
    --tg-hover: #1c8bc5;
    --vk: #0077FF;
    --vk-hover: #005ecb;
    --radius: 12px;
    --container: 1200px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.material-icons { vertical-align: middle; }

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 18px;
}
.site-logo img { width: 32px; height: 32px; object-fit: contain; }
.header-actions { display: flex; gap: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-hover); }
.btn-vk { background: var(--vk); color: #fff; }
.btn-vk:hover { background: var(--vk-hover); }

/* Main Content */
.site-main { flex: 1; padding: 60px 0 80px; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* Hero */
.hero { margin-bottom: 40px; }
.hero-title { font-size: clamp(36px, 6vw, 52px); font-weight: 800; margin-bottom: 20px; background: linear-gradient(135deg, #fff, var(--text-sub)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: var(--text-sub); font-size: 16px; margin-bottom: 16px; max-width: 800px; }
.hero-desc strong { color: var(--text-main); }

/* Alert */
.alert {
    background: rgba(255, 208, 0, 0.06);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 40px;
}
.alert-icon { color: var(--accent); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.alert p { color: #e6c248; font-size: 14px; line-height: 1.5; }

/* Docs */
.docs { margin-bottom: 50px; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.doc-link:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.doc-link .material-icons { color: var(--accent); }

/* News */
.news { margin-bottom: 40px; }
.news-placeholder {
    background: var(--bg-card);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-sub);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.news-placeholder .material-icons { font-size: 32px; opacity: 0.5; }

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 30px 0;
    margin-top: auto;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-legal { color: var(--text-sub); font-size: 13px; line-height: 1.6; }
.footer-legal p { margin-bottom: 6px; }
.footer-age {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-sub);
    border: 2px solid var(--text-sub);
    border-radius: 6px;
    padding: 6px 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-wrap { flex-direction: column; text-align: center; gap: 16px; }
    .header-actions { width: 100%; justify-content: center; }
    .btn { flex: 1; justify-content: center; }
    .site-main { padding: 40px 0 60px; }
    .hero-title { font-size: 32px; }
    .docs-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
    .header-actions { flex-direction: column; }
    .alert { flex-direction: column; align-items: center; text-align: center; }
}