:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #52606d;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --border: #e2e8f0;
  --chip: #e8f1ff;
  --soft: #eef2f7;
  --accent: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lexend", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

h1 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
}

header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-bar {
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.top-bar .nav {
  padding: 10px 24px;
}

.top-bar strong {
  color: var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.brand span {
  font-size: 1.05rem;
  color: var(--text);
}

.brand small {
  display: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

.lang-switch {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

main.no-top {
  padding-top: 0;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  margin-bottom: 56px;
}

.hero.with-bg {
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
}

.hero.with-bg {
  position: relative;
  padding: 48px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7)), var(--hero-bg, #0f172a);
  color: #f8fafc;
}

.hero-image {
  position: relative;
  padding: 88px 0;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.32)), var(--hero-image, #0f172a);
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  margin: 0 calc(50% - 50vw);
}

.hero-image .badge-row,
.hero-image .hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero.with-bg h1,
.hero.with-bg h2,
.hero.with-bg p,
.hero-image h1,
.hero-image h2,
.hero-image p {
  color: #f8fafc;
}

.hero.with-bg p,
.hero-image p {
  color: rgba(248, 250, 252, 0.86);
}

.hero.with-bg .badge {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.hero.with-bg .cta-secondary {
  border-color: #e2e8f0;
  color: #e2e8f0;
}

.hero.with-bg .hero-panel {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-image .hero-panel {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.hero-image .hero-panel h2,
.hero-image .hero-panel p,
.hero-image .hero-panel span,
.hero-image .hero-panel strong {
  color: var(--text);
}

.hero-panel,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.hero.with-bg .hero-panel {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

.image-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.image-frame img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.image-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 10px;
}

.section {
  margin-bottom: 48px;
}

.section.split {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.section h3 {
  margin: 18px 0 10px;
  font-size: 1.05rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.badge-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 20px;
}

.stat {
  background: var(--soft);
  border-radius: 12px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--text);
}

.cta,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
}

.cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.cta:hover {
  background: var(--primary-dark);
}

.cta-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-left: 12px;
}

.language-blocks {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.language-block h3 {
  margin-top: 0;
}

.callout {
  background: var(--soft);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.table th {
  background: var(--soft);
  color: var(--text);
}

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

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

small {
  color: var(--muted);
}
