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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
header {
    background: #0f172a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

nav a:hover {
    color: #60a5fa;
}

/* Main */
h1 {
    text-align: center;
    margin: 2.5rem 0 0.5rem;
    font-size: 2.8rem;
    color: #1e2937;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Статьи */
.latest h2 {
    margin-bottom: 1.5rem;
    color: #1e2937;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-info {
    padding: 1.2rem;
}

.article-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.article-info a {
    text-decoration: none;
    color: inherit;
}

.article-info a:hover h3 {
    color: #2563eb;
}

/* Footer */
footer {
    background: #1e2937;
    color: #cbd5e1;
    margin-top: 4rem;
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-buttons {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 0 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.donate {
    background: #22c55e;
    color: white;
}

.donate:hover {
    background: #16a34a;
}

.advertiser {
    background: #3b82f6;
    color: white;
}

.advertiser:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    nav a { margin-left: 1rem; font-size: 0.95rem; }
}

.section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #1e2937;
}

.more-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.more-link:hover {
    text-decoration: underline;
}

/* === Быстрые ссылки на главной === */

.home-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 auto 4rem;
    max-width: 1000px;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.home-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.13);
}

.home-link-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 2rem;
}

.home-link-content {
    min-width: 0;
}

.home-link-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-link-description {
    display: block;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* Архив */
.archive-link {
    background: #0f172a;
    color: white;
}

.archive-link:hover {
    color: white;
}

.archive-link .home-link-icon {
    background: #2563eb;
    color: white;
}

.archive-link .home-link-description {
    color: #cbd5e1;
}

/* VK */
.vk-link {
    background: white;
    color: #1e2937;
    border: 1px solid #e2e8f0;
}

.vk-link:hover {
    color: #1e2937;
}

.vk-link .home-link-icon {
    background: #0077ff;
}

.vk-link .home-link-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.vk-link .home-link-description {
    color: #64748b;
}


/* Responsive */
@media (max-width: 768px) {
    .home-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .home-link {
        padding: 1.2rem;
    }
}