* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', serif; /* Классический журнальный шрифт для удобства чтения текстов */
    line-height: 1.6;
    color: #222;
    background-color: #fdfdfd;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 40px 0;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 2.3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.occupation {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Двухколоночный макет */
.layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Левая колонка: Меню выбора статей */
.sidebar-articles {
    flex: 0 0 360px;
    position: sticky;
    top: 20px; /* Прилипает при прокрутке десктопа */
}

.sidebar-articles h2 {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Кнопка-превью статьи */
.article-tab {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.article-tab:hover {
    border-color: #aaa;
    background-color: #fafafa;
}

.article-tab.active {
    border-color: #222;
    background-color: #f9f9f9;
    box-shadow: inset 4px 0 0 #222;
}

.media-name {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #7f8c8d;
    display: block;
    margin-bottom: 6px;
}

.tab-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #111;
}

.tab-preview {
    font-size: 0.85rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничивает превью ровно двумя строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Правая колонка: Полный текст статьи */
.content-area {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 40px;
    min-height: 600px;
}

.full-article {
    display: none; /* Скрыты по умолчанию, переключаются скриптом */
}

.article-source {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 12px;
}

.article-main-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 25px;
    color: #111;
}

/* Стилизация контента статьи */
.article-body p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #222;
    text-align: justify;
}

/* Стили для фотографий из папки /images/ */
.article-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 4px;
}

/* Ссылка на оригинал */
.original-link-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.original-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #222;
    color: #222;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.original-link:hover {
    background-color: #222;
    color: #fff;
}

/* Адаптивность для смартфонов и планшетов */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }
    .sidebar-articles {
        flex: none;
        width: 100%;
        position: static;
    }
    .content-area {
        padding: 25px 15px;
    }
    .article-main-title {
        font-size: 1.7rem;
    }
}
