:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #101827;
  --text: #172033;
  --muted: #5e6a7f;
  --line: #dbe3ef;
  --green: #22c55e;
  --violet: #6366f1;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(20, 32, 55, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand, .site-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}
.brand img, .site-footer img { border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 20px; font-weight: 700; min-width: 0; }
.nav a { text-decoration: none; color: #243047; white-space: nowrap; }
.nav a:hover { color: var(--violet); }
.language-menu { position: relative; }
.language-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
}
.language-menu div {
  position: absolute;
  right: 0;
  top: 44px;
  display: grid;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.language-menu a { padding: 8px 10px; text-decoration: none; border-radius: 6px; }
.language-menu a:hover { background: #eef2ff; }
main > section {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 76px);
}
.eyebrow {
  margin: 0 0 14px;
  color: #15803d;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); max-width: 950px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.2rem; }
.intro {
  margin: 28px 0;
  max-width: 720px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #374151;
}
.hero-actions, .facts, .decision-grid, .system-grid, .media-grid { display: grid; gap: 16px; }
.hero-actions { grid-template-columns: repeat(2, max-content); margin-bottom: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}
.button.primary { background: var(--surface-strong); color: white; border-color: var(--surface-strong); }
.button.secondary { background: var(--surface); color: #111827; }
.facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}
.facts div, .decision-card, .planner-output, .system-grid article, details, .legal-page, .table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 32, 55, .06);
}
.facts div { padding: 18px; }
dt { color: var(--muted); font-size: .85rem; }
dd { margin: 2px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.hero-media, .media-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: var(--shadow);
}
.hero-media img, .media-grid img { display: block; width: 100%; height: auto; }
figcaption {
  padding: 12px 14px;
  color: #dbeafe;
  background: #111827;
  font-size: .9rem;
}
.section-heading { max-width: 920px; margin-bottom: 28px; }
.section-heading p:not(.eyebrow), .guide-section > p { color: #475569; font-size: 1.1rem; max-width: 920px; }
.codes-section, .gallery, .faq-section { background: #eef3f8; }
.ad-section {
  padding-top: 28px;
  padding-bottom: 28px;
  background: #eef3f8;
}
.native-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: min(100%, 960px);
  margin: 0 auto;
  overflow: hidden;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #334155; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
code {
  padding: 4px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #14532d;
  font-weight: 900;
}
.planner {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}
.decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.decision-card {
  padding: 20px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.decision-card:hover, .decision-card:focus {
  outline: 3px solid rgba(99, 102, 241, .22);
  border-color: var(--violet);
}
.decision-card span { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 900; }
.decision-card small { color: var(--muted); font-size: .95rem; }
.planner-output {
  grid-column: 2;
  display: block;
  padding: 18px 20px;
  color: #052e16;
  background: #dcfce7;
  border-color: #86efac;
  font-weight: 800;
}
.system-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.system-grid article { padding: 20px; }
.system-grid p { color: var(--muted); }
.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-section { background: var(--surface); }
.steps { max-width: 980px; padding-left: 22px; color: #334155; font-size: 1.08rem; }
.steps li { margin: 12px 0; }
.source-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-left: 20px;
}
.source-section a { color: #1d4ed8; font-weight: 700; }
.faq-section details { padding: 18px 20px; margin: 12px 0; }
.faq-section summary { cursor: pointer; font-weight: 900; }
.legal-page { max-width: 900px; margin: 72px auto; padding: clamp(28px, 5vw, 56px); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 5vw, 72px);
  color: white;
  background: var(--surface-strong);
}
.site-footer p { margin: 4px 0 0; color: #cbd5e1; max-width: 620px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: white; }

@media (max-width: 1100px) {
  .hero, .planner { grid-template-columns: 1fr; }
  .planner-output { grid-column: auto; }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .brand span { max-width: 210px; line-height: 1.15; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    font-size: .9rem;
  }
  .language-menu summary { min-height: 34px; padding: 6px 10px; }
  h1 { font-size: clamp(2.4rem, 15vw, 4.3rem); }
  .hero { min-height: auto; padding-top: 48px; }
  .hero-actions, .facts, .decision-grid, .system-grid, .media-grid, .source-section ul {
    grid-template-columns: 1fr;
  }
  .site-footer { flex-direction: column; }
}
