/* ---
Theme: Dark Mode Elegance
Font: Inter (Sans-Serif)
Language: Russian
Tone: Informative & Straightforward
--- */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- Global Resets & Variables --- */
:root {
    --bg-color: #1a202c;
    --surface-color: #2d3748;
    --primary-text-color: #e2e8f0;
    --secondary-text-color: #a0aec0;
    --accent-color: #4299e1;
    --accent-hover-color: #63b3ed;
    --border-color: #4a5568;
    --font-family-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family-main);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.7;
    font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover-color);
    text-decoration: underline;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

li {
    margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    border-bottom-color: var(--accent-color);
    color: var(--accent-hover-color);
}

/* --- Main Content & Articles --- */
.content-area {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
}

.intro-section h1 {
    margin-bottom: 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.article-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.article-card-content p {
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--accent-hover-color);
    color: #fff;
}

/* --- Single Article Page --- */
.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.article-meta {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-top: -10px;
}

.article-content a {
    font-weight: 600;
}

.cta-section {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid var(--accent-color);
}
.cta-section h3 {
    color: var(--accent-hover-color);
}
.cta-section a {
    font-size: 1.1rem;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 120px;
}

.widget {
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.3s ease;
}

.widget ul li:last-child a {
    border-bottom: none;
}

.widget ul li a:hover {
    padding-left: 10px;
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--secondary-text-color);
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content .links {
    margin-top: 10px;
}

.footer-content .links a {
    margin: 0 10px;
    color: var(--secondary-text-color);
}

/* --- Mobile Menu (Simple toggle for concept, not functional without JS) --- */
.menu-toggle {
    display: none; /* Hidden by default, would need JS to function */
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .content-area, .widget {
        padding: 20px;
    }
}
