/*
Theme Name: it-stories theme
Author: rsgrinko <rsgrinko@gmail.com>
Description: it-stories template
Version: 1.0
*/

 /* ── TOKENS ───────────────────────────────────────────── */
    :root {
      --bg:        #0d0f12;
      --bg2:       #13161b;
      --bg3:       #1a1e26;
      --border:    #252932;
      --border2:   #2e3440;
      --text:      #cdd3de;
      --text2:     #7c8799;
      --text3:     #4a5364;
      --accent:    #3ddc84;       /* terminal green */
      --accent2:   #5b9af5;       /* cool blue */
      --accent3:   #f5a623;       /* amber warning */
      --mono:      'JetBrains Mono', monospace;
      --sans:      'Geologica', sans-serif;
      --r4:        4px;
      --r8:        8px;
      --r12:       12px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }

    body {
      font-family: var(--sans);
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }

    /* ── SCROLLBAR ────────────────────────────────────────── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

    /* ── NOISE OVERLAY ────────────────────────────────────── */
    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 0;
      pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      opacity: 0.35;
    }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

    /* ── COOKIE BAR ───────────────────────────────────────── */
    .cookie-bar {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
      background: var(--bg3);
      border-top: 1px solid var(--border);
      padding: 14px 24px;
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      font-size: 0.82rem; color: var(--text2);
      backdrop-filter: blur(12px);
    }
    .cookie-bar a { color: var(--accent); }
    .cookie-btn {
      flex-shrink: 0;
      padding: 6px 18px;
      background: var(--accent); color: #000;
      border: none; border-radius: 100px;
      font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
      cursor: pointer; letter-spacing: 0.05em;
      transition: opacity 0.2s;
    }
    .cookie-btn:hover { opacity: 0.82; }

    /* ── HEADER ───────────────────────────────────────────── */
    .site-header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(13,15,18,0.92);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(16px);
    }

    .header-inner {
      display: flex; align-items: center;
      gap: 24px; height: 64px;
    }

    .logo {
      display: flex; align-items: center; gap: 10px;
      flex-shrink: 0;
    }
    .logo-icon {
      width: 36px; height: 36px;
      background: var(--accent);
      border-radius: var(--r8);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
      color: #000; letter-spacing: -0.05em;
    }
    .logo-text {
      font-family: var(--mono); font-size: 0.9rem; font-weight: 500;
      color: var(--text);
      line-height: 1.2;
    }
    .logo-text span { color: var(--accent); }

    .header-nav {
      display: flex; align-items: center; gap: 2px;
      margin-left: 8px; flex: 1;
    }
    .header-nav a {
      padding: 6px 14px;
      font-size: 0.82rem; font-weight: 500;
      color: var(--text2);
      border-radius: var(--r4);
      transition: color 0.18s, background 0.18s;
      white-space: nowrap;
      position: relative;
    }
    .header-nav a:hover, .header-nav a.active {
      color: var(--text);
      background: var(--bg3);
    }
    .header-nav a.active::after {
      content: '';
      position: absolute; bottom: -1px; left: 14px; right: 14px;
      height: 2px; background: var(--accent); border-radius: 1px;
    }

    /* dropdown */
    .nav-item { position: relative; }
    .nav-item:hover .nav-dropdown { display: flex; }
    .nav-dropdown {
      display: none;
      flex-direction: column;
      position: absolute;
	  /*top: calc(100% + 8px);*/
	  left: 0;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--r8);
      padding: 6px;
      min-width: 200px;
      box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    }
    .nav-dropdown a {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 10px;
      font-size: 0.82rem; color: var(--text2);
      border-radius: var(--r4);
    }
    .nav-dropdown a::before {
      content: '>';
      font-family: var(--mono); font-size: 0.7rem;
      color: var(--accent); opacity: 0.6;
    }
    .nav-dropdown a:hover { background: var(--bg3); color: var(--text); }

    .header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

    .search-wrap {
      position: relative;
    }
    .search-wrap input {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: 7px 16px 7px 36px;
      font-family: var(--mono); font-size: 0.8rem;
      color: var(--text); width: 200px;
      outline: none; transition: border-color 0.2s, width 0.3s;
    }
    .search-wrap input:focus { border-color: var(--accent); width: 240px; }
    .search-wrap input::placeholder { color: var(--text3); }
    .search-wrap svg {
      position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
      width: 14px; height: 14px; stroke: var(--text3);
    }

    .online-badge {
      display: flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 0.72rem; color: var(--text3);
    }
    .online-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--accent);
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%,100%{ opacity: 1; box-shadow: 0 0 0 0 rgba(61,220,132,0.4); }
      50%{ opacity: 0.7; box-shadow: 0 0 0 4px rgba(61,220,132,0); }
    }

    /* ── HERO ─────────────────────────────────────────────── */
    .hero {
      padding: 64px 0 56px;
      border-bottom: 1px solid var(--border);
      position: relative; overflow: hidden;
    }

    /* grid lines bg */
    .hero::after {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 48px 48px;
      opacity: 0.3;
      pointer-events: none;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 48px;
      align-items: center;
      position: relative; z-index: 1;
    }

    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
      color: var(--accent); letter-spacing: 0.1em;
      margin-bottom: 20px;
    }
    .hero-eyebrow::before { content: '//'; opacity: 0.5; }

    .hero h1 {
      font-family: var(--sans); font-weight: 700;
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.15; letter-spacing: -0.02em;
      color: #fff; margin-bottom: 16px;
    }
    .hero h1 em {
      font-style: normal;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }

    .hero-desc {
      font-size: 1rem; color: var(--text2); max-width: 50ch;
      margin-bottom: 32px; line-height: 1.75;
    }

    .hero-stats {
      display: flex; gap: 32px; flex-wrap: wrap;
    }
    .stat { display: flex; flex-direction: column; gap: 2px; }
    .stat-num {
      font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
      color: #fff; line-height: 1;
    }
    .stat-num span { color: var(--accent); }
    .stat-label { font-size: 0.78rem; color: var(--text3); }

    /* Terminal widget */
    .terminal {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--r12);
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    }
    .terminal-bar {
      display: flex; align-items: center; gap: 6px;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      background: var(--bg3);
    }
    .tbar-dot {
      width: 10px; height: 10px; border-radius: 50%;
    }
    .tbar-dot:nth-child(1) { background: #ff5f57; }
    .tbar-dot:nth-child(2) { background: #febc2e; }
    .tbar-dot:nth-child(3) { background: #28c840; }
    .tbar-title {
      margin-left: auto; margin-right: auto;
      font-family: var(--mono); font-size: 0.72rem;
      color: var(--text3);
    }
    .terminal-body { padding: 20px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.9; }
    .t-prompt { color: var(--accent); }
    .t-cmd { color: var(--text); }
    .t-out { color: var(--text2); padding-left: 16px; }
    .t-out.ok { color: var(--accent); }
    .t-out.info { color: var(--accent2); }
    .t-out.warn { color: var(--accent3); }
    .t-cursor {
      display: inline-block; width: 8px; height: 14px;
      background: var(--accent); vertical-align: middle;
      animation: blink 1s step-end infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

    /* ── CATEGORIES STRIP ─────────────────────────────────── */
    .cat-strip { padding: 32px 0; border-bottom: 1px solid var(--border); }
    .cat-strip-inner {
      display: flex; gap: 10px; flex-wrap: wrap;
    }
    .cat-tag {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 14px;
      border: 1px solid var(--border2);
      border-radius: 100px;
      font-family: var(--mono); font-size: 0.77rem;
      color: var(--text2);
      background: var(--bg2);
      transition: all 0.18s; cursor: pointer;
    }
    .cat-tag:hover, .cat-tag.active {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(61,220,132,0.06);
    }
    .cat-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

    /* ── MAIN LAYOUT ──────────────────────────────────────── */
    .main-grid {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 48px;
      padding: 48px 0;
    }

    /* Section heading */
    .section-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 24px;
    }
    .section-title {
      font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
      color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase;
      display: flex; align-items: center; gap: 8px;
    }
    .section-title::before {
      content: '';
      display: inline-block; width: 20px; height: 1px; background: var(--accent);
    }
    .see-all {
      font-family: var(--mono); font-size: 0.75rem; color: var(--accent2);
      display: flex; align-items: center; gap: 4px;
      transition: gap 0.2s;
    }
    .see-all:hover { gap: 8px; }

    /* ── FEATURED POST ────────────────────────────────────── */
    .featured-card {
      border: 1px solid var(--border);
      border-radius: var(--r12);
      overflow: hidden;
      background: var(--bg2);
      display: grid; grid-template-columns: 1fr 1fr;
      margin-bottom: 32px;
      transition: border-color 0.2s, transform 0.2s;
    }
    .featured-card:hover {
      border-color: var(--border2);
      transform: translateY(-2px);
    }
    .featured-img {
      background: var(--bg3);
      position: relative; overflow: hidden;
      min-height: 260px;
    }
    .featured-img img {
      width: 100%; height: 100%; object-fit: cover;
      opacity: 0.7;
      transition: opacity 0.3s, transform 0.4s;
    }
    .featured-card:hover .featured-img img { opacity: 0.9; transform: scale(1.03); }
    .featured-img-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(61,220,132,0.15), transparent);
    }
    .featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
    .post-cat {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
      color: var(--accent); letter-spacing: 0.08em;
      margin-bottom: 14px;
    }
    .post-cat::before { content: '#'; }
    .featured-body h2 {
      font-size: 1.3rem; font-weight: 700;
      color: #fff; line-height: 1.3;
      margin-bottom: 12px; letter-spacing: -0.01em;
    }
    .featured-body p { font-size: 0.88rem; color: var(--text2); margin-bottom: 20px; }
    .post-meta {
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
      font-family: var(--mono); font-size: 0.72rem; color: var(--text3);
    }
    .post-meta-sep { opacity: 0.4; }
    .read-link {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
      color: var(--accent2); margin-top: 16px;
      transition: gap 0.2s;
    }
    .read-link:hover { gap: 10px; }

    /* ── POST CARDS GRID ──────────────────────────────────── */
    .posts-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .post-card {
      border: 1px solid var(--border);
      border-radius: var(--r8);
      background: var(--bg2);
      padding: 20px;
      transition: border-color 0.2s, transform 0.2s;
      display: flex; flex-direction: column; gap: 10px;
    }
    .post-card:hover {
      border-color: var(--border2);
      transform: translateY(-2px);
    }
    .post-card .post-cat { margin-bottom: 0; }
    .post-card h3 {
      font-size: 0.95rem; font-weight: 600;
      color: #e2e8f0; line-height: 1.4;
      flex: 1;
    }
    .post-card:hover h3 { color: #fff; }
    .post-card .post-meta { margin-top: auto; }

    /* code-style category colors */
    .cat-bitrix   { color: #e06c75; } .cat-bitrix::before { content: '#'; }
    .cat-web      { color: #61afef; }
    .cat-linux    { color: #98c379; }
    .cat-micro    { color: #e5c07b; }
    .cat-network  { color: #c678dd; }
    .cat-seo      { color: #56b6c2; }
    .cat-garage   { color: var(--accent3); }
    .cat-avto     { color: #abb2bf; }
    .cat-mesh     { color: var(--accent); }

    /* ── SIDEBAR ──────────────────────────────────────────── */
    .sidebar { display: flex; flex-direction: column; gap: 24px; }

    .sidebar-block {
      border: 1px solid var(--border);
      border-radius: var(--r8);
      background: var(--bg2);
      overflow: hidden;
    }
    .sidebar-block-head {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
      color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase;
      display: flex; align-items: center; gap: 8px;
    }
    .sidebar-block-head::before {
      content: ''; width: 6px; height: 6px;
      border-radius: 50%; background: var(--accent);
    }
    .sidebar-block-body { padding: 16px 18px; }

    /* Popular list */
    .popular-list { display: flex; flex-direction: column; gap: 0; }
    .popular-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      transition: background 0.18s;
    }
    .popular-item:last-child { border-bottom: none; padding-bottom: 0; }
    .popular-item:first-child { padding-top: 0; }
    .popular-num {
      font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
      color: var(--text3); min-width: 20px; padding-top: 2px;
    }
    .popular-item:hover .popular-num { color: var(--accent); }
    .popular-title {
      font-size: 0.84rem; color: var(--text2); line-height: 1.4;
      transition: color 0.18s;
    }
    .popular-item:hover .popular-title { color: var(--text); }

    /* Services list */
    .services-list { display: flex; flex-direction: column; gap: 6px; }
    .service-link {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: var(--r4);
      font-size: 0.82rem; color: var(--text2);
      background: var(--bg3);
      transition: all 0.18s;
    }
    .service-link:hover {
      border-color: var(--accent2);
      color: var(--accent2);
      background: rgba(91,154,245,0.06);
    }
    .service-icon {
      font-family: var(--mono); font-size: 0.7rem;
      color: var(--accent2); width: 18px; text-align: center;
    }

    /* Categories sidebar */
    .cat-list-sidebar { display: flex; flex-direction: column; gap: 4px; }
    .cat-list-sidebar a {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px;
      border-radius: var(--r4);
      font-size: 0.84rem; color: var(--text2);
      transition: all 0.18s;
    }
    .cat-list-sidebar a:hover { background: var(--bg3); color: var(--text); }
    .cat-list-sidebar a span:first-child {
      display: flex; align-items: center; gap: 8px;
    }
    .cat-list-sidebar a span:first-child::before {
      content: '';
      width: 4px; height: 4px; border-radius: 50%;
      background: var(--accent); flex-shrink: 0;
    }
    .cat-count {
      font-family: var(--mono); font-size: 0.7rem;
      color: var(--text3);
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 100px; padding: 1px 7px;
    }

    /* About block */
    .about-block { display: flex; flex-direction: column; gap: 12px; }
    .about-avatar {
      width: 52px; height: 52px; border-radius: 50%;
      border: 2px solid var(--accent);
      padding: 2px;
      background: var(--bg3);
    }
    .about-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    .about-name {
      font-weight: 600; color: #fff; font-size: 0.95rem;
    }
    .about-role {
      font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-top: 2px;
    }
    .about-bio { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }
    .about-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
    .about-link {
      padding: 5px 12px;
      border: 1px solid var(--border2);
      border-radius: 100px;
      font-family: var(--mono); font-size: 0.72rem;
      color: var(--text2);
      transition: all 0.18s;
    }
    .about-link:hover { border-color: var(--accent); color: var(--accent); }

    /* ── SERVICES SECTION ─────────────────────────────────── */
    .services-section {
      border-top: 1px solid var(--border);
      padding: 48px 0;
    }
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 24px;
    }
    .service-card {
      border: 1px solid var(--border);
      border-radius: var(--r8);
      padding: 24px;
      background: var(--bg2);
      transition: border-color 0.2s, transform 0.2s;
    }
    .service-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
    .service-card-icon {
      width: 42px; height: 42px;
      border-radius: var(--r8);
      background: rgba(91,154,245,0.1);
      border: 1px solid rgba(91,154,245,0.2);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--mono); font-size: 1rem;
      color: var(--accent2); margin-bottom: 16px;
    }
    .service-card h4 {
      font-size: 0.95rem; font-weight: 600; color: #fff;
      margin-bottom: 8px;
    }
    .service-card p { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }

    /* ── FOOTER ───────────────────────────────────────────── */
    .site-footer {
      border-top: 1px solid var(--border);
      background: var(--bg2);
    }
    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      padding: 48px 0 40px;
    }
    .footer-brand p {
      font-size: 0.85rem; color: var(--text3); margin: 14px 0 20px;
      max-width: 28ch; line-height: 1.65;
    }
    .footer-server {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 0.7rem;
      color: var(--text3);
      border: 1px solid var(--border);
      border-radius: 100px; padding: 4px 10px;
    }
    .footer-col h5 {
      font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
      color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase;
      margin-bottom: 16px;
    }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .footer-col ul li a {
      font-size: 0.84rem; color: var(--text3);
      transition: color 0.18s;
      display: flex; align-items: center; gap: 6px;
    }
    .footer-col ul li a::before {
      content: '→';
      font-family: var(--mono); font-size: 0.7rem;
      color: var(--accent); opacity: 0;
      transition: opacity 0.18s, transform 0.18s;
      transform: translateX(-4px);
    }
    .footer-col ul li a:hover { color: var(--text); }
    .footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding: 20px 0;
      display: flex; align-items: center; justify-content: space-between;
      font-family: var(--mono); font-size: 0.72rem; color: var(--text3);
    }
    .footer-bottom a { color: var(--text3); transition: color 0.18s; }
    .footer-bottom a:hover { color: var(--accent); }
    .footer-bottom-right { display: flex; gap: 24px; }

    /* ── REVEAL ANIMATIONS ────────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .reveal.vis { opacity: 1; transform: none; }

    /* ── RESPONSIVE ───────────────────────────────────────── */
    @media (max-width: 1024px) {
      .main-grid { grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
      .services-grid { grid-template-columns: 1fr 1fr; }
      .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    }
    @media (max-width: 768px) {
      .hero-inner { grid-template-columns: 1fr; }
      .terminal { display: none; }
      .featured-card { grid-template-columns: 1fr; }
      .posts-grid { grid-template-columns: 1fr; }
      .header-nav { display: none; }
      .services-grid { grid-template-columns: 1fr; }
      .sidebar { grid-template-columns: 1fr; }
      .footer-top { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
      .footer-bottom-right { flex-direction: column; gap: 8px; align-items: center; }
    }
	
	
	/* ── PAGINATION ───────────────────────────────────────── */
.pagination-wrapper {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-bottom: 25px;
}

.pagination-wrapper .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pagination-wrapper .page-numbers {
  padding: 5px 12px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text2);
  background: transparent;
  transition: all 0.18s;
}

.pagination-wrapper a.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-wrapper .page-numbers.current {
  border-color: var(--accent);
  color: #000;
  background: var(--accent);
  font-weight: 700;
}

.pagination-wrapper a.next,
.pagination-wrapper a.prev {
  color: var(--accent2);
  border-color: var(--border2);
}

.pagination-wrapper a.next:hover,
.pagination-wrapper a.prev:hover {
  border-color: var(--accent2);
  background: rgba(91, 154, 245, 0.06);
}



/* ── SINGLE POST CONTENT ──────────────────────────────── */
.single-post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.single-post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.single-post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 32px 0 12px;
}

.single-post-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
  font-family: var(--mono);
}

.single-post-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.single-post-content a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.single-post-content a:hover { color: var(--accent); }

.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text);
}
.single-post-content li { margin-bottom: 8px; }
.single-post-content li::marker { color: var(--accent); }

.single-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg2);
  border-radius: 0 var(--r8) var(--r8) 0;
  margin: 24px 0;
  color: var(--text2);
  font-style: italic;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.single-post-content blockquote p { margin-bottom: 0; color: var(--text2); }

/* inline code */
.single-post-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 2px 7px;
}

/* code block */
.single-post-content pre {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--r8);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
}
.single-post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}

/* table */
.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
}
.single-post-content th {
  background: var(--bg3);
  color: var(--text2);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border2);
}
.single-post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.single-post-content tr:hover td { background: var(--bg2); }

/* hr */
.single-post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* wp-caption (подпись к изображению) */
.single-post-content .wp-caption {
  max-width: 100%;
  margin: 24px 0;
}
.single-post-content .wp-caption-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text3);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ── COMMENTS ─────────────────────────────────────────── */
.comment-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment-list .comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment-list .comment:last-child { border-bottom: none; }

.comment-list .comment-body { flex: 1; }

.comment-list .comment-author .fn {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.comment-list .comment-author a { color: #fff; }

.comment-list .comment-metadata {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 2px;
  margin-bottom: 10px;
}
.comment-list .comment-metadata a { color: var(--text3); }

.comment-list .comment-content p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0;
}

.comment-list .reply { margin-top: 10px; }
.comment-list .comment-reply-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 3px 10px;
  transition: all 0.18s;
}
.comment-list .comment-reply-link:hover {
  border-color: var(--accent);
  background: rgba(61,220,132,0.06);
}

/* Форма комментария */
.comment-respond { margin-top: 32px; }

.comment-respond .comment-reply-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-respond .comment-reply-title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.comment-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r8);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text3); }
.comment-form textarea { min-height: 130px; resize: vertical; }

.comment-form .comment-form-author,
.comment-form .comment-form-email {
  display: inline-block;
  width: calc(50% - 8px);
}
.comment-form .comment-form-author { margin-right: 16px; }

.comment-form .form-submit { margin-top: 4px; }
.comment-form input[type="submit"] {
  width: auto;
  padding: 10px 28px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 0;
}
.comment-form input[type="submit"]:hover { opacity: 0.85; }
.post-title {
	font-size: clamp(1.5rem, 3.5vw, 2.4rem);
          font-weight: 700;
          color: #fff;
          line-height: 1.2;
          letter-spacing: -0.02em;
          margin: 16px 0 20px;
}