:root{
  --st-green:#519f10;
  --st-green-15: rgba(81,159,16,.15);
  --st-border: rgba(0,0,0,.08);
}

/* убрать любые "точки/кружки" от темы возле ссылок/бейджей */
.post-meta a::before,
.post-meta a::after,
.post-badges .badge::before,
.post-badges .badge::after{
  content: none !important;
  display:none !important;
}

.post-wrap{ max-width: 980px; }

.post-cover{
  width:100%;
  height:auto;
  border-radius: 16px;
  border:1px solid var(--st-border);
}

.post-meta a{
  color: var(--st-green);
  text-decoration: none;
}
.post-meta a:hover{ text-decoration: underline; }

.tag-pill{
  display:inline-flex;
  align-items:center;
  padding:.25rem .55rem;
  border:1px solid var(--st-border);
  border-radius:999px;
  text-decoration:none;
  color:#222;
  background:#fff;
  font-size: .85rem;
}
.tag-pill:hover{
  border-color: var(--st-green);
  box-shadow: 0 0 0 .2rem var(--st-green-15);
}

.content h2, .content h3 { margin-top: 1.2rem; }
.content img { max-width: 100%; height: auto; border-radius: 12px; }
.content table { width: 100%; }
.content blockquote {
  padding: .75rem 1rem;
  border-left: 4px solid var(--st-green);
  background: #f8f9fa;
  border-radius: 12px;
  margin: 1rem 0;
}

/* ✅ Share block */
.blog-btn-social{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.blog-social{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.blog-social span{
  color:#666;
  font-weight:800;
  font-size:13px;
  text-transform: lowercase;
}
.share-icons{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.share-icons li{ margin:0; padding:0; }
.share-icons a{
  width:38px;
  height:38px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.share-icons a:hover{
  transform: translateY(-1px);
  border-color: rgba(81,159,16,.45);
  box-shadow: 0 0 0 .2rem var(--st-green-15);
  color:#111;
  text-decoration:none;
}
@media (max-width: 576px){
  .blog-btn-social{ align-items:flex-start; }
  .share-icons a{ width:36px; height:36px; }
}

/* ======================================
   ✅ BUTTONS: прозрачные с контуром
   ====================================== */
.btn-outline-st{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:.45rem .8rem;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.20);
  background: transparent;
  color:#111 !important;
  font-weight:800;
  text-decoration:none !important;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.btn-outline-st:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.35);
  background: rgba(0,0,0,.03);
  box-shadow: 0 0 0 4px var(--st-green-15);
}
.btn-outline-st:active{ transform: translateY(0); }
.btn-outline-st:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--st-green-15);
}

/* COMMENTS */
.comment-card{
  border:1px solid var(--st-border);
  border-radius:14px;
  background:#fff;
  padding:14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.03);
}

.comment-head{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}

.comment-user{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-width:0;
}

.comment-avatar{
  width:36px;
  height:36px;
  border-radius:999px;
  background: var(--st-green-15);
  color:#1f2d1f;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex: 0 0 auto;
}

.comment-name{
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 260px;
}

.comment-date{
  color:#8b8f95;
  font-size:.85rem;
  flex:0 0 auto;
  white-space:nowrap;
}

.comment-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.comment-body{
  margin-top:10px;
  color:#1f2328;
}

/* ✅ list spacing */
.comment-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.comment-list > .comment-card{
  margin:0 !important;
}

/* ✅ pills */
.c-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  background:transparent;
  color:#111;
  font-weight:900;
  font-size:.9rem;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.c-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.35);
  background: rgba(0,0,0,.03);
  box-shadow: 0 0 0 4px var(--st-green-15);
  color:#111;
  text-decoration:none;
}
.c-pill:active{ transform: translateY(0); }

.comment-actions{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
}

/* вложенность */
.comment-children{
  margin-top:14px;
  padding-left:18px;
  border-left: 2px dashed rgba(81,159,16,.25);
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ✅ метка "Ответ @Имя" */
.reply-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(81,159,16,.22);
  background: rgba(81,159,16,.10);
  color: #2f6d11;
  max-width: 100%;
}
.reply-badge:hover{
  border-color: rgba(81,159,16,.40);
  background: rgba(81,159,16,.14);
  color: #24570c;
  text-decoration: none;
}

.comment-card:target{
  box-shadow: 0 0 0 4px rgba(81,159,16,.18);
  border-color: rgba(81,159,16,.35);
}

/* форма ответа */
.reply-to{
  display:none;
  border:1px solid var(--st-border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.reply-to strong{ color:#111; }
.reply-cancel{
  margin-left:10px;
  font-size:.9rem;
  color:#dc3545;
  cursor:pointer;
  text-decoration:none;
  font-weight:900;
}

/* ✅ Menu "..." (details/summary) */
.c-menu{
  position:relative;
  display:inline-flex;
}
.c-menu > summary{
  list-style:none;
}
.c-menu > summary::-webkit-details-marker{
  display:none;
}
.c-menu__btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.c-menu__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.28);
  background: rgba(0,0,0,.02);
  box-shadow: 0 0 0 4px var(--st-green-15);
}
.c-dots{
  letter-spacing: 2px;
  font-weight: 900;
  color:#111;
  line-height:1;
  transform: translateY(-1px);
}
.c-menu[open] .c-menu__btn{
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 0 0 4px var(--st-green-15);
}

.c-menu__panel{
  position:absolute;
  right:0;
  top:42px;
  min-width: 240px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  z-index:10;
}
.c-menu__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  font-weight:800;
  font-size:.92rem;
}
.c-menu__item:hover{
  background: rgba(0,0,0,.03);
}

/* ✅ RELATED cards */
.related-grid{
  row-gap: 18px;
}
.rel-card{
  border:1px solid var(--st-border);
  border-radius:14px;
  overflow:hidden;
  height:100%;
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rel-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.rel-img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
}
.rel-body{ padding:12px; }
.rel-title{
  font-weight:900;
  margin:0 0 6px 0;
  color:#111;
}
.rel-text{
  color:#6b7280;
  font-size:.9rem;
  margin:0;
}

/* ===== Post bottom ads card ===== */
.ad-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  height:100%;
}
.ad-img{
  display:block;
  width:100%;
  overflow:hidden;
  background:#f3f4f6;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ad-img img{
  display:block;
  width:100%;
  max-width:100%;
  height:220px;
  object-fit:cover;
  object-position:center;
}
.ad-body{ padding:12px; }
.ad-title{
  font-weight:900;
  font-size:16px;
  line-height:1.25;
  color:#111;
  margin:0 0 6px 0;
}
.ad-text{
  color:#6b7280;
  font-size:14px;
  line-height:1.35;
  margin:0 0 10px 0;
}
.ad-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:42px;
  border-radius:12px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.20);
  color:#111 !important;
  text-decoration:none !important;
  font-weight:900;
  font-size:14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.ad-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.35);
  background: rgba(0,0,0,.03);
  box-shadow: 0 0 0 4px rgba(81,159,16,.12);
}