:root {
  --bg: #ffffff;
  --surface: #f7f9f9;
  --surface-alt: #eef4f3;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-text: #115e59;
  --max: 860px;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090e11;
    --surface: #11191e;
    --surface-alt: #142228;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e2d35;
    --accent: #2dd4bf;
    --accent-strong: #14b8a6;
    --accent-soft: rgba(45, 212, 191, 0.14);
    --accent-text: #5eead4;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lang-switch a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
}

.lang-switch a.active {
  background: var(--accent);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .lang-switch a.active {
    color: #062825;
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}

h2 {
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 40px 0 14px 0;
}

h3 {
  font-size: 17px;
  line-height: 1.38;
  margin: 22px 0 8px 0;
}

p {
  margin: 0 0 14px 0;
}

.lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0 0 22px 0;
}

.answer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0 24px 0;
  font-size: 16px;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .btn.primary {
    color: #052623;
  }
}

.meta-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 13px;
}

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

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

.calc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .calc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.calc-summary {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

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

.faq-item h3 {
  margin: 0 0 6px 0;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.links-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 640px) {
  .links-list {
    grid-template-columns: 1fr;
  }
}

.links-list a {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.links-list a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.sources {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.sources li {
  margin: 6px 0;
}

.cta-banner {
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.cta-banner h2 {
  margin-top: 0;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
