﻿:root {
  --ink: #102a43;
  --ink-soft: #334e68;
  --muted: #627d98;
  --line: #d9e2ec;
  --surface: #ffffff;
  --band: #f4f7fb;
  --blue: #186faf;
  --green: #2f8f83;
  --focus: #ffb703;
  --shadow: 0 18px 45px rgb(16 42 67 / 10%);
  --radius: 8px;
  --width: 1160px;
  --type-h1: clamp(2.45rem, 4.8vw, 3.85rem);
  --type-h2: clamp(1.6rem, 2.7vw, 2.2rem);
  --type-h3: clamp(1.02rem, 1.2vw, 1.16rem);
  --type-lead: clamp(1.06rem, 1.55vw, 1.24rem);
  --type-body: 1rem;
  --type-small: 0.94rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  line-height: 1.5;
  background: var(--surface);
}

body {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 14.5ch;
  margin-bottom: 1.45rem;
  font-size: var(--type-h1);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 24ch;
  margin-bottom: 1rem;
  font-size: var(--type-h2);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: var(--type-h3);
  line-height: 1.25;
  letter-spacing: 0;
}

p, li {
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.58;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--width);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 360px;
  min-width: 0;
  gap: 0.75rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
}

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

.brand > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.94rem;
}

.nav__links a, .language-link, .site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 2.25rem;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
}

.nav__links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 740;
}

.nav__links a[aria-current="page"]::after {
  background: var(--green);
}

.language-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

@media (max-width: 700px) {
  :root {
    --type-h1: clamp(2.2rem, 9vw, 2.45rem);
    --type-h2: clamp(1.42rem, 6.4vw, 1.7rem);
    --type-lead: clamp(1.02rem, 4vw, 1.1rem);
  }
}
