/*
 * SEBERD legacy skin — восстановлено из theme-archives/130320261002-20260321/style.css
 * Полные глобальные стили (кибер-тема GeneratePress child era).
 */
/* ── ШРИФТЫ ── */
@import url("https://fonts.bunny.net/css?family=inter:400,500,600,700|jetbrains-mono:400,700&display=swap");

/* ── АНТИВСПЫШКА ── */
* {
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}

/* ── БАЗОВЫЕ ФОН И ТЕКСТ ── */
html {
  background: #1a1a2e !important;
  background-color: #1a1a2e !important;
}

body {
  background-color: #1a1a2e !important;
}

/* ── ХЕДЕР: запрет белых фонов ── */
#masthead,
#masthead *,
#masthead:focus,
#masthead:active,
#masthead .inside-header,
#masthead .inside-header:focus,
#masthead .inside-header:active,
.site-header,
.site-header *,
.site-header:focus,
.site-header:active,
.inside-header,
.inside-header.grid-container {
  -webkit-tap-highlight-color: transparent !important;
}

#masthead:focus,
.site-header:focus,
.site-header:active {
  background: linear-gradient(135deg, #2a0a1a 0%, #1a1a2e 60%, #0e0b1e 100%) !important;
  outline: none !important;
}

.inside-header:focus,
.inside-header:active {
  background: transparent !important;
  outline: none !important;
}

.main-navigation a:focus,
.main-navigation a:active,
.main-navigation .main-nav > ul > li > a:focus,
.main-navigation .main-nav > ul > li > a:active {
  background: transparent !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ── ПЕРЕМЕННЫЕ ДИЗАЙН-СИСТЕМЫ ── */
:root {
  --bg-gradient:    linear-gradient(135deg, #4c0519 0%, #1a1a2e 100%);
  --bg-base:        #1a1a2e;
  --bg-card:        #20203a;
  --bg-card-alt:    #252545;
  --bg-input:       #141428;
  --bg-code:        #111126;

  --text-main:      #e8e8f0;
  --text-sec:       #d6d0e6;
  --text-muted:     #b2a6c4;
  --text-heading:   #f0e8f4;

  --accent:         #ff6600;
  --accent-dark:    #cc4400;
  --accent-soft:    rgba(255, 102, 0, 0.12);
  --accent-glow:    rgba(255, 102, 0, 0.22);
  /* текст на оранжевой заливке (кнопки) — не цвет ссылки */
  --on-emphasis:    #1a0a06;

  --border:         rgba(255, 255, 255, 0.07);
  --border-strong:  rgba(255, 255, 255, 0.13);
  --border-focus:   rgba(255, 102, 0, 0.55);

  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 24px rgba(255, 102, 0, 0.18);

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;

  --ease:   all 0.2s ease;

  --font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:   Consolas, Monaco, 'Courier New', monospace;
}

/* ── ГЛОБАЛЬНЫЕ СТИЛИ ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--text-main) !important;
  font-family: var(--font);
  line-height: 1.7;
}

/* Убираем белые фоны GeneratePress */
.site,
.site-content,
.content-area,
.inside-site,
.separate-containers,
.page-header,
.archive-header,
.inside-article,
.entry-content,
.page-content,
.widget-area,
.widget,
.comments-area,
.footer-widgets,
.site-footer,
.site-info {
  background: transparent !important;
  border: none !important;
}

/* Растягиваем контент на всю ширину — только без боковой колонки; иначе ломается flex (grid-75 + grid-25). */
body.no-sidebar .site-content .content-area,
.site-content .content-area .inside-article,
.site-main .inside-article,
.site-main .grid-container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* ── ХЕДЕР — как в макете seberd-header-v2: шум + градиент, мягкое сжатие ── */
#masthead,
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #1e0610 0%, #14112a 50%, #0a0818 100%) !important;
  border-bottom: 1px solid rgba(255, 102, 0, 0.22) !important;
  box-shadow:
    0 1px 0 rgba(255, 102, 0, 0.08) inset,
    0 6px 48px rgba(0, 0, 0, 0.7) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  #masthead,
  .site-header {
    backdrop-filter: blur(24px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  }
}

#masthead .site-branding,
.site-header .site-branding {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#masthead .inside-header,
.site-header .inside-header,
.inside-header.grid-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Хедер во всю ширину: выходим из ограничивающего контейнера темы */
#masthead .inside-header.grid-container,
.site-header .inside-header.grid-container {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

/* Сжатая шапка при скролле */
.sbrd-header-shrink #masthead,
.sbrd-header-shrink .site-header {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.9), 0 0 60px rgba(255, 102, 0, 0.04) !important;
}

.sbrd-header-shrink #masthead .inside-header,
.sbrd-header-shrink .site-header .inside-header {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

/* Логотип — градиентный, как в макете seberd-header-v2 */
body #masthead .site-branding .main-title a,
body #masthead .site-branding .main-title a:visited,
body #masthead .site-branding .site-title a,
body #masthead .site-branding .site-title a:visited,
body #masthead .main-title a,
body #masthead .main-title a:visited,
body #masthead .site-title a,
body #masthead .site-title a:visited,
#masthead .site-branding .site-title a,
#masthead .site-branding .site-title a:visited,
#masthead .site-branding .main-title a,
#masthead .site-branding .main-title a:visited,
#masthead .site-title a,
#masthead .site-title a:visited,
#masthead .main-title a,
#masthead .main-title a:visited,
.site-title a,
.site-title a:visited,
.main-title a,
.main-title a:visited {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  background: linear-gradient(92deg, #ff8a1f 0%, #ffb347 46%, #ffe08a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 800 !important;
  font-size: clamp(26px, 2.2vw, 32px) !important;
  letter-spacing: 0.9px !important;
  text-transform: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  filter: drop-shadow(0 1px 8px rgba(255, 132, 38, 0.32)) !important;
  transition: filter 0.2s ease, transform 0.2s ease !important;
}

body #masthead .site-branding .main-title a:hover,
body #masthead .site-branding .site-title a:hover,
body #masthead .main-title a:hover,
body #masthead .site-title a:hover,
#masthead .site-title a:hover,
#masthead .main-title a:hover,
.site-title a:hover,
.main-title a:hover {
  filter: drop-shadow(0 2px 12px rgba(255, 138, 31, 0.45)) !important;
  transform: translateY(-0.5px) !important;
}

/* ── НАВИГАЦИЯ ── */
.main-navigation,
.main-navigation .main-nav,
.main-navigation ul {
  background: transparent !important;
  border: none !important;
}

.main-navigation .main-nav > ul > li {
  background: transparent !important;
}

/* Пункты меню — как в сохранённой странице: приглушённый rgba; активный — белый + точка */
#masthead .main-nav > ul > li > a,
.main-navigation .main-nav > ul > li > a {
  color: rgba(192, 184, 210, 0.8) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  border-radius: var(--r-sm) !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  text-shadow: none !important;
}

#masthead .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  text-shadow: none !important;
}

/* Активный пункт — белый текст, без подчёркивания, под ним только оранжевая точка */
.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a {
  color: #fff !important;
  background: transparent !important;
  position: relative !important;
  text-shadow: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#masthead .main-navigation .main-nav > ul > li.current-menu-item > a::after,
#masthead .main-navigation .main-nav > ul > li.current-menu-ancestor > a::after,
.main-navigation .main-nav > ul > li.current-menu-item > a::after,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #ff6600 !important;
  box-shadow: 0 0 10px #ff6600, 0 0 20px rgba(255, 102, 0, 0.5) !important;
  border: none !important;
}

.main-navigation .main-nav > ul > li.sfHover > a {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.menu-toggle {
  background: transparent !important;
  color: var(--text-heading) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 16px !important;
  box-shadow: none !important;
  transition: var(--ease) !important;
}

.menu-toggle:hover {
  border-color: var(--accent) !important;
  color: var(--text-main) !important;
}

.main-navigation ul ul {
  background: #0e0b1e !important;
  border: 1px solid rgba(255, 102, 0, 0.2) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 102, 0, 0.06) !important;
  padding: 4px !important;
}


/* ── ГЛАВНАЯ / ХЕРО-БЛОК ДЛЯ ЗАПИСЕЙ (sbrd-hero layout) ── */

body.single .sbrd-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
}

body.single .sbrd-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 15%, rgba(255, 102, 0, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 75% 80%, rgba(42, 10, 26, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

body.single .sbrd-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

body.single .sbrd-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

body.single .sbrd-hero-title {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #f0e8f4;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

body.single .sbrd-hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 640px;
  margin: 0 auto 3rem;
}

body.single .sbrd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}

body.single .sbrd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: var(--ease);
  cursor: pointer;
}

body.single .sbrd-btn-primary {
  background: var(--accent);
  color: var(--on-emphasis) !important;
  box-shadow: 0 6px 24px rgba(255, 102, 0, 0.35);
}

body.single .sbrd-btn-primary:hover {
  background: var(--accent-dark);
  color: var(--on-emphasis) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 102, 0, 0.45);
}

body.single .sbrd-btn-ghost {
  border: 1px solid rgba(255, 102, 0, 0.45);
  color: var(--text-main);
  background: rgba(20, 20, 40, 0.45);
}

body.single .sbrd-btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 102, 0, 0.09);
}

body.single .sbrd-hero-hint {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.single .sbrd-hero-hint kbd {
  background: rgba(20, 20, 40, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 5px;
  padding: 0.25rem 0.6rem;
  color: var(--text-sec);
  font-family: var(--mono);
}

body.single .sbrd-try {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 5rem 1.5rem;
}

body.single .sbrd-try-inner {
  max-width: 720px;
  margin: 0 auto;
}

body.single .sbrd-try-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0e8f4;
  border-left: 5px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0 0 0.8rem;
}

body.single .sbrd-try-desc {
  font-size: 1.15rem;
  color: var(--text-sec);
  margin: 0 0 2.5rem;
}

body.single .sbrd-try-tool {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(8, 11, 23, 0.94);
  box-shadow: var(--shadow-md);
  min-height: 620px;
}

body.single .sbrd-try-more {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
}

body.single .sbrd-try-more a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

body.single .sbrd-try-more a:hover {
  text-decoration: underline;
}

body.single .sbrd-section {
  padding: 5rem 1.5rem;
}

body.single .sbrd-section-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e8e8f0;
  text-align: center;
  margin: 0 0 3rem;
}

body.single .sbrd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

body.single .sbrd-card {
  padding: 2rem 1.8rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(32, 32, 58, 0.78);
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
  backdrop-filter: blur(8px);
}

body.single .sbrd-card:hover {
  border-color: rgba(255, 102, 0, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

body.single .sbrd-card-emoji {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

body.single .sbrd-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0e8f4;
  margin: 0 0 1rem;
}

body.single .sbrd-card p {
  font-size: 1rem;
  color: var(--text-sec);
  margin: 0 0 1.2rem;
  line-height: 1.6;
}

body.single .sbrd-card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

body.single .sbrd-foot {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.single .sbrd-foot-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

body.single .sbrd-foot-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

body.single .sbrd-foot-text a:hover {
  text-decoration: underline;
}
.main-navigation ul ul li > a {
  background: transparent !important;
  color: var(--text-sec) !important;
  padding: 9px 16px !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  font-size: 13px !important;
  letter-spacing: 0.4px !important;
  transition: var(--ease) !important;
}

.main-navigation ul ul li > a:hover {
  background: rgba(255, 102, 0, 0.1) !important;
  color: var(--text-main) !important;
}

/* ── ЗАГОЛОВКИ ── */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title {
  color: var(--text-heading) !important;
  font-weight: 700 !important;
  border: none !important;
  line-height: 1.3 !important;
}

h1, .entry-title {
  font-size: 32px !important;
  margin-bottom: 20px !important;
}

h2 {
  font-size: 24px !important;
  margin-top: 40px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(90deg, #ff6600 0%, #ff9933 55%, #ffcc00 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.28)) !important;
}

h3 { font-size: 20px !important; margin-top: 32px !important; margin-bottom: 12px !important; }
h4 { font-size: 17px !important; margin-top: 24px !important; }

/* ── ТЕКСТ ── */
p {
  color: var(--text-main) !important;
  line-height: 1.75 !important;
  margin-bottom: 18px !important;
}

/* ── ССЫЛКИ ── */
a {
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: var(--ease) !important;
}

/* Иначе перебивает .sbrd-btn-primary / блок-кнопки → оранжевый текст на оранжевом */
a:hover:not(.sbrd-btn-primary):not(.wp-block-button__link):not(.wp-element-button):not(.search-submit):not(.button):not(.lenta-load-more-btn):not(.sbrd-home-hero-v2-btn) {
  color: #ff8533 !important;
}

.entry-content a:not(.sbrd-btn-primary):not(.wp-block-button__link):not(.wp-element-button):not(.button),
.page-content a:not(.sbrd-btn-primary):not(.wp-block-button__link):not(.wp-element-button):not(.button) {
  color: #ff8844 !important;
  border-bottom: 1px solid rgba(255, 136, 68, 0.3) !important;
}

.entry-content a:not(.sbrd-btn-primary):not(.wp-block-button__link):not(.wp-element-button):not(.button):hover,
.page-content a:not(.sbrd-btn-primary):not(.wp-block-button__link):not(.wp-element-button):not(.button):hover {
  color: #ffaa66 !important;
  border-bottom-color: rgba(255, 170, 102, 0.6) !important;
}

/* ── КАРТОЧКИ ПОСТОВ ── */
.post,
article.post {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--r-lg) !important;
  padding: 28px 32px !important;
  margin-bottom: 20px !important;
  transition: var(--ease) !important;
}

/* На отдельных записях убираем фон под основным текстом —
   контент лежит прямо на общем фоне страницы */
body.single .post,
body.single article.post {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.post:hover,
article.post:hover {
  box-shadow: var(--shadow-glow) !important;
}

.entry-meta,
.entry-footer {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}

.entry-meta a,
.entry-footer a {
  color: var(--text-muted) !important;
  border: none !important;
}

.entry-meta a:hover,
.entry-footer a:hover { color: var(--accent) !important; }

.more-link, .read-more-link {
  display: inline-block !important;
  padding: 8px 20px !important;
  border: 1px solid rgba(255, 102, 0, 0.4) !important;
  border-radius: var(--r-sm) !important;
  color: var(--accent) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-top: 12px !important;
  transition: var(--ease) !important;
}

.more-link:hover, .read-more-link:hover {
  background: var(--accent) !important;
  color: var(--on-emphasis) !important;
  border-color: var(--accent) !important;
}

/* ── ВИДЖЕТЫ ── */
.widget,
.widget-area .widget,
#secondary .widget,
.sidebar .widget {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--r-lg) !important;
  padding: 22px 24px !important;
  margin-bottom: 20px !important;
}

.widget-title,
.widgettitle {
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ── ПРОСТОЕ ОФОРМЛЕНИЕ ОТДЕЛЬНЫХ ЗАПИСЕЙ ── */

/* Убираем геро-блок и дополнительные секции на single — только текст записи. */
body.single .sbrd-hero,
body.single .sbrd-hero-bg,
body.single .sbrd-hero-inner,
body.single .sbrd-hero-actions,
body.single .sbrd-hero-hint,
body.single .sbrd-try,
body.single .sbrd-section,
body.single .sbrd-foot {
  display: none !important;
}

.widget ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }

.widget li {
  padding: 8px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-sec) !important;
  font-size: 14px !important;
}

.widget li:last-child { border-bottom: none !important; }

.widget a {
  color: var(--text-sec) !important;
  text-decoration: none !important;
  border: none !important;
  transition: var(--ease) !important;
}

.widget a:hover { color: var(--text-main) !important; }

.widget_recent_entries .post-date {
  display: block !important;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* ── ПОИСК ── */
.search-form { display: flex !important; gap: 0 !important; }

.search-field,
input[type="search"] {
  flex: 1 !important;
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-strong) !important;
  border-right: none !important;
  border-radius: var(--r-sm) 0 0 var(--r-sm) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: var(--ease) !important;
}

.search-field:focus,
input[type="search"]:focus { border-color: var(--border-focus) !important; }

.search-field::placeholder { color: var(--text-muted) !important; }

.search-submit {
  background: var(--accent) !important;
  color: var(--on-emphasis) !important;
  border: none !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: var(--ease) !important;
  white-space: nowrap !important;
}

.search-submit:hover {
  background: var(--accent-dark) !important;
  color: var(--on-emphasis) !important;
}

/* ── КОД ── */
code {
  background: var(--bg-code) !important;
  color: #7dd3d3 !important;
  font-family: var(--mono) !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-size: 0.88em !important;
  border: 1px solid var(--border) !important;
}

pre {
  background: var(--bg-code) !important;
  color: #7dd3d3 !important;
  font-family: var(--mono) !important;
  padding: 20px 24px !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--border) !important;
  overflow-x: auto !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
}

pre code { background: transparent !important; border: none !important; padding: 0 !important; }

/* ── ЦИТАТЫ ── */
blockquote {
  background: rgba(76, 5, 25, 0.3) !important;
  border-left: 3px solid var(--accent) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  padding: 18px 24px !important;
  margin: 28px 0 !important;
  color: var(--text-sec) !important;
  font-style: italic !important;
}

/* ── ТАБЛИЦЫ ── */
table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  font-size: 15px !important;
}

th {
  background: var(--bg-card-alt) !important;
  color: var(--text-sec) !important;
  padding: 12px 16px !important;
  text-align: left !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid var(--border) !important;
}

td {
  padding: 11px 16px !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  line-height: 1.6 !important;
}

tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02) !important; }
tr:hover td { background: rgba(255, 102, 0, 0.04) !important; }

/* ── КОММЕНТАРИИ ── */
#comments { color: var(--text-main) !important; }

.comment-list .comment-body {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  padding: 20px 22px !important;
  margin-bottom: 12px !important;
}

.comment-author .fn,
.comment-author .fn a {
  color: var(--text-heading) !important;
  font-weight: 700 !important;
  border: none !important;
}

.comment-metadata,
.comment-metadata a {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  border: none !important;
}

.comment-content p { color: var(--text-main) !important; }

.reply a {
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: none !important;
}

.comment-respond {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--r-lg) !important;
  padding: 28px 32px !important;
  margin-top: 28px !important;
}

.comment-reply-title {
  color: var(--text-heading) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}

.comment-form label {
  display: block !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  margin-bottom: 6px !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100% !important;
  background: var(--bg-input) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text-main) !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  font-family: var(--font) !important;
  box-sizing: border-box !important;
  margin-bottom: 14px !important;
  transition: var(--ease) !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none !important;
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1) !important;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-muted) !important; }

.comment-form textarea { min-height: 130px !important; resize: vertical !important; }

.comment-form input[type="submit"],
#submit {
  background: var(--accent) !important;
  color: var(--on-emphasis) !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 11px 26px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--ease) !important;
}

.comment-form input[type="submit"]:hover,
#submit:hover {
  background: var(--accent-dark) !important;
  color: var(--on-emphasis) !important;
}

/* ── КНОПКИ (не применяем на страницах инструментов, к кнопкам инструментов и к кастомным кнопкам дашборда) ── */
body:not(.sbrd-tool-page) button:not(.sbl-btn):not([class*="sbrd-"]):not(.sbtn):not(.url-btn),
body:not(.sbrd-tool-page) input[type="submit"]:not(.sbl-btn):not([class*="sbrd-"]),
.wp-block-button__link,
.generate-button {
  background: var(--accent) !important;
  color: var(--on-emphasis) !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--ease) !important;
}

body:not(.sbrd-tool-page) button:not(.sbl-btn):not([class*="sbrd-"]):not(.sbtn):not(.url-btn):hover,
body:not(.sbrd-tool-page) input[type="submit"]:not(.sbl-btn):not([class*="sbrd-"]):hover,
.wp-block-button__link:hover {
  background: var(--accent-dark) !important;
  color: var(--on-emphasis) !important;
}

/* ── ПАГИНАЦИЯ ── */
.pagination .page-numbers,
.posts-navigation a {
  display: inline-block !important;
  background: var(--bg-card) !important;
  color: var(--text-sec) !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: var(--ease) !important;
}

.pagination .page-numbers:hover,
.posts-navigation a:hover {
  background: var(--accent-soft) !important;
  color: var(--text-main) !important;
}

.pagination .page-numbers.current {
  background: var(--accent) !important;
  color: var(--on-emphasis) !important;
}

/* Пагинация в ленте (разборы и др.): центрирование и отступы */
.sbrd-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 0;
}

.sbrd-pagination .page-numbers {
  min-width: 44px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.sbrd-pagination .page-numbers:hover {
  border-color: rgba(255, 102, 0, 0.4);
}

.sbrd-pagination .page-numbers.current {
  border-color: var(--accent);
  font-weight: 600;
}

.sbrd-pagination .prev.page-numbers,
.sbrd-pagination .next.page-numbers {
  padding: 8px 16px;
}

/* ── ФУТЕР ── */
.site-footer,
.inside-footer,
.site-info {
  background: rgba(8, 5, 18, 0.98) !important;
  border: none !important;
  border-top: 1px solid rgba(148,163,184,0.2) !important;
  color: #c4bcc8 !important;
  padding: 28px 24px !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Футер во всю ширину — так же, как хедер */
.site-footer .inside-footer,
.site-footer .inside-site-info {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

.site-footer .copyright-bar,
.site-footer .inside-site-info {
  color: #c4bcc8 !important;
  font-size: 15px !important;
}

.site-footer a {
  color: var(--accent) !important;
  font-weight: 600 !important;
  border: none !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #ff8533 !important;
  text-decoration: underline !important;
}

/* ── СТРАНИЦЫ ИНСТРУМЕНТОВ: layout как на Практика, шапка/футер идентичны ── */
/* Запрет обрезки: 100vw с отрицательными margin требует overflow:visible у предков */
html:has(body.sbrd-tool-page),
body.sbrd-tool-page {
  overflow-x: visible !important;
}
body.sbrd-tool-page .site {
  max-width: none !important;
  width: 100% !important;
  overflow-x: visible !important;
}
/* Шапка и футер — на всю ширину экрана, как на Практика */
body.sbrd-tool-page .site-header,
body.sbrd-tool-page .site-footer,
body.sbrd-tool-page .site-info {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}
body.sbrd-tool-page #masthead,
body.sbrd-tool-page .site-header {
  width: 100% !important;
  max-width: none !important;
}
body.sbrd-tool-page #masthead .inside-header.grid-container,
body.sbrd-tool-page .site-header .inside-header.grid-container,
body.sbrd-tool-page .site-header .inside-header {
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}
body.sbrd-tool-page .site-footer .inside-footer,
body.sbrd-tool-page .site-footer .inside-site-info,
body.sbrd-tool-page .site-info .inside-site-info,
body.sbrd-tool-page .site-info .grid-container {
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}
body.sbrd-tool-page .site-content,
body.sbrd-tool-page .content-area,
body.sbrd-tool-page .site-main,
body.sbrd-tool-page .grid-container {
  max-width: none !important;
  width: 100% !important;
}

body.sbrd-tool-page .sbrd-tool-article .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Инструмент на всю ширину, без карточки */
body.sbrd-tool-page .seberd-tool-inline,
body.sbrd-tool-page .seberd-tool-inline .wrap {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Минимальные стили для блока инструмента (ранее в плагине) */
body.sbrd-tool-page .sbl-top { margin-bottom: 18px; }
body.sbrd-tool-page .sbl-badges { margin-bottom: 8px; }
body.sbrd-tool-page .sbl-sub { margin: 0 0 12px; font-size: 15px; opacity: .9; }
body.sbrd-tool-page .sbl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
body.sbrd-tool-page .sbl-embed { margin: 16px 0; }
body.sbrd-tool-page .sbl-footer {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,.2);
  font-size: 13px; color: var(--text-sec);
}
body.sbrd-tool-page .sbl-footer-title { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
body.sbrd-tool-page .sbl-footer .sbl-shortcode-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
body.sbrd-tool-page .sbl-footer .sbl-shortcode { font-size: 12px; padding: 6px 10px; background: rgba(15,23,42,.9); border-radius: 8px; border: 1px solid rgba(148,163,184,.35); }
body.sbrd-tool-page .sbl-note { margin: 0; font-size: 12px; opacity: .85; }
body.sbrd-tool-page .sbl-cat {
  display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(248,250,252,.22);
  color: #e5e7eb; background: rgba(15,23,42,.9);
}
body.sbrd-tool-page .sbl-btn {
  display: inline-block; padding: 9px 16px; border-radius: 10px;
  border: 1px solid rgba(255,102,0,.55); text-decoration: none;
  background: rgba(15,23,42,.9); color: #ffddb4; font-size: 13px; font-weight: 600;
}
body.sbrd-tool-page .sbl-btn:hover { background: #ff6600; border-color: #ff6600; color: #fff; }
body.sbrd-tool-page .sbl-btn.ghost { border-color: rgba(148,163,184,.55); color: #e5e7eb; }
body.sbrd-tool-page .sbl-btn.ghost:hover { background: rgba(15,23,42,.8); border-color: #ff6600; color: #ffddb4; }

/* ── СКРОЛЛБАР ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── ВЫДЕЛЕНИЕ ── */
::selection { background: rgba(255, 102, 0, 0.3); color: #fff; }

/* ── АДАПТИВ ── */
@media (max-width: 768px) {
  h1, .entry-title { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  .post, article.post { padding: 20px !important; }
  .comment-respond { padding: 20px !important; }
  .widget { padding: 18px !important; }

  body.single .sbrd-hero {
    min-height: 50vh;
    padding: 4rem 1rem 5rem;
  }

  body.single .sbrd-hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  body.single .sbrd-hero-actions {
    flex-direction: column;
    gap: 1.2rem;
  }

  body.single .sbrd-cards {
    grid-template-columns: 1fr;
  }

  body.single .sbrd-try {
    padding: 4rem 1rem;
  }
}

@media (max-width: 480px) {
  body.single .sbrd-hero-title {
    font-size: 2.4rem;
  }

  body.single .sbrd-hero-lead {
    font-size: 1.05rem;
  }

  body.single .sbrd-btn {
    padding: 0.9rem 2rem;
    font-size: 0.98rem;
  }
}

/* На мобильных убираем «двойную карточку»:
   фон записи становится прозрачным, чтобы не наслаивался на фон блока/приложения. */
@media (max-width: 640px) {
  .single .post,
  .single article.post,
  .page .post,
  .page article.post {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .single .inside-article,
  .page .inside-article {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ── ДОСТУПНОСТЬ ── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

*:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

.sbrd-home {
  padding: 0 20px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.sbrd-home-hero {
  padding: 40px 0 32px;
  text-align: center;
}

.sbrd-home-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.sbrd-home-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 10px;
}

.sbrd-home-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f0ebe3;
  margin: 0 0 14px;
}

.sbrd-home-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-sec);
  margin: 0;
}

.sbrd-home-section {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(148,163,184,0.12);
}

.sbrd-home-section-head {
  margin-bottom: 24px;
  text-align: center;
}

.sbrd-home-section-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #e8e4de;
  margin: 0 0 8px;
}

.sbrd-home-section-head p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.sbrd-home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.sbrd-home-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(15,23,42,0.7);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.sbrd-home-card:hover {
  border-color: rgba(255,102,0,0.45);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  color: inherit;
}

.sbrd-home-card-emoji {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.sbrd-home-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8e4de;
  margin: 0 0 8px;
  line-height: 1.3;
}

.sbrd-home-card p {
  font-size: 14px;
  color: var(--text-sec);
  margin: 0 0 12px;
  line-height: 1.55;
  flex: 1;
}

.sbrd-home-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

.sbrd-home-card-meta br { display: block; content: ""; margin-top: 4px; }

@media (max-width: 640px) {
  .sbrd-home {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sbrd-home-hero {
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .sbrd-home-section {
    padding: 24px 0 32px;
  }
  .sbrd-home-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sbrd-home-card {
    padding: 18px 16px;
  }
}

.sbrd-home.sbrd-home-v2 {
  padding: 0 0 48px;
}

/* Hero: спокойная типографика, без градиента */
.sbrd-home-hero-v2 {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 56px;
  overflow: hidden;
}

.sbrd-home-hero-v2-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, rgba(255,102,0,0.06) 0%, transparent 55%),
              radial-gradient(ellipse 80% 50% at 80% 80%, rgba(30,58,138,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.sbrd-home-hero-v2-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.sbrd-home-hero-v2-title {
  font-size: clamp(1.75rem, 4.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f0ebe3;
  margin: 0 0 14px;
  text-rendering: optimizeLegibility;
}

.sbrd-home-hero-v2-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-sec);
  margin: 0 0 28px;
}

.sbrd-home-hero-v2-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sbrd-home-hero-v2-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-emphasis) !important;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 20px rgba(255,102,0,0.25);
}

.sbrd-home-hero-v2-btn:hover {
  background: var(--accent-dark);
  color: var(--on-emphasis) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,102,0,0.3);
}

.sbrd-home-hero-v2-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.sbrd-home-hero-v2-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 6px;
  color: var(--text-sec);
}

/* Блок «Попробуй сейчас» — инструмент на странице */
.sbrd-home-try {
  padding: 40px 20px 48px;
  background: rgba(15,23,42,0.4);
  border-top: 1px solid rgba(148,163,184,0.12);
  border-bottom: 1px solid rgba(148,163,184,0.12);
}

.sbrd-home-try-inner {
  max-width: 560px;
  margin: 0 auto;
}

.sbrd-home-try-head {
  text-align: center;
  margin-bottom: 20px;
}

.sbrd-home-try-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8e4de;
  margin: 0 0 6px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  text-align: left;
}

.sbrd-home-try-desc {
  font-size: 14px;
  color: var(--text-sec);
  margin: 0;
  text-align: left;
}

.sbrd-home-try-tool {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(8,11,23,0.85);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.sbrd-home-try-tool .seberd-tool-inline {
  min-height: 280px;
}

.sbrd-home-try-fallback {
  padding: 32px 20px;
  text-align: center;
  margin: 0;
  color: var(--text-sec);
}

.sbrd-home-try-fallback a {
  color: var(--accent);
}

.sbrd-home-try-more {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.sbrd-home-try-more a {
  color: var(--accent);
  text-decoration: none;
}

.sbrd-home-try-more a:hover {
  text-decoration: underline;
}

/* Лента: первый материал крупнее */
.sbrd-home-feed {
  padding: 40px 20px 32px;
}

.sbrd-home-feed-inner {
  max-width: 900px;
  margin: 0 auto;
}

.sbrd-home-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.sbrd-home-feed-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e4e0d8;
  margin: 0;
}

.sbrd-home-feed-all {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.sbrd-home-feed-all:hover {
  text-decoration: underline;
}

.sbrd-home-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sbrd-home-feed-item {
  border-bottom: 1px solid rgba(148,163,184,0.1);
}

.sbrd-home-feed-item:last-child {
  border-bottom: none;
}

.sbrd-home-feed-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.sbrd-home-feed-link:hover {
  background: rgba(255,102,0,0.04);
}

.sbrd-home-feed-item-no-thumb .sbrd-home-feed-link {
  grid-template-columns: 1fr;
}

.sbrd-home-feed-item-featured .sbrd-home-feed-link {
  grid-template-columns: 200px 1fr;
  padding: 20px 0;
  gap: 24px;
}

.sbrd-home-feed-item-featured.sbrd-home-feed-item-no-thumb .sbrd-home-feed-link {
  grid-template-columns: 1fr;
}

.sbrd-home-feed-thumb {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15,23,42,0.8);
}

.sbrd-home-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sbrd-home-feed-item-featured .sbrd-home-feed-thumb {
  aspect-ratio: 2/1;
}

.sbrd-home-feed-body {
  min-width: 0;
}

.sbrd-home-feed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sbrd-home-feed-cat {
  color: var(--accent);
}

.sbrd-home-feed-heading {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f0ebe3;
  margin: 0 0 4px;
}

.sbrd-home-feed-item-featured .sbrd-home-feed-heading {
  font-size: 1.2rem;
}

.sbrd-home-feed-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-sec);
  margin: 0;
}

.sbrd-home-feed-empty {
  padding: 24px 0;
  color: var(--text-sec);
  font-size: 14px;
}

.sbrd-home-feed-empty a {
  color: var(--accent);
}

/* Подвал главной */
.sbrd-home-foot {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(148,163,184,0.1);
}

.sbrd-home-foot-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.sbrd-home-foot-text a {
  color: var(--accent);
  text-decoration: none;
}

.sbrd-home-foot-text a:hover {
  text-decoration: underline;
}

/* [Блок «ГЛАВНАЯ — ИНТЕРФЕЙС В СТИЛЕ IDE» удалён: используется только разметка #sbrd в front-page.php] */

.sbrd-dash-ide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "left center right"
    "bottom bottom bottom";
  gap: 10px;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: calc(100vh - 52px);
  max-height: calc(100vh - 52px);
}

.sbrd-dash-side-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-y: auto;
}

.sbrd-dash-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
}

.sbrd-dash-side-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-y: auto;
}

.sbrd-dash-bottom {
  grid-area: bottom;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  min-height: 140px;
  max-height: 200px;
}

.sbrd-dash-widget-main {
  flex: 1;
  min-height: 200px;
}

.sbrd-dash-center .sbrd-dash-widget-grafana {
  flex: 0 0 auto;
  max-height: 200px;
}

.sbrd-dash-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(160px, 1fr) minmax(160px, 1fr) minmax(100px, auto);
  gap: 12px;
  flex: 1;
  min-height: 0;
  max-width: none;
  width: 100%;
}

.sbrd-dash-widget-span2 { grid-column: span 2; }
.sbrd-dash-widget-tall { grid-row: span 2; }

.sbrd-dash-side .sbrd-dash-widget {
  flex-shrink: 0;
  min-height: 120px;
}

.sbrd-dash-side .sbrd-dash-widget-body {
  max-height: 180px;
}

.sbrd-dash-bottom .sbrd-dash-widget {
  min-height: 120px;
}

.sbrd-dash-widget {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  background: rgba(12, 14, 24, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sbrd-dash-widget:hover {
  border-color: rgba(255, 102, 0, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.sbrd-dash-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 18, 28, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.sbrd-dash-widget-dots {
  display: flex;
  gap: 6px;
}

.sbrd-dash-widget-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sbrd-dash-widget-dots span:nth-child(1) { background: rgba(239, 68, 68, 0.7); }
.sbrd-dash-widget-dots span:nth-child(2) { background: rgba(234, 179, 8, 0.7); }
.sbrd-dash-widget-dots span:nth-child(3) { background: rgba(34, 197, 94, 0.7); }

.sbrd-dash-widget-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sbrd-dash-widget-meta {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.8;
}

.sbrd-dash-widget-body {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.95);
  min-height: 0;
  overflow: auto;
}

.sbrd-dash-widget-body-scroll {
  overflow-y: auto;
}

.sbrd-dash-widget-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.sbrd-dash-widget-terminal .sbrd-dash-widget-body {
  font-size: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sbrd-dash-term-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 14px;
}

.sbrd-dash-term-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 8px;
}

.sbrd-dash-term-output .sbrd-dash-term-line {
  word-break: break-word;
}

.sbrd-dash-term-input-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sbrd-dash-term-input-wrap {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 100px;
}

.sbrd-dash-term-input {
  flex: 1;
  min-width: 80px;
  padding: 0 4px;
  margin: 0;
  border: none;
  background: transparent !important;
  color: #e4e4eb;
  font: inherit;
  font-size: 12px;
  outline: none;
  caret-color: var(--accent);
}

.sbrd-dash-term-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.sbrd-dash-term-line {
  margin: 0;
}

.sbrd-dash-term-prompt {
  color: var(--accent);
  margin-right: 8px;
}

.sbrd-dash-term-out {
  color: #86efac;
  padding-left: 1.2em;
}
.sbrd-dash-term-out .term-err { color: #f87171; }
.sbrd-dash-term-out .term-warn { color: #fbbf24; }
.sbrd-dash-term-out .term-ok { color: #22c55e; }
.sbrd-dash-term-out .term-id { color: var(--accent); }

.sbrd-dash-term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: sbrd-dash-cursor-blink 1s step-end infinite;
}

@keyframes sbrd-dash-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.sbrd-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbrd-dash-list-item {
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sbrd-dash-list-item:last-child {
  border-bottom: none;
}

.sbrd-dash-list-link {
  display: block;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sbrd-dash-list-link:hover {
  background: rgba(255, 102, 0, 0.08);
  color: #e4e4eb;
}

.sbrd-dash-cve-id {
  font-weight: 600;
  color: var(--accent);
  margin-right: 8px;
}

.sbrd-dash-cve-sev {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
}

.sbrd-dash-cve-sev-critical { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.sbrd-dash-cve-sev-high { background: rgba(249, 115, 22, 0.25); color: #fdba74; }
.sbrd-dash-cve-sev-medium { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.sbrd-dash-cve-sev-low { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.sbrd-dash-cve-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sbrd-dash-cve-row {
  cursor: pointer;
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.sbrd-dash-cve-row:hover {
  background: rgba(255, 102, 0, 0.06);
}

.sbrd-dash-cve-detail {
  margin-top: 6px;
  padding: 8px;
  font-size: 11px;
  color: var(--text-sec);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.sbrd-dash-feed-title {
  display: block;
  font-size: 12px;
}

.sbrd-dash-feed-date {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sbrd-dash-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbrd-dash-feed-item {
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sbrd-dash-feed-item:last-child { border-bottom: none; }

.sbrd-dash-feed-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.sbrd-dash-feed-link:hover {
  background: rgba(255, 102, 0, 0.06);
}

.sbrd-dash-feed-thumb {
  display: block;
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.8);
}

.sbrd-dash-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbrd-dash-feed-no-thumb {
  background: rgba(255, 102, 0, 0.1);
}

.sbrd-dash-feed-text { min-width: 0; }

.sbrd-dash-news-title {
  display: block;
  font-size: 11px;
}

.sbrd-dash-news-row {
  padding: 8px 0;
}

/* Карта покрытия (песочница) */
.sbrd-dash-coverage-wrap {
  position: relative;
  padding: 8px 0;
}

.sbrd-dash-coverage-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sbrd-dash-coverage-cell {
  margin: 0;
  padding: 10px 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sbrd-dash-coverage-cell:hover,
.sbrd-dash-coverage-cell:focus {
  background: rgba(255, 102, 0, 0.15);
  border-color: rgba(255, 102, 0, 0.4);
  transform: scale(1.05);
  outline: none;
}

.sbrd-dash-coverage-tooltip {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Тренды (песочница) */
.sbrd-dash-trends-wrap {
  position: relative;
  padding: 8px 0;
}

.sbrd-dash-trends-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}

.sbrd-dash-trends-bar {
  flex: 1;
  min-width: 6px;
  height: var(--h, 30%);
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.5), rgba(255, 102, 0, 0.15));
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.sbrd-dash-trends-bar:hover,
.sbrd-dash-trends-bar:focus {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.7), rgba(255, 102, 0, 0.25));
  outline: none;
}

.sbrd-dash-trends-tooltip {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.sbrd-dash-params {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  font-size: 11px;
}

.sbrd-dash-params dt {
  margin: 0;
  color: var(--text-muted);
}

.sbrd-dash-params dd {
  margin: 0;
  text-align: right;
  color: rgba(148, 163, 184, 0.9);
}

/* БДУ ФСТЭК (каталог угроз и уязвимостей) */
.sbrd-dash-bdu-block {
  margin-bottom: 10px;
}
.sbrd-dash-bdu-block:last-child { margin-bottom: 0; }
.sbrd-dash-bdu-caption {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sbrd-dash-bdu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sbrd-dash-bdu-item {
  padding: 4px 0;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.95);
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 4px;
}
.sbrd-dash-bdu-item:hover {
  background: rgba(255, 102, 0, 0.06);
}
.sbrd-dash-bdu-id {
  color: var(--accent);
  margin-right: 6px;
  font-family: var(--mono);
}
.sbrd-dash-bdu-risk-high { color: #f87171; }
.sbrd-dash-bdu-risk-med { color: #fbbf24; }
.sbrd-dash-bdu-risk-low { color: #22c55e; }

/* Метрики API (SECURITM-style) */
.sbrd-dash-securitm-list {
  margin: 0;
  padding: 0;
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
}
.sbrd-dash-securitm-list dt {
  margin: 0;
  color: var(--text-muted);
}
.sbrd-dash-securitm-list dd {
  margin: 0;
  text-align: right;
  color: var(--accent);
  font-family: var(--mono);
}
.sbrd-dash-securitm-val {
  font-weight: 600;
}

.sbrd-dash-scope-code {
  font-size: 12px;
}

.sbrd-dash-scope-line {
  margin: 0;
}

.sbrd-dash-scope-tag {
  color: #7c3aed;
}

.sbrd-dash-scope-key {
  color: #38bdf8;
}

/* Grafana-style */
.sbrd-dash-grafana-kpis {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.sbrd-dash-grafana-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sbrd-dash-grafana-value {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
}

.sbrd-dash-grafana-value.sbrd-dash-grafana-ok {
  color: #86efac;
}

.sbrd-dash-grafana-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sbrd-dash-grafana-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 36px;
}

.sbrd-dash-grafana-bar {
  flex: 1;
  min-width: 8px;
  height: var(--h, 50%);
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.5), rgba(255, 102, 0, 0.15));
  border-radius: 4px 4px 0 0;
  animation: sbrd-dash-bar-pulse 2s ease-in-out infinite;
}

.sbrd-dash-grafana-bar:nth-child(odd) { animation-delay: -0.5s; }

@keyframes sbrd-dash-bar-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

/* Zabbix-style */
.sbrd-dash-zabbix-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbrd-dash-zabbix-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

.sbrd-dash-zabbix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sbrd-dash-zabbix-ok .sbrd-dash-zabbix-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.sbrd-dash-zabbix-problem .sbrd-dash-zabbix-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.sbrd-dash-zabbix-problem {
  color: #fca5a5;
}

/* SIEM: таблица (как реальный дашборд) */
.sbrd-dash-siem-wrap {
  overflow: auto;
  padding: 0;
}

.sbrd-dash-siem-table {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  min-width: 320px;
}

.sbrd-dash-siem-row {
  display: grid;
  grid-template-columns: 70px 72px 1fr;
  gap: 10px;
  padding: 8px 10px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sbrd-dash-siem-row:hover {
  background: rgba(255, 102, 0, 0.06);
}

.sbrd-dash-siem-header {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.sbrd-dash-siem-ts {
  color: var(--text-muted);
}

.sbrd-dash-siem-info { color: #38bdf8; }
.sbrd-dash-siem-warn { color: #fbbf24; }
.sbrd-dash-siem-err { color: #f87171; }

.sbrd-dash-siem-log {
  font-size: 11px;
  line-height: 1.7;
}

.sbrd-dash-siem-line {
  margin: 0;
  padding: 2px 0;
  color: rgba(148, 163, 184, 0.9);
}

/* Suricata-style */
.sbrd-dash-suricata-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbrd-dash-suricata-item {
  padding: 6px 0;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sbrd-dash-suricata-item:hover {
  background: rgba(255, 102, 0, 0.06);
}

.sbrd-dash-suricata-item:last-child {
  border-bottom: none;
}

.sbrd-dash-suricata-rule {
  color: var(--accent);
  margin-right: 8px;
  font-family: var(--mono);
}

.sbrd-dash-suricata-desc {
  color: rgba(148, 163, 184, 0.95);
}

.sbrd-dash-suricata-tip {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

/* Сниппеты (Shodan-style) */
.sbrd-dash-snippets-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sbrd-dash-snippet-item {
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-left: 3px solid transparent;
}

.sbrd-dash-snippet-item:hover {
  background: rgba(255, 102, 0, 0.08);
  border-left-color: var(--accent);
}

.sbrd-dash-snippet-item code {
  font-family: var(--mono);
  font-size: 10px;
  color: #86efac;
  word-break: break-all;
}

.sbrd-dash-snippet-desc {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

/* Мини-игра */
.sbrd-dash-game-question {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.sbrd-dash-game-cve {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.sbrd-dash-game-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.sbrd-dash-game-btn {
  padding: 6px 12px;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.6);
  color: #e4e4eb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sbrd-dash-game-btn:hover {
  background: rgba(255, 102, 0, 0.15);
  border-color: var(--accent);
}

.sbrd-dash-game-result {
  margin: 0;
  font-size: 11px;
  min-height: 1.2em;
}

.sbrd-dash-game-ok { color: #22c55e; }
.sbrd-dash-game-err { color: #f87171; }

@media (max-width: 1000px) {
  .sbrd-dash-ide {
    grid-template-columns: 200px 1fr;
    grid-template-rows: 1fr auto auto;
    grid-template-areas:
      "left center"
      "left right"
      "bottom bottom";
    height: auto;
    max-height: none;
  }
  .sbrd-dash-bottom {
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }
  .sbrd-dash-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

@media (max-width: 640px) {
  .sbrd-dash-ide {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "left"
      "center"
      "right"
      "bottom";
    height: auto;
    max-height: none;
  }
  .sbrd-dash-bottom {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sbrd-dash-full {
    padding: 12px;
    gap: 12px;
  }

  .sbrd-dash-grid {
    grid-template-columns: 1fr;
  }
  .sbrd-dash-widget-span2 { grid-column: span 1; }
  .sbrd-dash-widget-tall { grid-row: span 1; }
  .sbrd-dash-widget {
    min-height: 140px;
  }
  .sbrd-dash-feed-link { grid-template-columns: 56px 1fr; gap: 8px; }
  .sbrd-dash-feed-thumb { width: 56px; height: 42px; }
}

/* Адаптив главной v2 */
@media (max-width: 640px) {
  .sbrd-home-hero-v2 {
    min-height: 45vh;
    padding: 32px 16px 40px;
  }

  .sbrd-home-try-inner {
    padding: 0;
  }

  .sbrd-home-feed-link {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sbrd-home-feed-item-featured .sbrd-home-feed-link {
    grid-template-columns: 1fr;
  }

  .sbrd-home-feed-thumb {
    max-width: 100%;
    aspect-ratio: 2/1;
  }
}

/* Общие кнопки (для других шаблонов) */
.sbrd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: var(--ease);
}

.sbrd-btn-primary,
a.sbrd-btn-primary {
  background: var(--accent);
  color: var(--on-emphasis) !important;
  border-color: var(--accent);
}

.sbrd-btn-primary:hover,
a.sbrd-btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-emphasis) !important;
}

.sbrd-btn-ghost {
  background: rgba(15,23,42,0.5);
  color: var(--text-main) !important;
  border-color: var(--border-strong);
}

.sbrd-btn-ghost:hover {
  background: rgba(15,23,42,0.85);
}

/* ── ПУТЕВОДИТЕЛЬ (граф) ── */

.site-content:has(.kg),
.site-content .content-area:has(.kg),
.content-area:has(.kg),
.grid-container:has(.kg) {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

.kg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 102, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 120% 100% at 50% 100%, rgba(20, 10, 40, 0.8) 0%, transparent 70%),
    linear-gradient(180deg, #06050c 0%, #0a0916 40%, #0d0b18 100%);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

/* Отдельные записи: без второй «карточки» под текстом — см. theme-seberd.css (single). */
body.single .post,
body.single article.post {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.kg-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(6, 5, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  z-index: 10;
}

.kg-search {
  flex: 0 1 240px;
  min-width: 140px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.kg-search:focus {
  border-color: rgba(255, 102, 0, 0.4);
}

.kg-search::placeholder {
  color: #475569;
}

.kg-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kg-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
}

.kg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kg-dot--cat  { background: #ff6600; }
.kg-dot--post { background: #3b82f6; }
.kg-dot--tag  { background: #10b981; }
.kg-dot--page { background: #a78bfa; }

.kg-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.kg-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.kg-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.kg-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  padding: 10px 16px;
  background: rgba(8, 7, 14, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 13px;
  color: #e2e8f0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  max-width: 400px;
}

.kg-info strong {
  color: #f8fafc;
  margin-right: 6px;
}

.kg-info-type {
  font-size: 11px;
  color: #64748b;
  margin-right: 10px;
}

.kg-info-conn {
  font-size: 11px;
  color: var(--accent);
}

.kg-main {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

#kg-canvas {
  flex: 1;
  min-width: 0;
  cursor: grab;
  display: block;
}

#kg-canvas:active {
  cursor: grabbing;
}

.kg-panel {
  width: 300px;
  flex-shrink: 0;
  background: rgba(6, 5, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kg-panel::-webkit-scrollbar {
  width: 4px;
}

.kg-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.kg-panel-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kg-panel-hint {
  font-size: 13px;
  color: #334155;
  text-align: center;
}

.kg-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kg-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kg-panel-type {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kg-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.35;
}

.kg-panel-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.kg-panel-link:hover {
  color: #ff8533;
}

.kg-panel-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kg-panel-label {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.kg-panel-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kg-panel-item {
  display: block;
  padding: 6px 10px;
  border-left: 3px solid #475569;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 0 4px 4px 0;
  transition: background 0.1s, color 0.1s;
  line-height: 1.35;
}

.kg-panel-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.kg-panel-stat {
  font-size: 11px;
  color: #334155;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .kg-panel {
    display: none;
  }
}

@media (max-width: 700px) {
  .kg-toolbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .kg-legend {
    display: none;
  }
}

/* ── ГЛОССАРИЙ ── */

.site-content:has(.glo),
.site-content .content-area:has(.glo),
.content-area:has(.glo),
.grid-container:has(.glo) {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

.glo {
  width: 100%;
  background: var(--bg-base);
}

.glo-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.glo-prompt {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.glo-input {
  flex: 0 1 280px;
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.glo-input:focus {
  border-color: var(--accent);
}

.glo-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.glo-abc {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.glo-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
  user-select: none;
}

.glo-key:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.glo-key.on {
  color: var(--accent);
  background: var(--accent-soft);
}

.glo-cnt {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.glo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 20px 24px 40px;
  align-content: start;
}

.glo-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  cursor: pointer;
  outline: none;
}

/* Оформление карточки — .sbrd-surface-card в css/theme-seberd.css */

.glo-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
}

.glo-card-preview {
  font-size: 11px;
  color: var(--text-sec);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glo-card-src {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.92;
}

.glo-terminal {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0c0b12;
  border-bottom: 1px solid rgba(255, 102, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 180px;
  overflow: hidden;
  transition: height 0.25s ease;
}

.glo-terminal.collapsed {
  height: 40px;
}

.glo-t-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.glo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.glo-dot--r { background: #ff5f57; }
.glo-dot--y { background: #febc2e; }
.glo-dot--g { background: #28c840; }

.glo-t-path {
  margin-left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #475569;
}

.glo-t-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s;
}

.glo-t-toggle:hover {
  color: var(--accent);
}

.glo-t-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #94a3b8;
}

.glo-t-cmd {
  color: #475569;
  margin-bottom: 8px;
}

.glo-t-dollar {
  color: var(--accent);
  font-weight: 700;
}

.glo-t-name {
  color: #e2e8f0;
}

.glo-t-text {
  color: #cbd5e1;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.glo-t-cursor {
  color: var(--accent);
  animation: glo-blink 1s step-end infinite;
}

@keyframes glo-blink {
  50% { opacity: 0; }
}

.glo-t-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s;
}

.glo-t-src {
  font-size: 11px;
  color: #334155;
}

.glo-t-link {
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}

.glo-t-link:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .glo-bar {
    padding: 12px 16px;
  }

  .glo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    padding: 16px;
  }

  .glo-card {
    padding: 10px 12px;
  }

  .glo-t-body {
    padding: 0 16px 12px;
  }
}

/* ── КАТЕГОРИИ: компактный hero ── */
.sbrd-cat .sbrd-home-hero {
  padding: 2px 16px 6px;
}

.sbrd-cat .sbrd-home-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.sbrd-cat .sbrd-home-lead {
  font-size: 13px;
  margin-bottom: 6px;
}

.sbrd-cat-praktika.sbrd-home {
  padding-top: 0;
  max-width: 100%;
}

.sbrd-cat-praktika .sbrd-praktika-tools {
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: none;
}

.sbrd-cat-praktika .sbrd-home-tools {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sbrd-cat-praktika .sbrd-home-tool {
  padding: 18px 16px;
}

.sbrd-cat-praktika .sbrd-home-tool:not(.sbrd-surface-card) {
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sbrd-cat-praktika .sbrd-home-tool:not(.sbrd-surface-card):hover {
  border-color: rgba(255,102,0,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.sbrd-cat-praktika .sbrd-home-tool h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e4de;
}

.sbrd-cat-praktika .sbrd-home-tool p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
}

/* ── ЛЕНТА: КВАДРАТНАЯ КАРТИНКА + ТЕКСТ В СТРОКУ ── */
.sbrd-feed .sbrd-home-section {
  padding-top: 8px;
}


.sbrd-feed-list {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid rgba(148,163,184,0.18);
}

.sbrd-feed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 12px;
  border-bottom: 1px solid transparent;
  background: radial-gradient(circle at top left, rgba(255,102,0,0.12), transparent 55%),
              rgba(15,23,42,0.85);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sbrd-feed-thumb {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.45);
  background: radial-gradient(circle at top left, rgba(255,102,0,0.4), transparent 60%), rgba(15,23,42,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sbrd-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sbrd-feed-thumb-placeholder {
  font-size: 20px;
  font-weight: 700;
  color: #e5e7eb;
}

.sbrd-feed-body {
  flex: 1 1 auto;
  min-width: 0;
}

.sbrd-feed-title {
  margin: 0 0 3px;
  font-size: 16px;
}

.sbrd-feed-title a {
  color: var(--text-main);
  text-decoration: none;
}

.sbrd-feed-title a:hover {
  color: var(--accent);
}

.sbrd-feed-excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--text-sec);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sbrd-feed-row:hover {
  background: radial-gradient(circle at top left, rgba(255,102,0,0.22), transparent 55%),
              rgba(15,23,42,0.96);
  box-shadow: 0 0 0 1px rgba(255,102,0,0.45), 0 10px 22px rgba(0,0,0,0.65);
  transform: translateY(-1px);
}

/* Лента (Разборы): мобильная вёрстка */
@media (max-width: 640px) {
  .sbrd-feed .sbrd-home-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sbrd-feed-list {
    border-top-color: rgba(148,163,184,0.12);
  }

  .sbrd-feed-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
  }

  .sbrd-feed-row:hover {
    transform: none;
  }

  .sbrd-feed-thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0 auto;
  }

  .sbrd-feed-body {
    padding: 0;
  }

  .sbrd-feed-title {
    font-size: 15px;
    line-height: 1.35;
  }

  .sbrd-feed-excerpt {
    -webkit-line-clamp: 3;
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .sbrd-feed-title a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ── КОНЦЕПЦИИ: НОВЫЙ ЛЭЙАУТ ── */
.sbrd-concept-page .sbrd-home-hero {
  padding: 36px 0 24px;
  text-align: center;
}

.sbrd-concept-page .sbrd-home-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.sbrd-concept-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.sbrd-concept-sidebar-inner {
  position: sticky;
  top: 80px;
}

.sbrd-concept-sidebar-title {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px !important;
  color: var(--text-muted);
}

.sbrd-concept-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
}

.sbrd-concept-nav li {
  margin-bottom: 4px;
}

.sbrd-concept-nav a {
  color: var(--text-sec) !important;
  text-decoration: none !important;
}

.sbrd-concept-nav a:hover {
  color: var(--accent) !important;
}

.sbrd-concept-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.sbrd-concept-card {
  padding: 8px 10px;
  font-size: 13px;
}

.sbrd-concept-card:not(.sbrd-surface-card) {
  border-radius: var(--r-md);
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(15,23,42,0.92);
}

.sbrd-concept-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.sbrd-concept-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-sec);
}

.sbrd-concept-main {
  background: rgba(15,23,42,0.92);
  border-radius: var(--r-lg);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
}

.sbrd-concept-text {
  font-size: 14px;
  color: var(--text-main);
}

.sbrd-concept-text h2 {
  margin-top: 18px !important;
  margin-bottom: 8px !important;
}

.sbrd-concept-text p {
  margin-bottom: 10px !important;
}

@media (max-width: 900px) {
  .sbrd-concept-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbrd-concept-sidebar-inner {
    position: static;
  }

  .sbrd-concept-main {
    margin-top: 8px;
  }
}

.sbrd-home-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.sbrd-home-post-title {
  font-size: 15px;
  margin: 0 0 4px;
}

.sbrd-home-post-title a {
  color: inherit;
  text-decoration: none;
}

.sbrd-home-post-title a:hover {
  color: var(--accent);
}

.sbrd-home-post-excerpt {
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 6px;
}

.sbrd-home-post-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.sbrd-home-section-foot {
  max-width: 980px;
  margin: 8px auto 0;
}

.sbrd-home-empty {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-muted);
}

.sbrd-home-tools {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sbrd-home-tool {
  padding: 10px 12px 10px;
}

.sbrd-home-tool:not(.sbrd-surface-card) {
  border-radius: var(--r-md);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.9);
}

.sbrd-home-tool-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.7);
  margin-bottom: 6px;
}

.sbrd-home-tool-emoji {
  font-size: 18px;
  margin-bottom: 4px;
}

.sbrd-home-tool h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.sbrd-home-tool p {
  font-size: 13px;
  color: var(--text-main);
  margin: 0 0 10px;
}

.sbrd-home-tool p code {
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.3);
}

.sbrd-home-tool ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-sec);
}

.sbrd-home-tool ul li::before {
  content: "• ";
  color: var(--accent);
}

.sbrd-home-tool-soon {
  opacity: 0.85;
}

.sbrd-home-tool-soon-label {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .sbrd-home-stats-inner {
    gap: 16px 24px;
  }

  .sbrd-home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbrd-home-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbrd-home-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sbrd-home-hero-inner,
  .sbrd-home-stats-inner,
  .sbrd-home-section-head,
  .sbrd-home-cards,
  .sbrd-home-posts,
  .sbrd-home-tools,
  .sbrd-home-section-foot {
    padding-left: 0;
    padding-right: 0;
  }

  .sbrd-home-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbrd-home-posts {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbrd-home-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .sbrd-home-stats-inner {
    gap: 12px 20px;
  }

  .sbrd-home-stat-value {
    font-size: 18px;
  }
}

/* ── БЛОК "СМОТРИ ТАКЖЕ" (SEO) ── */
.sbrd-related {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.6);
}

.sbrd-related h3 {
  font-size: 14px !important;
  margin: 0 0 10px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sbrd-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sbrd-related li {
  padding: 4px 0;
  border: none;
}

.sbrd-related li a {
  color: var(--text-sec) !important;
  border: none !important;
}

.sbrd-related li a:hover {
  color: var(--accent) !important;
}

.sbrd-related p {
  margin: 12px 0 0;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   БЛОК "ЧИТАТЬ ТАКЖЕ"
   ══════════════════════════════════════════════════════════════ */
.rp-wrap {
  background: transparent;
  padding: 32px 20px;
  border-top: none;
  box-sizing: border-box;
}

.rp-title {
  font-family: 'IBM Plex Mono', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #00f0ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 20px;
  text-shadow: 0 0 14px rgba(0, 240, 255, .5);
}

.rp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px;
  table-layout: fixed;
}

.rp-table td {
  width: 33.333%;
  vertical-align: top;
  padding: 0;
}

.rp-card {
  display: block;
  background: transparent;
  border: none;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease;
}

.rp-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.rp-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  position: relative;
}

.rp-img-box img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: brightness(.95);
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  transition: transform .35s ease, filter .2s ease;
}

.rp-card:hover .rp-img-box img {
  transform: scale(1.07);
  filter: brightness(1.1);
}

.rp-img-overlay { display: none; }

.rp-no-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1e2a45, #0d1220);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.rp-body { padding: 8px 0 0; }

.rp-cat {
  font-size: 10px;
  font-family: monospace;
  color: #cc44ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 5px;
  display: block;
}

.rp-name {
  font-size: 14px;
  font-weight: 700;
  color: #e8f4fd;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-card:hover .rp-name { color: #00f0ff; }

.rp-spin {
  color: #4a6a80;
  font-family: monospace;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

@media (max-width: 680px) {
  .rp-table, .rp-table tbody,
  .rp-table tr, .rp-table td {
    display: block;
    width: 100%;
  }
  .rp-table td { margin-bottom: 16px; }
}
