/*
Theme Name: kb101
Description: Тема kasino-bewertung-101.com (2026-11). Данные, шорткоды и schema — в плагине prgvs (kb101.php).
Version: 1.0.0
Author: prgvs
Text Domain: kb101
*/

:root {
  --navy: #0f1b2d;
  --navy-2: #172a45;
  --gold: #f5b301;
  --green: #16a34a;
  --green-d: #11843b;
  --red: #c2410c;
  --bg: #f4f6fa;
  --card: #fff;
  --text: #1c2433;
  --muted: #5b6577;
  --line: #e3e7ef;
  --r: 14px;
  --shadow: 0 6px 24px rgba(15, 27, 45, .08);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: #1d4ed8; text-underline-offset: 2px; }
a:hover { color: #1e3a8a; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin-top: .2em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Topbar & header */
.topbar { background: #0a1322; color: #b8c2d4; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.topbar__ad { opacity: .75; white-space: nowrap; }
.kb-18 { display: inline-block; background: var(--red); color: #fff; border-radius: 6px; padding: 0 6px; font-size: .8em; font-weight: 700; line-height: 1.6; }

.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.site-logo em { font-style: normal; color: var(--gold); }
.site-logo:hover { color: #fff; }
.site-nav { margin-left: auto; }
.site-nav .menu, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; gap: 2px; }
.site-nav .menu > li { position: relative; }
.site-nav a { display: block; color: #e6ebf3; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { background: var(--navy-2); color: #fff; }
.site-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.site-nav .sub-menu a { color: var(--text); font-weight: 500; }
.site-nav .sub-menu a:hover { background: var(--bg); color: var(--navy); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.sub-toggle { display: none; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Buttons */
.kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 10px; border: 2px solid var(--green); transition: background .15s, transform .15s; line-height: 1.2; text-align: center; }
.kb-btn:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; transform: translateY(-1px); }
.kb-btn--lg { padding: 14px 24px; font-size: 1.05rem; }
.kb-btn--block { width: 100%; }
.kb-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.kb-btn--ghost:hover { background: rgba(255,255,255,.08); color: inherit; border-color: currentColor; }
.content .kb-btn--ghost { color: var(--navy); }
.content .kb-btn--ghost:hover { background: var(--bg); color: var(--navy); }

/* Brand logo (text) */
.kb-logo { --c: #334; flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); color: #fff; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.kb-logo--img { display: inline-block; background: #fff; object-fit: cover; box-shadow: 0 2px 8px rgba(15,27,45,.12); }
.kb-fig { margin: 1.6em 0; }
.kb-fig img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.kb-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.kb-logo--s { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; vertical-align: middle; }
.kb-logo--xl { width: 84px; height: 84px; border-radius: 20px; font-size: 28px; }
.kb-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.kb-badge--ok { background: #dcfce7; color: #166534; }
.kb-badge--warn { background: #fff1e6; color: #9a3412; }

/* Hero (home) */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a4a7f 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #13284a 100%); color: #dfe6f2; padding: 44px 0 56px; }
.hero__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero__visual { position: relative; }
.hero__art { position: absolute; left: 50%; top: 50%; width: 640px; max-width: none; height: auto; transform: translate(-50%, -50%); opacity: .9; pointer-events: none; }
.hero__visual .hero__banner { position: relative; z-index: 1; max-width: 380px; margin: 0 auto; }
.hero h1 { color: #fff; margin: .2em 0 .4em; }
.hero__kicker { display: inline-block; background: rgba(245,179,1,.15); color: var(--gold); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin: 0; }
.hero__lead { font-size: 1.1rem; max-width: 640px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.hero__btns .kb-btn--ghost { color: #fff; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.hero__facts li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }
.hero__banner { position: relative; background: linear-gradient(170deg, #fff 0%, #f3f6fb 100%); color: var(--text); border-radius: 22px; padding: 30px 26px 22px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35); display: grid; gap: 10px; justify-items: center; }
.hero__ribbon { position: absolute; top: 16px; left: -8px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 0 8px 8px 0; }
.hero__brand { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0; }
.hero__bonus { font-size: 1.15rem; font-weight: 700; color: var(--green-d); margin: 0; }
.hero__review { font-size: 14px; }
.hero__banner small { color: var(--muted); font-size: 12px; }

/* Top list */
.kb-top { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin: 28px 0; }
.wrap > .kb-top { margin-top: -30px; position: relative; }
.kb-top__title { font-weight: 800; font-size: 1.2rem; color: var(--navy); margin: 0 0 10px; }
.kb-top__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kb-top__row { display: grid; grid-template-columns: 34px 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.kb-top__row:first-child { border-color: var(--gold); background: #fffbeb; }
.kb-top__n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.kb-top__main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.kb-top__name { font-weight: 800; font-size: 1.08rem; color: var(--navy); text-decoration: none; }
.kb-top__bonus { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.kb-top__act { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 150px; }
.kb-top__more { font-size: 13px; }
.kb-top__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Layout & content */
.layout { display: block; }
.content { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 48px) 36px; margin: 22px 0; }
.content > *:first-child { margin-top: 0; }
.page-head h1 { margin-bottom: .3em; }
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.meta-line__ava, .author-box__ava { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 14px; }
.meta-line__sep { opacity: .5; }
.content ul li, .content ol li { margin-bottom: .35em; }
.content blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: #fffbeb; border-radius: 0 10px 10px 0; }

/* First-screen CTA (inner pages) */
.first-cta { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: linear-gradient(120deg, #0f1b2d, #1c3560); color: #fff; padding: 14px 16px; border-radius: 14px; margin: 6px 0 24px; position: relative; }
.first-cta__txt strong { display: block; font-size: 1.1rem; }
.first-cta__txt span { color: #c9d4e6; font-size: 15px; }
.first-cta__note { position: absolute; right: 12px; bottom: 2px; font-size: 11px; color: #8fa0bb; }

/* Tables */
.kb-table { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; }
.kb-table table, table.kb-raw { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.kb-table th, .kb-table td, table.kb-raw th, table.kb-raw td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.kb-table thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
.kb-table tbody tr:nth-child(even) { background: #f8fafc; }
.kb-table tr:last-child td { border-bottom: 0; }

/* CTA box */
.kb-cta { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; border: 2px solid var(--gold); background: #fffbeb; border-radius: 14px; padding: 14px 16px; margin: 1.6em 0; }
.kb-cta__body { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.kb-cta__name { font-size: 1.1rem; color: var(--navy); }
.kb-cta__bonus { flex-basis: 100%; color: var(--text); font-weight: 600; }
.kb-cta__review { font-size: 14px; }
.kb-note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 18px; margin: 1.4em 0; }
.kb-note p:last-child { margin: 0; }

/* Review box */
.review-box { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 4px 0 28px; background: linear-gradient(180deg, #f8fafc, #fff); }
.review-box__brand { display: grid; grid-template-columns: 84px 1fr 240px; gap: 18px; align-items: center; }
.review-box__name { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.review-box__bonus { font-weight: 700; color: var(--green-d); margin: 6px 0 0; }
.review-box__cta { text-align: center; }
.review-box__cta small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.review-box__facts { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-box__facts th { width: 38%; color: var(--muted); font-weight: 600; background: #f8fafc; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.procon > div { border-radius: 12px; padding: 12px 16px; }
.procon p { font-weight: 800; margin: 0 0 6px; }
.procon ul { margin: 0; padding-left: 0; list-style: none; }
.procon li { padding-left: 24px; position: relative; font-size: 15.5px; }
.procon__pro { background: #f0fdf4; }
.procon__pro li::before { content: "+"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.procon__con { background: #fef2f2; }
.procon__con li::before { content: "–"; position: absolute; left: 4px; color: #dc2626; font-weight: 800; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq__a { padding: 0 18px 8px; }

/* Author box */
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--bg); border-radius: 14px; padding: 18px; margin-top: 32px; font-size: 15.5px; }
.author-box__ava { width: 56px; height: 56px; font-size: 22px; }
.author-box__name { font-weight: 800; margin: 0 0 4px; }
.author-box p { margin: 0 0 6px; }
.author-box__contact { font-size: 14px; }

/* Cards */
.related { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px clamp(18px, 4vw, 48px) 28px; margin: 0 0 40px; }
.related > h2 { margin: 0 0 4px; }
.related .cards { margin-bottom: 0; }
.related .card { background: var(--bg); border-color: transparent; }
.related .card:hover { background: #fff; border-color: var(--line); }
.content .related { box-shadow: none; padding: 0; margin: 32px 0 0; }
.content .related .card { background: #fff; border-color: var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 1em 0 1.6em; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); box-shadow: 0 2px 8px rgba(15,27,45,.04); transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card__title { font-weight: 800; color: var(--navy); line-height: 1.3; text-decoration: none; }
.card__txt { font-size: 15px; color: var(--muted); }
.card__date { font-size: 13px; color: var(--muted); }
.card--brand { align-items: flex-start; }
.card__act { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.card__act .kb-btn { padding: 8px 14px; font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c2d4; margin-top: 40px; padding: 44px 0 90px; font-size: 15px; }
.site-footer a { color: #e6ebf3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer__h { color: #fff; font-weight: 800; margin: 6px 0 12px; }
.site-footer__contact { display: grid; gap: 6px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__legal { border-top: 1px solid #22385c; margin-top: 30px; padding-top: 20px; font-size: 13.5px; }

/* Sticky CTA (mobile) */
.sticky-cta { display: none; }

@media (max-width: 1020px) {
  .site-header__in { flex-wrap: wrap; min-height: 60px; }
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .header-cta { order: 1; margin-left: auto; padding: 8px 12px; font-size: 14px; }
  .site-nav { order: 3; flex-basis: 100%; display: none; margin: 0 0 12px; max-height: 70vh; overflow: auto; }
  .nav-open .site-nav { display: block; }
  .site-nav .menu { flex-direction: column; }
  .site-nav .sub-menu { position: static; box-shadow: none; background: var(--navy-2); display: none; }
  .site-nav .sub-menu a { color: #dfe6f2; }
  .site-nav li:hover > .sub-menu { display: none; }
  .site-nav li.open > .sub-menu { display: block; }
  .site-nav .menu-item-has-children { display: flex; flex-wrap: wrap; }
  .site-nav .menu-item-has-children > a { flex: 1; }
  .sub-toggle { display: block; width: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
  .sub-toggle::before { content: "▾"; font-size: 18px; }
  .site-nav .sub-menu { flex-basis: 100%; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__in { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .review-box__brand { grid-template-columns: 70px 1fr; }
  .review-box__cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__ad { display: none; }
  .site-header__in { gap: 8px; }
  .site-logo { font-size: 15px; gap: 6px; }
  .site-logo svg { width: 26px; height: 26px; }
  .nav-toggle { margin-left: 0; padding: 8px 4px; }
  .header-cta { padding: 7px 10px; font-size: 13px; }
  .hero { padding: 24px 0 46px; overflow: hidden; }
  .hero__art { width: 520px; opacity: .55; }
  .hero__lead { font-size: 1rem; }
  .hero__facts { display: none; }
  .hero__btns .kb-btn { flex: 1 1 100%; }
  .kb-top { padding: 12px; }
  .kb-top__row { grid-template-columns: 28px 44px 1fr; gap: 10px; padding: 10px; }
  .kb-top__row .kb-logo { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
  .kb-top__act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; min-width: 0; }
  .kb-top__act .kb-btn { flex: 1; }
  .kb-top__more { min-width: 90px; text-align: center; }
  .content { padding: 20px 16px 26px; border-radius: 12px; }
  .first-cta { grid-template-columns: 44px 1fr; }
  .first-cta .kb-logo { width: 44px; height: 44px; }
  .first-cta .kb-btn { grid-column: 1 / -1; width: 100%; }
  .first-cta__note { position: static; grid-column: 1 / -1; text-align: center; margin-top: -6px; }
  .kb-cta { grid-template-columns: 44px 1fr; }
  .kb-cta .kb-logo { width: 44px; height: 44px; }
  .kb-cta > .kb-btn { grid-column: 1 / -1; }
  .procon { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.15); transform: translateY(110%); transition: transform .25s; }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta__txt { flex: 1; line-height: 1.2; }
  .sticky-cta__txt strong { display: block; color: var(--navy); }
  .sticky-cta__txt small { color: var(--muted); font-size: 11px; }
}
