:root {
  --gold: #effd36;
  --lime: #c5d314;
  --lime-hover: #a8b812;
  --ink: #0e1113;
  --bg: #0e1113;
  --bg-mid: #161b20;
  --bg-card: #1c2228;
  --bg-nav: #12161a;
  --bg-footer: #0a0c0e;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --line: rgba(197, 211, 20, 0.22);
  --radius: 12px;
  --max: 1120px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 22, 26, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--lime);
  display: block;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold);
}

.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary,
a.btn-primary {
  background: var(--lime);
  color: var(--ink);
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(197, 211, 20, 0.45);
}

.btn-ghost:hover,
a.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--gold);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(197, 211, 20, 0.16), transparent 60%),
    linear-gradient(160deg, #12161a 0%, #0e1113 55%, #161b20 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.updated {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Article */
.article {
  padding: 36px 0 64px;
}

.toc {
  background: var(--bg-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.toc ol {
  columns: 2;
  gap: 24px;
  padding-left: 20px;
  color: var(--muted);
}

.toc a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--lime);
}

.section {
  margin-bottom: 42px;
  scroll-margin-top: 88px;
}

.section h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold);
  margin: 22px 0 10px;
}

.section p {
  margin-bottom: 14px;
  color: #d5dae0;
}

.section ul,
.section ol {
  margin: 12px 0 18px 22px;
  color: #d5dae0;
}

.section li {
  margin-bottom: 8px;
}

.note {
  background: rgba(197, 211, 20, 0.08);
  border-left: 3px solid var(--lime);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--text);
}

.note strong {
  color: var(--gold);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

th {
  background: rgba(197, 211, 20, 0.1);
  color: var(--gold);
  font-weight: 700;
}

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

/* Cards / strips — provider SVGs are light-on-dark; pay logos need light tiles */
.providers,
.payments-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.providers img,
.payments-strip img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
  padding: 16px 18px;
}

.providers img {
  background: linear-gradient(180deg, #1c2228 0%, #12161a 100%);
  border: 1px solid rgba(197, 211, 20, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payments-strip img {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .providers,
  .payments-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .providers img,
  .payments-strip img {
    height: 68px;
    padding: 12px 14px;
  }
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, rgba(197, 211, 20, 0.14), rgba(14, 17, 19, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

.cta-band p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* FAQ */
.faq details {
  background: var(--bg-mid);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--lime);
  margin-right: 10px;
  font-weight: 800;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

/* Responsible */
.responsible {
  background: var(--bg-footer);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
}

.responsible h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.responsible p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.site-footer h3 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--lime);
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  margin-right: 8px;
}

/* Mobile table cards */
@media (max-width: 760px) {
  .burger {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: var(--bg-nav);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .head-actions .btn-ghost {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 32px 0 28px;
  }

  .hero-visual {
    order: -1;
  }

  .toc ol {
    columns: 1;
  }

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

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  td {
    border: none;
    padding: 4px 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: var(--lime);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
