/* =========================================================
   Dragon Money — stylesheet
   Palette: charcoal / sunrise
   Mobile-first, breakpoints 640px and 1024px
   ========================================================= */

/* ---------------------------------------------------------
   Custom properties
   --------------------------------------------------------- */
:root {
  --base:    #22242B;
  --deep:    #141519;
  --accent:  #FF9F1C;
  --accent2: #2EC4B6;
  --surface: #F5F5F3;
  --ink:     #1A1B20;
  --muted:   #63666F;

  --font-heading: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 4px;
  --max-w:  1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  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: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.65rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.4em; margin-bottom: 1rem; }

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

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header {
  background: var(--base);
  border-bottom: 3px solid var(--accent);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  padding-bottom: 0.6rem;
}

/* Wordmark */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.logo-mark {
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

/* Nav */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.1rem;
}

.main-nav a {
  display: block;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #c8cad1;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--accent);
  color: var(--deep);
}

.main-nav a.active {
  background: var(--accent);
  color: var(--deep);
}

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

/* ---------------------------------------------------------
   BONUS BANNER
   --------------------------------------------------------- */
.bonus-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--base) 60%, #2a1a00 100%);
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  text-align: center;
  padding: 2.5rem 1rem;
}

.bonus-banner--mid {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* When .bonus-banner--mid is inside <main>, remove extra container padding */
.main-content .bonus-banner--mid {
  margin-left: calc(-1rem);
  margin-right: calc(-1rem);
  /* keep visual full-width feel inside container */
}

.banner-eyebrow {
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.banner-headline {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.banner-sub {
  color: #c8cad1;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.banner-fine {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.8rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn-cta {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--deep);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  /* gradient fill + subtle inner highlight */
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0) 50%
    ),
    linear-gradient(
      135deg,
      #ffb93a 0%,
      var(--accent) 50%,
      #e08000 100%
    );
  box-shadow: 0 2px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: filter 0.2s, transform 0.1s, box-shadow 0.1s;
}

.btn-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35);
  filter: brightness(0.97);
}

.btn-cta:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 3px;
}

/* Standalone btn-cta outside banner (e.g. rabochee-zerkalo) */
main .btn-cta {
  margin: 0.75rem 0 1rem;
}

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

/* ---------------------------------------------------------
   INTRO BLOCK
   --------------------------------------------------------- */
.intro-block {
  margin-bottom: 2rem;
}

.intro-block h1 {
  color: var(--base);
}

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

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead tr {
  border-bottom: 2px solid var(--accent);
}

thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  text-align: left;
  padding: 0.55rem 0.75rem;
  background: transparent;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--muted);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  vertical-align: top;
}

/* No zebra — thin horizontal rules only */
tbody tr:hover {
  background: rgba(255, 159, 28, 0.05);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  /* flat, no shadow */
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

/* ---------------------------------------------------------
   SECTION SPACING
   --------------------------------------------------------- */
.quick-facts,
.bonuses-section,
.games-section,
.payments-section,
.mobile-section,
.faq-section,
.cards-section,
.about-section,
.security-section {
  margin-bottom: 2.5rem;
}

/* Section headings */
.quick-facts h2,
.bonuses-section h2,
.games-section h2,
.payments-section h2,
.mobile-section h2,
.faq-section h2,
.cards-section h2,
.about-section h2,
.security-section h2 {
  color: var(--base);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
  display: inline-block;
}

/* h2 on inner pages (no section wrapper) */
.main-content > h2,
.main-content > h1 + p + h2,
main h2 {
  color: var(--base);
}

/* ---------------------------------------------------------
   FAQ ACCORDION — CSS-only checkbox technique
   --------------------------------------------------------- */
.faq-list {
  margin: 1rem 0 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--muted);
}

.faq-item:first-child {
  border-top: 1px solid var(--muted);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Plus/minus drawn in CSS — ::after pseudo-element */
.faq-question::after {
  content: '';
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
  position: relative;
  /* Draw plus sign */
  background:
    /* horizontal bar */
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    /* vertical bar */
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform 0.25s;
}

/* When checked → rotate to make minus (hide vertical bar via rotation) */
.faq-toggle:checked + .faq-question::after {
  /* rotate 45deg → × shape; but spec says plus/minus, so we rotate 90deg so vertical bar disappears visually */
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat;
  /* Only horizontal = minus */
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 0.5rem;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 600px;
  padding: 0 0.5rem 0.9rem;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  border-top: 3px solid var(--accent);
  padding: 2rem 0 1.5rem;
  color: var(--muted);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
}

.footer-nav a {
  font-size: 0.82rem;
  color: #a0a3ab;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.75rem;
  color: #4a4d57;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   STANDALONE H2/H3 on inner pages (outside sections)
   --------------------------------------------------------- */
.main-content h2 {
  font-size: 1.6rem;
  color: var(--base);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.main-content h3 {
  font-size: 1.15rem;
  color: var(--base);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

/* h1 on inner pages */
.main-content > h1 {
  margin-bottom: 0.75rem;
  color: var(--base);
}

/* ---------------------------------------------------------
   640px BREAKPOINT
   --------------------------------------------------------- */
@media (min-width: 640px) {

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .logo-text { font-size: 1.6rem; }

  .main-nav a { font-size: 0.88rem; padding: 0.35rem 0.7rem; }

  .banner-headline { font-size: 2rem; }

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

  .btn-cta {
    font-size: 1.05rem;
    padding: 0.75rem 2.4rem;
  }

  table { font-size: 0.95rem; }

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

/* ---------------------------------------------------------
   1024px BREAKPOINT
   --------------------------------------------------------- */
@media (min-width: 1024px) {

  html { font-size: 18px; }

  .site-header .container {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .logo-text { font-size: 1.75rem; }
  .logo-mark { font-size: 1.9rem; }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
  }

  .banner-headline { font-size: 2.4rem; }

  .bonus-banner { padding: 3.5rem 1rem; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.25rem; }

  .main-content {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  /* 4-col card grid for the why-choose section */
  .cards-section .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-nav ul { gap: 0.4rem 1rem; }

  .footer-nav a { font-size: 0.88rem; }
}

/* ---------------------------------------------------------
   Utility: visually show section headers with accent border
   on inner pages where h2 is directly inside .main-content
   --------------------------------------------------------- */
.main-content section h2 {
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.3rem;
}