:root {
  --navy: #1f2a44;
  --navy-2: #2a3758;
  --blue: #2f6fed;
  --blue-dark: #2459c4;
  --ink: #1b2233;
  --muted: #5b6478;
  --line: #e3e7ee;
  --soft: #f4f6f8;
  --white: #ffffff;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: .04em;
  color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px; background: var(--navy);
  display: inline-grid; place-items: center; color: #fff; font-size: .9rem;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); background: #eef3fe; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e8ecf5; padding: 88px 0 80px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025);
}
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: #c9d1e3; }
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { margin-bottom: .3em; }

.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 24px; border-radius: 8px; border: 0; cursor: pointer;
  font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--soft); }
.narrow { max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--blue); margin-bottom: .6em;
}

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; background: #eef3fe; color: var(--blue);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.details dt { font-weight: 600; color: var(--navy); }
dl.details dd { margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1.4fr; align-items: start; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
form input[type=text], form input[type=email], form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #cfd5df;
  border-radius: 8px; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
form textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.check label { font-weight: 400; color: var(--ink); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #eaf7ef; color: #1d6b3a; }
.form-msg.err { display: block; background: #fdeeee; color: #9b2c2c; }

/* Legal */
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal .meta { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #c3cadb; padding: 28px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 10px; }
  .nav { width: 100%; gap: 0; margin-left: -9px; flex-wrap: nowrap; }
  .nav a { padding: 7px 9px; font-size: .9rem; white-space: nowrap; }
  .hero { padding: 60px 0 56px; }
  .page-hero { padding: 44px 0 40px; }
  section.block { padding: 44px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  dl.details { grid-template-columns: 1fr; gap: 2px; }
  dl.details dd { margin-bottom: 10px; }
}

@media (max-width: 350px) {
  .nav { flex-wrap: wrap; }
}
