/* Base tokens */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/onest-400_700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Old Mincho";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/zenoldmincho-700-latin.woff2") format("woff2");
}

:root {
  --ink: #10222e;
  --ink-soft: #40525e;
  --line: #d9e3e8;
  --paper: #f5f9fa;
  --surface: #ffffff;
  --brand: #0b5d73;
  --brand-deep: #083f4f;
  --accent: #0e8f6e;
  --accent-deep: #0a7359;
  --accent-dark: #085c47;
  --tint: #e6f3f1;
  --error: #b3261e;
  --radius: 14px;
  --wrap: 1120px;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Zen Old Mincho", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-deep);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 0.75rem 1rem;
  z-index: 20;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.4rem 0;
}

.nav a:hover {
  color: var(--brand);
}

.nav .btn {
  color: #fff;
  padding: 0.65rem 1.1rem;
}

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  border: 2px solid var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--brand);
}

.btn--ghost:hover {
  background: var(--tint);
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 30rem;
}
