/* ==========================================================================
   GAME-CHICKEN-ROAD.RU — Chicken Road (InOut Games) Mobile-First Stylesheet
   Palette: Sunny Cream (#fffaf3 / #fff3e2), Warm Brick (#7c2d12 / #c2410c),
            Road Amber (#f59e0b / #fbbf24), Meadow Green CTA (#16a34a),
            Sky Blue accent (#0ea5e9)
   ========================================================================== */

:root {
  --cream-50: #fffaf3;
  --cream-100: #fff3e2;
  --cream-200: #ffe8cc;
  --white: #ffffff;
  --ink-950: #2b1206;
  --ink-900: #3d1a08;
  --ink-800: #5a2610;
  --text-900: #331808;
  --text-700: #5c2f16;
  --text-600: #7a4426;
  --text-500: #96613f;
  --brick-700: #9a3412;
  --brick-600: #c2410c;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --green-600: #15803d;
  --green-500: #16a34a;
  --green-400: #22c55e;
  --green-100: #dcfce7;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-100: #e0f2fe;
  --rose-600: #be123c;
  --line: rgba(124, 45, 18, 0.13);
  --line-strong: rgba(124, 45, 18, 0.26);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(88, 34, 8, 0.07);
  --shadow-md: 0 10px 28px rgba(88, 34, 8, 0.11);
  --shadow-lg: 0 24px 60px rgba(88, 34, 8, 0.18);
  --shadow-cta: 0 10px 26px rgba(22, 163, 74, 0.34);
  --container: 1180px;
  --header-h: 64px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-900);
  background:
    radial-gradient(900px 420px at 92% -6%, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0) 62%),
    radial-gradient(700px 380px at 0% 12%, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0) 60%),
    var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick-600); text-decoration: none; border-bottom: 1px solid rgba(194, 65, 12, 0.28); }
a:hover { color: var(--brick-700); border-bottom-color: var(--brick-700); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink-900); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
  color: var(--brick-700);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

h1, h2, h3, h4 {
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink-950);
  font-weight: 900;
}
h1 { font-size: clamp(1.62rem, 5.2vw, 2.1rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.28rem, 3.6vw, 1.62rem); margin: 30px 0 12px; }
h3 { font-size: clamp(1.05rem, 2.8vw, 1.22rem); margin: 24px 0 9px; }
h2:first-child, h3:first-child { margin-top: 0; }
h1 + p, h2 + p, h3 + p { margin-top: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-950); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  background: linear-gradient(90deg, #4a1a06, #7c2d12 58%, #b45309);
  color: #ffe8cc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 0;
  letter-spacing: 0.01em;
}
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; text-align: center; }
.topbar strong { color: #fff; }
.topbar .topbar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(88, 34, 8, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; border: 0; flex: 0 0 auto; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.brand-title { font-size: 0.94rem; font-weight: 900; letter-spacing: -0.01em; color: var(--ink-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 0.63rem; font-weight: 700; color: var(--text-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: none; min-width: 0; flex: 1 1 auto; justify-content: flex-start; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--ink-800); cursor: pointer; padding: 0;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--amber-500); color: var(--brick-600); }
.header-actions .btn { display: none; }

/* язык */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 9px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 11px;
  font-family: inherit; font-size: 0.78rem; font-weight: 900; color: var(--ink-800); cursor: pointer;
}
.lang-btn svg { width: 14px; height: 14px; }
.lang-btn:hover { border-color: var(--amber-500); }
.lang-code { text-transform: uppercase; letter-spacing: 0.04em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 90;
  min-width: 196px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); display: none;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 0;
  border-radius: 9px; font-size: 0.85rem; font-weight: 700; color: var(--text-900);
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--cream-100); color: var(--brick-700); }
.lang-menu .flag { font-size: 1rem; }

/* ------------------------------------------------------------------- drawer */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(43, 18, 6, 0.52);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(330px, 88vw);
  background: var(--cream-50); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.drawer-title { font-weight: 900; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-950); }
.drawer-nav { padding: 10px 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: block; padding: 11px 12px; border: 0; border-radius: 10px;
  font-size: 0.92rem; font-weight: 800; color: var(--text-900);
}
.drawer-nav a:hover, .drawer-nav a.active { background: var(--cream-100); color: var(--brick-700); }
.drawer-sub {
  margin: 12px 0 4px; padding: 0 12px; font-size: 0.68rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-500);
}
.drawer-foot { padding: 12px 14px 18px; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------- search */
.search-modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(43, 18, 6, 0.6);
  display: none; align-items: flex-start; justify-content: center; padding: 12vh 14px 14px;
}
.search-modal.open { display: flex; }
.search-panel {
  width: 100%; max-width: 620px; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 12px; border: 1px solid var(--line);
}
.search-head { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.search-head input {
  flex: 1; min-height: 42px; border: 0; outline: none; font-family: inherit;
  font-size: 1rem; font-weight: 700; color: var(--ink-950); background: transparent;
}
.search-results { max-height: 56vh; overflow-y: auto; padding-top: 8px; }
.search-hit {
  display: block; padding: 10px 11px; border: 0; border-radius: 10px;
}
.search-hit:hover { background: var(--cream-100); }
.search-hit .hit-title { display: block; font-weight: 800; font-size: 0.92rem; color: var(--ink-950); }
.search-hit .hit-desc { display: block; font-size: 0.78rem; color: var(--text-500); }
.search-empty { font-size: 0.85rem; color: var(--text-500); padding: 6px 4px; margin: 0; }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff7ed;
  background:
    radial-gradient(760px 380px at 82% 0%, rgba(251, 191, 36, 0.42) 0%, rgba(251, 191, 36, 0) 62%),
    radial-gradient(620px 340px at 4% 96%, rgba(34, 197, 94, 0.32) 0%, rgba(34, 197, 94, 0) 64%),
    linear-gradient(158deg, #4a1a06 0%, #9a3412 44%, #d97706 100%);
  padding: 24px 0 30px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255, 250, 243, 0), var(--cream-50));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 20px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: rgba(255, 237, 213, 0.16); border: 1px solid rgba(253, 230, 138, 0.55);
  color: #fde68a; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 11px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { color: #fff; text-shadow: 0 6px 26px rgba(0, 0, 0, 0.24); }
.hero h1 .hl { color: var(--amber-300); }
.hero-lead { font-size: 0.97rem; color: #ffe8cc; max-width: 62ch; }
.hero-lead strong { color: #fff; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 14px; }
.quick-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-pill {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(253, 230, 138, 0.3);
  border-radius: 12px; padding: 9px 11px;
}
.stat-pill strong { display: block; font-size: 1rem; color: #fff; line-height: 1.2; }
.stat-pill span {
  font-size: 0.66rem; color: #fcd9a7; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-visual-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.36);
  border-radius: var(--radius-lg); padding: 10px;
  box-shadow: var(--shadow-lg);
}
.hero-visual-card img { border-radius: 14px; width: 100%; }
.hero-visual-card figcaption { font-size: 0.7rem; color: #fde9c8; text-align: center; padding: 7px 4px 1px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 0.94rem; font-weight: 900; line-height: 1.2;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--green-400) 0%, var(--green-600) 100%);
  box-shadow: var(--shadow-cta); border-color: #15803d;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 34px rgba(22, 163, 74, 0.42); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn-outline { background: #fff; color: var(--brick-700); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--amber-500); color: var(--brick-600); background: #fffaf3; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff7ed; border-color: rgba(255, 255, 255, 0.42); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.btn-block { width: 100%; }

.promo-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: #fff; border: 1.5px dashed var(--amber-500); color: var(--ink-800);
  font-size: 0.88rem; font-weight: 800; transition: all 0.16s ease;
}
.promo-chip:hover { border-color: var(--brick-600); background: #fffaf3; }
.promo-chip strong { color: var(--brick-700); letter-spacing: 0.03em; }
.promo-chip.copied { border-style: solid; border-color: var(--green-500); background: var(--green-100); color: var(--green-600); }

/* ----------------------------------------------------------------- sections */
.section { padding: 30px 0; }
.section-tight { padding: 18px 0; }
.section-header { margin-bottom: 18px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--amber-100);
  color: #92400e; border: 1px solid #fde68a; font-size: 0.66rem; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  margin-bottom: 9px;
}
.section-badge.badge-green { background: var(--green-100); color: var(--green-600); border-color: #bbf7d0; }
.section-badge.badge-sky { background: var(--sky-100); color: var(--sky-600); border-color: #bae6fd; }
.section-title { margin: 0 0 6px; }
.section-sub { color: var(--text-600); font-size: 0.94rem; margin: 0; max-width: 78ch; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------- casino rating TOP-5 */
.rating-wrap { display: grid; gap: 12px; }
.casino-card {
  position: relative; display: grid; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 14px 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.casino-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #fdba74; }
.casino-card.is-top { border-color: var(--amber-400); box-shadow: 0 12px 34px rgba(245, 158, 11, 0.2); }
.casino-rank {
  position: absolute; top: -10px; left: 14px;
  background: linear-gradient(180deg, var(--amber-300), var(--amber-500));
  color: #451a03; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.42);
}
.casino-head { display: flex; align-items: center; gap: 12px; }
.casino-logo {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff;
}
.casino-id { min-width: 0; }
.casino-name { font-size: 1rem; font-weight: 900; color: var(--ink-950); line-height: 1.2; margin: 0; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--amber-500); font-size: 0.8rem; letter-spacing: 0.04em; }
.stars .score { color: var(--ink-950); font-weight: 900; margin-left: 4px; font-size: 0.82rem; }
.casino-bonus {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px;
}
.casino-bonus .bonus-label {
  display: block; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brick-600);
}
.casino-bonus .bonus-value { display: block; font-size: 0.98rem; font-weight: 900; color: var(--ink-950); line-height: 1.3; }
.casino-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.67rem; font-weight: 800; padding: 4px 8px; border-radius: 7px;
  background: var(--cream-100); color: var(--brick-700); border: 1px solid var(--line);
}
.tag-amber { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.tag-mint { background: var(--green-100); color: var(--green-600); border-color: #bbf7d0; }
.casino-actions { display: grid; gap: 8px; }
.casino-actions .code-line { font-size: 0.73rem; color: var(--text-600); font-weight: 700; text-align: center; }
.casino-actions .code-line code { font-size: 0.77rem; }
.casino-link { font-size: 0.78rem; font-weight: 900; text-align: center; border: 0; }
.rating-note { font-size: 0.73rem; color: var(--text-500); margin-top: 12px; }
.resp-18 {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.67rem; font-weight: 900;
  color: #9f1239; background: #ffe4e6; border: 1px solid #fecdd3;
  padding: 2px 7px; border-radius: 999px;
}

/* --------------------------------------------------------------- text blocks */
.prose-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.prose-card + .prose-card { margin-top: 14px; }
.prose-card > *:last-child { margin-bottom: 0; }
.prose-card h2 { padding-bottom: 8px; border-bottom: 2px solid var(--cream-200); }
.prose-card h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px;
  background: var(--amber-500); margin-right: 8px; vertical-align: 2px;
}
.prose-card p, .prose-card li { font-size: 0.95rem; color: var(--text-700); }
.prose-card strong { color: var(--ink-950); }
.lead { font-size: 1rem; color: var(--text-700); }
.muted { color: var(--text-500); }
.small { font-size: 0.81rem; }
.nowrap { white-space: nowrap; }

.note {
  background: var(--cream-100); border-left: 4px solid var(--amber-500);
  border-radius: 0 12px 12px 0; padding: 11px 14px; margin: 14px 0;
  font-size: 0.87rem; color: var(--text-700);
}
.note strong { color: var(--brick-700); }
.note.note-green { background: var(--green-100); border-left-color: var(--green-500); }
.note.note-sky { background: var(--sky-100); border-left-color: var(--sky-500); }
.note p:last-child { margin-bottom: 0; }

/* таблицы */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 480px; background: #fff; }
table.spec caption { caption-side: top; text-align: left; font-size: 0.76rem; font-weight: 800; color: var(--text-500); padding: 8px 12px; }
table.spec th, table.spec td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--cream-100); color: var(--ink-900); font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:nth-child(even) { background: #fffdf9; }
table.spec th[scope="row"] { font-weight: 800; color: var(--ink-900); width: 42%; }
.cell-ok { color: var(--green-600); font-weight: 800; }
.cell-warn { color: var(--amber-600); font-weight: 800; }
.cell-no { color: var(--rose-600); font-weight: 800; }

/* --------------------------------------------------------------- grid-блоки */
.feature-grid { display: grid; gap: 10px; margin: 14px 0; }
.feature {
  background: #fffdf9; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.feature .feature-ico { font-size: 1.24rem; line-height: 1; display: block; margin-bottom: 6px; }
.feature h3 { font-size: 0.98rem; margin: 0 0 5px; }
.feature h3::before { display: none; }
.feature p { font-size: 0.85rem; margin: 0; color: var(--text-600); }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
ol.steps li {
  position: relative; padding: 11px 14px 11px 48px; background: #fffdf9;
  border: 1px solid var(--line); border-radius: 14px; margin: 0; font-size: 0.9rem; color: var(--text-700);
}
ol.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 11px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--amber-400), var(--brick-600));
  color: #fff; font-size: 0.8rem; font-weight: 900; border-radius: 9px;
}

.figure-row { display: grid; gap: 12px; margin: 16px 0; }
figure.shot {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 9px; box-shadow: var(--shadow-sm);
}
figure.shot img { border-radius: 10px; width: 100%; }
figure.shot figcaption { font-size: 0.75rem; color: var(--text-500); padding: 8px 4px 2px; }

/* ------------------------------------------------------------ рейтинг-блоки */
.rating-podium { display: grid; gap: 10px; margin: 14px 0; }
.podium-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  background: #fffdf9; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.podium-item .p-rank { font-size: 1.1rem; font-weight: 900; color: var(--amber-600); width: 26px; text-align: center; }
.podium-item .p-name { font-weight: 900; font-size: 0.9rem; color: var(--ink-950); display: block; }
.podium-item .p-bonus { font-size: 0.76rem; color: var(--text-500); }
.podium-item .p-score { font-weight: 900; color: var(--green-600); font-size: 0.92rem; }

/* ---------------------------------------------------------------- FAQ блок */
.faq-list { display: grid; gap: 8px; margin: 14px 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.faq-item[open] { border-color: #fdba74; box-shadow: var(--shadow-sm); }
.faq-question {
  cursor: pointer; list-style: none; padding: 12px 38px 12px 14px; position: relative;
  font-weight: 900; font-size: 0.9rem; color: var(--ink-950);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.16rem; font-weight: 900; color: var(--amber-600); line-height: 1;
}
.faq-item[open] .faq-question::after { content: "–"; }
.faq-answer { padding: 0 14px 12px; font-size: 0.87rem; color: var(--text-600); }
.faq-answer p { margin: 0; }

/* ------------------------------------------------------------ EEAT / автор */
.eeat-box {
  display: grid; gap: 12px; background: linear-gradient(135deg, #fffdf9, var(--cream-100));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px; margin: 18px 0;
}
.eeat-head { display: flex; align-items: center; gap: 11px; }
.eeat-head img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.eeat-name { font-weight: 900; font-size: 0.92rem; color: var(--ink-950); }
.eeat-role { font-size: 0.73rem; color: var(--text-500); font-weight: 700; }
.eeat-text { font-size: 0.82rem; color: var(--text-600); margin: 0 0 8px; }
.eeat-facts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------- связанные стр. */
.related-grid { display: grid; gap: 10px; margin-top: 12px; }
.related-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow-sm); transition: transform 0.16s ease, border-color 0.16s ease;
}
.related-card:hover { border-color: #fdba74; background: #fffdf9; transform: translateY(-1px); }
.related-card .rc-title { display: block; font-weight: 900; font-size: 0.9rem; color: var(--ink-950); margin-bottom: 2px; }
.related-card .rc-desc { display: block; font-size: 0.77rem; color: var(--text-500); font-weight: 600; }

/* ------------------------------------------------------------- breadcrumbs */
.breadcrumbs { padding: 12px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.75rem; font-weight: 700; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-500); }
.breadcrumbs li + li::before { content: "›"; color: #d6b48f; }
.breadcrumbs a { border: 0; color: var(--brick-600); }
.breadcrumbs [aria-current="page"] { color: var(--text-500); }

/* -------------------------------------------------------------- инструменты */
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-md); margin: 16px 0;
}
.tool-row { display: grid; gap: 12px; margin-bottom: 12px; }
.field label {
  display: block; font-size: 0.73rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-500); margin-bottom: 5px;
}
.field input, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); font-family: inherit; font-size: 0.95rem;
  color: var(--text-900); background: #fff; font-weight: 700;
}
.field input:focus, .field select:focus { outline: 2px solid rgba(245, 158, 11, 0.4); border-color: var(--amber-500); }
.tool-out { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.out-box { background: var(--cream-100); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.out-box span {
  display: block; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-500);
}
.out-box strong { font-size: 1rem; color: var(--ink-950); }
.ladder { display: flex; gap: 4px; align-items: flex-end; height: 74px; margin: 12px 0 4px; }
.ladder i {
  flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--amber-300), var(--brick-600));
  display: block;
}
.ladder-legend { font-size: 0.72rem; color: var(--text-500); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: linear-gradient(180deg, #3a1607, #250d03);
  color: #e8c8a8; padding: 30px 0 20px; margin-top: 26px;
}
.footer-grid { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand .brand-title { color: #fff; }
.footer-about { font-size: 0.81rem; color: #d3ab88; max-width: 46ch; }
.footer-heading {
  margin: 0 0 9px; font-size: 0.78rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--amber-300);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: #e8c8a8; border: 0; font-size: 0.84rem; font-weight: 600; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.16); margin-top: 22px; padding-top: 15px;
  display: grid; gap: 10px; font-size: 0.73rem; color: #c39a76;
}
.footer-lang { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-lang a { border: 1px solid rgba(253, 230, 138, 0.28); border-radius: 999px; padding: 3px 10px; font-size: 0.71rem; color: #e8c8a8; }
.footer-lang a:hover { border-color: var(--amber-300); color: var(--amber-300); }
.disclaimer { font-size: 0.73rem; color: #c39a76; margin-top: 8px; }

/* -------------------------------------------------------------- cookie bar */
.cookie-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 100;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 14px; display: none; gap: 10px;
  align-items: center; flex-wrap: wrap;
}
.cookie-bar.show { display: flex; }
body.cookie-visible { padding-bottom: 96px; }
.cookie-bar p { margin: 0; font-size: 0.78rem; color: var(--text-600); flex: 1 1 220px; }
.cookie-bar .btn { min-height: 38px; padding: 8px 16px; font-size: 0.82rem; }

/* ------------------------------------------------------------------- utils */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.grid-2 { display: grid; gap: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- responsive */
@media (min-width: 560px) {
  .quick-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid, .figure-row, .grid-2, .rating-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(1.9rem, 4.4vw, 2.5rem); }
}

@media (min-width: 860px) {
  body { font-size: 17px; }
  .hero { padding: 38px 0 46px; }
  .hero-grid { grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: 30px; }
  .hero-lead { font-size: 1.04rem; }
  .section { padding: 42px 0; }
  .prose-card { padding: 26px 30px; }
  .casino-card { grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 0.95fr) 190px; align-items: center; gap: 16px; padding: 16px 18px; }
  .casino-card { padding-top: 18px; }
  .casino-actions { justify-items: stretch; }
  .footer-grid { grid-template-columns: 1.45fr 1fr 1fr 1fr; }
  .eeat-box { grid-template-columns: 220px 1fr; align-items: center; }
  .eeat-box .eeat-head { flex-direction: column; text-align: center; }
  .tool-out { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-actions .btn { display: inline-flex; min-height: 40px; padding: 8px 14px; font-size: 0.84rem; }
}

@media (min-width: 1180px) {
  .main-nav a.nav-opt { display: inline-flex; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
  .main-nav a {
    display: inline-flex; align-items: center; padding: 8px 8px; border-radius: 9px;
    font-size: 0.81rem; font-weight: 800; color: var(--text-700); border: 0; white-space: nowrap;
  }
  .main-nav a.nav-opt { display: none; }
  .main-nav a:hover, .main-nav a.active { background: var(--cream-100); color: var(--brick-700); }
  #mobileMenuBtn { display: none; }
  .hero h1 { font-size: clamp(1.85rem, 2.55vw, 2.35rem); }
  .casino-logo { width: 62px; height: 62px; }
  .feature-grid, .figure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie-bar { left: auto; right: 18px; bottom: 18px; max-width: 560px; }
}

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

@media print {
  .site-header, .topbar, .mobile-drawer, .overlay, .search-modal, .cookie-bar, .site-footer, .hero-cta-row { display: none !important; }
  body { background: #fff; }
  .prose-card { border: 0; box-shadow: none; padding: 0; }
}

/* ------------------------------------------------- мобильная шапка: без вылета */
@media (max-width: 520px) {
  .header-inner { gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand-title { font-size: 0.84rem; }
  .brand-sub { font-size: 0.58rem; }
  .header-actions { gap: 4px; flex-shrink: 0; }
  .header-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .header-actions .icon-btn svg { width: 17px; height: 17px; }
  .lang-btn { padding: 0 8px; min-height: 36px; font-size: 0.78rem; gap: 3px; }
  .lang-btn .lang-code { display: inline; font-size: 0.72rem; }
  /* на узких экранах оставляем только код языка — флаг занимает место */
  .lang-btn > span:first-child { display: none; }
  .lang-btn .lang-code { text-transform: uppercase; letter-spacing: 0.04em; }
  .brand-text { max-width: 42vw; }
}
