/* ---------- Шрифты ---------- */
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/GolosText-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/GolosText-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/PTSans-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/PTSans-Bold.woff2') format('woff2');
}

/* ---------- Переменные ---------- */
:root {
    --c-primary: #08c;
    --c-white: #fff;
    --c-gray-text: #676e7b;
    --c-dark: #111214;
    --c-aside-bg: #f5f5f5;
    --c-border: #e8e9eb;
    --c-footer-bg: #2c323d;
    --font-heading: 'Golos Text', 'PT Sans', sans-serif;
    --font-body: 'PT Sans', 'Golos Text', sans-serif;
    --container-max: 1280px;
}

/* ---------- Базовые ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-dark);
    background: var(--c-white);
}
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--c-dark);
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.header__logo {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 20px;
    color: var(--c-dark);
    text-decoration: none;
}
.header__nav { display: flex; gap: 24px; }
.header__nav-link {
    font-size: 15px;
    color: var(--c-gray-text);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.header__nav-link.is-active,
.header__nav-link:hover {
    color: var(--c-dark);
    border-bottom-color: var(--c-primary);
}

/* ---------- Сетка главной ---------- */
.home-main {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 48px;
    align-items: flex-start;
}
.home-main__content { width: 65%; }
.home-main__aside {
    width: 30%;
    background: var(--c-aside-bg);
    padding: 24px;
    border-radius: 4px;
}

/* ---------- Вкладки ---------- */
.tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 8px;
}
.tabs__item {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--c-gray-text);
    padding: 8px 0 12px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.tabs__item.is-active {
    color: var(--c-dark);
    border-bottom-color: var(--c-primary);
}

/* ---------- Карточка новости ---------- */
.news-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--c-border);
}
.news-date {
    font-size: 12px;
    color: var(--c-gray-text);
    margin-bottom: 6px;
}
.news-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 8px;
}
.news-title a { color: var(--c-dark); }
.news-title a:hover { color: var(--c-primary); text-decoration: none; }
.news-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c-gray-text);
}
.news-source__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-primary);
    flex-shrink: 0;
}
.news-empty { padding: 32px 0; color: var(--c-gray-text); }

/* ---------- Показать ещё ---------- */
.news-more { text-align: center; padding: 32px 0; }
.btn-more {
    display: inline-block;
    padding: 10px 32px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-more:hover {
    background: var(--c-primary);
    color: var(--c-white);
    text-decoration: none;
}

/* ---------- Сайдбар ---------- */
.main-indicator { margin-bottom: 28px; }
.main-indicator:last-child { margin-bottom: 0; }
.main-indicator__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-primary);
}
.main-indicator__text {
    font-size: 14px;
    color: var(--c-gray-text);
    line-height: 1.6;
    margin: 0;
}
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list__item {
    font-size: 13px;
    color: var(--c-gray-text);
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
    word-break: break-all;
}
.source-list__item:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-footer-bg);
    color: var(--c-white);
    padding: 40px 0;
    margin-top: 48px;
}
.footer p { margin: 0; font-size: 14px; opacity: 0.8; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .home-main { flex-direction: column; }
    .home-main__content,
    .home-main__aside { width: 100%; }
    .home-main__aside { order: 2; }
}
@media (max-width: 600px) {
    .header__inner { flex-direction: column; gap: 8px; padding: 12px 20px; }
    .news-title { font-size: 16px; }
}
