/* ========================================
   СТАТЬИ О ПОГОВОРКАХ - ОПТИМИЗИРОВАННЫЕ СТИЛИ
   ======================================== */

.proverb-article {
    max-width: 100%;
    margin: 0;
}

/* Введение */
.article-intro {
    font-size: 1.15em;
    line-height: 1.8;
    color: #555;
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #e0e0e0;
    margin-bottom: 40px;
}

.article-intro p {
    margin: 0 0 15px 0;
}

.article-intro p:last-child {
    margin-bottom: 0;
}

/* Оглавление (TOC) */
.toc {
    background: #f0f4f8;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.toc__title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.toc__title p {
    margin: 0;
}

.toc .line {
    height: 2px;
    background: linear-gradient(90deg, #667eea, transparent);
    margin-bottom: 15px;
}

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

.toc__list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.toc__list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.toc__list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.toc__list a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Основные разделы по странам */
.country-section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
}

/* Заголовок H2 */
.country-section h2 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    position: relative;
}

/* Вводный текст после H2 */
.section-intro {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.section-intro p {
    margin: 0;
}

/* Подразделы внутри страны */
.proverb-section {
    margin-bottom: 40px;
}

.proverb-section h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ========================================
   УПРОЩЁННЫЙ СПИСОК ПОГОВОРОК (ГЛАВНОЕ!)
   ======================================== */

.proverbs {
    margin: 20px 0;
}

.proverbs > p {
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.7;
    color: #333;
}

.proverbs > p:last-child {
    border-bottom: none;
}

/* Жирный текст - сама поговорка */
.proverbs strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.05em;
}

/* Курсив - дополнительные комментарии */
.proverbs em {
    color: #666;
    font-style: italic;
    font-size: 0.95em;
}

/* Code - для английских поговорок */
.proverbs code {
    background: #f0f7ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
    color: #0066cc;
    font-weight: normal;
}

/* Mark - выделение особо важных поговорок */
.proverbs mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: inherit;
}

/* Заключение */
.article-conclusion {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    background: #f0f7ff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-top: 50px;
}

.article-conclusion p {
    margin: 0 0 15px 0;
}

.article-conclusion p:last-child {
    margin-bottom: 0;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .country-section h2 {
        font-size: 1.6em;
        padding-bottom: 12px;
    }
    
    .proverb-section h3 {
        font-size: 1.3em;
    }
    
    .article-intro,
    .section-intro {
        font-size: 1.05em;
        padding: 20px;
    }
    
    .proverbs > p {
        font-size: 0.95em;
    }
    
    .toc {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .country-section h2 {
        font-size: 1.4em;
    }
    
    .proverb-section h3 {
        font-size: 1.2em;
    }
    
    .proverbs code {
        display: block;
        margin-bottom: 5px;
    }
}