/* Общие стили */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Заголовки */
header h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Параграфы */
p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Ссылки */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Изображения */
figure {
    margin: 30px 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

figcaption {
    font-style: italic;
    color: #666;
    margin-top: 8px;
}

/* Разделы */
section {
    margin-bottom: 40px;
}

/* Футер */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Стили для блока с похожими статьями */
.relpost-block-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.relpost-block-container a {
    display: block;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
    transition: background 0.3s;
}

.relpost-block-container a:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* Кнопка доната */
div > a[href^="https://sobe.ru"] {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    margin: 20px 0;
    font-weight: bold;
    text-align: center;
}

div > a[href^="https://sobe.ru"]:hover {
    background: #3e8e41;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .relpost-block-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    p {
        font-size: 0.95em;
    }
}