/* =========================================================
   dudebet-bk.rv.ua — блоки контенту поверх шаблону dudebet.com.ua
   Світла тема шаблону + фірмовий жовтий Dude Bet
   ========================================================= */

:root {
  --bk-yellow: #f2f740;
  --bk-yellow-hover: #e1f038;
  --bk-ink: #292621;
  --bk-text: #45413a;
  --bk-muted: #7b756b;
  --bk-line: #e6e3de;
  --bk-soft: #f5f4f1;
  --bk-link: #009e69;
  --bk-radius: 16px;
}

/* ---------- Кнопки ---------- */
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--bk-soft);
  color: var(--bk-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.bk-btn:hover {
  background: #efede9;
  text-decoration: none;
}
.bk-btn--primary {
  background: var(--bk-yellow);
}
.bk-btn--primary:hover {
  background: var(--bk-yellow-hover);
  transform: translateY(-1px);
}
.bk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Інтро на головній ---------- */
.bk-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 8px 16px 24px;
  padding: 24px;
  border-radius: var(--bk-radius);
  background: #fff;
  border: 1px solid var(--bk-line);
}
.bk-intro h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--bk-ink);
}
.bk-intro p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bk-text);
}
.bk-intro__text {
  flex: 1 1 380px;
  min-width: 0;
}
.bk-intro__cover {
  flex: 1 1 340px;
  order: -1;
  margin: 0;
}
.bk-intro__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.bk-badge {
  display: inline-block;
  margin: 0 0 12px !important;
  padding: 5px 12px;
  border-radius: 999px;
  background: #111;
  color: var(--bk-yellow) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Заголовок лінії ---------- */
.bk-line {
  margin-top: 8px;
}
.bk-section-title {
  margin: 8px 16px 4px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--bk-ink);
}

/* ---------- Стаття ---------- */
.bk-main {
  padding: 0 16px;
}
.bk-article {
  max-width: 980px;
  margin: 16px auto 32px;
  padding: 28px 32px;
  border-radius: var(--bk-radius);
  background: #fff;
  border: 1px solid var(--bk-line);
  color: var(--bk-text);
  font-size: 16px;
  line-height: 1.65;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
}
.bk-article h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--bk-ink);
}
.bk-article h2 {
  margin: 32px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--bk-ink);
}
.bk-article h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--bk-ink);
}
.bk-article p {
  margin: 0 0 14px;
}
.bk-article a {
  color: var(--bk-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bk-article strong {
  color: var(--bk-ink);
}
.bk-article ul,
.bk-article ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.bk-article ul li {
  position: relative;
  padding: 0 0 8px 22px;
}
.bk-article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bk-yellow);
  box-shadow: 0 0 0 2px #111;
}
.bk-article ol {
  counter-reset: bk-step;
}
.bk-article ol li {
  position: relative;
  padding: 2px 0 10px 42px;
  counter-increment: bk-step;
}
.bk-article ol li::before {
  content: counter(bk-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111;
  color: var(--bk-yellow);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-article em {
  display: block;
  padding: 14px 16px;
  border-left: 4px solid var(--bk-yellow);
  border-radius: 0 12px 12px 0;
  background: var(--bk-soft);
  color: var(--bk-muted);
  font-size: 14px;
}
.bk-article figure {
  margin: 18px 0 22px;
}
.bk-article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.bk-cover {
  margin-top: 0 !important;
}

/* ---------- Мета, крихти ---------- */
.bk-breadcrumbs {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--bk-muted);
}
.bk-breadcrumbs a {
  color: var(--bk-link);
  font-weight: 500;
  text-decoration: none;
}
.bk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 18px !important;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bk-soft);
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--bk-muted) !important;
}
.bk-meta a {
  color: var(--bk-link);
}

/* ---------- Таблиці ---------- */
.bk-table {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 20px;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--bk-line);
}
.bk-table table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15px;
}
.bk-table th {
  padding: 12px 14px;
  background: #111;
  color: var(--bk-yellow);
  text-align: left;
  font-weight: 700;
}
.bk-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--bk-line);
  vertical-align: top;
}
.bk-table tr:nth-child(even) td {
  background: #fbfaf8;
}

/* ---------- FAQ ---------- */
.bk-faq details {
  margin: 0 0 10px;
  border: 1px solid var(--bk-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.bk-faq details[open] {
  border-color: #d8dc3a;
  box-shadow: 0 0 0 1px #d8dc3a inset;
}
.bk-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.bk-faq summary::-webkit-details-marker {
  display: none;
}
.bk-faq summary::after {
  content: "+";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bk-yellow);
  color: #111;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-faq details[open] summary::after {
  content: "−";
}
.bk-faq summary h3 {
  margin: 0;
  font-size: 16px;
}
.bk-faq__answer {
  padding: 0 16px 6px;
}

/* ---------- Автор, CTA ---------- */
.bk-author__card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--bk-soft);
}
.bk-author__card img {
  flex: 0 0 64px;
  padding: 8px;
  border-radius: 10px;
  background: #111;
  box-sizing: content-box;
}
.bk-author__card p {
  margin: 0;
}
.bk-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--bk-radius);
  background: #111;
  color: #d9d6cf;
}
.bk-cta p {
  margin: 0;
  color: #d9d6cf;
}
.bk-cta .bk-cta__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--bk-yellow);
}

/* ---------- Футер: посилання на розділи ---------- */
.bk-footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}
.bk-footer-links a {
  color: inherit;
  text-decoration: none;
}
.bk-footer-links a:hover {
  text-decoration: underline;
}
.footer-content a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Адаптив ---------- */

@media (max-width: 768px) {
  .bk-intro {
    margin: 8px 12px 16px;
    padding: 16px;
    gap: 16px;
  }
  .bk-intro h1 {
    font-size: 24px;
  }
  .bk-section-title {
    margin: 8px 12px 4px;
    font-size: 19px;
  }
  .bk-main {
    padding: 0 12px;
  }
  .bk-article {
    margin: 12px auto 24px;
    padding: 18px 16px;
    font-size: 15px;
  }
  .bk-article h1 {
    font-size: 25px;
  }
  .bk-article h2 {
    font-size: 21px;
    margin-top: 26px;
  }
  .bk-article h3 {
    font-size: 17px;
  }
  .bk-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }
  .bk-author__card {
    flex-direction: column;
  }
  .bk-actions .bk-btn {
    flex: 1 1 140px;
  }
  .bk-footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .bk-footer-links {
    grid-template-columns: 1fr;
  }
}

.bk-article > h2:first-child {
  margin-top: 0;
}
