/*
Theme Name: BlockHub
Theme URI: https://example.com/blockhub
Author: BlockHub Studio
Description: Мобільна тема для сайтів про моди Minecraft та Android-ігри. Фіксований хедер і нижня навігація в стилі застосунків, картки-«слоти інвентаря», пріоритет — телефон.
Version: 1.3.2
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blockhub
*/

/* =========================================================
   ДИЗАЙН-ТОКЕНЫ
   ========================================================= */
:root{
  /* Чорна рамка — хедер, футер, нижня навігація, зовнішні поля сайту */
  --bh-black:         #0A0A0D;
  --bh-black-hi:      #17171D; /* трохи світліший чорний — для чіпів/елементів поверх чорного */
  --bh-black-line:    rgba(255,255,255,.09); /* тонка світла грань на чорному фоні */

  /* Світле полотно сторінки */
  --bh-page-bg:       #F2F3F5;
  --bh-card-bg:       #FFFFFF;
  --bh-hairline:      rgba(18,18,24,.09);
  --bh-border:        rgba(18,18,24,.12);
  --bh-shell-max-w:   1400px;

  /* Текст на світлому полотні ("ink") */
  --bh-ink:           #16171B;
  --bh-ink-dim:       #4A4E57;
  --bh-ink-mute:      #767A84;

  /* Текст на чорному (хедер / футер / нижня навігація) */
  --bh-text:          #F5F5F7;
  --bh-text-dim:      #A8ABB3;
  --bh-text-mute:     #6E7178;

  /* Основний акцент — бірюзовий */
  --bh-teal:          #0DB2A5;
  --bh-teal-hi:       #2FD6C4;
  --bh-teal-deep:     #0A8B81;
  --bh-teal-soft:     rgba(13,178,165,.12);

  /* Рідкісний акцент — фуксія (лише для окремих деталей) */
  --bh-fuchsia:       #DE3A97;
  --bh-fuchsia-hi:    #EE63B0;
  --bh-fuchsia-soft:  rgba(222,58,151,.12);

  /* Контентні акценти (тип матеріалу) */
  --bh-grass:         #279A5B;
  --bh-grass-hi:      #3CB672;
  --bh-ore:           #D9832A;
  --bh-ore-hi:        #EC9C40;
  --bh-app:           #2D80CC;
  --bh-app-hi:        #4A98E0;
  --bh-danger:        #C94747;

  /* Типографика */
  --bh-font-display:  'Chakra Petch', 'Segoe UI', sans-serif;
  --bh-font-body:     'Inter', 'Segoe UI', sans-serif;
  --bh-font-mono:     'JetBrains Mono', 'Consolas', monospace;
  --bh-font-pixel:    'Press Start 2P', var(--bh-font-display);

  /* Форма и ритм */
  --bh-radius-s:  6px;
  --bh-radius-m:  12px;
  --bh-radius-l:  20px;
  --bh-gap:       16px;
  --bh-bottom-nav-h: 62px;
  --bh-top-bar-h: 56px;
  --bh-max-w: 1180px;

  /* Тіні — головний засіб «об'єму» замість прозорого скла */
  --bh-shadow-sm: 0 1px 2px rgba(15,15,20,.05), 0 2px 6px rgba(15,15,20,.06);
  --bh-shadow-md: 0 2px 6px rgba(15,15,20,.05), 0 12px 26px rgba(15,15,20,.10);
  --bh-shadow-lg: 0 10px 20px rgba(15,15,20,.10), 0 26px 50px rgba(15,15,20,.16);
}

/* =========================================================
   СБРОС / БАЗА
   ========================================================= */
*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(50% 35% at 12% 0%, rgba(13,178,165,.14), transparent 60%),
    radial-gradient(45% 35% at 100% 100%, rgba(222,58,151,.08), transparent 60%),
    var(--bh-black);
  background-attachment:fixed;
  color:var(--bh-ink);
  font-family:var(--bh-font-body);
  font-size:16px;
  line-height:1.55;
  padding-bottom:calc(var(--bh-bottom-nav-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing:antialiased;
}
/* Світла «оболонка» сайту — фіксована максимальна ширина, по центру.
   На широких екранах по боках лишається чорна рамка (фон body). */
.bh-shell{
  max-width:var(--bh-shell-max-w);
  margin:0 auto;
  position:relative;
  background:var(--bh-page-bg);
  min-height:100vh;
  box-shadow:0 0 70px rgba(0,0,0,.5);
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; }
h1,h2,h3,h4{
  font-family:var(--bh-font-display);
  font-weight:700;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:.2px;
}
h1{ font-size:clamp(24px,5.6vw,36px); }
h2{ font-size:clamp(20px,5vw,28px); }
h3{ font-size:18px; }
p{ margin:0 0 1em; color:var(--bh-ink-dim); }

:focus-visible{
  outline:2px solid var(--bh-teal);
  outline-offset:2px;
}

::selection{ background:var(--bh-fuchsia-soft); color:var(--bh-ink); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

.bh-container{
  max-width:var(--bh-max-w);
  margin:0 auto;
  padding:0 16px;
}

/* Пиксельный «зубчатый» скос — сигнатурный элемент темы */
.bh-notch{
  clip-path: polygon(
    0 8px, 8px 8px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
  );
}

/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ (чорна)
   ========================================================= */
.bh-topbar{
  position:relative; z-index:60;
  height:var(--bh-top-bar-h);
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  background:var(--bh-black);
  border-bottom:1px solid var(--bh-black-line);
  padding:0 14px;
}
.bh-logo{
  display:flex; align-items:center; gap:9px;
  font-family:var(--bh-font-display);
  font-weight:700; font-size:17px;
  color:var(--bh-text);
  white-space:nowrap;
  flex:0 0 auto;
}
.bh-logo-mark{
  width:32px; height:32px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  filter:drop-shadow(0 0 8px rgba(13,178,165,.55));
}
.bh-logo-mark svg{ width:100%; height:100%; }
.bh-logo-word{ display:none; }
@media (min-width:560px){ .bh-logo-word{ display:inline; } }
.bh-logo img{ max-height:32px; width:auto; }

.bh-topbar-actions{ display:flex; align-items:center; gap:4px; }
.bh-icon-btn{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:none; color:var(--bh-text-dim);
  cursor:pointer; border-radius:var(--bh-radius-s);
  transition:color .12s ease, background .12s ease;
}
.bh-icon-btn:hover{ color:var(--bh-text); background:rgba(255,255,255,.08); }
.bh-burger{ display:flex; }
@media (min-width:900px){ .bh-burger{ display:none; } }

.bh-primary-menu{ display:none; }

.bh-search-panel{
  position:fixed; inset:var(--bh-top-bar-h) 0 auto 0; z-index:59;
  max-width:var(--bh-shell-max-w); margin:0 auto;
  background:var(--bh-black);
  border-bottom:1px solid var(--bh-black-line);
  padding:14px 16px;
  transform:translateY(-8px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  box-shadow:var(--bh-shadow-lg);
}
.bh-search-panel.is-open{
  opacity:1; pointer-events:auto; transform:translateY(0);
}
.bh-search-panel .search-field{
  width:100%; background:#fff; border:1px solid transparent;
  color:var(--bh-ink); padding:12px 14px; border-radius:var(--bh-radius-s);
  font-size:16px; font-family:var(--bh-font-body);
  box-shadow:inset 0 1px 2px rgba(15,15,20,.08);
}
.bh-search-panel .search-field:focus{ outline:2px solid var(--bh-teal); outline-offset:1px; }

/* Мобильное выпадающее меню (гамбургер) */
.bh-mobile-menu{
  position:fixed; inset:var(--bh-top-bar-h) 0 auto 0; z-index:58;
  background:var(--bh-black);
  border-bottom:1px solid var(--bh-black-line);
  padding:8px 8px calc(env(safe-area-inset-bottom) + 12px);
  transform:translateY(-12px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  max-height:calc(100vh - var(--bh-top-bar-h));
  overflow-y:auto;
  box-shadow:var(--bh-shadow-lg);
}
.bh-mobile-menu.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
.bh-mobile-menu ul{ display:flex; flex-direction:column; }
.bh-mobile-menu a{
  display:block; padding:14px 12px; font-size:16px; font-weight:600;
  color:var(--bh-text); border-bottom:1px solid var(--bh-black-line);
  font-family:var(--bh-font-display);
}
.bh-mobile-menu li:last-child a{ border-bottom:none; }
@media (min-width:900px){ .bh-mobile-menu{ display:none; } }

/* =========================================================
   НИЖНЯЯ НАВИГАЦИЯ (главный мобильный элемент, чорна)
   ========================================================= */
.bh-bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  height:calc(var(--bh-bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  background:rgba(10,10,13,.94);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--bh-black-line);
  display:flex;
}
.bh-bottom-nav ul{
  display:flex; width:100%; height:100%;
}
.bh-bottom-nav li{ flex:1 1 0; display:flex; }
.bh-bottom-nav a{
  flex:1 1 0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px;
  font-size:11px;
  color:var(--bh-text-mute);
  font-family:var(--bh-font-body);
  font-weight:600;
  position:relative;
}
.bh-bottom-nav a svg{ width:22px; height:22px; }
.bh-bottom-nav a.is-active{ color:var(--bh-teal-hi); }
.bh-bottom-nav a.is-active::before{
  content:"";
  position:absolute; top:-1px; left:50%; transform:translateX(-50%);
  width:26px; height:2px; background:var(--bh-teal-hi);
  box-shadow:0 0 8px var(--bh-teal-hi);
}

@media (min-width: 900px){
  .bh-bottom-nav{ display:none; }
  body{ padding-bottom:0; }
  .bh-topbar{ height:76px; padding:0 32px; }
  .bh-search-panel{ inset:76px 0 auto 0; }
  .bh-primary-menu{ display:flex; align-items:center; gap:30px; }
  .bh-primary-menu a{
    font-family:var(--bh-font-display); font-weight:600; font-size:15px;
    color:var(--bh-text-dim);
    position:relative;
    padding:4px 0;
  }
  .bh-primary-menu a::after{
    content:"";
    position:absolute; left:0; right:100%; bottom:-2px; height:2px;
    background:var(--bh-teal-hi);
    transition:right .18s ease;
    box-shadow:0 0 8px var(--bh-teal-hi);
  }
  .bh-primary-menu a:hover{ color:var(--bh-text); }
  .bh-primary-menu a:hover::after{ right:0; }
}

/* =========================================================
   ГЕРОЙ / ГЛАВНАЯ
   ========================================================= */
.bh-hero{
  position:relative;
  padding:44px 0 34px;
  overflow:hidden;
  background:
    radial-gradient(75% 130% at 10% -20%, rgba(13,178,165,.14), transparent 60%),
    radial-gradient(60% 90% at 100% -10%, rgba(222,58,151,.09), transparent 55%);
}
.bh-hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:120px;
  background:linear-gradient(to bottom, transparent, var(--bh-page-bg));
  pointer-events:none;
}
.bh-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--bh-font-pixel);
  font-size:9px; letter-spacing:.5px;
  color:var(--bh-teal-hi);
  background:var(--bh-black);
  border:1px solid var(--bh-black-line);
  padding:6px 8px; border-radius:2px;
  margin-bottom:14px;
  position:relative;
  box-shadow:var(--bh-shadow-sm);
}
.bh-hero .bh-container{ position:relative; z-index:2; }
.bh-hero h1{ max-width:16ch; }
.bh-hero p{ max-width:52ch; font-size:15px; }
.bh-hero-stats{
  display:flex; gap:14px; margin-top:20px; flex-wrap:wrap; position:relative;
}
.bh-hero-stat{
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-m);
  padding:10px 16px;
  box-shadow:var(--bh-shadow-sm);
}
.bh-hero-stat b{
  display:block; font-family:var(--bh-font-mono); font-size:20px; color:var(--bh-ink);
}
.bh-hero-stat span{ font-size:12px; color:var(--bh-ink-mute); }

/* =========================================================
   СЕКЦИИ / ЗАГОЛОВКИ РАЗДЕЛОВ
   ========================================================= */
.bh-section{ padding:26px 0; }
.bh-section-elevated{
  position:relative;
  background:
    linear-gradient(to bottom,
      transparent 0,
      var(--bh-card-bg) 120px,
      var(--bh-card-bg) calc(100% - 120px),
      transparent 100%
    );
}
.bh-section-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  margin-bottom:16px;
}
.bh-section-head h2{ margin:0; }
.bh-section-head .bh-see-all{
  font-size:13px; font-weight:600; color:var(--bh-teal-deep); white-space:nowrap;
  font-family:var(--bh-font-body);
}
.bh-tag-strip{
  display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.bh-tag-strip::-webkit-scrollbar{ display:none; }
.bh-tag-strip a{
  flex:0 0 auto;
  font-size:13px; font-weight:600;
  padding:7px 13px; border-radius:999px;
  background:var(--bh-card-bg); color:var(--bh-ink-dim);
  border:1px solid var(--bh-hairline);
  box-shadow:var(--bh-shadow-sm);
}
.bh-tag-strip a.is-active{ background:var(--bh-teal); color:#fff; border-color:var(--bh-teal-deep); }

/* =========================================================
   КАРТОЧКА-«СЛОТ» — сигнатурный элемент
   ========================================================= */
.bh-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px;
}
@media (min-width:560px){ .bh-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:900px){ .bh-grid{ grid-template-columns:repeat(4,1fr); gap:18px; } }

.bh-card{
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-m);
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow:var(--bh-shadow-md);
  transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.bh-card:hover{ transform:translateY(-4px); border-color:var(--bh-teal); box-shadow:var(--bh-shadow-lg); }
.bh-card-media{
  aspect-ratio:1/1; background:#EAEBEE; position:relative; overflow:hidden;
}
.bh-card-media img{ width:100%; height:100%; object-fit:cover; }
.bh-card-kind{
  position:absolute; top:6px; left:6px;
  font-family:var(--bh-font-pixel); font-size:8px; letter-spacing:.4px;
  padding:4px 5px; border-radius:2px; color:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.bh-card-kind.mod{ background:var(--bh-grass); }
.bh-card-kind.game{ background:var(--bh-ore); }
.bh-card-kind.app{ background:var(--bh-app); }

.bh-card-body{ padding:10px 10px 12px; display:flex; flex-direction:column; gap:6px; flex:1; }
.bh-card-title{
  font-family:var(--bh-font-display); font-size:14px; font-weight:600;
  color:var(--bh-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.bh-card-meta{
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--bh-font-mono); font-size:11px; color:var(--bh-ink-mute);
}
.bh-durability{
  height:4px; width:100%; background:var(--bh-hairline); border-radius:2px; overflow:hidden; margin-top:2px;
}
.bh-durability i{ display:block; height:100%; background:var(--bh-grass); }
.bh-card-kind.game ~ .bh-card-body .bh-durability i{ background:var(--bh-ore); }
.bh-card-kind.app ~ .bh-card-body .bh-durability i{ background:var(--bh-app); }

/* =========================================================
   ОДИНОЧНАЯ СТРАНИЦА МОДА / ИГРЫ
   ========================================================= */
.bh-single-head{ padding:20px 0; }

.bh-breadcrumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  font-size:12.5px; color:var(--bh-ink-mute); margin-bottom:14px;
}
.bh-breadcrumbs a{ color:var(--bh-ink-mute); }
.bh-breadcrumbs a:hover{ color:var(--bh-teal-deep); }
.bh-breadcrumbs .sep{ opacity:.5; }
.bh-breadcrumbs .current{ color:var(--bh-ink-dim); }

.bh-info-panel{
  position:relative;
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-l);
  padding:18px;
  margin:20px 0 0;
  box-shadow:var(--bh-shadow-md);
  overflow:hidden;
}
.bh-info-panel-title{
  font-family:var(--bh-font-pixel); font-size:9px; letter-spacing:.5px;
  color:var(--bh-teal-deep); margin-bottom:14px; position:relative;
}
.bh-info-grid{
  position:relative;
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px 10px;
  margin-bottom:16px;
}
@media (min-width:520px){ .bh-info-grid{ grid-template-columns:repeat(3,1fr); } }
.bh-info-item span{ display:block; font-size:11px; color:var(--bh-ink-mute); margin-bottom:3px; text-transform:uppercase; letter-spacing:.4px; }
.bh-info-item b{ display:block; font-family:var(--bh-font-mono); font-size:14px; color:var(--bh-ink); font-weight:600; }
.bh-single-media{
  width:100%; aspect-ratio:16/10; border-radius:var(--bh-radius-m);
  overflow:hidden; background:#EAEBEE; margin-bottom:16px;
  box-shadow:var(--bh-shadow-md);
}
.bh-single-media img{ width:100%; height:100%; object-fit:cover; }
.bh-badge-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.bh-badge{
  font-family:var(--bh-font-mono); font-size:12px;
  padding:5px 9px; border-radius:var(--bh-radius-s);
  background:var(--bh-page-bg); border:1px solid var(--bh-hairline); color:var(--bh-ink-dim);
}

.bh-download-box{
  position:relative;
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-m);
  padding:14px; margin:0;
  display:flex; align-items:center; gap:12px;
  box-shadow:var(--bh-shadow-md);
}
.bh-download-box .info{ flex:1; min-width:0; }
.bh-download-box .info b{ display:block; font-family:var(--bh-font-mono); font-size:13px; color:var(--bh-ink); }
.bh-download-box .info span{ font-size:11px; color:var(--bh-ink-mute); }
.bh-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--bh-font-display); font-weight:700; font-size:14px;
  padding:13px 20px; border-radius:999px;
  background:var(--bh-teal);
  color:#fff; border:1px solid var(--bh-teal-deep);
  box-shadow:0 6px 16px rgba(13,178,165,.35), inset 0 1px 0 rgba(255,255,255,.2);
  white-space:nowrap;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bh-btn:hover{ background:var(--bh-teal-deep); transform:translateY(-1px); box-shadow:0 10px 22px rgba(13,178,165,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.bh-btn:active{ transform:translateY(1px); box-shadow:0 3px 8px rgba(13,178,165,.35); }
.bh-btn.grass{
  background:var(--bh-grass); border-color:#1F7C49;
  box-shadow:0 6px 16px rgba(39,154,91,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.bh-btn.grass:hover{ background:#1F7C49; box-shadow:0 10px 22px rgba(39,154,91,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.bh-btn.ore{
  background:var(--bh-ore); border-color:#B06A20;
  box-shadow:0 6px 16px rgba(217,131,42,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.bh-btn.ore:hover{ background:#B06A20; box-shadow:0 10px 22px rgba(217,131,42,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.bh-btn.app{
  background:var(--bh-app); border-color:#215F9C;
  box-shadow:0 6px 16px rgba(45,128,204,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.bh-btn.app:hover{ background:#215F9C; box-shadow:0 10px 22px rgba(45,128,204,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.bh-btn.ghost{
  background:transparent; border:1px solid var(--bh-border); color:var(--bh-ink);
  box-shadow:none;
}
.bh-btn.ghost:hover{ border-color:var(--bh-teal); color:var(--bh-teal-deep); }

/* Насыщенная типографика для описания мода/игры */
.bh-content{ font-size:15.5px; }
.bh-content a{
  color:var(--bh-teal-deep);
  text-decoration:underline;
  text-decoration-color:rgba(13,178,165,.4);
  text-underline-offset:3px;
  font-weight:600;
  transition:color .12s ease, text-decoration-color .12s ease;
}
.bh-content a:hover{
  color:var(--bh-fuchsia);
  text-decoration-color:var(--bh-fuchsia);
}
/* Кнопки (.bh-btn), вставлені прямо в текст опису, не мають зливатись
   зі звичайними текстовими посиланнями — завжди білий текст без підкреслення */
.bh-content a.bh-btn,
.bh-content a.bh-btn:hover{
  color:#fff;
  text-decoration:none;
}
.bh-content h2, .bh-content h3{ margin-top:1.5em; position:relative; padding-left:14px; }
.bh-content h2::before, .bh-content h3::before{
  content:""; position:absolute; left:0; top:.15em; bottom:.15em; width:3px;
  border-radius:2px;
  background:var(--bh-teal);
}
.bh-content img{ border-radius:var(--bh-radius-m); box-shadow:var(--bh-shadow-sm); }
.bh-content ul{ list-style:none; padding-left:0; margin-bottom:1.2em; }
.bh-content ul li{
  color:var(--bh-ink-dim); margin-bottom:.5em; padding-left:24px; position:relative;
}
.bh-content ul li::before{
  content:""; position:absolute; left:2px; top:.55em; width:8px; height:8px;
  background:var(--bh-teal); border-radius:2px; transform:rotate(45deg);
}
.bh-content ol{ padding-left:1.4em; margin-bottom:1.2em; }
.bh-content ol li{ color:var(--bh-ink-dim); margin-bottom:.5em; padding-left:6px; }

.bh-content > p:first-of-type{
  font-size:17px; color:var(--bh-ink); line-height:1.6;
}
.bh-content > p:first-of-type::first-letter{
  font-family:var(--bh-font-display);
  font-size:3.2em; font-weight:700; line-height:.8;
  float:left; margin:.05em .12em 0 0;
  color:var(--bh-fuchsia);
}

.bh-content blockquote{
  position:relative;
  margin:1.6em 0; padding:20px 22px 20px 34px;
  background:var(--bh-page-bg);
  border:1px solid var(--bh-teal);
  border-radius:var(--bh-radius-m);
  font-family:var(--bh-font-display); font-size:15.5px; font-style:normal;
  color:var(--bh-ink);
  box-shadow:var(--bh-shadow-md);
}
.bh-content blockquote::before{
  content:"";
  position:absolute; left:14px; top:24px;
  width:9px; height:9px; border-radius:50%;
  background:var(--bh-fuchsia);
  box-shadow:0 0 0 4px var(--bh-fuchsia-soft);
}
.bh-content blockquote p{ margin:0; color:var(--bh-ink); }

.bh-content code{
  font-family:var(--bh-font-mono); font-size:13px;
  background:var(--bh-page-bg); border:1px solid var(--bh-hairline);
  padding:2px 6px; border-radius:4px; color:var(--bh-teal-deep);
}
.bh-content pre{
  background:var(--bh-ink); border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-m); padding:14px; overflow-x:auto; margin:1.4em 0;
  box-shadow:var(--bh-shadow-sm);
}
.bh-content pre code{ background:none; border:none; padding:0; color:var(--bh-text); }

.bh-content hr{ border:none; height:1px; background:var(--bh-hairline); margin:2em 0; }

.bh-content table{ width:100%; border-collapse:collapse; margin:1.4em 0; font-size:14px; }
.bh-content table th, .bh-content table td{ padding:10px; border-bottom:1px solid var(--bh-hairline); text-align:left; }
.bh-content table th{ color:var(--bh-ink-mute); font-family:var(--bh-font-mono); font-size:12px; text-transform:uppercase; }
.bh-content table td{ color:var(--bh-ink-dim); }

.bh-callout{
  display:flex; gap:12px; align-items:flex-start;
  margin:1.6em 0; padding:16px 18px;
  background:var(--bh-teal-soft);
  border:1px solid rgba(13,178,165,.25);
  border-radius:var(--bh-radius-m);
}
.bh-callout .icon{ font-size:20px; line-height:1; flex:0 0 auto; }
.bh-callout p{ margin:0; font-size:14px; color:var(--bh-ink-dim); }

.bh-spec-table{ width:100%; border-collapse:collapse; margin:18px 0; font-size:14px; }
.bh-spec-table tr{ border-bottom:1px solid var(--bh-hairline); }
.bh-spec-table td{ padding:10px 4px; color:var(--bh-ink-dim); }
.bh-spec-table td:first-child{ color:var(--bh-ink-mute); width:42%; font-family:var(--bh-font-mono); font-size:12px; }

.search-field{
  width:100%; background:var(--bh-card-bg); border:1px solid var(--bh-hairline);
  color:var(--bh-ink); padding:12px 14px; border-radius:var(--bh-radius-s);
  font-size:16px; font-family:var(--bh-font-body);
  box-shadow:inset 0 1px 2px rgba(15,15,20,.06);
}
.search-field:focus{ outline:2px solid var(--bh-teal); outline-offset:1px; }
.bh-comment-form input[type="text"],
.bh-comment-form input[type="email"],
.bh-comment-form input[type="url"],
.bh-comment-form textarea{
  width:100%; background:var(--bh-card-bg); border:1px solid var(--bh-hairline);
  color:var(--bh-ink); padding:10px 12px; border-radius:var(--bh-radius-s);
  font-family:var(--bh-font-body); font-size:15px; margin-bottom:10px;
  box-shadow:inset 0 1px 2px rgba(15,15,20,.06);
}
.bh-comment-form input:focus,
.bh-comment-form textarea:focus{ outline:2px solid var(--bh-teal); outline-offset:1px; }
.bh-comment-form .comment-form-cookies-consent{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--bh-ink-mute); }
.bh-comment-submit{
  font-size:15px !important; padding:15px 34px !important; margin-top:6px;
}
.bh-comment-form .form-submit{ margin-top:8px; }

/* =========================================================
   FEATURES / TESTIMONIALS
   ========================================================= */
.bh-section.is-glow{
  position:relative;
  background:radial-gradient(70% 65% at 50% 0%, rgba(13,178,165,.10), transparent 65%);
}
.bh-section-title{ text-align:center; margin-bottom:8px; }
.bh-section-sub{ text-align:center; max-width:52ch; margin:0 auto 26px; font-size:14px; }

.bh-feature-grid{
  display:grid; grid-template-columns:1fr; gap:14px;
}
@media (min-width:640px){ .bh-feature-grid{ grid-template-columns:repeat(3,1fr); } }

.bh-feature-card{
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-l);
  padding:22px 18px;
  box-shadow:var(--bh-shadow-md);
  text-align:center;
  transition:transform .14s ease, box-shadow .14s ease;
}
.bh-feature-card:hover{ transform:translateY(-4px); box-shadow:var(--bh-shadow-lg); }
.bh-feature-icon{
  width:44px; height:44px; margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  background:var(--bh-teal);
  box-shadow:0 6px 16px rgba(13,178,165,.4);
  color:#fff;
}
.bh-feature-icon svg{ width:22px; height:22px; }
.bh-feature-card h3{ margin-bottom:6px; }
.bh-feature-card p{ font-size:13.5px; margin:0; }

.bh-testimonial-grid{
  display:grid; grid-template-columns:1fr; gap:14px;
}
@media (min-width:640px){ .bh-testimonial-grid{ grid-template-columns:repeat(3,1fr); } }
.bh-testimonial-card{
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-l);
  padding:20px 18px;
  box-shadow:var(--bh-shadow-md);
}
.bh-testimonial-card p{ font-size:13.5px; margin-bottom:14px; }
.bh-testimonial-user{ display:flex; align-items:center; gap:10px; }
.bh-testimonial-avatar{
  width:36px; height:36px; border-radius:50%;
  background:var(--bh-teal);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--bh-font-display); font-weight:700; font-size:14px; color:#fff;
  flex:0 0 auto;
}
.bh-testimonial-user b{ display:block; font-size:13px; color:var(--bh-ink); }
.bh-testimonial-user span{ font-size:11px; color:var(--bh-ink-mute); }

/* =========================================================
   ФУТЕР (чорний)
   ========================================================= */
.bh-footer{
  position:relative;
  background:var(--bh-black);
  padding:28px 0 22px; margin-top:20px;
  overflow:hidden;
  box-shadow:0 -14px 30px rgba(0,0,0,.18);
  /* Заповнюємо футером простір, зарезервований під фіксовану нижню навігацію,
     щоб при скролі внизу на мобільній версії не показувалась смужка фону body. */
  margin-bottom:calc(-1 * (var(--bh-bottom-nav-h) + env(safe-area-inset-bottom)));
  padding-bottom:calc(var(--bh-bottom-nav-h) + env(safe-area-inset-bottom) + 22px);
}
@media (min-width:900px){
  .bh-footer{ margin-bottom:0; padding-bottom:22px; }
}
.bh-footer::before{
  content:"";
  position:absolute; top:-40%; left:50%; transform:translateX(-50%);
  width:70%; height:60%;
  background:radial-gradient(circle, rgba(13,178,165,.12), transparent 70%);
  pointer-events:none;
}

.bh-footer-grid{ position:relative; display:grid; gap:26px; margin-top:20px; }
@media (min-width:700px){ .bh-footer-grid{ grid-template-columns:1.3fr 1fr 1fr 1fr; } }
.bh-footer h4{ font-size:13px; color:var(--bh-text-mute); text-transform:uppercase; letter-spacing:.6px; margin-bottom:12px; }
.bh-footer ul li{ margin-bottom:8px; }
.bh-footer a{ color:var(--bh-text-dim); font-size:14px; }
.bh-footer a:hover{ color:var(--bh-teal-hi); }
.bh-footer-about p{ font-size:13px; max-width:34ch; color:var(--bh-text-dim); }

.bh-social-row{ display:flex; gap:10px; margin-top:14px; }
.bh-social-row a{
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.06); border:1px solid var(--bh-black-line);
  color:var(--bh-text-dim);
  transition:color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bh-social-row a:hover{
  color:#fff; border-color:var(--bh-teal-hi);
  box-shadow:0 0 14px rgba(47,214,196,.45);
}
.bh-social-row svg{ width:17px; height:17px; }

.bh-footer-bottom{
  position:relative;
  margin-top:26px; padding-top:16px; border-top:1px solid var(--bh-black-line);
  font-size:12px; color:var(--bh-text-mute);
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between;
}

/* =========================================================
   ПАГИНАЦИЯ / ПРОЧЕЕ
   ========================================================= */
.bh-pagination{ display:flex; gap:8px; justify-content:center; margin:24px 0 4px; flex-wrap:wrap; }
.bh-pagination a, .bh-pagination span{
  min-width:38px; height:38px; padding:0 10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--bh-card-bg); border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-s); font-family:var(--bh-font-mono); font-size:13px;
  color:var(--bh-ink-dim);
  box-shadow:var(--bh-shadow-sm);
}
.bh-pagination .current{ background:var(--bh-teal); color:#fff; border-color:var(--bh-teal-deep); }

.bh-empty{ padding:60px 16px; text-align:center; color:var(--bh-ink-mute); }
.bh-empty .bh-icon-block{ font-size:40px; margin-bottom:14px; }

/* =========================================================
   КОМЕНТАРІ
   ========================================================= */
.bh-comments{ margin:34px 0 48px; }
.bh-comments-eyebrow{ margin-bottom:8px; }
.bh-comments-title{ font-size:18px; margin-bottom:18px; }

.comment-list,
.comment-list .children{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:14px;
}
.comment-list{ margin-bottom:22px; }
.comment-list .children{
  margin-top:14px;
  padding-left:20px;
  border-left:2px solid var(--bh-hairline);
}

/* Кожен коментар — окрема картка */
.comment-body{
  position:relative;
  background:var(--bh-card-bg);
  border:1px solid var(--bh-hairline);
  border-radius:var(--bh-radius-m);
  padding:14px 16px 14px 22px;
  box-shadow:var(--bh-shadow-md);
}
.comment-body::before{
  content:"";
  position:absolute; left:0; top:14px; bottom:14px; width:3px;
  border-radius:2px;
  background:var(--bh-teal);
}
.comment.byuser.bypostauthor > .comment-body::before{
  background:var(--bh-fuchsia);
}

.comment-meta{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px; margin-bottom:10px;
}
.comment-author.vcard{ display:flex; align-items:center; gap:10px; min-width:0; }
.comment-author .avatar{
  width:40px; height:40px; border-radius:50%;
  object-fit:cover; flex:0 0 auto;
  border:2px solid var(--bh-hairline);
}
.comment-author .fn{
  font-family:var(--bh-font-display); font-weight:600; font-style:normal;
  font-size:14.5px; color:var(--bh-ink);
}
.comment-author .says{ display:none; }

.comment-metadata{
  flex:0 0 auto; text-align:right;
  font-size:11.5px; color:var(--bh-ink-mute);
  display:flex; flex-direction:column; align-items:flex-end; gap:2px;
}
.comment-metadata a{ color:var(--bh-ink-mute); }
.comment-metadata a:hover{ color:var(--bh-teal-deep); }
.comment-metadata .edit-link a{ font-size:11px; }

.comment-content{ font-size:14px; color:var(--bh-ink-dim); line-height:1.6; }
.comment-content p{ margin:0 0 .6em; }
.comment-content p:last-child{ margin-bottom:0; }

.comment .reply{ margin-top:12px; }
.comment-reply-link{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--bh-font-body); font-weight:600; font-size:12.5px;
  color:var(--bh-teal-deep);
  padding:6px 13px;
  border:1px solid var(--bh-hairline);
  border-radius:999px;
  background:var(--bh-page-bg);
  transition:border-color .12s ease, background .12s ease;
}
.comment-reply-link:hover{ border-color:var(--bh-teal); background:var(--bh-teal-soft); }

.comment-form .logged-in-as,
.comment-form .comment-notes{
  font-size:13px; color:var(--bh-ink-mute); margin:0 0 14px;
}
.comment-form .logged-in-as a{ color:var(--bh-teal-deep); }
.comment-reply-title{
  font-size:16px; margin-bottom:14px; color:var(--bh-ink);
}
.comment-reply-title small a{
  font-size:12px; font-weight:600; color:var(--bh-ink-mute);
  margin-left:8px;
}

.screen-reader-text{
  position:absolute !important; clip:rect(1px,1px,1px,1px);
  width:1px; height:1px; overflow:hidden; white-space:nowrap;
}
