:root {
  --ink: #121826;
  --muted: #5a6578;
  --paper: #eef2f7;
  --band: #e2e8f0;
  --line: #c5cedc;
  --accent: #1d4f91;
  --accent-2: #2a6bb8;
  --hero-deep: #0b1220;
  --hero-mid: #152238;
  --serif: "Fraunces", Georgia, serif;
  --hero-ink: #eef2f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, calc(100% - 2.5rem)); margin: 0 auto; }

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 1.1rem 0;
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: #eef2f7;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  text-decoration: none;
}
.nav { display: flex; gap: 1.25rem; }
.nav a {
  color: rgba(238, 242, 247, 0.82);
  font-size: 0.92rem;
  text-decoration: none;
}
.nav a:hover { color: #fff; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4.5rem;
  color: #eef2f7;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 18%, rgba(42, 107, 184, 0.38), transparent 55%),
    radial-gradient(ellipse 60% 45% at 88% 12%, rgba(120, 160, 210, 0.16), transparent 50%),
    linear-gradient(165deg, var(--hero-deep) 0%, var(--hero-mid) 50%, #1a3358 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
}
.hero__content { position: relative; z-index: 1; max-width: 40rem; }
.brand-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  margin: 0 0 0.85rem;
  line-height: 1.25;
  max-width: 18ch;
}
.lead {
  margin: 0 0 1.6rem;
  color: rgba(238, 242, 247, 0.78);
  font-size: 1.05rem;
  max-width: 34rem;
}
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn--primary {
  background: #eef2f7;
  color: var(--hero-deep);
}
.btn--primary:hover { text-decoration: none; filter: brightness(0.96); }
.btn--ghost {
  border: 1px solid rgba(238, 242, 247, 0.35);
  color: #eef2f7;
}
.btn--ghost:hover { text-decoration: none; border-color: rgba(238, 242, 247, 0.7); }

.section { padding: 4.2rem 0; }
.section--alt { background: var(--band); }
.section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}
.section__intro { color: var(--muted); margin: 0 0 2rem; max-width: 36rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid article {
  padding: 0;
  border: none;
  background: transparent;
}
.grid h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about p { color: var(--muted); margin: 0.75rem 0 0; }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.stats strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
}
.stats span { color: var(--muted); font-size: 0.9rem; }

.contact p { color: var(--muted); max-width: 34rem; }
.contact__line { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  font-size: 0.9rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .nav { gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav a { font-size: 0.85rem; }
}

/* ---- Inner pages ---------------------------------------------------------- */

.nav a[aria-current="page"] { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

.hero--page { min-height: 0; padding: 8.5rem 0 3.25rem; align-items: flex-end; }
.hero--page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3rem);
  max-width: 22ch;
  margin-bottom: 0.6rem;
}
.hero--page .lead { margin-bottom: 0; max-width: 46ch; }
.crumbs { margin: 0 0 1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.crumbs a { color: rgba(255, 255, 255, 0.75); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.split p, .split li { color: var(--muted); }
.figure { margin: 0; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; padding: 1rem; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 { margin: 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; font-size: 0.92rem; }
.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--band);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.price { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); font-size: 0.95rem; }
.price th, .price td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price thead th { background: var(--band); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.price td:last-child, .price th:last-child { text-align: right; white-space: nowrap; }
.price tbody tr:hover { background: var(--paper); }
.table-wrap { overflow-x: auto; }
.note { font-size: 0.86rem; color: var(--muted); margin-top: 0.8rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0.95rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); max-width: 48rem; }

.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.posts time { color: var(--muted); font-size: 0.88rem; padding-top: 0.2rem; }
.posts h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.posts h3 a { color: var(--ink); }
.posts p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 44rem; font-size: 1.02rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 2.2rem 0 0.6rem; }
.prose h3 { margin: 1.6rem 0 0.4rem; font-size: 1.1rem; }
.prose p, .prose li { color: #2a3340; }
.prose code { background: var(--band); padding: 0.1rem 0.35rem; border-radius: 0.25rem; font-size: 0.9em; }
.prose pre { background: var(--hero-deep); color: var(--hero-ink); padding: 1rem 1.1rem; border-radius: 0.4rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.meta { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; margin: 0.8rem 0 0; }

.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; }
.team li { border-top: 2px solid var(--accent); padding-top: 0.8rem; }
.team strong { display: block; }
.team span { color: var(--muted); font-size: 0.9rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.4rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -0.42rem; top: 0.35rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; color: var(--ink); }

.form { display: grid; gap: 0.9rem; max-width: 34rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.form .check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form button { justify-self: start; border: 0; cursor: pointer; background: var(--accent); color: #fff; font: inherit; font-weight: 600; padding: 0.7rem 1.3rem; border-radius: 0.35rem; }
.form button:hover { background: var(--accent-2); }
.form button[disabled] { opacity: 0.6; cursor: default; }
.form__status { margin: 0; font-size: 0.92rem; color: var(--accent); min-height: 1.4em; }
.form__status.is-error { color: #a33a2b; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.dl dt { color: var(--muted); font-size: 0.9rem; }
.dl dd { margin: 0; }

.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; }
.status-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-ok { color: var(--accent); font-weight: 600; }
.status-ok::before { content: "●"; margin-right: 0.4rem; }

.footer { padding: 2.75rem 0 1.75rem; background: var(--band); }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer__cols h4 { margin: 0 0 0.6rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.footer__cols p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 22rem; }
.footer__inner { border-top: 1px solid var(--line); padding-top: 1.1rem; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 6rem 1.25rem 3rem; }
.not-found .code { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; margin: 0; color: var(--accent); }
.not-found h1 { margin: 0.4rem 0 0.6rem; font-size: 1.5rem; }
.not-found p { color: var(--muted); margin: 0 0 1.4rem; }
.top--solid { position: static; background: var(--hero-deep); }

@media (max-width: 800px) {
  .split, .footer__cols { grid-template-columns: 1fr; }
  .posts li { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero--page { padding-top: 7.5rem; }
}
