/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #f1f5f9;
}

a { color: #4682b4; text-decoration: none; }
a:hover { color: #f59e0b; text-decoration: underline; }

p { margin-bottom: 1rem; color: #cbd5e1; }

ul, ol { color: #cbd5e1; margin-bottom: 1rem; padding-left: 1.5rem; }
ul li, ol li { margin-bottom: 0.4rem; }

strong { color: #e2e8f0; }

/* ── Layout ───────────────────────────────────────────── */
.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: #111827;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  max-width: 1200px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.header-btns {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-register {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-register:hover { background: #d97706; color: #0f172a; text-decoration: none; }

.btn-download {
  background: #4682b4;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-download:hover { background: #3a6d9a; color: #fff; text-decoration: none; }

/* ── Promo block ─────────────────────────────────────── */
.promo-block {
  background: #0d1f35;
  border: 1px solid #1e3a5f;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.promo-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(70,130,180,0.18) 0%, transparent 65%),
              radial-gradient(ellipse at bottom right, rgba(245,158,11,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.promo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  position: relative;
}

.promo-code-group { display: flex; flex-direction: column; gap: 0.2rem; }

.promo-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 600;
}

.promo-value {
  font-size: 2rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.14em;
  line-height: 1;
}

.btn-copy {
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-copy:hover { background: #16a34a; }
.btn-copy:active { transform: scale(0.97); }

.promo-divider {
  border: none;
  border-top: 1px solid #1e3a5f;
  margin: 0 0 1.1rem;
  position: relative;
}

.promo-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  position: relative;
}

.promo-perk {
  background: #111f33;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.perk-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.perk-value.amber { color: #f59e0b; }
.perk-value.green { color: #22c55e; }
.perk-value.sky   { color: #38bdf8; }

.perk-label {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

.promo-note {
  margin-top: 0.85rem;
  font-size: 0.73rem;
  color: #475569;
  line-height: 1.5;
  position: relative;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #162032 60%, #1a2744 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid #1e293b;
}

.hero-section h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-section .hero-lead {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 680px;
}

/* ── Article image ───────────────────────────────────── */
.article-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 1.5rem 0;
}

/* ── Info table ──────────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1e293b;
  vertical-align: top;
  color: #cbd5e1;
}

.info-table td:first-child {
  width: 42%;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.9rem;
}

.info-table tr:hover td { background: #162032; }

/* ── Mirror table ────────────────────────────────────── */
.mirror-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.mirror-table td {
  padding: 0.55rem 0.85rem;
  border: 1px solid #1e293b;
  font-size: 0.9rem;
}

.mirror-table td a { color: #4682b4; }
.mirror-table td a:hover { color: #f59e0b; }

/* ── Pros/cons table ─────────────────────────────────── */
.pros-cons-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pros-cons-table th {
  background: #1f2937;
  color: #f1f5f9;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.pros-cons-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1e293b;
  vertical-align: top;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.pros-cons-table td:first-child { border-right: 1px solid #1e293b; }
.pros-cons-table tr:hover td { background: #162032; }

/* ── Section headings ────────────────────────────────── */
.content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #1e3a5f;
}

.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.content h4 {
  font-weight: 600;
  color: #94a3b8;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

/* ── TOC ─────────────────────────────────────────────── */
.toc-wrapper {
  background: #162032;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  margin: 2rem 0;
  overflow: hidden;
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.95rem;
  user-select: none;
}

.toc-toggle .toc-icon {
  font-size: 1.2rem;
  color: #4682b4;
  transition: transform 0.25s;
}

.toc-toggle.open .toc-icon { transform: rotate(180deg); }

.toc-body {
  display: none;
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid #1e293b;
}

.toc-body.open { display: block; }

.toc-body ol {
  margin: 0;
  padding-left: 1.4rem;
}

.toc-body ol li { margin-bottom: 0.3rem; }

.toc-body ol li a {
  color: #4682b4;
  font-size: 0.92rem;
}

.toc-body ol li a:hover { color: #f59e0b; text-decoration: underline; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-section { margin: 2rem 0; }

.faq-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #1e3a5f;
}

.faq-item {
  border: 1px solid #1e293b;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  background: #162032;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
  gap: 1rem;
  user-select: none;
}

.faq-question:hover { background: #1e2d45; }

.faq-question .faq-icon {
  font-size: 1.1rem;
  color: #4682b4;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0.9rem 1.1rem;
  background: #111827;
  color: #cbd5e1;
  font-size: 0.92rem;
  border-top: 1px solid #1e293b;
}

.faq-answer.open { display: block; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: #111827;
  border-top: 1px solid #1e293b;
  padding: 2rem 0;
  margin-top: 3rem;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left { display: flex; flex-direction: column; gap: 0.35rem; }

.footer-copyright { color: #94a3b8; font-weight: 600; font-size: 0.88rem; }

.footer-date { color: #64748b; font-size: 0.8rem; }

.footer-disclaimer {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 480px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.lang-switcher:hover {
  border-color: #4682b4;
  background: #1e2d45;
  text-decoration: none;
}

.lang-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.lang-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1;
}

.lang-sub {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1;
}

.footer-top { display: contents; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .brand-logo { height: 30px; }
  .header-btns { gap: 0.4rem; }
  .btn-register, .btn-download { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
  .info-table td:first-child { width: 48%; }
  .pros-cons-table th, .pros-cons-table td { font-size: 0.83rem; padding: 0.55rem 0.7rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { max-width: 100%; }
  .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
  }
  .footer-left { gap: 0.2rem; }
}

@media (max-width: 560px) {
  .promo-perks { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .perk-value { font-size: 1rem; }
  .promo-value { font-size: 1.6rem; }
  .promo-top { flex-direction: column; align-items: center; }
  .promo-code-group { align-items: center; }
}

@media (max-width: 400px) {
  .promo-perks { grid-template-columns: 1fr 1fr; }
}
