/* страховка: светлая тема всегда перекрывает фон/цвет */
html[data-theme="light"] body{
  background: var(--bg-light);
  color: var(--text-light);
}

/* =========================
   BLOG PAGE (blg2)
========================= */
.blg2{
  padding: calc(var(--header-height) + 72px) 20px 90px;
  background: transparent;
}

.blg2__wrap{
  max-width: 1600px;
  margin: 0 auto;
}

.blg2__title{
  margin: 0 0 14px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(44px, 4.1vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blg2__desc{
  margin: 0 auto 70px;
  max-width: 860px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.blg2__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blg2__card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blg2__card:hover{
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 26px 70px rgba(0,0,0,.26);
}

.blg2__cover{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.blg2__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.blg2__body{
  padding: 24px 24px 22px;
}

.blg2__h{
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.blg2__text{
  margin: 0 0 18px;
  color: rgba(234,241,255,.72);
  font-size: 15px;
  line-height: 1.65;
}

.blg2__more{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.blg2__more span{
  transition: transform .18s ease;
}

.blg2__more:hover span{
  transform: translateX(4px);
}

/* responsive */
@media (max-width: 1100px){
  .blg2__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .blg2{
    padding: calc(var(--header-height) + 22px) 16px 70px;
  }
  .blg2__desc{ margin-bottom: 26px; }
  .blg2__grid{ grid-template-columns: 1fr; gap: 18px; }
  .blg2__body{ padding: 18px 18px 16px; }
}

/* =========================
   LIGHT THEME (html[data-theme="light"])
========================= */
html[data-theme="light"] .blg2__title{ color: #111827; }
html[data-theme="light"] .blg2__desc{ color: rgba(17,24,39,.62); }

html[data-theme="light"] .blg2__card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

html[data-theme="light"] .blg2__card:hover{
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 26px 70px rgba(0,0,0,.14);
}

html[data-theme="light"] .blg2__text{
  color: rgba(17,24,39,.62);
}
/* =========================
   BLOG (LIGHT THEME)
========================= */

html[data-theme="light"] .blg2{
  background: transparent;
}

/* заголовок и описание */
html[data-theme="light"] .blg2__title{
  color: #111827;
}

html[data-theme="light"] .blg2__desc{
  color: rgba(17,24,39,.62);
}

/* карточка */
html[data-theme="light"] .blg2__card{
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  backdrop-filter: none;
}

/* hover */
html[data-theme="light"] .blg2__card:hover{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
}

/* заголовок статьи */
html[data-theme="light"] .blg2__h{
  color: #111827;
}

/* текст */
html[data-theme="light"] .blg2__text{
  color: rgba(17,24,39,.65);
}

/* ссылка */
html[data-theme="light"] .blg2__more{
  color: #3b82f6;
}

/* картинка */
html[data-theme="light"] .blg2__cover{
  background: #f1f5f9;
}

/* subtle divider look */
html[data-theme="light"] .blg2__cover img{
  filter: none;
}
