/* ============================================
   BLOG — специфичные стили страницы блога
   ============================================ */

/* Category label */
.article-cat {
    display: block;
    font-family: var(--font-body);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 14px;
    transition: color 0.35s ease;
}

/* ===== LAYOUT SHELL ===== */
.page-wrap { padding-top: 68px; }

/* ===== HERO ===== */
.blog-hero {
    padding: 72px 80px 56px;
    max-width: 1600px; margin: 0 auto;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(56px, 7.5vw, 112px);
    font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
    color: var(--text); transition: color 0.35s ease;
}
.hero-headline em { font-style: normal; color: var(--green); }
.hero-subtitle {
    margin-top: 24px; font-size: 17px; line-height: 1.7; color: var(--text-muted);
    max-width: 580px; transition: color 0.35s ease;
}

/* ===== MAIN CONTENT ===== */
.blog-main { max-width: 1600px; margin: 0 auto; padding: 0 80px 120px; }

/* Category filter */
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    font-family: var(--font-display); font-size: 13px; font-weight: 500;
    padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--border); background: transparent; color: var(--text-muted);
    cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
    text-decoration: none;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.section-divide { height: 1px; background: var(--border); margin-bottom: 48px; transition: background 0.35s ease; }

/* ===== START HERE ===== */
.start-section { margin-bottom: 64px; }
.start-label {
    font-family: var(--font-body); font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
    margin-bottom: 20px; transition: color 0.35s ease;
}
.start-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.start-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease;
}
.start-card:hover {
    border-color: var(--border-hover); transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 0 30px rgba(92,157,127,0.05);
}
.start-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.start-body { padding: 18px 20px 22px; }
.start-card-title {
    font-family: var(--font-display); font-size: 14px; font-weight: 600;
    line-height: 1.4; color: var(--text); margin-bottom: 8px; transition: color 0.2s ease;
}
.start-card:hover .start-card-title { color: var(--green); }
.start-card-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-body); }

/* ===== FEATURED ARTICLE ===== */
.featured-article {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    cursor: pointer; margin-bottom: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.featured-article:hover { border-color: var(--border-hover); box-shadow: 0 0 60px rgba(92,157,127,0.07); }
.featured-thumb { position: relative; min-height: 400px; overflow: hidden; background: #0a0f0a; }
.featured-thumb-bg {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.featured-thumb-grid {
    position: absolute; inset: 0; z-index: 2;
    background-image: linear-gradient(rgba(92,157,127,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(92,157,127,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.featured-content {
    padding: 44px 48px; display: flex; flex-direction: column; justify-content: center;
    background: var(--bg-card); transition: background 0.35s ease;
}
.featured-title {
    font-family: var(--font-display); font-size: 26px; font-weight: 700;
    line-height: 1.3; letter-spacing: -0.01em; color: var(--text);
    margin-bottom: 16px; transition: color 0.2s ease;
}
.featured-article:hover .featured-title { color: var(--green); }
.featured-excerpt { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin-bottom: 24px; transition: color 0.35s ease; }
.inline-quote {
    border-left: 2px solid var(--green); padding: 10px 0 10px 18px; margin: 20px 0;
    font-family: var(--font-display); font-size: 15px; font-style: italic;
    line-height: 1.6; color: var(--text-muted); transition: color 0.35s ease;
}
.read-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    color: var(--green); margin-top: 20px; transition: gap 0.2s ease;
}
.featured-article:hover .read-more { gap: 12px; }

/* ===== ARTICLES GRID ===== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; cursor: pointer; display: block;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease;
}
.article-card:hover {
    border-color: var(--border-hover); transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 40px rgba(92,157,127,0.05);
}

/* Cinematic thumbs */
.card-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.thumb-a { background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(91,143,185,0.3) 0%, transparent 60%), radial-gradient(ellipse 50% 70% at 80% 80%, rgba(14,26,42,0.8) 0%, transparent 50%), linear-gradient(160deg, #060d14 0%, #0d1c2e 50%, #071018 100%); }
.thumb-b { background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(92,157,127,0.2) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 20% 70%, rgba(7,24,16,0.9) 0%, transparent 55%), linear-gradient(135deg, #060d08 0%, #0c1e12 50%, #050e09 100%); }
.thumb-c { background: radial-gradient(ellipse 90% 50% at 50% 20%, rgba(212,132,124,0.15) 0%, transparent 55%), radial-gradient(ellipse 70% 70% at 80% 80%, rgba(40,14,12,0.8) 0%, transparent 50%), linear-gradient(150deg, #0d0706 0%, #1a0d0b 50%, #080505 100%); }
.thumb-d { background: radial-gradient(ellipse 80% 60% at 20% 60%, rgba(201,169,98,0.18) 0%, transparent 55%), radial-gradient(ellipse 60% 80% at 80% 30%, rgba(30,22,6,0.8) 0%, transparent 50%), linear-gradient(145deg, #0a0800 0%, #180f02 50%, #0c0a04 100%); }
.thumb-e { background: radial-gradient(ellipse 70% 80% at 60% 40%, rgba(139,124,181,0.2) 0%, transparent 60%), radial-gradient(ellipse 80% 50% at 20% 80%, rgba(18,14,30,0.8) 0%, transparent 50%), linear-gradient(155deg, #080610 0%, #12101e 50%, #06050e 100%); }
.thumb-f { background: radial-gradient(ellipse 80% 60% at 40% 50%, rgba(92,185,160,0.15) 0%, transparent 50%), radial-gradient(ellipse 60% 80% at 75% 25%, rgba(14,40,32,0.8) 0%, transparent 55%), linear-gradient(135deg, #060c0a 0%, #0c1814 50%, #060c0a 100%); }
.thumb-noise { position: absolute; inset: 0; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.thumb-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(92,157,127,0.3), transparent); }
.card-thumb img, .start-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }

.card-body { padding: 22px 24px 26px; }
.card-title {
    font-family: var(--font-display); font-size: 16px; font-weight: 700;
    line-height: 1.35; letter-spacing: -0.01em; color: var(--text);
    margin-bottom: 9px; transition: color 0.2s ease;
}
.article-card:hover .card-title { color: var(--green); }
.card-excerpt {
    font-size: 13px; line-height: 1.7; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; transition: color 0.35s ease;
}

/* ===== TOPICS STRIP ===== */
.topics-section {
    margin: 56px 0 48px; padding: 40px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;
}
.topics-label {
    font-family: var(--font-body); font-size: 11px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
    margin-bottom: 20px; transition: color 0.35s ease;
}
.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.topic-chip:hover {
    color: var(--green);
    border-color: var(--green);
    background: rgba(92,157,127,.06);
}
.topic-chip.active {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}
.topic-chip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
    opacity: .6;
    flex-shrink: 0;
}

/* ===== NO RESULTS ===== */
.no-results { display: none; text-align: center; padding: 64px 24px; }
.no-results.visible { display: block; }
.no-results-text { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.no-results-sub { font-size: 14px; color: var(--text-dim); }

/* ===== CTA BLOCK ===== */
.blog-cta {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px;
    padding: 52px 60px; display: flex; align-items: center; justify-content: space-between; gap: 48px;
    position: relative; overflow: hidden; margin-top: 56px;
    transition: background 0.35s ease, border-color 0.35s ease;
}
.blog-cta::before {
    content: ''; position: absolute; top: 0; left: 0; width: 300px; height: 100%;
    background: radial-gradient(ellipse at left center, rgba(92,157,127,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.blog-cta-eyebrow { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.blog-cta h3 {
    font-family: var(--font-display); font-size: 24px; font-weight: 700;
    line-height: 1.3; letter-spacing: -0.01em; color: var(--text); margin-bottom: 8px; transition: color 0.35s ease;
}
.blog-cta p { font-size: 14px; color: var(--text-muted); line-height: 1.6; transition: color 0.35s ease; }
.btn-cta {
    flex-shrink: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600;
    color: #fff; background: var(--green); padding: 13px 28px; border-radius: 999px;
    white-space: nowrap; transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(92,157,127,0.3); }

/* ===== PAGINATION ===== */
/* position: static — защита от глобального селектора nav в base.css,
   который иначе прибил бы <nav class="pagination"> к верху страницы */
.pagination {
    position: static;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 56px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    flex-wrap: wrap;
}
.page-num,
.page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.page-num:hover,
.page-arrow:hover {
    color: var(--green);
    border-color: var(--green);
    background: rgba(92,157,127,.06);
}
.page-num.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    cursor: default;
}
.page-arrow.disabled {
    opacity: .35;
    pointer-events: none;
}
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 40px;
    color: var(--text-dim);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .start-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .blog-hero, .blog-main { padding-left: 40px; padding-right: 40px; }
    .blog-hero { padding-top: 100px; padding-bottom: 40px; }
    .featured-content { padding: 32px 36px; }
}
@media (max-width: 768px) {
    .blog-hero { padding: 88px 24px 36px; }
    .blog-main { padding: 0 24px 80px; }
    .start-cards { grid-template-columns: 1fr; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-thumb { min-height: 200px; }
    .featured-content { padding: 24px 24px 28px; }
    .featured-title { font-size: 20px; }
    .articles-grid { grid-template-columns: 1fr; }
    .topics-list { gap: 8px; }
    .blog-cta { flex-direction: column; padding: 32px 24px; gap: 24px; }
    .blog-cta h3 { font-size: 20px; }
    .pagination { margin-top: 40px; gap: 4px; }
    .page-num,
    .page-arrow { min-width: 36px; height: 36px; font-size: 13px; }
}

/* ===== META карточек (время + просмотры) ===== */
.card-meta,
.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
}

.start-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-views i {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1;
}

/* точка-разделитель между пунктами меты */
.card-meta > span + span::before,
.featured-meta > span + span::before,
.start-card-meta > span + span::before {
    content: '·';
    margin-right: 12px;
    color: var(--text-dim);
}
