/* ================================================================
   BLOG — мінімальні кастомні стилі (розміри — Webflow дефолт)
   ================================================================ */

/* Webflow badge прихований */
.w-webflow-badge { display: none !important; }

/* BDO Grotesk для тексту статей */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, p, li { font-family: "BDO Grotesk", system-ui, sans-serif; }

.w-richtext p,
.w-richtext li {
  font-family: "BDO Grotesk", system-ui, sans-serif;
  line-height: 1.8;
}

/* ================================================================
   NAVBAR — відтворення стилів для блог-сторінок (CDN shared CSS)
   ================================================================ */

.navbar {
  z-index: 99;
  width: 100%;
  padding-top: 1rem;
  display: block;
  position: absolute;
  inset: 0% 0% auto;
}

.navbar_component {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.navbar_links-wrap {
  height: auto;
  min-height: 65.6px;
  padding: 0.5rem 0.5rem 0.5rem 1.75rem;
  column-gap: 1.75rem;
  border-radius: 1.5rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(0,0,0,.50);
  justify-content: center;
  align-items: center;
  display: flex;
}

.navbar_link {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 500;
}

.navbar_logo-wrap {
  position: relative;
  top: -0.5rem;
}

@media (min-width: 768px) {
  .navbar { padding-top: 1rem !important; }
  .navbar_component { padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* ================================================================
   CTA — більший заголовок на десктопі
   ================================================================ */

.cta_head .heading-style-h5 {
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .cta_head .heading-style-h5 {
    font-size: clamp(1.4rem, 6vw, 1.75rem) !important;
  }
}

/* ================================================================
   TYPOGRAPHY — покращена подача статей (додано поверх базових)
   ================================================================ */

/* --- Підзаголовки h5 (використовуються як H2 всередині статті) --- */
.w-richtext h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d0d0d;
  margin-top: 2.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  padding-left: 0.875rem;
  border-left: 3px solid #7c3aed;
}

.w-richtext h5:first-child { margin-top: 0.5rem; }

/* --- Параграфи --- */
.w-richtext p {
  color: #1e1e1e;
  font-size: 1.02rem;
  line-height: 1.82;
  margin-bottom: 0;
  margin-top: 1rem;
}

/* Перший параграф після заголовку — трохи більший (lead) */
.w-richtext h5 + p {
  font-size: 1.05rem;
  color: #2a2a2a;
  margin-top: 0.75rem;
}

/* --- Виховано відображаємо «списки» що записані як <p> з <br> --- */
.w-richtext p:has(br) {
  padding: 0.85rem 1.1rem 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  line-height: 2;
  margin-top: 0.75rem;
}

/* --- Параграфи-визначення: <strong>СЛОВО</strong> — опис --- */
.w-richtext p:has(> strong:first-child) {
  padding-left: 1rem;
  border-left: 2px solid rgba(124, 58, 237, 0.25);
  background: none;
  border-radius: 0;
  line-height: 1.9;
}

/* --- Inline bold --- */
.w-richtext strong {
  font-weight: 700;
  color: #0d0d0d;
}

/* --- Курсив = нотатка/підказка --- */
.w-richtext em {
  font-style: italic;
  color: #555;
  background: rgba(124, 58, 237, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

/* --- Прибрати порожній Webflow-спейсер h6 --- */
.w-richtext h6 { display: none; }

/* --- Шапка поста: мета-інфо (дата, категорія) --- */
.post-header_infos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #888;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

/* pill_wrap — просто змінюємо тон, не додаємо другу рамку */
.post-header_infos .pill_wrap {
  background-color: rgba(124, 58, 237, 0.1);
}

.post-header_infos .text-style-label {
  color: #6d28d9;
  font-weight: 600;
}

