/* ============================================================
   SINGLE POST — Карточный макет со слайдером
   Вставьте в ваш основной CSS файл
   ============================================================ */

/* ── Обёртка страницы ── */
.sng-wrap {
  background: #f0f2f5;
  padding: 48px 0 72px;
  min-height: 60vh;
}

.sng-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.sng-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Базовая карточка ── */
.sng-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  border: 1px solid rgba(0,0,0,.06);
}

/* ── Карточка 1: шапка ── */
.sng-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sng-cat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7c3aed;
  flex-shrink: 0;
}

.sng-cat-text {
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}
.sng-cat-text:hover { opacity: .8; }

.sng-breadcrumb {
  font-size: 12px;
  color: #aaa;
  margin-left: auto;
}
.sng-breadcrumb a { color: #aaa; text-decoration: none; }
.sng-breadcrumb a:hover { color: #7c3aed; }
.sng-breadcrumb span { margin: 0 4px; }

.sng-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  color: #111;
  margin: 0 0 20px;
}

.sng-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sng-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3f0f8;
  color: #555;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
}
.sng-chip svg { flex-shrink: 0; color: #7c3aed; }

/* ── Карточка 2: СЛАЙДЕР ── */
.sng-card--slider {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.sng-slider {
  position: relative;
  user-select: none;
}

/* Viewport: показывает один слайд */
.sng-slider__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a2e;
}

.sng-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sng-slide.active {
  opacity: 1;
  z-index: 1;
}

.sng-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sng-slide__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: 13px;
  padding: 28px 20px 14px;
  z-index: 2;
}

/* Кнопки пред/след */
.sng-sl-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.sng-sl-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.sng-sl-btn--prev { left: 14px; }
.sng-sl-btn--next { right: 14px; }

/* Счётчик */
.sng-sl-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Точки */
.sng-sl-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.sng-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.sng-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Миниатюры */
.sng-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #111;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.sng-thumbs::-webkit-scrollbar { display: none; }

.sng-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  transition: border-color .2s, opacity .2s;
  opacity: .55;
  background: #222;
}
.sng-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sng-thumb.active {
  border-color: #7c3aed;
  opacity: 1;
}
.sng-thumb:hover { opacity: .85; }

/* ── Карточка 3: контент ── */
.sng-content {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
}
.sng-content > * + * { margin-top: 1.1em; }
.sng-content h2 { font-size: 24px; font-weight: 800; color: #111; }
.sng-content h3 { font-size: 20px; font-weight: 700; color: #111; }
.sng-content p  { margin: 0; }
.sng-content a  { color: #7c3aed; text-decoration: underline; }

.sng-content blockquote {
  border-left: 4px solid #7c3aed;
  background: #f5f0fe;
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  color: #5a3aad;
  font-style: italic;
  margin: 0;
}

.sng-content img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.sng-content ul,
.sng-content ol {
  padding-left: 24px;
}
.sng-content li { margin-bottom: 6px; }

/* Убираем изображения из текста (они уже в слайдере) */
.sng-content img { display: none; }

/* ── Карточка 4: теги ── */
.sng-card--tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 24px;
}
.sng-tags-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
}
.sng-tag {
  display: inline-block;
  background: #f3f0f8;
  color: #7c3aed;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.sng-tag:hover { background: #7c3aed; color: #fff; }

/* ── Карточка 5: статистика ── */
.sng-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sng-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.06);
}

.sng-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #7c3aed;
}

.sng-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 4px;
}

.sng-stat-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

/* ── Карточка 6: поделиться ── */
.sng-card--share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 28px;
}

.sng-share-label {
  font-size: 14px;
  font-weight: 700;
  color: #444;
  white-space: nowrap;
}

.sng-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sng-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.sng-share-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.sng-share--tg  { background: #2AABEE; }
.sng-share--fb  { background: #1877F2; }
.sng-share--x   { background: #111; }
.sng-share--vk  { background: #4680C2; }

/* ── Карточка 7: навигация ── */
.sng-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sng-nav-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.sng-nav-card:hover {
  box-shadow: 0 6px 24px rgba(124,58,237,.12);
  transform: translateY(-2px);
}
.sng-nav-card--right { text-align: right; align-items: flex-end; }

.sng-nav-dir {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7c3aed;
}
.sng-nav-card--right .sng-nav-dir { justify-content: flex-end; }

.sng-nav-thumb {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}
.sng-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sng-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Карточка 8: автор ── */
.sng-card--author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-left: 4px solid #7c3aed;
}

.sng-author-ava img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.sng-author-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7c3aed;
  display: block;
  margin-bottom: 4px;
}

.sng-author-name {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin: 0 0 6px;
}

.sng-author-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── Карточка 9: похожие ── */
.sng-card--related { padding: 24px 28px; }

.sng-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sng-related-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.sng-rel-arrows {
  display: flex;
  gap: 6px;
}

.sng-rel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f0f8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  transition: background .2s;
}
.sng-rel-btn:hover { background: #7c3aed; color: #fff; }

.sng-rel-overflow {
  overflow: hidden;
}

.sng-rel-track {
  display: flex;
  gap: 14px;
  transition: transform .4s ease;
  will-change: transform;
}

.sng-rel-item {
  flex: 0 0 210px;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.sng-rel-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,.1);
}

.sng-rel-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.sng-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.sng-rel-item:hover .sng-rel-img img { transform: scale(1.05); }
.sng-rel-noimg {
  width: 100%;
  height: 100%;
  background: #e8e3f5;
}

.sng-rel-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}

.sng-rel-date {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
}

.sng-rel-text {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Карточка 10: комментарии ── */
.sng-card--comments { padding: 28px 32px; }

.sng-card--comments #respond h3,
.sng-card--comments .comments-title {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin: 0 0 20px;
}

.sng-card--comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.sng-card--comments .comment-body {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.sng-card--comments .fn { font-weight: 700; color: #111; font-size: 15px; font-style: normal; }
.sng-card--comments .comment-metadata { font-size: 12px; color: #aaa; margin: 3px 0 8px; }
.sng-card--comments .comment-content p { font-size: 15px; color: #444; margin: 0; }

.sng-card--comments .comment-form label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.sng-card--comments .comment-form input[type="text"],
.sng-card--comments .comment-form input[type="email"],
.sng-card--comments .comment-form input[type="url"],
.sng-card--comments .comment-form textarea {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.sng-card--comments .comment-form input:focus,
.sng-card--comments .comment-form textarea:focus {
  border-color: #7c3aed;
}
.sng-card--comments .comment-form textarea { min-height: 130px; resize: vertical; }

.sng-card--comments .comment-form .submit {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.sng-card--comments .comment-form .submit:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* ── АДАПТИВ ── */
@media (max-width: 768px) {
  .sng-card { padding: 20px 18px; }
  .sng-stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sng-stat-card { padding: 14px 10px; }
  .sng-stat-val { font-size: 18px; }
  .sng-nav { grid-template-columns: 1fr; }
  .sng-card--author { flex-direction: column; }
  .sng-share-btns { gap: 6px; }
  .sng-share-btn { padding: 8px 12px; font-size: 12px; }
  .sng-thumbs { padding: 8px 10px; }
  .sng-thumb { width: 56px; height: 38px; }
  .sng-content { font-size: 16px; }
}

@media (max-width: 480px) {
  .sng-title { font-size: 22px; }
  .sng-stats-row { grid-template-columns: 1fr; }
  .sng-rel-item { flex: 0 0 175px; }
}