@font-face{
  font-family:"Inter";
  src:url("fonts/Inter.woff2") format("woff2");
  font-weight:100 900;
  font-display:optional; /* или swap, но с self-hosting задержка минимальна */
  unicode-range: U+0000-00FF, U+0400-04FF, ...;
}
*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;

  /* Палитра Habr Dark */
  --bg: hsl(0, 0%, 9%);
  --surface: hsl(0, 0%, 15%);
  --surface-2: hsl(0, 0%, 12%);
  --surface-3: hsl(0, 0%, 19%);

  --border: hsl(0, 0%, 25%);
  --text: hsl(0, 0%, 87%);
  --muted: hsl(0, 0%, 67%);
  --muted-2: hsl(0, 0%, 50%);

  --accent: hsl(200, 80%, 61%);
  --accent-strong: hsl(199, 100%, 75%);
  --accent-soft: hsl(201, 21%, 13%);

  --green: hsl(76, 100%, 35%);
  --orange: hsl(30, 100%, 63%);

  --radius: 4px;
  --content: 1200px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-gutter: stable;
}

body{margin:0;background:var(--bg);color:var(--text);font:20px/1.65 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#9ccbe0}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent-strong);outline-offset:3px}.page-shell{max-width:var(--content);width:calc(100% - 48px);margin:0 auto}.site-header{height:66px;position:sticky;top:0;z-index:20;background:rgba(14,17,22,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}.header-inner{height:100%;max-width:var(--content);width:calc(100% - 48px);margin:auto;display:flex;align-items:center;gap:34px}

/* ===== Логотип / Бренд ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--accent);
  color: #10202a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;  /* ← ВАЖНО: это исправит полосы на весь экран */
  overflow: hidden;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.brand-name > span {
  color: var(--accent);
}

.brand-name small {
  display: block;
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-top: 4px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, transparent 45%, transparent 65%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  border-radius: inherit; /* чтобы блик не вылезал за скругленные углы */
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px; /* Чуть больше воздуха между ссылками */
    height: 100%;
    font-size: 13.5px; /* Увеличили размер (было 13) */
    color: #8aa4b5; /* Приглушенный цвет (или var(--muted)) */
    font-weight: 600;
    letter-spacing: 0.4px; /* Легкий разряд для стиля */
}

.main-nav a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 2px;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Убираем старый border */
.main-nav a {
    border-bottom: none;
}

/* Создаем сканирующую линию */
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Прижимаем к самому низу шапки */
    left: 50%;
    width: 0; /* Изначально линия невидима */
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении и активном состоянии */
.main-nav a:hover,
.main-nav a.active {
    color: #ffffff; /* Текст становится белым */
}

.main-nav a:hover::after,.main-nav a.active::after {
    width: 100%; /* Линия растягивается на всю ширину */
}

.header-spacer{flex:1}
.header-search{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:7px 10px;min-width:130px}
.header-search span{font-size:19px}
.header-search kbd{font:10px "JetBrains Mono",monospace;color:var(--muted-2);margin-left:auto}

.login-link {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 7px;
    background: rgba(23, 40, 50, 0.6); /* Полупрозрачный темный */
    backdrop-filter: blur(4px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(4px);
    color: #e8f4f8;
    border: 1px solid rgba(85, 122, 138, 0.6);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.login-link:hover {
    background: rgba(28, 48, 60, 0.9);
    border-color: var(--accent); /* Рамка загорается акцентом */
    color: #ffffff;
    box-shadow: 0 0 12px rgba(120, 168, 189, 0.2); /* Легкое неоновое свечение */
    transform: translateY(-1px);
}

.login-link:active {
    transform: translateY(1px);
}

.login-link .arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.login-link:hover .arrow {
    transform: translate(4px, -4px); /* Стрелка смещается вправо и вверх */
}

.chapter-divider {
    position: relative;
    margin: 48px 0 28px;
    padding-top: 12px;
    border-top: 1px solid rgba(85, 122, 138, 0.4);
}

.chapter-divider::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.mobile-menu{display:none;background:transparent;border:1px solid var(--border);color:var(--text);border-radius:7px;padding:6px 10px}

.hero{margin-top:28px;min-height:326px;display:grid;grid-template-columns:1.08fr .92fr;overflow:hidden;background:linear-gradient(120deg,#151c24,#17232c 68%,#1a2a34);border:1px solid #2a3a45;border-radius:12px;position:relative}.hero-copy{padding:37px 38px;position:relative;z-index:1}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:var(--accent);line-height:1.5}.hero h1{font-size:clamp(30px,3.5vw,42px);line-height:1.12;letter-spacing:-1.7px;margin:15px 0 14px;max-width:580px}.hero h1 span{color:#91b9cc}.hero-copy>p{max-width:580px;color:#aab8c5;font-size:14px;line-height:1.75;margin:0}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:700;border:1px solid transparent;transition:background .18s,border-color .18s,transform .18s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--accent);color:#10212b;border-color:var(--accent)}.button-primary:hover{background:#8bb7ca;color:#10212b}.button-secondary{background:var(--surface-2);border-color:var(--border);color:var(--text)}.button-secondary:hover{background:var(--surface-3);color:var(--text)}.button-full{width:100%}.hero-meta{font-size:10px;color:#7f929f;display:flex;align-items:center;gap:7px;margin-top:23px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(102,199,154,.1)}.hero-art{position:relative;min-height:300px;overflow:hidden;background:radial-gradient(ellipse at 52% 48%,rgba(73,129,154,.18),transparent 60%)}
.net-node{position:absolute;z-index:2;width:80px;height:74px;border:1px solid #4d7182;background:rgba(20,34,43,.95);border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 28px rgba(0,0,0,.25)}.net-node span{font:9px "JetBrains Mono",monospace;color:#89b6ca;letter-spacing:1px}.net-node b{font:700 19px "JetBrains Mono",monospace;color:#e5f1f7}.node-core{left:43%;top:38%}.node-router{left:12%;top:13%}.node-client{left:12%;top:66%}.node-server{right:8%;top:61%}.network-line{position:absolute;height:1px;background:#6396ad;transform-origin:left center;opacity:.8}.line-a{left:30%;top:31%;width:19%;transform:rotate(17deg)}.line-b{left:30%;top:73%;width:20%;transform:rotate(-27deg)}.line-c{left:57%;top:54%;width:27%;transform:rotate(18deg)}.art-label{position:absolute;bottom:18px;right:20px;color:#7593a2;font:9px "JetBrains Mono",monospace;letter-spacing:1.4px}.art-label i{font-style:normal;color:#b0c8d2;margin-left:9px}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;margin-top:31px}
.main-column,.side-column{min-width:0}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 13px}
.section-heading h2{font-size:21px;letter-spacing:-.6px;margin:5px 0 0}


.text-link{font-size:15px;color:var(--accent);font-weight:700}

.text-link span{margin-left:4px}
.article-list{display:flex;flex-direction:column;gap:12px}
.article-card{padding:21px 22px 17px;border:1px solid var(--border);border-radius:9px;background:var(--surface);transition:border-color .18s,background .18s}
.article-card:hover{border-color:#435868;background:#171e26}
.article-topline{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tag{display:inline-flex;align-items:center;background:#243943;color:#9bc7d8;border:1px solid #2d4a57;padding:3px 7px;border-radius:4px;font-size:13px;line-height:1.4;font-weight:700}
.tag-muted{background:#202630;border-color:#303945;color:#9ba8b6}
.article-topline time{margin-left:auto;font-size:10px;color:var(--muted-2)}
.article-card h3,.article-card h2{font-size:17px;line-height:1.4;letter-spacing:-.35px;margin:12px 0 7px}
.article-card p{font-size:12px;line-height:1.75;color:var(--muted);margin:0}
.article-footer{display:flex;align-items:center;gap:8px;margin-top:17px;color:var(--muted-2);font-size:10px}
.author-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#344f5b;color:#b9dbe8;font-size:14px;font-weight:800}
.avatar-blue{background:#2a3f60;color:#b4d0ff}
.avatar-violet{background:#443451;color:#d8bce9}
.avatar-green{background:#29483c;color:#a5e3c4}
.footer-spacer{flex:1}.panel{background:var(--surface);border:1px solid var(--border);border-radius:9px}
.side-column{display:flex;flex-direction:column;gap:14px}
.side-panel{padding:18px 17px}
.side-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.side-title h2,.side-panel h2,.newsletter h2{font-size:14px;margin:0;letter-spacing:-.2px}
.mini-count{font:10px "JetBrains Mono",monospace;color:var(--muted-2);background:var(--surface-2);padding:3px 6px;border-radius:4px}
.topic-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #252d37}
.topic-row:last-child{border-bottom:0;padding-bottom:1px}
.topic-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:7px;font-size:14px;font-weight:800;background:#2d353f;color:#c5d0d8}
.topic-orange{color:#f1b17d;background:#493529}
.topic-blue{color:#9bc9ed;background:#283e50}
.topic-green{color:#8ed5ad;background:#284238}
.topic-violet{color:#cbb0ec;background:#3c304a}
.topic-cyan{color:#8bd9dd;background:#254246}
.topic-row>span:nth-child(2){display:flex;flex-direction:column;min-width:0}
.topic-row b{font-size:11px;font-weight:700}
.topic-row small{font-size:9px;color:var(--muted-2);margin-top:2px}
.topic-count{margin-left:auto;color:var(--muted-2);font:10px "JetBrains Mono",monospace}
.side-more{font-size:9px;color:var(--muted-2)}
.popular-list{padding:0;margin:0;list-style:none}
.popular-list li{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #252d37}
.popular-list li:last-child{border:0;padding-bottom:0}
.popular-list li>span{font:11px "JetBrains Mono",monospace;color:var(--accent)}
.popular-list a{font-size:11px;font-weight:600;line-height:1.5}
.newsletter{padding:20px;background:linear-gradient(140deg,#1a2931,#172129);border-color:#304550}
.newsletter-mark{font-size:15px;font-weight:800;color:#c8e3ee;letter-spacing:-1px}
.newsletter-mark span{color:var(--accent)}
.newsletter h2{font-size:15px;margin-top:11px}
.newsletter p{font-size:11px;color:var(--muted);margin:6px 0 14px}
.newsletter input,.stack-form input,.stack-form textarea,.stack-form select{width:100%;background:#0f141a;border:1px solid var(--border);color:var(--text);border-radius:6px;padding:10px 11px;font-size:12px}
.newsletter input{margin-bottom:8px}
.form-message{font-size:11px;color:var(--green);margin-top:9px;min-height:0}
.long-read{margin-top:17px;padding:24px}
.long-read h2{font-size:20px;line-height:1.3;letter-spacing:-.5px;margin:8px 0 12px}
.long-read p{font-size:12px;color:var(--muted);line-height:1.8}
.long-read .text-link{display:inline-block;margin-top:5px}
.site-footer{margin-top:38px;border-top:1px solid var(--border);padding:20px 0 28px;display:flex;align-items:center;gap:14px;color:var(--muted-2);font-size:10px}
.site-footer .footer-links{display:flex;gap:17px;margin-left:auto}
.site-footer a:hover{color:var(--text)}
.page-intro{padding:38px 0 23px}
.page-intro h1{font-size:34px;line-height:1.2;letter-spacing:-1.2px;margin:8px 0 10px}
.page-intro p{max-width:720px;font-size:13px;color:var(--muted);margin:0;line-height:1.8}
.filter-bar{padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin-bottom:17px}
.search-field{display:flex;align-items:center;gap:9px;min-width:230px;flex:1;background:#0f141a;border:1px solid var(--border);border-radius:6px;padding:0 11px;color:var(--muted);height:38px}.search-field>span{font-size:20px}.search-field input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:var(--text);font-size:12px}.filter-tags{display:flex;gap:5px;flex-wrap:wrap}.filter-chip{border:1px solid transparent;background:transparent;color:var(--muted);font-size:10px;font-weight:600;border-radius:5px;padding:8px 10px}.filter-chip:hover,.filter-chip.active{background:#273944;border-color:#365363;color:#b9dce9}.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px}.catalog-layout .article-card h2{font-size:18px}.sticky-panel{align-self:start;position:sticky;top:84px}.sticky-panel h2{margin:9px 0}.muted{color:var(--muted)}.sticky-panel p{font-size:11px;line-height:1.75}.learning-step{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #252d37}.learning-step>span{font:11px "JetBrains Mono",monospace;color:var(--accent)}.learning-step div{display:flex;flex-direction:column}.learning-step b{font-size:11px}.learning-step small{font-size:10px;color:var(--muted-2)}.sticky-panel .button{margin-top:16px}.empty-state{padding:28px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:8px;font-size:12px}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: var(--muted-2);
    padding: 23px 0 18px
}
.breadcrumbs a{color:var(--muted)}
.reading-layout{display:grid;grid-template-columns:minmax(0,790px) 250px;gap:45px;justify-content:center}
.reading-column{min-width:0}.article-title{font-size:36px;line-height:1.18;letter-spacing:-1.3px;margin:17px 0 14px}
.article-lead{font-size:16px;line-height:1.75;color:#b5c3ce;margin:0 0 19px}

/* Основной контейнер */
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.article-byline > div {
  display: flex;
  flex-direction: column;
}

.article-byline small {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

/* Оформление текста "Обновлено сегодня" */
.article-byline .muted {
  margin-left: auto;          /* прижимаем вправо */
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.4px;
  
  /* Пилюля */
  background: rgba(122, 165, 185, 0.08);
  border: 1px solid rgba(122, 165, 185, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  font-family: "Inter", monospace; /* чуть техно-стиля */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Добавляем зелёную точку (индикатор), чтобы выглядело как "live/updated" */
.article-byline .muted::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80; /* зелёный */
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

/* ===== Контейнер таблицы ===== */
.table-wrap {
    position: relative;
    margin: 26px 0;
    border: 1px solid rgba(85, 122, 138, 0.4);
    border-radius: 9px;
    background: rgba(18, 26, 34, 0.7);
    overflow-x: auto; /* Скролл на мобилках */
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(8, 12, 16, 0.4);
}

    /* Фоновая сетка внутри таблицы */
    .table-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(122, 165, 185, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 165, 185, 0.04) 1px, transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
        z-index: 0;
    }

/* ===== Сама таблица ===== */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 13.5px;
    color: #a8c8d6;
    position: relative;
    z-index: 1; /* Поверх сетки */
}

/* ===== Заголовки ===== */
th {
    font-family: "JetBrains Mono", "SF Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7293a3;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(85, 122, 138, 0.4);
    background: rgba(23, 40, 50, 0.6);
    white-space: nowrap; /* Заголовки не переносятся */
}

/* ===== Ячейки ===== */
td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(85, 122, 138, 0.15);
    vertical-align: middle;
    line-height: 1.4;
}

/* Убираем нижнюю границу у последней строки */
tr:last-child td {
    border-bottom: none;
}

/* ===== Ховер на строку ===== */
tbody tr {
    transition: background 0.2s ease;
}

    tbody tr:hover {
        background: rgba(120, 168, 189, 0.08);
    }

    /* Светящаяся полоска слева при ховере (как сканер) */
    tbody tr td:first-child {
        position: relative;
    }

    tbody tr:hover td:first-child::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent);
    }

/* ===== Стилизация тегов <code> ===== */
td code {
    display: inline-block;
    font-family: "JetBrains Mono", "SF Mono", monospace;
    font-size: 12px;
    color: #e8f4f8;
    background: rgba(120, 168, 189, 0.12);
    border: 1px solid rgba(120, 168, 189, 0.2);
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Подсветка code при ховере на строку */
tbody tr:hover td code {
    background: rgba(120, 168, 189, 0.2);
    border-color: rgba(120, 168, 189, 0.4);
    color: #ffffff;
}

.article-cover{height:270px;position:relative;overflow:hidden;margin:22px 0 28px;border:1px solid #304450;border-radius:9px;background:radial-gradient(ellipse at center,#1c3542,#121a22 70%)}
.prose{font-size:15px;line-height:1.9;color:#c4cdd6}
.prose p{margin:0 0 19px}.prose h2{font-size:25px;line-height:1.3;letter-spacing:-.7px;color:var(--text);margin:34px 0 13px}
.prose li{padding-left:5px;margin:8px 0}
.prose ol{padding-left:24px;margin:0 0 23px}
.prose code{font:12px "JetBrains Mono",monospace;background:#222c35;color:#b9dce9;padding:2px 5px;border-radius:4px}
.prose pre{padding:17px 19px;background:#0b0f14;border:1px solid #27323c;border-radius:7px;overflow:auto;margin:22px 0 8px}
.prose pre code{background:transparent;padding:0;color:#b4d9b9;line-height:1.8}
.code-caption{font-size:11px;color:var(--muted-2);margin-bottom:24px!important}

.note-box{border-left:3px solid var(--accent);background:#17232b;padding:15px 17px;margin:23px 0;border-radius:0 7px 7px 0}
.note-box>b{font-size:15px;color:#b7d8e5}
.note-box p{font-size:15px;margin:7px 0 0}

.prose blockquote{margin:28px 0;padding:16px 20px;border-left:3px solid #577e91;background:#17212a;color:#c5d8e1;font-size:15px}
.article-tags{display:flex;gap:7px;margin:30px 0}
.article-tags span{
    font-size:12px
}
.feedback-panel{padding:18px;display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.feedback-panel h2{font-size:15px;margin:0}
.feedback-panel p{font-size:15px;color:var(--muted);margin:4px 0 0}
.feedback-buttons{display:flex;gap:10px;margin-left:auto}
.reaction-button{background:var(--surface-2);border:1px solid var(--border);color:var(--text);font-size:14px;border-radius:6px;padding:9px 10px}
.reaction-button:hover{border-color:var(--accent)}
.feedback-panel .form-message{flex-basis:100%;margin:0}
.related-section{margin-top:31px}
.related-section .section-heading h2{font-size:25px}

.related-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* Карточка */
.related-card {
    padding: 17px;
    border: 1px solid rgba(85, 122, 138, 0.4);
    border-radius: 8px;
    background: rgba(23, 40, 50, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 11px;
    transition: all 0.25s ease;
}

/* Ховер карточки */
.related-card:hover {
    border-color: var(--accent);
    background: rgba(28, 48, 60, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 12, 16, 0.5);
}

.related-card b {
    font-size: 15px;
    line-height: 1.4;
    color: #e8f4f8;
}

/* Тег */
.tag-bottom {
    align-self: flex-start; /* ← Вот он, фикс ширины */
    font-size: 11px;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(120, 168, 189, 0.1);
    color: #9bc7d8;
    border: 1px solid rgba(120, 168, 189, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: auto; /* Прижимает тег и small вниз, если текст карточки разной длины */
}

.related-card small {
    font-size: 11px;
    color: #7293a3;
    margin-top: -4px; /* Чуть ближе к тегу, если нужно */
}
.tag small{font-size:12px;color:var(--muted-2)}
.reading-aside{padding-top:0}
.toc-panel .eyebrow{margin-bottom:3px}

.toc-panel a{
	font-size:14px;
	color:var(--muted);
	line-height:1.2;
	border-left:1px solid #3a4854;
	padding-left:10px
}

.toc-panel {
  max-height: calc(90vh - 90px);
  overflow-y: auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:13px
}

.toc-chapter {
    font-weight: 600;
    color: var(--text);
    margin-top: 12px; /* Отступ сверху для новой главы */
    font-size: 14px;
}

/* Убираем отступ у самой первой ссылки */
.toc-panel .toc-chapter:first-of-type {
    margin-top: 0;
}

.toc-sub {
    font-size: 13px;
    color: var(--muted);
    padding-left: 12px; /* Сдвигаем подразделы вправо */
    border-left: 1px solid rgba(85, 122, 138, 0.3); /* Тонкая линия для иерархии */
    margin-left: 4px;
}

.toc-sub:hover, .toc-chapter:hover {
    color: var(--accent);
}

.reading-aside-sticky {
  position: sticky;
  top: 25px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-height: calc(110vh - 110px);
  overflow-y: auto;
}

.reading-aside-sticky .side-panel {
  flex-shrink: 0;
}

.toc-panel::-webkit-scrollbar {
  width: 6px;
}
.toc-panel::-webkit-scrollbar-thumb {
  background: #3a4854;
  border-radius: 3px;
}
.toc-panel::-webkit-scrollbar-track {
  background: transparent;
}

.toc-panel a:hover{
	color:var(--accent);
	border-color:var(--accent)
}

.tap-copy-hint {
  position: absolute;
  z-index: 9999;
  max-width: 340px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #202a35;
  color: #e7edf3;
  border: 1px solid #3b4856;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  pointer-events: none;
  animation: tap-hint-fade .12s ease-out;
}
@keyframes tap-hint-fade {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Общий контейнер ===== */
.article-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  margin: 24px 0 28px;
  border: 1px solid #2e4452;
  border-radius: 10px;
  background: 
    radial-gradient(ellipse at 50% 50%, #1d3644 0%, #121a22 70%),
    #121a22;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;                  /* ← добавили отступы между нодами */
  padding: 0 32px;
}

/* ===== Фоновая сетка ===== */
.cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122,165,185,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,165,185,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: none;
  opacity: .8;
  z-index: 0;
  pointer-events: none;
}

/* ===== Ноды (эффект стекла) ===== */
.cover-node {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(85, 122, 138, 0.6); /* граница чуть прозрачнее */
  background: rgba(23, 40, 50, 0.55);        /* ← прозрачный фон */
  backdrop-filter: blur(3px);                /* ← размытие фона под нодой */
  -webkit-backdrop-filter: blur(4px);        /* для Safari */
  border-radius: 8px;
  padding: 12px 22px;
  min-width: 140px;
  text-align: center;
  color: #9fc6d6;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 
    0 8px 24px rgba(8,12,16,.5),
    inset 0 1px 0 rgba(255,255,255,.06); /* легкий блик сверху */
  transition: all 0.3s ease;               /* плавность для ховера */
}

/* Легкий ховер, чтобы оживить интерфейс */
.cover-node:hover {
  background: rgba(28, 48, 60, 0.9);
  border-color: rgba(120, 168, 189, 0.8);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 28px rgba(8,12,16,.6),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.cover-node b {
  display: block;
  color: #e8f4f8;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}

/* ===== Общие стили для обеих линий ===== */
.cover-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  pointer-events: none;
  z-index: 1;
}

/* Верхняя линия — Client → Server (слева направо) */
.cover-line-top {
  top: calc(50% - 26px); /* чуть выше центра нод */
  background: repeating-linear-gradient(
    90deg,
    #78a8bd 0px,
    #78a8bd 6px,
    transparent 6px,
    transparent 12px
  );
  animation: flow-right 1.5s linear infinite;
  box-shadow: 0 0 6px rgba(120, 168, 189, 0.5);
}

/* Нижняя линия — Server → Client (справа налево) */
.cover-line-bottom {
  top: calc(50% + 26px); /* чуть ниже центра нод */
  background: repeating-linear-gradient(
    90deg,
    #78a8bd 0px,
    #78a8bd 6px,
    transparent 6px,
    transparent 12px
  );
  animation: flow-left 1.5s linear infinite;
  box-shadow: 0 0 6px rgba(120, 168, 189, 0.5);
}

/* Анимации движения */
@keyframes flow-right {
  from { background-position: 0 0; }
  to   { background-position: 12px 0; }
}
@keyframes flow-left {
  from { background-position: 0 0; }
  to   { background-position: -12px 0; }
}

/* ===== «Пакеты данных» — светящиеся точки на линиях ===== */
.cover-line::before,
.cover-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8ebf5;
  box-shadow: 0 0 8px #c8ebf5, 0 0 16px #78a8bd;
  transform: translateY(-50%);
}

/* Точки на верхней линии — движутся вправо */
.cover-line-top::before {
  left: 0;
  animation: packet-right 3s linear infinite;
}
.cover-line-top::after {
  left: 0;
  animation: packet-right 3s linear infinite;
  animation-delay: 1.5s;
}

/* Точки на нижней линии — движутся влево */
.cover-line-bottom::before {
  right: 0;
  animation: packet-left 3s linear infinite;
}
.cover-line-bottom::after {
  right: 0;
  animation: packet-left 3s linear infinite;
  animation-delay: 1.5s;
}

@keyframes packet-right {
  0%   { left: 0;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes packet-left {
  0%   { right: 0;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

/* Убираем старые псевдоэлементы */
.cover-b::before,
.cover-b::after {
  content: none;
}
.cover-path {
  display: none;
}

/* ===== Подпись ===== */
.cover-caption {
  position: absolute;
  bottom: 12px;
  left: 20px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 1.8px;
  color: #5d7f8f;
  text-transform: uppercase;
  z-index: 4;
}

.reading-aside .side-panel{margin-top:14px}
.reading-aside .side-panel p{font-size:12px;line-height:1.7}
.notice-strip{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid #344955;border-radius:8px;background:#17242c;margin-bottom:17px}
.notice-icon{width:20px;height:20px;flex-shrink:0;display:grid;place-items:center;background:#304c5a;border-radius:50%;font-weight:800;font-size:12px;color:#c1e0ec}
.notice-strip p{margin:0;font-size:11px;color:#aebfc9;line-height:1.7}
.notice-strip b{color:#d8e8ef}
.commands-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.command-card{padding:18px;border:1px solid var(--border);border-radius:9px;background:var(--surface);min-width:0}
.command-card-head{display:flex;align-items:center;justify-content:space-between}
.command-level{font:9px "JetBrains Mono",monospace;color:var(--muted-2);border:1px solid var(--border);padding:3px 6px;border-radius:4px}
.command-card h2{font-size:15px;margin:13px 0 5px}
.command-card p{font-size:11px;color:var(--muted);line-height:1.7;min-height:40px;margin:0 0 14px}
.command-code{display:flex;align-items:center;gap:8px;background:#0d1217;border:1px solid #29333e;border-radius:6px;padding:9px 10px;min-width:0}
.command-code code{font:10px "JetBrains Mono",monospace;overflow-wrap:anywhere;color:#b4d9b9;flex:1}
.copy-command{font-size:9px;color:#b9dce9;background:#263943;border:1px solid #365461;border-radius:4px;padding:5px 7px;flex-shrink:0}
.copy-command:hover{background:#304d5a}
.command-card>small{display:block;color:var(--muted-2);font-size:10px;line-height:1.6;margin-top:11px}
.toast-message{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:30;background:#1d333d;color:#c5e7f3;border:1px solid #3c6373;padding:10px 15px;border-radius:7px;font-size:11px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .2s}
.toast-message.show{opacity:1}
.reviews-summary{display:grid;grid-template-columns:1fr 1.3fr;gap:45px;padding:24px;margin-bottom:18px}
.rating-number{font-size:37px;font-weight:800;letter-spacing:-1.4px;line-height:1.2;margin-top:7px}
.rating-number span{font-size:15px;color:var(--muted-2);font-weight:500}
.rating-stars,.review-stars{color:#e8b96e;letter-spacing:2px;font-size:13px}
.reviews-summary p{font-size:10px;margin:7px 0 0}
.rating-bars{display:flex;flex-direction:column;justify-content:center;gap:10px}
.rating-bars>div{display:grid;grid-template-columns:65px 1fr 35px;gap:10px;align-items:center;font-size:10px;color:var(--muted)}
.rating-bars i{height:6px;border-radius:10px;background:#2b333d;overflow:hidden}
.rating-bars i b{display:block;height:100%;border-radius:10px;background:var(--accent)}
.rating-bars strong{font-size:10px;text-align:right;color:var(--muted-2)}
.reviews-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.review-list{display:flex;flex-direction:column;gap:12px}
.review-card{padding:19px}
.review-head{display:flex;align-items:center;gap:10px}
.review-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#344f5b;color:#d0e5ed;font-size:11px;font-weight:800}
.review-head>div{display:flex;flex-direction:column}
.review-head b{font-size:12px}
.review-head small{font-size:10px;color:var(--muted-2);margin-top:2px}
.review-stars{margin-left:auto;font-size:11px}
.review-card p{font-size:12px;color:#b3bec8;line-height:1.8;margin:15px 0 12px}
.review-topic{border-top:1px solid #28313a;padding-top:10px;color:var(--muted-2);font-size:10px}
.review-form-panel{padding:21px}
.review-form-panel h2{font-size:17px;margin:0}
.review-form-panel>p{font-size:11px;line-height:1.7}
.stack-form{display:flex;flex-direction:column;gap:13px;margin-top:17px}
.stack-form>label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#c5ced7;font-weight:600}
.stack-form textarea{resize:vertical;min-height:100px}
.stack-form input::placeholder,.stack-form textarea::placeholder{color:#667483}
.auth-page{min-height:calc(100vh - 66px);display:grid;grid-template-columns:minmax(320px,450px) minmax(0,1fr);align-items:center;justify-content:center;gap:70px;padding-top:40px;padding-bottom:40px}
.auth-card{padding:29px;max-width:450px;width:100%;margin:auto}
.auth-brand{margin-bottom:30px}
.auth-card h1{font-size:29px;letter-spacing:-.9px;margin:7px 0}
.auth-card>p{font-size:11px;line-height:1.7}
.auth-card .stack-form{margin-top:21px}
.form-row{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}
.form-row>a{color:var(--accent)}
.checkbox-label{display:flex;align-items:center;gap:7px}
.checkbox-label input{width:auto;accent-color:var(--accent)}
.auth-divider{display:flex;align-items:center;gap:12px;color:var(--muted-2);font-size:10px;margin:17px 0}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--border);flex:1}
.auth-legal{font-size:9px!important;color:var(--muted-2);text-align:center;margin-top:18px}
.auth-aside{max-width:470px;padding:30px 0}.auth-aside h2{font-size:34px;letter-spacing:-1.2px;line-height:1.2;margin:12px 0}
.auth-aside p{color:var(--muted);font-size:13px;line-height:1.9}.auth-stats{display:flex;gap:32px;margin-top:30px;padding-top:20px;border-top:1px solid var(--border)}
.auth-stats div{display:flex;flex-direction:column}
.auth-stats b{font-size:23px;color:#c2dce7}
.auth-stats span{font-size:10px;color:var(--muted-2)}
.auth-page .site-footer{grid-column:1/-1;width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.header-inner{gap:18px}.main-nav{gap:15px}.header-search{min-width:auto}.header-search kbd{display:none}.content-layout{grid-template-columns:minmax(0,1fr) 280px}.reading-layout{grid-template-columns:minmax(0,1fr) 210px;gap:25px}.auth-page{gap:35px}.hero-copy{padding:31px}.hero-art{min-height:280px}}
@media(max-width:800px){
	.page-shell,.header-inner{width:calc(100% - 30px)}
	.site-header{height:60px}.header-inner{gap:12px}
	.mobile-menu{display:block;margin-left:auto}
	.main-nav{display:none;position:absolute;top:59px;left:0;right:0;height:auto;background:#12171e;border-bottom:1px solid var(--border);padding:10px 15px 15px;flex-direction:column;align-items:stretch;gap:0}
	.main-nav.open{display:flex}.main-nav a{height:auto;padding:10px 5px;border-bottom:0}.header-spacer{display:none}.header-search{display:none}
    .login-link{padding:7px 9px}
    .hero{grid-template-columns:1fr}
    .hero-copy{padding:28px}
    .hero-art{min-height:220px}
    .content-layout{grid-template-columns:1fr}
    .side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.newsletter{grid-column:1/-1}.catalog-layout{grid-template-columns:1fr}.sticky-panel{position:static}.reading-layout{grid-template-columns:1fr}.reading-aside{display:none}.article-title{font-size:31px}.reviews-layout{grid-template-columns:1fr}.review-form-panel{order:-1}.auth-page{grid-template-columns:1fr;gap:20px}.auth-aside{display:none}.auth-card{margin:25px auto}
	.auth-page .site-footer{margin-top:0}}
@media(max-width:540px){.page-shell,.header-inner{width:calc(100% - 24px)}.brand-name{font-size:15px}.brand-mark{width:35px;height:35px}.hero{margin-top:15px}.hero-copy{padding:23px 20px}.hero h1{font-size:31px}.hero-copy>p{font-size:12px}.hero-art{min-height:190px}.node-router{left:7%;top:12%}.node-client{left:7%;top:63%}.node-core{left:39%;top:36%}.node-server{right:5%;top:60%}.net-node{width:67px;height:62px}.content-layout{margin-top:24px}.side-column{grid-template-columns:1fr}.newsletter{grid-column:auto}
.section-heading h2{font-size:18px}.article-card{padding:17px}.article-card h3,.article-card h2{font-size:15px}.page-intro{padding:28px 0 18px}.page-intro h1{font-size:29px}.filter-bar{padding:9px;gap:8px}.search-field{min-width:100%;flex-basis:100%}.filter-tags{gap:2px}.filter-chip{padding:7px}.commands-grid{grid-template-columns:1fr}.command-card p{min-height:0}.article-title{font-size:29px}.article-lead{font-size:14px}.prose{font-size:14px}.prose h2{font-size:22px}.feedback-panel{align-items:flex-start}.feedback-buttons{margin-left:0;width:100%}.reaction-button{flex:1}.related-grid{grid-template-columns:1fr}.reviews-summary{grid-template-columns:1fr;gap:20px;padding:19px}
.site-footer{align-items:flex-start;flex-wrap:wrap}.site-footer .footer-links{width:100%;margin-left:0;flex-wrap:wrap}.auth-card{padding:22px}.auth-page{padding-top:5px}

.main-nav {
  font-size: 16px;
}

.article-card p {
  font-size: 16px;
}

.article-footer {
  font-size: 16px;
}

.article-topline time {
  font-size: 12px;
}

.tag {
  font-size: 12px;
}

.topic-row b {
  font-size: 16px;
}

.topic-row small {
  font-size: 11px;
}

.text-link {
  font-size: 16px;
}

.side-panel h2,
.side-title h2 {
  font-size: 20px;
}

@media (max-width: 540px) {
  .article-card h3,
  .article-card h2 {
    font-size: 16px;
  }

  .article-card p {
    font-size: 16px;
  }
}