/* ============================================================
   FUGU CASINO — STYLESHEET
   Mobile-first, system fonts only, CSS-only FAQ accordion
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --base:    #1F2933;
  --deep:    #121A21;
  --accent:  #3DA9FC;
  --accent2: #F2B705;
  --surface: #F2F5F7;
  --ink:     #161E26;
  --muted:   #5C6B7A;

  --radius:  14px;
  --max-w:   1200px;

  --font-head: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  --font-body: Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover  { color: var(--accent2); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--base);
  line-height: 1.25;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem;  margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem;    margin: 1.25rem 0 0.4rem; }

p  { margin-bottom: 1rem; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-cta,
.nav-cta,
.bonus-banner-btn {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  transition: background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
  white-space: nowrap;
}

/* outlined → fills on hover */
.btn-cta,
.bonus-banner-btn {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-cta:hover,
.btn-cta:focus-visible,
.bonus-banner-btn:hover,
.bonus-banner-btn:focus-visible {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(61,169,252,0.35);
  outline: none;
}

.nav-cta {
  background: transparent;
  color: var(--accent2);
  border: 2px solid var(--accent2);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent2);
  color: var(--deep);
  box-shadow: 0 4px 18px rgba(242,183,5,0.35);
  outline: none;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

/* Logo wordmark */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-right: 0.2rem;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(61,169,252,0.25);
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.logo:hover .logo-mark { background: var(--accent2); }
.logo:hover .logo-text  { color: var(--accent2); }
.logo:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* Footer logo variant */
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo .logo-text { color: var(--surface); }

/* Nav */
.main-nav {
  flex: 1 1 auto;
  overflow-x: auto;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  align-items: center;
}
.main-nav ul li a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--accent);
  background: rgba(61,169,252,0.12);
}
.main-nav ul li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── BONUS BANNER ───────────────────────────────────────────── */
.bonus-banner {
  background: var(--deep);
  border-bottom: 3px solid var(--accent);
  position: relative;
}
.bonus-banner::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
}

/* index.html banner uses .banner-inner */
.banner-inner,
.bonus-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.1rem;
}

.banner-text,
.bonus-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.banner-badge,
.bonus-banner-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
}

.banner-text strong,
.bonus-banner-offer,
.bonus-banner-inner > .bonus-banner-text > strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.banner-sub,
.bonus-banner-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* igrovye-avtomaty banner uses direct strong child */
.bonus-banner-inner > .bonus-banner-text > strong {
  display: block;
}

/* vhod.html uses .bonus-banner-title */
.bonus-banner-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* mid banner inside main (section) */
.banner-mid,
.bonus-banner--mid {
  border-radius: var(--radius);
  margin-block: 2.5rem;
  overflow: hidden;
}

/* second bonus banner inside main article */
.mid-banner.bonus-banner {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  padding-block: 2rem 3rem;
}

/* ── SECTION BLOCKS ─────────────────────────────────────────── */
.section-block {
  margin-bottom: 2.5rem;
}

/* Intro */
.intro-block {
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(31,41,51,0.08);
  margin-bottom: 2.5rem;
}
.intro-block h1 {
  color: var(--base);
  margin-bottom: 0.75rem;
}

/* ── STYLED LIST ────────────────────────────────────────────── */
.styled-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.styled-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  border-bottom: 1px solid rgba(92,107,122,0.15);
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-size: 0.75rem;
  top: 0.55rem;
}

/* ── TABLE ──────────────────────────────────────────────────── */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.data-table,
table.data-table,
.styled-table,
.faq-block ~ .table-scroll table,
.content-section .table-scroll table,
section .table-scroll table,
article .table-scroll table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
}

/* generic table in igrovye-avtomaty */
.table-scroll table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
  overflow: hidden;
}

.data-table thead tr,
.styled-table thead tr,
.table-scroll table thead tr {
  background: var(--base);
  color: #fff;
}

.data-table th,
.styled-table th,
.table-scroll table th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  color: #fff;
  letter-spacing: 0.03em;
}

.data-table td,
.styled-table td,
.table-scroll table td {
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

/* zebra */
.data-table tbody tr:nth-child(odd),
.styled-table tbody tr:nth-child(odd),
.table-scroll table tbody tr:nth-child(odd) {
  background: #fff;
}
.data-table tbody tr:nth-child(even),
.styled-table tbody tr:nth-child(even),
.table-scroll table tbody tr:nth-child(even) {
  background: rgba(61,169,252,0.06);
}
.data-table tbody tr:hover,
.styled-table tbody tr:hover,
.table-scroll table tbody tr:hover {
  background: rgba(61,169,252,0.13);
}

/* ── FAQ ACCORDION (CSS-only checkbox) ─────────────────────── */
.faq-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.faq-list,
.faq-block,
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(92,107,122,0.22);
  background: #fff;
  box-shadow: 0 1px 6px rgba(31,41,51,0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--base);
  user-select: none;
  gap: 1rem;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.faq-question h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}
.faq-question:hover { background: rgba(61,169,252,0.07); }
.faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Plus/minus drawn in CSS */
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  position: relative;
  display: inline-block;
  transition: background 0.2s;
  /* plus: horizontal bar */
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 10px 2px, 2px 10px;
  background-position: center center, center center;
}

/* When checked: minus (remove vertical bar) */
.faq-toggle:checked ~ .faq-question::after {
  background-color: var(--accent);
  background-image:
    linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 10px 2px;
  background-position: center center;
}

.faq-toggle:checked ~ .faq-question {
  color: var(--accent);
  background: rgba(61,169,252,0.06);
}

/* .faq-icon used in some pages — hide duplicate icon */
.faq-icon { display: none; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.2s;
  padding: 0 1.2rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:first-child { margin-top: 0.25rem; }

.faq-toggle:checked ~ .faq-answer {
  max-height: 800px;
  padding: 0.25rem 1.2rem 1rem;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 4px 22px rgba(31,41,51,0.1);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  border-top: 3px solid var(--accent);
}
.card:hover {
  box-shadow: 0 8px 36px rgba(31,41,51,0.15);
  transform: translateY(-3px);
}

.card-num {
  position: absolute;
  top: -0.35rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--base);
  color: var(--accent2);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.04em;
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--base);
}
.card p { font-size: 0.92rem; color: var(--muted); }

/* ── PROS / CONS ────────────────────────────────────────────── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.pros,
.cons {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 14px rgba(31,41,51,0.08);
}
.pros { border-left: 4px solid #22c55e; }
.cons { border-left: 4px solid #ef4444; }

.pros h3 { color: #15803d; margin-top: 0; }
.cons h3 { color: #b91c1c; margin-top: 0; }

/* ── CHECKLIST ──────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.checklist li {
  padding: 0.45rem 0 0.45rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(92,107,122,0.12);
  font-size: 0.93rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0.25rem;
  color: #22c55e;
  font-weight: 700;
}
.check-icon {
  color: #22c55e;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ── CONTENT SECTIONS (inner pages) ────────────────────────── */
.content-section {
  margin-bottom: 2.5rem;
}

.page-article,
.main-article {
  max-width: 860px;
}

.page-h1,
h1.page-h1 {
  font-size: 2.1rem;
  color: var(--base);
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

/* Info card */
.info-card {
  background: rgba(61,169,252,0.09);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.93rem;
}

/* Checklist block */
.checklist-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(92,107,122,0.18);
}
.checklist-block h3,
.checklist-block h4,
.checklist-title {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--base);
  font-family: var(--font-head);
}

.styled-list.styled-list ol,
ol.styled-list {
  list-style: none;
  counter-reset: ol-counter;
}
ol.styled-list li {
  counter-increment: ol-counter;
  padding-left: 2.2rem;
}
ol.styled-list li::before {
  content: counter(ol-counter) '.';
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0.1rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--base);
  color: rgba(255,255,255,0.75);
  padding-block: 2rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.footer-nav ul li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.footer-nav ul li a:hover {
  color: var(--accent);
  background: rgba(61,169,252,0.12);
}
.footer-nav ul li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer-disclaimer p { margin-bottom: 0.3rem; }

/* ── PAGE-SPECIFIC small utilities ─────────────────────────── */

/* vhod.html */
.page-main {
  padding-block: 2rem 3rem;
}

/* registraciya.html */
.page-content {
  padding-block: 2rem 3rem;
}

/* ── RESPONSIVE — 640px ─────────────────────────────────────── */
@media (min-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
    padding-block: 0.9rem;
  }

  .banner-inner,
  .bonus-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-logo { flex-shrink: 0; }
  .footer-nav  { flex: 1 1 auto; }
  .footer-disclaimer { flex: 1 1 100%; }

  h1 { font-size: 2.5rem; }
  .page-h1 { font-size: 2.3rem; }

  .faq-question { font-size: 1rem; }
}

/* ── RESPONSIVE — 1024px ────────────────────────────────────── */
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }

  .header-inner { gap: 1.5rem; }

  .main-nav ul li a { font-size: 0.88rem; }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .banner-text strong,
  .bonus-banner-offer {
    font-size: 1.3rem;
  }

  .intro-block {
    padding: 2.25rem;
  }

  .footer-inner {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .footer-disclaimer {
    flex: 0 0 auto;
    text-align: right;
    max-width: 340px;
  }

  .pros-cons { gap: 2rem; }

  .faq-answer { font-size: 0.97rem; }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}