/* PrimeLang.ru — SEO Website Styles */

:root {
    --bg: #0f1117;
    --bg2: #1a1d27;
    --bg3: #242836;
    --text: #e8eaf0;
    --text2: #9ba3b5;
    --accent: #6c5ce7;
    --accent2: #a29bfe;
    --green: #00b894;
    --orange: #fdcb6e;
    --radius: 12px;
    --max-w: 1100px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17px;
}

a { color: var(--accent2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: var(--bg2);
    border-bottom: 1px solid var(--bg3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}
.header .container { display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 22px; }
.logo-icon { font-size: 28px; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav-link { color: var(--text2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--accent2); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; margin-left: auto; }

/* Hero */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 2.4em; margin-bottom: 12px; line-height: 1.2; }
.hero-sub { color: var(--text2); font-size: 1.2em; }

.lang-hero { text-align: center; padding: 40px 0 30px; }
.lang-hero h1 { font-size: 2em; margin-bottom: 10px; }
.lang-hero p { color: var(--text2); margin-bottom: 20px; }

/* Language Cards */
.lang-cards { padding: 30px 0; }
.lang-cards h2 { text-align: center; margin-bottom: 30px; font-size: 1.5em; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.lang-card {
    background: var(--bg2);
    border: 1px solid var(--bg3);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    color: var(--text);
}
.lang-card:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--text); }
.lang-flag { font-size: 40px; display: block; margin-bottom: 8px; }
.lang-card h3 { font-size: 1em; margin-bottom: 4px; }
.lang-card p { color: var(--text2); font-size: 0.85em; }
.card-link { color: var(--accent2); font-size: 0.85em; display: inline-block; margin-top: 8px; }

/* Articles List */
.latest-articles, .articles-list { padding: 30px 0; }
.latest-articles h2 { margin-bottom: 24px; font-size: 1.5em; }
.article-card {
    background: var(--bg2);
    border: 1px solid var(--bg3);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--accent); }
.article-lang { font-size: 0.8em; color: var(--accent2); font-weight: 500; }
.article-card h2, .article-card h3 { margin: 6px 0 8px; font-size: 1.15em; line-height: 1.4; }
.article-card h2 a, .article-card h3 a { color: var(--text); }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--accent2); }
.article-card p { color: var(--text2); font-size: 0.9em; margin-bottom: 8px; }
.article-card time { color: var(--text2); font-size: 0.8em; }

/* Article Full */
.article-full { padding: 20px 0 40px; }
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: 2em; line-height: 1.3; margin-bottom: 12px; }
.article-meta { display: flex; gap: 16px; color: var(--text2); font-size: 0.9em; }

.article-content {
    font-size: 1.05em;
    line-height: 1.8;
}
.article-content h2 { font-size: 1.5em; margin: 32px 0 16px; color: var(--accent2); }
.article-content h3 { font-size: 1.2em; margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 28px;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg2);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text2);
}
.article-content strong { color: var(--text); }

/* Bot CTA */
.bot-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #4834d4 100%);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
    text-align: center;
}
.bot-cta h3 { font-size: 1.3em; margin-bottom: 10px; color: #fff; }
.bot-cta p { color: rgba(255,255,255,0.9); margin-bottom: 16px; font-size: 1em; }
.cta-button {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05em;
    transition: transform 0.2s, background 0.2s;
}
.cta-button:hover { transform: scale(1.04); background: #00a884; color: #fff; }

/* Related */
.related-articles { padding: 30px 0; }
.related-articles h2 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-card {
    background: var(--bg2);
    border: 1px solid var(--bg3);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color 0.2s;
    color: var(--text);
}
.related-card:hover { border-color: var(--accent); color: var(--text); }
.related-card h3 { font-size: 0.95em; line-height: 1.4; margin-bottom: 8px; }
.related-card time { color: var(--text2); font-size: 0.8em; }

/* Breadcrumbs */
.breadcrumbs { padding: 16px 0 8px; }
.breadcrumbs ol { display: flex; gap: 8px; list-style: none; font-size: 0.85em; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--text2); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text2); }
.breadcrumbs li:last-child { color: var(--text2); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 30px 0; }
.page-link {
    background: var(--bg2);
    border: 1px solid var(--bg3);
    padding: 10px 20px;
    border-radius: var(--radius);
    color: var(--accent2);
}
.page-link:hover { border-color: var(--accent); }
.page-info { color: var(--text2); }

/* SEO Text */
.seo-text {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 30px;
    margin: 30px 0;
}
.seo-text h2 { margin-bottom: 14px; font-size: 1.3em; }
.seo-text h3 { margin: 18px 0 10px; font-size: 1.1em; }
.seo-text p { color: var(--text2); margin-bottom: 12px; }
.seo-text ul { padding-left: 24px; color: var(--text2); }
.seo-text li { margin-bottom: 6px; }

/* Error Page */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 2em; margin-bottom: 16px; }
.error-page p { color: var(--text2); margin-bottom: 24px; }

/* Footer */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--bg3);
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 24px; }
.footer-col h4 { margin-bottom: 12px; font-size: 1em; }
.footer-col p { color: var(--text2); font-size: 0.9em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text2); font-size: 0.9em; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid var(--bg3); padding-top: 16px; text-align: center; }
.footer-bottom p { color: var(--text2); font-size: 0.85em; }

/* Mobile */
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg2);
        padding: 16px 20px;
        border-bottom: 1px solid var(--bg3);
        gap: 12px;
    }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 1.6em; }
    .article-header h1 { font-size: 1.5em; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
