/* RepoRadar — тёмная терминальная тема.
   Один файл на весь сайт: index.php, post.php, about.php.
   Цвета — переменные, менять здесь. */

:root {
    --bg:        #0d1117;   /* фон страницы */
    --panel:     #161b22;   /* карточки, шапка */
    --panel-2:   #1c2128;   /* карточка под курсором */
    --sunk:      #0b0f14;   /* заглушки картинок, футер */
    --bd:        #30363d;   /* рамка */
    --bd-soft:   #21262d;   /* разделители внутри карточки */

    --fg:        #e6edf3;   /* основной текст */
    --fg-body:   #c9d1d9;   /* длинный текст статьи */
    --dim:       #8b949e;   /* мета, подписи */
    --faint:     #6e7681;   /* совсем второстепенное */

    --acc:       #3fb950;   /* зелёный терминала: акцент, hover, активное */
    --acc-btn:   #238636;   /* заливка главной кнопки */
    --acc-btn-h: #2ea043;
    --link:      #58a6ff;   /* ссылки */
    --link-bg:   rgba(56,139,253,.12);
    --link-bd:   rgba(56,139,253,.35);
    --warn:      #d29922;

    --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --r: 6px;
}

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

html { color-scheme: dark; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(63,185,80,.28); }
a { color: var(--link); }

/* ── Шапка: радар ─────────────────────────────────────────────
   Кольца и луч — чистый CSS, картинок нет. */
.header,
.site-header {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border-bottom: 1px solid var(--bd);
    color: var(--fg);
}
.header { padding: 38px 20px 26px; }
.site-header { padding: 14px 20px; }

.header::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 1100px; height: 1100px;
    transform: translate(-50%, -50%);
    background: repeating-radial-gradient(circle, transparent 0 62px, rgba(63,185,80,.10) 62px 63px);
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 68%);
            mask-image: radial-gradient(circle, #000 10%, transparent 68%);
    pointer-events: none;
}
.header::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 1100px; height: 1100px;
    margin: -550px 0 0 -550px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(63,185,80,.16), rgba(63,185,80,0) 55deg, rgba(63,185,80,0));
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%);
            mask-image: radial-gradient(circle, #000 10%, transparent 62%);
    animation: sweep 14s linear infinite;
    pointer-events: none;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .header::after { animation: none; } }

.header-wrap,
.site-header-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.logo {
    font-family: var(--mono);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 6px;
}
.logo::after {
    content: "▊";
    color: var(--acc);
    margin-left: 4px;
    animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo::after { animation: none; } }

.site-header-logo {
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    white-space: nowrap;
}
.site-header-nav { display: flex; gap: 18px; align-items: center; }
.site-header-nav a,
.nav a { color: var(--dim); text-decoration: none; font-size: 14px; font-family: var(--mono); }
.site-header-nav a:hover,
.nav a:hover { color: var(--acc); }
.nav { margin-top: 18px; display: flex; gap: 18px; }

.tagline {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 18px;
}

/* Соцкнопки — плоские, в рамке, брендовый цвет только в тексте/иконке */
.social-row { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 14px;
    border: 1px solid var(--bd); border-radius: var(--r);
    background: var(--sunk);
    color: var(--fg);
    font-family: var(--mono); font-weight: 500; font-size: 13px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.social-btn:hover { background: var(--panel-2); }
.social-btn.tg   { color: #58a6ff; } .social-btn.tg:hover   { border-color: #2aabee; }
.social-btn.vk   { color: #6ea8fe; } .social-btn.vk:hover   { border-color: #0077ff; }
.social-btn.max  { color: #a78bfa; } .social-btn.max:hover  { border-color: #6c4df6; }
.social-btn.dzen { color: var(--fg); } .social-btn.dzen:hover { border-color: var(--fg); }
.social-btn .ic-letter { font-weight: 700; letter-spacing: .3px; }
.header-link { color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: 13px; margin-left: 6px; }
.header-link:hover { color: var(--acc); }

/* Счётчики */
.stats { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.stats span {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--bd-soft); border-radius: 999px;
    background: var(--sunk);
}

/* ── Общая ширина ───────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.wrap.narrow { max-width: 840px; }

/* ── SEO-блок категории / H1 ────────────────────────────────── */
.category-seo {
    max-width: 1200px;
    margin: 24px auto 20px;
    padding: 20px 24px;
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
}
.category-seo.category-seo-simple { padding: 16px 24px; }
.category-seo .category-title { font-size: 24px; color: var(--fg); margin: 0 0 12px; line-height: 1.3; font-weight: 600; }
.category-seo.category-seo-simple .category-title { margin-bottom: 0; }
.category-seo .category-intro { font-size: 15px; color: var(--dim); line-height: 1.75; }
.category-seo .category-intro p { margin: 0 0 10px; }
.category-seo .category-intro p:last-child { margin-bottom: 0; }

/* Хлебные крошки */
.breadcrumbs-top,
.breadcrumbs { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 12px; }
.breadcrumbs { max-width: 840px; margin: 0 auto 16px; padding: 0 20px; }
.breadcrumbs-top a, .breadcrumbs a { color: var(--link); text-decoration: none; }
.breadcrumbs-top a:hover, .breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs-top .bc-sep, .breadcrumbs .bc-sep { margin: 0 6px; color: var(--faint); }
.breadcrumbs-top .bc-current, .breadcrumbs .bc-current { color: var(--dim); }

/* ── Панель фильтров ────────────────────────────────────────── */
.filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
}
.filters-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-box { flex: 1; min-width: 240px; }
.search-box input {
    width: 100%;
    padding: 9px 13px;
    background: var(--sunk);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 14px;
}
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(63,185,80,.15); }

.btn-primary {
    padding: 9px 20px;
    background: var(--acc-btn);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
}
.btn-primary:hover { background: var(--acc-btn-h); }

.category-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cat-btn {
    padding: 5px 12px;
    background: var(--sunk);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    text-decoration: none;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 13px;
    transition: color .15s, border-color .15s;
}
.cat-btn:hover { color: var(--fg); border-color: var(--faint); }
.cat-btn.active { color: var(--bg); background: var(--acc); border-color: var(--acc); font-weight: 600; }

/* Облако тегов */
.tag-cloud { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bd-soft); }
.tag-cloud-title { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 10px; letter-spacing: .5px; }
.tag-cloud-title::before { content: "// "; }
.tag-cloud-wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-cloud-item, .tag-cloud-link, .post-tag-link {
    display: inline-block;
    padding: 3px 11px;
    background: var(--link-bg);
    border: 1px solid var(--link-bd);
    border-radius: 999px;
    text-decoration: none;
    color: var(--link);
    line-height: 1.5;
    transition: background .15s, border-color .15s;
}
.tag-cloud-item:hover, .tag-cloud-link:hover, .post-tag-link:hover { background: rgba(56,139,253,.24); border-color: var(--link); }
.tag-cloud-item.active { background: var(--acc); border-color: var(--acc); color: var(--bg); font-weight: 600; }
.active-filter-hint { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-top: 10px; }
.active-filter-hint a { color: var(--faint); text-decoration: none; }
.active-filter-hint a:hover { color: var(--acc); }

/* ── Сетка карточек ─────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.post-card {
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .15s, background .15s;
}
.post-card:hover { border-color: var(--acc); background: var(--panel-2); }
.post-card .post-image { width: 100%; height: 190px; object-fit: cover; display: block; }
.post-card-placeholder {
    width: 100%; height: 190px;
    background: var(--sunk);
    border-bottom: 1px solid var(--bd-soft);
    display: flex; align-items: center; justify-content: center;
}
.post-card-placeholder img { width: 72px; height: 72px; object-fit: contain; opacity: .3; }
.post-body { padding: 16px 18px 14px; }
.post-card .post-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-card .post-meta > span { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.post-category {
    display: inline-block;
    padding: 2px 10px;
    background: var(--link-bg);
    border: 1px solid var(--link-bd);
    border-radius: 999px;
    color: var(--link);
    font-family: var(--mono);
    font-size: 12px;
    text-decoration: none;
}
.post-category:hover { background: rgba(56,139,253,.24); }
.post-card .post-title { font-size: 17px; font-weight: 600; color: var(--fg); margin: 0 0 8px; line-height: 1.4; }
.post-card:hover .post-title { color: var(--link); }
.post-excerpt { font-size: 14px; color: var(--dim); margin-bottom: 14px; line-height: 1.65; }
.post-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 11px; border-top: 1px solid var(--bd-soft); }
.post-source { font-family: var(--mono); font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.read-more { color: var(--link); text-decoration: none; font-family: var(--mono); font-size: 13px; }
.read-more:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--faint); font-family: var(--mono); }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 16px; opacity: .5; }

/* ── Пагинация ──────────────────────────────────────────────── */
.pagination { text-align: center; margin: 40px 0 10px; font-family: var(--mono); }
.pagination a, .pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 7px 14px;
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    text-decoration: none;
    color: var(--dim);
    font-size: 14px;
}
.pagination a:hover { border-color: var(--acc); color: var(--acc); }
.pagination .current { background: var(--acc); border-color: var(--acc); color: var(--bg); font-weight: 600; }

/* ── Футер ──────────────────────────────────────────────────── */
.footer, .site-footer {
    background: var(--sunk);
    border-top: 1px solid var(--bd);
    color: var(--faint);
    text-align: center;
    padding: 26px 20px;
    margin-top: 56px;
    font-family: var(--mono);
    font-size: 13px;
}
.footer a, .site-footer a { color: var(--link); text-decoration: none; }
.footer a:hover, .site-footer a:hover { text-decoration: underline; }

/* ── Страница поста ─────────────────────────────────────────── */
.back { display: inline-block; color: var(--link); text-decoration: none; margin-bottom: 24px; font-family: var(--mono); font-size: 14px; }
.back:hover { text-decoration: underline; }

article {
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 32px;
}
@media (max-width: 600px) { article { padding: 20px; } }
article .post-image { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--bd-soft); margin-bottom: 22px; }
.post-date { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 12px; }
article .post-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
article .post-title { font-size: 30px; line-height: 1.25; color: var(--fg); margin: 0 0 16px; font-weight: 700; letter-spacing: -.4px; }
@media (max-width: 600px) { article .post-title { font-size: 23px; } }

.post-content { font-size: 17px; line-height: 1.8; color: var(--fg-body); margin-bottom: 26px; }
.post-content a { color: var(--link); text-decoration: none; border-bottom: 1px solid var(--link-bd); }
.post-content a:hover { border-bottom-color: var(--link); }
.post-content a.autolink { color: var(--link); border-bottom: 1px dashed var(--link-bd); }
.post-content a.autolink:hover { border-bottom-style: solid; }
.source-link { color: var(--link); text-decoration: none; font-family: var(--mono); font-size: 14px; border-bottom: 1px solid var(--link-bd); }
.source-link:hover { border-bottom-color: var(--link); }

.full-article { font-size: 16px; line-height: 1.8; color: var(--fg-body); margin-top: 20px; }
.full-article img { max-width: 100%; height: auto; border-radius: var(--r); margin: 18px 0; display: block; }
.full-article figure { margin: 18px 0; }
.full-article figcaption { font-size: 13px; color: var(--faint); text-align: center; margin-top: 6px; }
.full-article h2, .full-article h3, .full-article h4 { color: var(--fg); margin: 28px 0 10px; line-height: 1.3; font-weight: 600; }
.full-article ul, .full-article ol { margin: 14px 0; padding-left: 24px; }
.full-article li { margin: 6px 0; }
.full-article li::marker { color: var(--acc); }
.full-article a { color: var(--link); }
.full-article blockquote { border-left: 3px solid var(--acc); background: var(--sunk); padding: 10px 16px; margin: 16px 0; color: var(--dim); border-radius: 0 var(--r) var(--r) 0; }
.full-article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; display: block; overflow-x: auto; }
.full-article th, .full-article td { border: 1px solid var(--bd); padding: 8px 12px; text-align: left; }
.full-article th { background: var(--sunk); font-family: var(--mono); }

/* Код — сердце тематики, поэтому отдельно */
code, .full-article code, .post-content code {
    font-family: var(--mono);
    font-size: .88em;
    background: var(--sunk);
    border: 1px solid var(--bd-soft);
    border-radius: 4px;
    padding: .12em .4em;
    color: #d2a8ff;
}
pre {
    background: var(--sunk);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 14px 16px;
    overflow-x: auto;
    margin: 18px 0;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--fg-body);
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

hr { margin: 36px 0; border: none; border-top: 1px solid var(--bd); }
h3 { color: var(--fg); margin-bottom: 18px; font-size: 20px; font-weight: 600; }

.tag { display: inline-block; background: var(--link-bg); color: var(--link); padding: 3px 11px; border-radius: 999px; font-family: var(--mono); font-size: 13px; margin: 4px 4px 4px 0; }
.post-tags { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 13px; }

/* Плашка предпросмотра черновика */
.preview-banner {
    background: rgba(210,153,34,.12);
    border: 1px solid rgba(210,153,34,.45);
    border-radius: var(--r);
    padding: 11px 16px;
    margin-bottom: 20px;
    color: var(--warn);
    font-family: var(--mono);
    font-size: 14px;
}

/* CTA на Telegram */
.tg-cta {
    display: flex; align-items: center; gap: 18px;
    background: var(--link-bg);
    border: 1px solid var(--link-bd);
    border-radius: var(--r);
    padding: 20px 22px;
    margin: 32px 0 22px;
    color: var(--fg);
}
.tg-cta-icon { flex-shrink: 0; line-height: 0; color: var(--link); }
.tg-cta-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tg-cta-text strong { font-size: 17px; }
.tg-cta-text span { font-size: 14px; color: var(--dim); }
.tg-cta-btn {
    flex-shrink: 0;
    background: var(--acc-btn); color: #fff;
    font-family: var(--mono); font-weight: 600;
    padding: 10px 22px; border-radius: var(--r);
    text-decoration: none; font-size: 14px; white-space: nowrap;
}
.tg-cta-btn:hover { background: var(--acc-btn-h); }
@media (max-width: 560px) { .tg-cta { flex-direction: column; text-align: center; gap: 12px; } }

/* Шаринг */
.share-bar { display: flex; gap: 8px; margin: 26px 0 0; flex-wrap: wrap; align-items: center; }
.share-bar-label { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: var(--sunk);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    font-family: var(--mono); font-size: 13px; font-weight: 500;
    text-decoration: none; cursor: pointer; line-height: 1;
    color: var(--fg);
    transition: border-color .15s, background .15s;
}
.share-btn:hover { background: var(--panel-2); }
.share-tg { color: #58a6ff; } .share-tg:hover { border-color: #2aabee; }
.share-vk { color: #6ea8fe; } .share-vk:hover { border-color: #4c75a3; }
.share-copy { color: var(--dim); }
.share-copy.copied { background: var(--acc); border-color: var(--acc); color: var(--bg); }

/* Похожие посты */
.similar-section { margin-top: 44px; }
.similar-section h3 { font-size: 18px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.similar-card {
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    overflow: hidden;
    text-decoration: none; color: inherit; display: block;
    transition: border-color .15s;
}
.similar-card:hover { border-color: var(--acc); }
.similar-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.similar-card-placeholder { width: 100%; height: 120px; background: var(--sunk); border-bottom: 1px solid var(--bd-soft); display: flex; align-items: center; justify-content: center; }
.similar-card-placeholder img { width: 46px; height: 46px; object-fit: contain; opacity: .3; }
.similar-card-body { padding: 12px 14px; }
.similar-card-date { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.similar-card-title { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.4; }
.similar-card:hover .similar-card-title { color: var(--link); }

.tag-cloud-section {
    max-width: 1200px; margin: 44px auto 20px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
}
.tag-cloud-section h3 { font-size: 16px; margin-bottom: 14px; font-family: var(--mono); color: var(--dim); }
.tag-cloud-wide { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }

/* ── Страница «О проекте» ───────────────────────────────────── */
.hero, .section {
    background: var(--panel);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 32px;
    margin-bottom: 24px;
}
.hero h1 { font-size: 30px; color: var(--fg); margin-bottom: 14px; font-weight: 700; letter-spacing: -.4px; }
.hero h2, .section h2 { font-size: 21px; color: var(--fg); margin: 28px 0 12px; font-weight: 600; }
.hero > h2:first-of-type { margin-top: 24px; }
.hero p, .section p { font-size: 16px; color: var(--fg-body); line-height: 1.8; margin-bottom: 14px; }
.hero .lead { font-size: 18px; color: var(--dim); }
.hero ul, .section ul { margin: 12px 0 16px; padding-left: 22px; color: var(--fg-body); }
.hero li, .section li { margin: 7px 0; }
.hero li::marker, .section li::marker { color: var(--acc); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0; }
.stat-card { background: var(--panel); border: 1px solid var(--bd); border-radius: var(--r); padding: 24px; text-align: center; }
.stat-number { font-family: var(--mono); font-size: 36px; font-weight: 700; color: var(--acc); margin-bottom: 6px; }
.stat-label { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .5px; }

.sources-category { margin-bottom: 30px; }
.sources-category h3 { font-size: 16px; color: var(--dim); font-family: var(--mono); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--bd); }
.sources-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.source-item { background: var(--sunk); border: 1px solid var(--bd); padding: 11px 13px; border-radius: var(--r); font-size: 14px; display: flex; align-items: center; gap: 10px; transition: border-color .15s; }
.source-item:hover { border-color: var(--acc); }
.source-item .favicon { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; object-fit: contain; }
.source-item .source-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.source-item a { color: var(--fg); text-decoration: none; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-item a:hover { color: var(--link); }
.source-item .source-domain { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.timeline { margin: 26px 0; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 20px; }
.timeline-icon { width: 38px; height: 38px; background: var(--sunk); border: 1px solid var(--acc); color: var(--acc); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.timeline-content h3 { font-size: 17px; color: var(--fg); margin-bottom: 4px; }
.timeline-content p { font-size: 15px; color: var(--dim); }

.tech-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.tech-item { background: var(--sunk); border: 1px solid var(--bd); padding: 16px; border-radius: var(--r); text-align: center; }
.tech-item .icon { font-size: 28px; margin-bottom: 6px; }
.tech-item .name { font-family: var(--mono); font-size: 13px; color: var(--dim); font-weight: 600; }

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .filters-row { flex-direction: column; align-items: stretch; }
    .btn-primary { width: 100%; }
    .header { padding: 28px 16px 22px; }
    .logo { font-size: 24px; }
    .article, .hero, .section { padding: 20px; }
}
