:root {
    --bg: #0e0e0e;
    --bg-card: #1c1c1c;
    --bg-elevated: #242424;
    --text: #e2dfd8;
    --text-dim: #a9a9ab;
    --heading: #f4f2ed;
    --red: #c62828;
    --gold: #C9A96A;
    --border: #333333;
    --radius-card: 16px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-text: 'Lora', Georgia, serif;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'Spline Sans Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== ШАПКА ===== */
.header {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--heading); }
.brand__name em { color: var(--gold); font-style: normal; font-weight: 500; }
.brand__slogan { display: block; font-family: var(--font-ui); font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); margin-top: 0px; }

.header__actions { display: flex; align-items: center; }

/* Компактная иконка Telegram */
.btn--tg-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 169, 106, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold);
    transition: all 0.3s;
}
.btn--tg-icon svg { width: 18px; height: 18px; margin-right: 2px; margin-top: 2px; }
.btn--tg-icon:hover { background: var(--gold); color: var(--bg); }

/* ===== HERO ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero__text { max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    color: var(--heading);
}
.hero h1 em { font-style: italic; color: var(--gold); }

/* Новые стили для текста под заголовком */
.hero__desc {
    text-align: left;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}
.hero__desc p {
    margin-bottom: 20px;
}
.hero__highlight {
    text-align: center !important;
    font-family: var(--font-display);
    font-size: 24px;
    font-style: italic;
    color: var(--gold) !important;
    margin-top: 32px !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

/* ===== КАТЕГОРИИ ===== */
.categories-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    scrollbar-width: none;
}
.categories-nav::-webkit-scrollbar { display: none; }
.cat {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.cat:hover, .cat.active {
    color: var(--heading);
    border-color: var(--border);
    background: var(--bg-card);
}

/* ===== ЛЕНТА ===== */
.section { padding: 20px 0 80px; }
.feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__media { position: relative; aspect-ratio: 16/9; background: var(--bg-elevated); }
.card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s; }
.card:hover .card__media img { opacity: 1; }
.card__tags { position: absolute; top: 12px; left: 12px; }
.card__chip {
    background: rgba(0,0,0,0.85);
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--gold);
}
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--heading);
    transition: color 0.2s;
}
.card:hover h3 { color: var(--gold); }
.card__excerpt { font-family: var(--font-text); font-size: 15px; color: var(--text-dim); margin-bottom: 24px; flex: 1; }
.card__foot { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; font-family: var(--font-ui); font-size: 13px; }
.card__cta { color: var(--gold); font-weight: 600; }

/* ===== СТАТЬЯ ===== */
.article-page { max-width: 720px; margin: 0 auto; padding: 60px 0 100px; }
.article-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 24px;
}
.article-title {
    color: var(--heading);
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.article-summary {
    color: var(--text-dim);
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
    font-family: var(--font-text);
}
.article-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 48px; border: 1px solid var(--border); }
.article-content { font-family: var(--font-text); font-size: 19px; line-height: 1.7; color: var(--text); }
.article-content h2 { color: var(--heading); font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 56px 0 24px; letter-spacing: -0.5px; }
.article-content p { margin: 0 0 32px; }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* ===== ИСТОЧНИКИ ===== */
.sources-block {
    margin-top: 64px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.sources-title {
    color: var(--heading);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sources-list a {
    display: block;
    color: var(--gold);
    text-decoration: none;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
}
.sources-list a:last-child { border-bottom: none; padding-bottom: 0; }
.sources-list a:hover { text-decoration: underline; }

/* ===== ПОДВАЛ ===== */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; background: #000; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer__brand { max-width: 300px; }
.footer__brand p { font-family: var(--font-ui); font-size: 13px; color: var(--text-dim); margin-top: 12px; line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 12px; font-family: var(--font-ui); font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--gold); }
.footer__copy {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-dim);
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero { padding: 60px 0 40px; }
    .footer__inner { flex-direction: column; text-align: center; align-items: center; }
    .footer__links { align-items: center; }
}
/* ===== ПОДВАЛ: Иконки соцсетей ===== */
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.social-icons a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    transition: all 0.3s;
}
.social-icons a svg { width: 16px; height: 16px; }
.social-icons a:hover { background: var(--gold); color: var(--bg); }
/* ===== КАРУСЕЛЬ (главная) ===== */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.card--carousel {
    flex: 0 0 340px;
    width: 340px;
    scroll-snap-align: start;
}
.card--carousel .card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card--carousel h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 768px) {
    .card--carousel {
        flex: 0 0 280px;
        width: 280px;
    }
    .carousel__track { gap: 16px; }
}

/* ===== КНОПКА "ВСЕ НОВОСТИ" ===== */
.btn-all-news {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-all-news:hover {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 4px 16px rgba(201, 169, 106, 0.25);
    transform: translateY(-2px);
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ===== */
.lang-switch {
    display: flex;
    gap: 4px;
    margin-right: 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
}
.lang-switch__btn {
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-dim);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.lang-switch__btn:hover { color: var(--heading); }
.lang-switch__btn.active {
    color: var(--gold);
    border-color: var(--gold);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0 60px;
}
.pagination__current {
    font-family: var(--font-mono);
    color: var(--text-dim);
    min-width: 32px;
    text-align: center;
}

/* ===== CTA БЛОК ВНИЗУ СТАТЬИ ===== */
.article-cta {
    display: flex;
    gap: 24px;
    margin-top: 60px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    align-items: flex-start;
}
.article-cta__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 106, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-cta__icon svg {
    width: 24px;
    height: 24px;
    margin-right: 2px;
    margin-top: 2px;
}
.article-cta__content h3 {
    font-family: var(--font-display);
    color: var(--heading);
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 0;
}
.article-cta__content p {
    font-family: var(--font-text);
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.article-cta__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-cta-primary {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gold);
    color: var(--bg);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-cta-primary:hover {
    background: #dcb97c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 106, 0.3);
    text-decoration: none;
}
.btn-cta-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-cta-secondary:hover {
    border-color: var(--text);
    text-decoration: none;
}
@media (max-width: 600px) {
    .article-cta { flex-direction: column; gap: 16px; padding: 24px; }
}
