/* CasinoStreamersTop — светлая тема, mobile first */

:root {
  --ink: #23231F;
  --ink-2: #4A4A44;
  --muted: #7A7A72;
  --line: #E5E4DE;
  --line-soft: #EFEEE9;
  --paper: #F7F6F2;
  --card: #FFFFFF;
  --accent: #5B7A6A;
  --accent-soft: #ECF1EE;
  --gold: #B29761;
  --silver: #9AA0A6;
  --bronze: #A98A70;
  --radius: 14px;

  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 91, 122, 106;
  --bs-link-hover-color-rgb: 62, 88, 75;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

h1, h2, h3, .serif {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.text-muted-2 { color: var(--muted) !important; }
.text-ink-2 { color: var(--ink-2) !important; }

/* Bootstrap 5 не содержит min-w-0, а он нужен для text-truncate внутри flex */
.min-w-0 { min-width: 0; }

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Navbar ---------- */

.site-nav {
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  flex: 0 0 auto;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;          /* убирает лишний отступ под inline-элементом */
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

@media (min-width: 420px) { .brand-mark svg { width: 33px; height: 33px; } }

.site-footer .brand-mark svg { width: 30px; height: 30px; }

/* line-height:1 убирает несимметричный интерлиньяж, из-за которого
   текст в flex-строке визуально уезжает вниз относительно знака */
.brand-name {
  line-height: 1;
  display: block;
}

.navbar-brand {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
  padding-block: .25rem;
}
.navbar-brand:hover { color: var(--ink); }

@media (min-width: 420px) { .navbar-brand { font-size: 1.18rem; } }

.site-nav .nav-link { color: var(--ink-2); font-size: .95rem; padding-block: .5rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--accent); }

.navbar-toggler { border-color: var(--line); padding: .3rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Общие блоки ---------- */

.badge-18 {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.hairline { border-top: 1px solid var(--line); }

.soft-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip {
  display: inline-block;
  font-size: .72rem;
  color: var(--ink-2);
  background: var(--line-soft);
  border-radius: 999px;
  padding: .18rem .55rem;
  white-space: nowrap;
}

.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-warn { background: #F3EDE0; color: #8A7038; }

.warn-box {
  background: #FBF7EE;
  border: 1px solid #E8DEC7;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---------- Комментарии ---------- */

.c-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: .3rem;
}

.c-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: .55rem .8rem;
  font-size: .92rem;
  color: var(--ink);
  font-family: inherit;
}
.c-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--card);
}

.c-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.c-rules {
  font-size: .76rem;
  line-height: 1.55;
  color: var(--muted);
  margin: .75rem 0 0;
}

.c-status { font-size: .8rem; color: var(--muted); }
.c-status.is-ok { color: var(--accent); }
.c-status.is-error { color: #A05A4A; }

.c-empty {
  color: var(--muted);
  font-size: .9rem;
  padding: 1.25rem 0;
  margin: 0;
  text-align: center;
}

.c-list { display: grid; gap: .6rem; }

.c-item {
  display: flex;
  gap: .75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem;
}

.c-avatar {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: "Spectral", Georgia, serif;
  font-size: 1rem;
}

.c-body { min-width: 0; flex: 1 1 auto; }

.c-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .2rem;
}

.c-author { font-weight: 600; font-size: .9rem; color: var(--ink); }
.c-date { font-size: .74rem; color: var(--muted); }

.c-del {
  margin-left: auto;
  border: none;
  background: none;
  padding: 0;
  font-size: .74rem;
  color: var(--muted);
  cursor: pointer;
}
.c-del:hover { color: #A05A4A; }

.c-text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* ---------- Hero ---------- */

.hero {
  padding: 2.25rem 0 1.5rem;
}

@media (min-width: 992px) {
  .hero { padding: 4rem 0 2.5rem; }
  .hero .lead { font-size: 1.08rem; }
  .hero-stats { max-width: 34rem; }
}

.hero h1 {
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  line-height: 1.08;
}

.hero .lead {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 42rem;
}

.hero-stats { border-top: 1px solid var(--line); }
.hero-stat .num { font-family: "Spectral", Georgia, serif; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.hero-stat .cap { font-size: .72rem; color: var(--muted); }

/* ---------- Аватар ---------- */

.avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Spectral", Georgia, serif;
  color: #fff;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-sm { width: 52px; height: 52px; font-size: 1.05rem; }
.avatar-lg { width: 92px; height: 92px; font-size: 2rem; }

@media (min-width: 768px) {
  .avatar-lg { width: 116px; height: 116px; font-size: 2.5rem; }
}

/* ---------- Карточка рейтинга ---------- */

.rank-list { display: grid; gap: .6rem; }

@media (min-width: 768px) {
  .rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .rank-list .rank-card { padding: 1rem; }
}

.rank-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.rank-card:hover {
  border-color: #D4D2C9;
  box-shadow: 0 6px 18px rgba(35, 35, 31, .05);
  transform: translateY(-1px);
  color: inherit;
}

.rank-num {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.05rem;
  color: var(--muted);
  min-width: 1.9rem;
  text-align: center;
}

.rank-1 .rank-num { color: var(--gold); }
.rank-2 .rank-num { color: var(--silver); }
.rank-3 .rank-num { color: var(--bronze); }

.rank-1 { border-color: #E3D9C0; background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 60%); }

.rank-name { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.rank-real { font-size: .8rem; color: var(--muted); }
.rank-meta { font-size: .78rem; color: var(--ink-2); }

.rank-arrow { color: var(--muted); font-size: 1.1rem; }

/* ---------- Поиск / фильтры ---------- */

.search-input {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: .6rem 1rem;
  font-size: .95rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-row { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }

.filter-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .82rem;
  white-space: nowrap;
  cursor: pointer;
}
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Профиль ---------- */

.profile-head { border-bottom: 1px solid var(--line); }

.profile-title { font-size: clamp(1.7rem, 7vw, 2.7rem); line-height: 1.1; margin-bottom: .15rem; }

.rank-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-2);
}

.spec-table { width: 100%; font-size: .9rem; }
.spec-table tr + tr td { border-top: 1px solid var(--line-soft); }
.spec-table td { padding: .55rem 0; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 42%; padding-right: .75rem; }
.spec-table td:last-child { color: var(--ink); }

.prose p { color: var(--ink-2); line-height: 1.7; margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

.fact-list { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.fact-list li {
  counter-increment: f;
  position: relative;
  padding: .7rem 0 .7rem 2.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  line-height: 1.6;
}
.fact-list li:first-child { border-top: none; }
.fact-list li::before {
  content: counter(f, decimal-leading-zero);
  position: absolute; left: 0; top: .75rem;
  font-family: "Spectral", Georgia, serif;
  font-size: .8rem;
  color: var(--accent);
}

.pull-quote {
  border-left: 2px solid var(--accent);
  padding: .25rem 0 .25rem 1rem;
  font-family: "Spectral", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}

.note-box {
  background: #FBF9F4;
  border: 1px solid #EBE4D6;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.pager { display: grid; gap: .6rem; }
@media (min-width: 576px) { .pager { grid-template-columns: 1fr 1fr; } }

.pager-link {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  color: inherit;
  display: block;
}
.pager-link:hover { border-color: #D4D2C9; color: inherit; }
.pager-link .cap { font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.pager-link .nm { font-weight: 600; color: var(--ink); }

/* ---------- Accordion / FAQ ---------- */

.accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .5rem; }
.accordion-button { background: transparent; font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: var(--radius) !important; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--accent); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-body { color: var(--ink-2); font-size: .92rem; line-height: 1.65; padding-top: 0; }

/* ---------- Хаб-карточки ---------- */

.hub-card {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.hub-card:hover { border-color: #D4D2C9; transform: translateY(-1px); color: inherit; }
.hub-name { font-family: "Spectral", Georgia, serif; font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.hub-count { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

.chip-link { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.chip-link:hover { background: #E1EAE5; color: var(--accent); }

/* ---------- Блог ---------- */

.post-list { display: grid; gap: .75rem; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.post-card:hover {
  border-color: #D4D2C9;
  box-shadow: 0 6px 18px rgba(35, 35, 31, .05);
  transform: translateY(-1px);
  color: inherit;
}
.post-stripe { display: block; height: 4px; width: 100%; }
.post-body { padding: 1rem; }
.post-meta { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.post-title { font-size: 1.15rem; line-height: 1.25; margin: .4rem 0 .5rem; }
.post-lede { font-size: .88rem; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ---------- Списки в статьях ---------- */

.bullet-list { list-style: none; padding: 0; margin: 0; }
.bullet-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.15rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.bullet-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Таймлайн ---------- */

.timeline { list-style: none; padding: 0; margin: 0; }
.tl-item {
  position: relative;
  padding: 0 0 1.4rem 1.4rem;
  border-left: 1px solid var(--line);
}
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -4.5px; top: .45rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--paper);
}
.tl-year {
  font-family: "Spectral", Georgia, serif;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: .15rem;
}
.tl-title { font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.tl-body p { color: var(--ink-2); line-height: 1.65; font-size: .93rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #F2F1EC;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }

.disclaimer {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Прочее ---------- */

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: .55rem 1.3rem;
  font-size: .92rem;
}
.btn-accent:hover { background: #4C6A5B; border-color: #4C6A5B; color: #fff; }

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 999px;
  padding: .55rem 1.3rem;
  font-size: .92rem;
}
.btn-ghost:hover { border-color: #D4D2C9; color: var(--ink); }

.section-title { font-size: 1.35rem; }
@media (min-width: 768px) { .section-title { font-size: 1.6rem; } }

.empty-state { display: none; color: var(--muted); font-size: .95rem; padding: 2rem 0; text-align: center; }
