/* ==========================================================================
   NaijaPredicts — основной файл стилей
   Bootstrap 4 + собственные переопределения. Mobile-first.
   Брейкпоинты Bootstrap 4: 576 / 768 / 992 / 1200
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  --ink: #1c1d1f;
  --text: #434a4d;
  --muted: #6b7275;

  --brand: #ce8460;          /* фирменный цвет: заливки, рамки, декор */
  --brand-strong: #9c4d2b;   /* тот же оттенок, но контрастный для текста и кнопок */
  --brand-tint: #f8ece6;

  --win: #1b8a4b;            /* кнопки Visit */
  --win-dark: #13683a;
  --gold: #e7a500;           /* звёзды рейтинга */

  --slate: #1e2925;          /* футер, блок Daily Pulse */
  --bg-soft: #f4f5f5;
  --line: #e1e4e4;

  --radius: 8px;
  --radius-sm: 5px;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. База и типографика
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* под sticky-шапку, для якоря #trust-bookmaker */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

p,
.paragraph {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

/* fallback-значение перед clamp() для старых браузеров */
h1, .h1 { font-size: 2rem;    font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
h2, .h2 { font-size: 1.75rem; font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.4rem); }
h3, .h3 { font-size: 1.4rem;  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem); }
h4, .h4 { font-size: 1.25rem; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.0625rem; }

a {
  color: var(--brand-strong);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
a:hover,
a:focus {
  color: var(--ink);
  text-decoration: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* Видимый фокус с клавиатуры */
:focus { outline: 0; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Ссылка «Перейти к содержимому» */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Утилиты
   -------------------------------------------------------------------------- */
.fw-bold { font-weight: 700 !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bg-soft { background-color: var(--bg-soft); }
.bg-primary { background: var(--brand) !important; }
.text-primary { color: var(--brand-strong) !important; }
.text-color { color: var(--text); }
.border-default,
.border-primary { border-color: var(--line) !important; }
.rounded-lg { border-radius: var(--radius) !important; }
.overflow-hidden { overflow: hidden; }
.outline-0 { outline: 0 !important; }
.d-unset { display: unset !important; }
.zindex-1 { z-index: 1; }

.bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.overlay { position: relative; }
.overlay::before {
  position: absolute;
  content: "";
  inset: 0;
  background: #000;
  opacity: .5;
}

.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }
.mb-60 { margin-bottom: 60px !important; }
.mb-70 { margin-bottom: 70px !important; }
.mb-80 { margin-bottom: 80px !important; }
.mb-90 { margin-bottom: 90px !important; }
.mb-100 { margin-bottom: 100px !important; }

/* --------------------------------------------------------------------------
   4. Секции
   -------------------------------------------------------------------------- */
.section    { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-sm { padding-top: 2rem;   padding-bottom: 2rem; }

@media (min-width: 768px) {
  .section    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .section-sm { padding-top: 2.75rem; padding-bottom: 2.75rem; }
}
@media (min-width: 992px) {
  .section    { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* Утилиты Bootstrap pt-0 / pb-* должны побеждать .section */
.section.pt-0 { padding-top: 0; }
.section.pb-0 { padding-bottom: 0; }

/* Заголовок страницы */
.page-title {
  margin-bottom: 1.5rem;
}

/* Заголовок секции с маркером */
.section-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.5rem;
}
.section-title::before {
  content: "";
  flex: 0 0 4px;
  height: 1.05em;
  background: var(--brand);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.25rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover,
.btn:active,
.btn:focus {
  box-shadow: none !important;
}
.btn-sm {
  min-height: 38px;
  padding: .35rem .9rem;
  font-size: .875rem;
}

.btn-primary {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff;
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background: var(--brand-strong) !important;
  border-color: var(--brand-strong) !important;
  color: #fff;
}

.btn-outline-secondary {
  background: transparent;
  border-color: #c7cdcd;
  color: var(--ink);
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background: var(--bg-soft) !important;
  border-color: var(--ink) !important;
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline-light:hover {
  background: var(--bg-soft) !important;
  border-color: #c7cdcd !important;
}

.btn-success,
a.btn-success {
  background: var(--win);
  border-color: var(--win);
  color: #fff;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
a.btn-success:hover,
a.btn-success:focus {
  background: var(--win-dark) !important;
  border-color: var(--win-dark) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   6. Шапка и навигация
   -------------------------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--brand);
  z-index: 1030;
}

.site-header .navbar {
  padding: .5rem 0;
}

.navbar-brand {
  margin-right: 1rem;
  padding: .25rem 0;
}
.navbar-brand img {
  width: 140px;
  height: auto;
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.15rem;
  color: var(--ink);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  background: #fff;
}
.navbar-toggler:hover {
  background: var(--bg-soft);
}

.nav-item { margin: 0; }

.navbar-white .navbar-nav .nav-link {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.navbar-white .navbar-nav .nav-link:hover,
.navbar-white .navbar-nav .nav-item.active .nav-link {
  color: var(--brand-strong);
}

/* Мобильное и планшетное меню (до 992px) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .5rem;
    border-top: 1px solid var(--line);
  }
  .navbar-nav {
    padding: .25rem 0 .75rem;
  }
  .navbar-nav .nav-item + .nav-item {
    border-top: 1px solid var(--line);
  }
  .navbar-white .navbar-nav .nav-link {
    padding: .85rem .25rem;
  }
}

/* Десктоп */
@media (min-width: 992px) {
  .navbar-brand img { width: 170px; }

  .navbar-expand-lg .navbar-nav .nav-link {
    position: relative;
    padding: .5rem 1rem;
  }
  .navbar-expand-lg .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .2s ease;
  }
  .navbar-expand-lg .navbar-nav .nav-link:hover::after,
  .navbar-expand-lg .navbar-nav .nav-item.active .nav-link::after {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   7. Hero (главная)
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--bg-soft);
  /* линии футбольного поля: центральный круг, линия центра, штрафная */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23ce8460' stroke-opacity='.28' stroke-width='2'%3E%3Crect x='2' y='2' width='396' height='396'/%3E%3Cline x1='200' y1='2' x2='200' y2='398'/%3E%3Ccircle cx='200' cy='200' r='64'/%3E%3Ccircle cx='200' cy='200' r='3' fill='%23ce8460' fill-opacity='.28'/%3E%3Crect x='2' y='110' width='72' height='180'/%3E%3Crect x='326' y='110' width='72' height='180'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -150px top -40px;
  background-size: 340px auto;
  border-bottom: 1px solid var(--line);
}

.hero__lead {
  max-width: 44rem;
  font-size: 1.0625rem;
}

@media (min-width: 768px) {
  .hero {
    background-position: right -60px center;
    background-size: 420px auto;
  }
  .hero__lead { font-size: 1.1875rem; }
}
@media (min-width: 992px) {
  .hero {
    background-position: right 5% center;
    background-size: 460px auto;
  }
}

/* Блок «свежие прогнозы за 24 часа» */
.posts-last-24-hours {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  color: #d8e0dc;
  background: var(--slate);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
}

.posts-last-24-hours__num {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #f0a98a;
}

.posts-last-24-hours__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.posts-last-24-hours__text {
  margin: 0;
  color: #d8e0dc;
  font-size: 1rem;
}
.posts-last-24-hours__text strong {
  color: #fff;
  font-weight: 600;
}

.posts-last-24-hours__link {
  align-self: flex-start;
  margin-top: .5rem;
  padding-bottom: 1px;
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.posts-last-24-hours__link:hover {
  color: #f0a98a;
  border-color: #f0a98a;
}

@media (min-width: 576px) {
  .posts-last-24-hours {
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
  }
  .posts-last-24-hours__num { font-size: 3.75rem; }
}

/* --------------------------------------------------------------------------
   8. Метаданные записей
   -------------------------------------------------------------------------- */
.post-meta {
  margin: 0 0 .75rem;
  padding: 0;
  font-size: .875rem;
  color: var(--muted);
}
.post-meta li { margin-right: 1rem; }
.post-meta i { color: var(--brand-strong); }
.post-meta a {
  color: var(--muted);
  border-bottom: 1px dotted var(--line);
}
.post-meta a:hover { color: var(--brand-strong); }

.post-title { color: var(--ink); }
.post-title:hover { color: var(--brand-strong); }

/* --------------------------------------------------------------------------
   9. Список прогнозов (главная, /posts, /search)
   -------------------------------------------------------------------------- */
.post-list {
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.post-row__media {
  display: block;
  height: 190px;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
@supports (aspect-ratio: 16 / 10) {
  .post-row__media {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
.post-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-row__body { min-width: 0; }

.post-row__title {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
}

.post-row__desc {
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .post-row {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 0;
  }
  .post-row__media { height: 100%; min-height: 140px; }
  @supports (aspect-ratio: 16 / 10) {
    .post-row__media { height: auto; aspect-ratio: 16 / 10; align-self: start; }
  }
}

@media (min-width: 992px) {
  .post-row {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
  }
  .post-row__title { font-size: 1.75rem; }
}

/* --------------------------------------------------------------------------
   10. Статьи на главной
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2rem;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.article-card__media {
  display: block;
  height: 210px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
@supports (aspect-ratio: 16 / 9) {
  .article-card__media { height: auto; aspect-ratio: 16 / 9; }
}
.article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__title { margin: 0 0 .5rem; font-size: 1.6rem; }
.article-card .btn { align-self: flex-start; margin-top: auto; }

/* --------------------------------------------------------------------------
   11. Обложка записи / страницы и слайдер
   -------------------------------------------------------------------------- */
.post-cover {
  margin: 0 0 1.25rem;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 30rem;
  object-fit: cover;
}

.post-slider {
  position: relative;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius) !important;
}
.post-slider img { border-radius: inherit; }
/* до инициализации slick показываем только первый кадр — без «прыжка» страницы */
.post-slider:not(.slick-initialized) > img:not(:first-child) { display: none; }

.girls-slider img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

.slick-slide { outline: 0; }
.slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 9;
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: #fff;
  background: rgba(28, 29, 31, .55);
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}
.slider-sm .slick-arrow { width: 36px; height: 36px; line-height: 36px; }
.slick-arrow:hover { background: var(--brand-strong); }
.prevArrow { left: -60px; }
.nextArrow { right: -60px; }
.post-slider:hover .prevArrow { left: 10px; }
.post-slider:hover .nextArrow { right: 10px; }
@media (max-width: 575.98px) {
  .slick-arrow { display: none !important; }
}

/* --------------------------------------------------------------------------
   12. Контент статей (HTML из админки)
   -------------------------------------------------------------------------- */
.content {
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .content { font-size: 1.0625rem; }
}

.content p { margin-bottom: 1.15rem; }

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-weight: 700;
}
.content h2 { margin: 2.25rem 0 1rem; }
.content h3 { margin: 1.75rem 0 .75rem; }
.content h4,
.content h5,
.content h6 { margin: 1.5rem 0 .6rem; }
.content > :first-child { margin-top: 0; }

.content strong { font-weight: 600; color: var(--ink); }

.content a:not(.btn) {
  color: var(--brand-strong);
  border-bottom: 1px solid rgba(156, 77, 43, .35);
}
.content a:not(.btn):hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.content img,
.content iframe,
.content video {
  max-width: 100%;
}
.content img {
  height: auto;
  border-radius: var(--radius-sm);
}

.content ol,
.content ul {
  margin-bottom: 1.25rem;
}
.content ol { padding-left: 1.4rem; }
.content ol li,
.content ul li { margin-bottom: .5rem; }

.content ul {
  padding-left: 0;
  list-style: none;
}
.content ul li {
  position: relative;
  padding-left: 1.4rem;
}
.content ul li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .72em;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}

.content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.content blockquote p:last-child { margin-bottom: 0; }

.content pre {
  display: block;
  margin: 1.25rem 0;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.content code { font-size: .95em; }

/* Таблицы: на узких экранах скроллятся по горизонтали */
.content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.45;
  background: #fff;
}
.content th,
.content td {
  min-width: 6rem;
  padding: .65rem .8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.content thead th {
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  border-bottom: 2px solid #cdd2d2;
}
.content tbody tr:nth-child(even) { background: #fafbfb; }
@media (hover: hover) {
  .content tbody tr:hover { background: var(--brand-tint); }
}
/* последняя колонка (результат / прогноз) по центру */
.content th:last-child,
.content td:last-child {
  text-align: center;
  font-weight: 600;
}
@media (min-width: 768px) {
  .content th,
  .content td { padding: .75rem 1rem; min-width: 7rem; }
}

/* Врезки */
.content .notices {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
}
.content .notices p { margin-bottom: 0; padding: 10px; }
.content .notices p::before {
  position: absolute;
  top: 2px;
  left: 10px;
  color: #fff;
  font-family: "themify";
  font-weight: 900;
  content: "\e717";
}
.content .notices p::after {
  position: absolute;
  top: 2px;
  left: 2rem;
  color: #fff;
}
.content .notices.note p    { border-top: 30px solid #6ab0de; background: var(--bg-soft); }
.content .notices.note p::after    { content: "Note"; }
.content .notices.tip p     { border-top: 30px solid #78c578; background: var(--bg-soft); }
.content .notices.tip p::after     { content: "Tip"; }
.content .notices.info p    { border-top: 30px solid #f0b37e; background: var(--bg-soft); }
.content .notices.info p::after    { content: "Info"; }
.content .notices.warning p { border-top: 30px solid #e06f6c; background: var(--bg-soft); }
.content .notices.warning p::after { content: "Warning"; }

/* --------------------------------------------------------------------------
   13. Контакты
   -------------------------------------------------------------------------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.contact-card__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 50%;
}
.contact-card__label {
  display: block;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.3;
}
.contact-card__link {
  font-size: 1.125rem;
  font-weight: 600;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   14. Форма поиска
   -------------------------------------------------------------------------- */
.widget-search {
  position: relative;
}
.widget-search input {
  width: 100%;
  height: 48px;
  padding: 0 3.25rem 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7cdcd;
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
}
.widget-search input:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(206, 132, 96, .25);
}
.widget-search input::placeholder { color: var(--muted); opacity: 1; }
.widget-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: .9rem;
  color: #fff;
  background: var(--brand-strong);
  border: 0;
  border-radius: var(--radius-sm);
}
.widget-search button:hover { background: var(--ink); }

.form-control:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(206, 132, 96, .25);
}
.form-group label { font-size: .875rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   15. Сайдбар и виджеты
   -------------------------------------------------------------------------- */
.widget { margin-bottom: 2.5rem; }

.widget-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}
.widget-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.widget-list { margin: 0; padding: 0; list-style: none; }
.widget-list li { padding: .75rem 0; }
.widget-list li:not(:last-child) { border-bottom: 1px solid var(--line); }
.widget-list a:not(.btn) { color: var(--ink); }
.widget-list a:not(.btn):hover { color: var(--brand-strong); }

.widget-post { padding: .85rem 0 !important; }
.widget-post img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.widget-post__title {
  margin: 0 0 .15rem;
  font-size: 1.125rem;
  line-height: 1.25;
}
.widget-post small { color: var(--muted); }

/* Кнопки «Поделиться» */
.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: #6c757d;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.share-btn[hidden] { display: none; }
.share-btn:hover,
.share-btn:focus-visible {
  color: #fff;
  opacity: .9;
  transform: translateY(-2px);
}
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn svg[stroke] { fill: none; }
.share-facebook { background: #1877f2; }
.share-x        { background: #000; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-email    { background: #ea4335; }
.share-copy     { background: #495057; }
.share-native   { background: var(--win); }
.share-toast {
  display: none;
  width: 100%;
  font-size: .875rem;
  color: var(--win-dark);
}
.share-toast.is-visible { display: block; }

/* --------------------------------------------------------------------------
   16. Букмекеры (ранжированный список)
   -------------------------------------------------------------------------- */
.bk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bk-item {
  display: grid;
  grid-template-columns: 1.5rem 4.5rem minmax(0, 1fr);
  grid-template-areas:
    "rank logo info"
    ".    rate actions";
  align-items: center;
  gap: .6rem .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
}
.bk-item:last-child { border-bottom: 0; }

.bk-rank {
  grid-area: rank;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--muted);
}
.bk-logo {
  grid-area: logo;
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  object-fit: contain;
}
.bk-info { grid-area: info; min-width: 0; }
.bk-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.bk-adv {
  display: block;
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--muted);
}
.bk-rate {
  grid-area: rate;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.bk-star { color: var(--gold); }
.bk-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}
.bk-actions .btn { min-width: 5rem; }

@media (min-width: 768px) {
  .bk-item {
    grid-template-columns: 2.5rem 7rem minmax(0, 1fr) 6.5rem 12rem;
    grid-template-areas: "rank logo info rate actions";
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .bk-logo { height: 34px; }
}

/* Компактный вариант — для сайдбара */
.bk-list--compact {
  border: 0;
  border-radius: 0;
}
.bk-list--compact .bk-item {
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  grid-template-areas:
    "logo info actions"
    "logo rate actions";
  gap: .15rem .75rem;
  padding: .85rem 0;
}
.bk-list--compact .bk-rank { display: none; }
.bk-list--compact .bk-logo { height: 26px; }
.bk-list--compact .bk-name { font-size: 1.2rem; }
.bk-list--compact .bk-actions .btn { min-width: 4.5rem; }

.bk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .3rem;
}
.bk-tag {
  display: inline-block;
  padding: .3rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border-radius: 3px;
}
a.bk-tag:hover,
a.bk-tag:focus {
  color: #fff;
  background: var(--brand-strong);
}

.bk-note {
  margin: 1rem 0 0;
  font-size: .875rem;
  color: var(--muted);
}
.bk-trust-note {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px dashed #cfd4d4;
}
.bk-trust-note p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Пагинация (vendor/pagination/custom.blade.php)
   -------------------------------------------------------------------------- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .75rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7cdcd;
  border-radius: var(--radius-sm);
}
a.pagination-link:hover,
a.pagination-link:focus {
  color: var(--brand-strong);
  background: var(--brand-tint);
  border-color: var(--brand-strong);
}
.pagination-item.active .pagination-link {
  color: #fff;
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  cursor: default;
}
.pagination-item.disabled .pagination-link {
  color: #a3abab;
  background: var(--bg-soft);
  border-color: var(--line);
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   18. Футер
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: 3rem;
  color: #b7c2bd;
  background: var(--slate);
}
.site-footer h6 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
  color: #fff;
}
.site-footer p { color: #b7c2bd; }
.site-footer a { color: #b7c2bd; }
.site-footer a:hover { color: #fff; }

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .4rem .7rem;
  background: #fff;
  border-radius: var(--radius-sm);
}
.footer-logo img { display: block; width: 140px; height: auto; }

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a {
  display: block;
  padding: .4rem 0;
}

.site-footer .widget-search input {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .25);
}
.site-footer .widget-search input::placeholder { color: #94a19b; }
.site-footer .widget-search button { background: var(--brand); color: var(--ink); }
.site-footer .widget-search button:hover { background: #fff; }

.footer-note {
  font-size: .875rem;
  color: #94a19b;
}

.scroll-top {
  position: relative;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.scroll-top a {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.scroll-top a:hover { color: var(--ink); background: #fff; }

.footer-copy {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: .875rem;
  text-align: center;
  color: #94a19b;
}

/* --------------------------------------------------------------------------
   19. Страница 404
   -------------------------------------------------------------------------- */
.error-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 0;
  text-align: center;
}
.error-page__code {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.error-page__title { margin-bottom: 1rem; }
.error-page__text {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}
.error-page__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
.error-page .widget-search {
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 576px) {
  .error-page__code { font-size: 8rem; }
  .error-page__actions {
    flex-direction: row;
    justify-content: center;
  }
}
@media (min-width: 992px) {
  .error-page { padding: 2rem 0; }
  .error-page__code { font-size: 10rem; }
}
