@font-face {
  font-family: "Mont Heavy";
  src: url("/assets/Mont-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #050608;
  --ink: #090b0f;
  --panel: #11141a;
  --panel-soft: #171b23;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(145, 184, 255, 0.32);
  --text: #f7f8fb;
  --muted: #aeb5c3;
  --soft: #dce3ef;
  --blue: #2678ff;
  --blue-soft: #9cc2ff;
  --white: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(79, 145, 255, 0.13), transparent 38%),
    linear-gradient(180deg, #050608 0%, #0a0d13 48%, #050608 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--text); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.brand img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.lang-switch a { color: var(--muted); }
.lang-switch a:hover,
.lang-switch .is-active { color: var(--text); }
.lang-switch span { color: rgba(220, 227, 239, 0.38); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: var(--text);
  color: var(--black);
  font-weight: 850;
  line-height: 1.1;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.button.blue {
  border-color: rgba(79, 145, 255, 0.75);
  background: var(--blue);
  color: var(--white);
}

.section {
  padding: clamp(4.2rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.section.compact { padding-top: clamp(2rem, 5vw, 4rem); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 62vh;
  padding-top: clamp(2.8rem, 6vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 860px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 920;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  font-weight: 850;
}

.lead {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: var(--soft);
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
}

.microcopy,
.text-muted {
  color: var(--muted);
  font-size: 0.96rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a { color: var(--soft); }

.panel {
  padding: clamp(1.1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.panel p { margin: 0.75rem 0 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.guide-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.guide-card p {
  margin: 0.8rem 0 1rem;
  color: var(--muted);
}

.guide-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue-soft);
  font-weight: 800;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.article {
  display: grid;
  gap: 2rem;
}

.article section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article section:last-child { border-bottom: 0; }

.article p,
.article li {
  color: var(--muted);
}

.article ul,
.article ol {
  padding-left: 1.2rem;
}

.article li + li { margin-top: 0.45rem; }

.blog-visual {
  margin: clamp(1.8rem, 4vw, 2.6rem) 0;
}

.blog-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.blog-visual figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 26, 0.82);
}

.toc a {
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

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

th {
  background: #11151c;
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.capture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 145, 255, 0.16), rgba(255, 255, 255, 0.035));
}

.capture form {
  display: grid;
  gap: 0.75rem;
}

label {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

input::placeholder { color: rgba(220, 227, 239, 0.48); }

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.consent-row input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
  padding: 0;
}

.footer {
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 980px) {
  .hero,
  .content,
  .capture { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
}

@media (max-width: 640px) {
  .nav { padding: 0.85rem 1rem; }
  .brand img { height: 32px; max-width: 145px; }
  .nav-links > a:not(.button) { display: none; }
  .nav-links .lang-switch a { display: inline; }
  .button { width: 100%; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.9rem); }
  h2 { font-size: clamp(2rem, 11vw, 3.35rem); }
  .grid { grid-template-columns: 1fr; }
  .guide-card { min-height: auto; }
}
