/* ============================================================
   ВАВАДА — MAIN STYLESHEET
   Burgundy / Gold palette, system fonts, mobile-first
   ============================================================ */

/* ── 0. Custom properties ─────────────────────────────────── */
:root {
  --base:    #3B1220;
  --deep:    #250A14;
  --accent:  #E3B44B;
  --accent2: #C4566E;
  --surface: #F8F3F1;
  --ink:     #22121A;
  --muted:   #75606A;

  --radius:  8px;
  --max-w:   1120px;

  --font-head: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── 1. Reset / base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul, ol { list-style: none; }

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

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--base);
  line-height: 1.25;
}

h1, .page-h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── 4. Utility strip ─────────────────────────────────────── */
.utility-strip {
  background: var(--deep);
  color: var(--muted);
  font-size: .78rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
}

.age-notice {
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: .04em;
}

.utility-right {
  color: var(--muted);
}

/* ── 5. Header ────────────────────────────────────────────── */
.site-header {
  background: var(--base);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(37,10,20,.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}

/* Logo wordmark */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  line-height: 1;
}

.logo-v {
  color: var(--accent);
  font-size: 2.1rem;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(227,180,75,.5);
}

.logo-brand {
  color: #fff;
  font-weight: 700;
}

.logo:focus-visible { outline-color: var(--accent); }

/* Footer logo (same classes, inherits) */
.footer-logo .logo-v  { font-size: 1.8rem; }
.footer-logo .logo-brand { font-size: 1.4rem; }

/* ── 6. Burger button ─────────────────────────────────────── */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 7px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.burger:hover { background: rgba(227,180,75,.12); }
.burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7. Navigation ────────────────────────────────────────── */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--deep);
  border-top: 2px solid var(--accent);
  z-index: 99;
}

.main-nav.nav-open { display: block; }

.main-nav ul {
  display: flex;
  flex-direction: column;
}

.main-nav ul li a {
  display: block;
  padding: .75rem 1.25rem;
  color: #e8d8d0;
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .2s, color .2s;
}

.main-nav ul li a:hover,
.main-nav ul li a.nav-active {
  background: rgba(227,180,75,.12);
  color: var(--accent);
}

.main-nav ul li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ── 8. Bonus banner ──────────────────────────────────────── */
.bonus-banner {
  background: linear-gradient(135deg, var(--base) 0%, #5c1c30 50%, var(--deep) 100%);
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bonus-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(227,180,75,.04) 30px,
    rgba(227,180,75,.04) 31px
  );
}

.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.banner-inner--compact { gap: .75rem; }

.banner-eyebrow {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
  margin: 0;
}

.banner-headline {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.banner-sub {
  color: rgba(248,243,241,.8);
  font-size: .95rem;
  margin: 0;
}

.banner-offer-box {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(0,0,0,.35);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  max-width: 480px;
  width: 100%;
}

.offer-label,
.banner-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
}

.offer-value {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.offer-terms {
  font-size: .78rem;
  color: rgba(248,243,241,.65);
}

.banner-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .25rem .75rem;
  border-radius: 30px;
  text-transform: uppercase;
}

/* Banner variants on other pages */
.bonus-banner-inner,
.bonus-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.bonus-banner-label,
.bonus-banner__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent2);
  font-weight: 700;
}

.bonus-banner-title,
.bonus-banner__title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.bonus-banner-sub,
.bonus-banner__sub {
  color: rgba(248,243,241,.8);
  font-size: .93rem;
  margin: 0;
}

.bonus-banner__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.bonus-banner__big {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}

.bonus-banner__sep {
  font-size: 1.5rem;
  color: var(--accent2);
  font-weight: 700;
}

/* Banner title/label used in igrovye-avtomaty */
.banner-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

/* Mid-page banner variant */
.bonus-banner--mid {
  margin-block: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

/* bonus-mid-banner (registraciya) */
.bonus-mid-banner {
  background: linear-gradient(135deg, var(--base) 0%, #5c1c30 50%, var(--deep) 100%);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  margin-block: 2.5rem;
  position: relative;
  overflow: hidden;
}

.bonus-mid-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(227,180,75,.04) 30px,
    rgba(227,180,75,.04) 31px
  );
}

.banner-inner--mid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}

/* ── 9. CTA Button ────────────────────────────────────────── */
.btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #f0c55a 0%, var(--accent) 55%, #c9962a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 16px rgba(227,180,75,.45);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .85rem 2.25rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter .2s, box-shadow .2s, transform .15s;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-cta:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 22px rgba(227,180,75,.55);
  transform: translateY(-1px);
}

.btn-cta:active { transform: translateY(0); filter: brightness(.97); }

.btn-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ── 10. Main content areas ───────────────────────────────── */
.site-main,
.main-content {
  padding-block: 2rem;
}

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

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(59,18,32,.1);
  overflow: hidden;
  border: 1px solid rgba(117,96,106,.18);
  transition: box-shadow .25s, transform .2s;
}

.card:hover {
  box-shadow: 0 6px 28px rgba(59,18,32,.18);
  transform: translateY(-2px);
}

.card-accent-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--base);
  margin-top: 0;
  margin-bottom: .6rem;
}

.card-body p {
  font-size: .95rem;
  color: var(--ink);
  margin: 0;
}

/* ── 12. Tables ───────────────────────────────────────────── */
.table-scroll,
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-block: 1.25rem;
  border: 1px solid rgba(117,96,106,.25);
}

.data-table,
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 480px;
  background: #fff;
}

.data-table caption,
.info-table caption {
  font-size: .85rem;
  color: var(--muted);
  padding: .5rem;
  text-align: left;
  caption-side: top;
}

.data-table thead tr,
.info-table thead tr {
  background: var(--base);
}

.data-table thead th,
.info-table thead th {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  padding: .75rem 1rem;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even),
.info-table tbody tr:nth-child(even) {
  background: rgba(59,18,32,.04);
}

.data-table tbody tr:hover,
.info-table tbody tr:hover {
  background: rgba(59,18,32,.08);
}

.data-table tbody td,
.info-table tbody td {
  padding: .65rem 1rem;
  border: 1px solid rgba(117,96,106,.18);
  vertical-align: top;
  line-height: 1.5;
}

/* ── 13. FAQ accordion (CSS-only) ─────────────────────────── */
.faq,
.faq-block,
.faq-list,
.faq-accordion,
.faq-section .faq-list {
  margin-top: 1.25rem;
}

/* Hide all checkboxes */
.faq-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* FAQ item wrapper */
.faq-item {
  border: 1px solid rgba(117,96,106,.25);
  border-radius: var(--radius);
  margin-bottom: .65rem;
  overflow: hidden;
  background: #fff;
}

/* Label (question row) */
.faq-label,
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--base);
  background: var(--surface);
  user-select: none;
  line-height: 1.4;
  transition: background .2s;
  border-left: 4px solid transparent;
}

.faq-label:hover,
.faq-question:hover {
  background: rgba(59,18,32,.05);
  border-left-color: var(--accent2);
}

/* Label may contain h3 — reset heading styles inside */
.faq-question h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: inherit;
  margin: 0;
}

/* Plus/minus sign drawn in CSS */
.faq-label::after,
.faq-question::after,
.faq-icon {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  border: 2px solid var(--accent2);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent2), var(--accent2)) center / 10px 2px no-repeat,
    linear-gradient(var(--accent2), var(--accent2)) center / 2px 10px no-repeat;
  transition: transform .25s, background .2s;
}

/* faq-icon is a separate span — no ::after needed for label when icon exists */
.faq-question .faq-icon { margin-left: auto; }
.faq-question::after { display: none; }

/* When checked: show minus (hide vertical bar) */
.faq-toggle:checked + .faq-label,
.faq-toggle:checked + .faq-question {
  background: rgba(59,18,32,.07);
  border-left-color: var(--accent);
  color: var(--base);
}

.faq-toggle:checked + .faq-label::after {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat;
  border-color: var(--accent);
  transform: rotate(180deg);
}

.faq-toggle:checked + .faq-question .faq-icon {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat;
  border-color: var(--accent);
  transform: rotate(180deg);
}

/* Body (answer) */
.faq-body,
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 1.25rem;
}

.faq-toggle:checked + .faq-label + .faq-body,
.faq-toggle:checked + .faq-question + .faq-answer {
  max-height: 800px;
  padding: 1rem 1.25rem 1.25rem;
}

.faq-body p,
.faq-answer p {
  color: var(--ink);
  font-size: .95rem;
  margin-bottom: .75rem;
}

.faq-body p:last-child,
.faq-answer p:last-child { margin-bottom: 0; }

/* Focus on label */
.faq-toggle:focus-visible + .faq-label,
.faq-toggle:focus-visible + .faq-question {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ── 14. Content lists ────────────────────────────────────── */
.content-list,
.rules-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-list li,
.rules-list li {
  margin-bottom: .5rem;
  color: var(--ink);
  font-size: .97rem;
  line-height: 1.6;
}

/* ── 15. Checklist / security blocks ─────────────────────── */
.checklist-block {
  background: rgba(59,18,32,.04);
  border-left: 4px solid var(--accent2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}

.checklist-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--base);
  margin-top: 0;
  margin-bottom: .85rem;
}

.security-checklist,
.styled-checklist {
  list-style: decimal;
  padding-left: 1.4rem;
}

.security-checklist li,
.styled-checklist li {
  margin-bottom: .65rem;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ── 16. Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--deep);
  color: rgba(248,243,241,.7);
  padding-block: 2rem;
  margin-top: 2.5rem;
}

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

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
}

.footer-nav ul li a {
  color: rgba(248,243,241,.7);
  font-size: .88rem;
  transition: color .2s;
}

.footer-nav ul li a:hover { color: var(--accent); }
.footer-nav ul li a:focus-visible { outline-color: var(--accent); }

.footer-disclaimer {
  font-size: .8rem;
  color: rgba(248,243,241,.5);
  line-height: 1.6;
  max-width: 680px;
}

.footer-disclaimer p { margin-bottom: .5rem; }
.footer-copy { color: rgba(248,243,241,.35); font-size: .77rem; }

/* ── 17. Misc page-specific elements ─────────────────────── */

/* bonus-banner-offer used in vhod */
.bonus-banner-offer {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.bonus-banner-offer .bonus-banner-label  { margin: 0; }
.bonus-banner-offer .bonus-banner-title { margin: 0; }
.bonus-banner-offer .bonus-banner-sub   { margin: 0; }

/* info-table wrapper (registraciya) */
.info-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-block: 1.25rem;
  border: 1px solid rgba(117,96,106,.25);
}

/* section that wraps FAQ on some pages */
.faq-section { margin-top: 2rem; }

/* ── 18. Breakpoint: 640px ────────────────────────────────── */
@media (min-width: 640px) {

  .container { padding-inline: 1.5rem; }

  h1, .page-h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .banner-headline { font-size: 1.9rem; }
  .bonus-banner-title,
  .bonus-banner__title { font-size: 1.75rem; }
  .offer-value { font-size: 3rem; }

  .bonus-banner { padding: 3rem 0; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav { flex: 1 1 300px; }
  .footer-disclaimer { flex: 1 1 300px; }

  /* Banner offer-box slightly wider */
  .banner-offer-box { max-width: 520px; }
}

/* ── 19. Breakpoint: 1024px ───────────────────────────────── */
@media (min-width: 1024px) {

  .container { padding-inline: 2rem; }

  /* Sticky header layout */
  .burger { display: none; }

  .main-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border-top: none;
  }

  .main-nav ul {
    flex-direction: row;
    gap: .15rem;
    align-items: center;
  }

  .main-nav ul li a {
    padding: .5rem .85rem;
    border-bottom: none;
    border-radius: var(--radius);
    font-size: .9rem;
    color: rgba(248,243,241,.85);
  }

  .main-nav ul li a:hover,
  .main-nav ul li a.nav-active {
    background: rgba(227,180,75,.15);
    color: var(--accent);
  }

  /* Banner */
  .banner-headline { font-size: 2.2rem; }
  .bonus-banner { padding: 3.5rem 0; }

  /* Cards 2-col stays as 2, allow 4-col when 4 cards */
  .card-grid { grid-template-columns: repeat(4, 1fr); }

  /* Article width */
  .main-article,
  .article-body,
  .page-article { max-width: 860px; }

  /* Utility strip */
  .utility-strip { font-size: .82rem; }
}

/* ── 20. Accessibility helpers ────────────────────────────── */
.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;
}

/* Ensure all interactive elements have visible focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── 21. Print / reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}