@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:          #0d0d0f;
  --surface:     #111113;
  --card:        #17171a;
  --card-hover:  #1c1c20;
  --border:      #26262b;
  --border-soft: #1e1e22;
  --accent:      #4ade80;
  --accent-dim:  rgba(74,222,128,0.12);
  --accent-line: rgba(74,222,128,0.28);
  --text:        #e2e2e6;
  --text-sub:    #a0a0ab;
  --text-muted:  #6a6a78;
  --white:       #f6f6f8;
  --r:           8px;
  --rl:          12px;
  --rx:          16px;
  --ease:        0.18s ease;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 {
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--white);
  line-height: 1.1;
}
h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
p { color: var(--text-sub); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
ul, ol { color: var(--text-sub); padding-left: 20px; }
li { margin-bottom: 6px; line-height: 1.65; }
strong { color: var(--white); font-weight: 600; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 820px; }

/* ─── SECTION TAG ────────────────────────────────────────────── */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec-tag svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #061409;
}
.btn-primary:hover { background: #6ee79a; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--rl); }

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,15,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
  flex-shrink: 0;
}
.logo em { font-style: normal; color: var(--accent); }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.header-cta { display: flex; gap: 10px; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--border); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 28px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--rx);
  border: 1px solid var(--border);
  background: var(--card);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 12px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  text-align: center;
}
.stat-n { display: block; font-size: 17px; font-weight: 700; color: var(--accent); }
.stat-l { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── SECTIONS ───────────────────────────────────────────────── */
.sec { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sec:last-of-type { border-bottom: none; }
.sec-intro { max-width: 660px; color: var(--text-sub); font-size: 15px; margin-bottom: 28px; }

/* ─── TABLE ──────────────────────────────────────────────────── */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  margin: 24px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--card);
  padding: 11px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border-soft); transition: background var(--ease); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--card); }
td { padding: 12px 18px; color: var(--text); vertical-align: top; }
td:first-child {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 140px;
}
.td-accent { color: var(--accent); font-weight: 600; }
.td-check { color: var(--accent); font-weight: 600; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 24px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 22px;
  transition: border-color var(--ease);
}
.card:hover { border-color: var(--accent-line); }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; color: var(--accent); }

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.card h3 { font-size: 15px; margin-bottom: 7px; }
.card p { font-size: 13px; line-height: 1.65; margin: 0; }

/* ─── STEPS ──────────────────────────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 12px;
  margin-top: 24px;
  counter-reset: step-c;
}
.step-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 20px 16px;
  counter-increment: step-c;
}
.step-item::before {
  content: "0" counter(step-c);
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: rgba(74,222,128,0.15);
  line-height: 1;
  margin-bottom: 10px;
}
.step-item p { font-size: 13px; margin: 0; }

/* ─── CHECK LIST ─────────────────────────────────────────────── */
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
}
.check-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%234ade80' fill-rule='evenodd' d='M13.354 3.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3.5-3.5a.5.5 0 11.708-.708L6 10.293l6.646-6.647a.5.5 0 01.708 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ─── TWO-COL ────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ─── INFO BLOCK ─────────────────────────────────────────────── */
.info-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 28px;
}
.info-block h3 { margin-bottom: 12px; font-size: 16px; }

/* ─── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rx);
  padding: 52px 32px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { max-width: 500px; margin: 0 auto 28px; }
.cta-banner .btn-lg { font-size: 16px; padding: 14px 36px; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  background: var(--card);
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: background var(--ease);
}
.faq-btn:hover { background: var(--card-hover); }
.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body {
  display: none;
  padding: 4px 20px 16px;
  background: var(--card);
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.faq-item.open .faq-body { display: block; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 300px;
}
.footer-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 6px;
}
.footer-nav-group a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-nav-group a:hover { color: var(--accent); }
.footer-sep { width: 1px; height: 16px; background: var(--border); align-self: center; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}
.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ─── INNER PAGE ─────────────────────────────────────────────── */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(22px, 3.5vw, 36px); margin-bottom: 8px; }
.page-hero .page-meta { font-size: 13px; color: var(--text-muted); }

.content-body { padding: 52px 0; }
.content-body h2 {
  font-size: 19px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}
.content-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.content-body p { font-size: 15px; }
.content-body ul,
.content-body ol { margin: 10px 0 16px; display: flex; flex-direction: column; gap: 4px; }
.content-body li { font-size: 15px; color: var(--text-sub); line-height: 1.7; }
.content-body .tbl-wrap { margin: 20px 0; }

/* ─── RG PAGE SPECIFICS ──────────────────────────────────────── */
.rg-tool-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
.rg-tool-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}
.rg-tool-list li:last-child { border-bottom: none; }
.rg-tool-list strong { color: var(--white); }

/* ─── LOGO IMAGE ────────────────────────────────────────────── */
.logo-img { height: 38px; width: auto; display: block; }

/* ─── PROMO BANNERS ──────────────────────────────────────────── */
.banner-sec { padding: 28px 0; }
.banner-link { display: block; }
.banner-full { width: 100%; border-radius: var(--rl); display: block; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav-group { justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .header-cta .btn-ghost { display: none; }
  .sec { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .cta-banner { padding: 36px 20px; }
}
@media (max-width: 420px) {
  .steps-row { grid-template-columns: 1fr; }
}
