/* ============================================================
   Mind Group — блог (SEO-раздел): хаб + страницы статей
   Опирается на переменные и классы из styles.css
   ============================================================ */

.blog { padding: 120px 0 80px; }

/* ---- шапка раздела ---- */
.blog__head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.blog__title { font-size: clamp(34px, 5vw, 60px); margin: 10px 0 16px; }
.blog__lead { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }

/* ---- сетка карточек статей ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.bcard {
  display: flex; flex-direction: column; background: #fff; border-radius: 22px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(2,28,30,.07);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bcard:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(2,28,30,.12); }
.bcard__top {
  position: relative; overflow: hidden;
  height: 168px; display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(140deg, hsl(var(--hue,160) 45% 90%), hsl(var(--hue,160) 55% 74%));
}
.bcard__emoji { line-height: 1; }
.bcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bcard__cat { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--hue,160) 45% 38%); margin-bottom: 8px; }
.bcard__body h2 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.bcard__body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; flex: 1; }
.bcard__foot { display: flex; align-items: center; justify-content: space-between; }
.bcard__read { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.bcard__link { font-weight: 800; color: hsl(var(--hue,160) 50% 34%); font-size: 14px; }
.bcard:hover .bcard__link { text-decoration: underline; }

/* ============================================================
   Страница статьи
   ============================================================ */
.article { padding: 110px 0 70px; }
.article__wrap { max-width: 760px; margin: 0 auto; }
.article__crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.article__crumbs a { color: var(--peach-d); font-weight: 600; }
.article__cat { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: var(--grad-sun); padding: 6px 14px; border-radius: 100px; margin-bottom: 16px; }
.article h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.article__meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-bottom: 30px; }
.article__cover { position: relative; overflow: hidden; height: 320px; border-radius: 24px; display: grid; place-items: center; font-size: 84px; margin-bottom: 34px; background: linear-gradient(140deg, hsl(var(--hue,160) 45% 90%), hsl(var(--hue,160) 55% 74%)); }
.article__cover-emoji { line-height: 1; }
.article__cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.article__body { font-size: 17px; line-height: 1.72; color: #17302c; }
.article__body > p { margin-bottom: 20px; }
.article__body h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 40px 0 16px; line-height: 1.2; }
.article__body h3 { font-size: 20px; margin: 28px 0 12px; }
.article__body ul, .article__body ol { margin: 0 0 22px 4px; padding-left: 24px; }
.article__body li { margin-bottom: 10px; line-height: 1.6; }
.article__body strong { color: var(--ink); }
.article__body blockquote {
  margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--peach);
  background: #fff; border-radius: 0 14px 14px 0; color: var(--ink-soft); font-size: 16px;
}
.article__lead { font-size: 19px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 26px; }

/* блок FAQ */
.article__faq { margin-top: 46px; }
.article__faq h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; }
.faq-q { background: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(2,28,30,.05); }
.faq-q b { display: block; margin-bottom: 8px; font-family: "Unbounded", sans-serif; font-size: 16px; }
.faq-q p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* CTA-блок */
.article__cta {
  margin: 46px 0 10px; padding: 32px; border-radius: 24px; text-align: center;
  background: var(--grad-sun); color: #fff;
}
.article__cta h3 { font-size: 24px; margin-bottom: 10px; color: #fff; }
.article__cta p { opacity: .92; margin-bottom: 22px; max-width: 460px; margin-inline: auto; }
.article__cta .btn { background: #fff; color: var(--ink); }
.article__cta .btn:hover { transform: translateY(-3px); }

/* блок «читайте также» */
.article__related { margin-top: 56px; }
.article__related h2 { font-size: 24px; margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rel-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 6px 18px rgba(2,28,30,.06); transition: transform .2s var(--ease); }
.rel-card:hover { transform: translateY(-3px); }
.rel-card .rel-emoji { font-size: 26px; }
.rel-card b { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--ink); }

.article__disclaimer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 560px) {
  .article__cover { height: 150px; font-size: 60px; }
}

/* мобильные: длинные слова в заголовках статей переносятся, а не обрезаются */
.article__wrap h1, .article__wrap h2 { overflow-wrap: break-word; hyphens: auto; }
