:root {
  --ink: #101a2c;
  --muted: #5a6a85;
  --paper: #f4f7fc;
  --card: #ffffff;
  --line: #d9e2f0;
  --cobalt: #2050d8;
  --cobalt-deep: #173fa8;
  --sky: #e6eeff;
  --leaf: #2f9e62;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 14px;
  --shadow: 0 10px 30px rgba(16, 26, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.topbar { background: var(--ink); color: #c9d6ec; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar-right { color: #8fa3c4; }

.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 22px;
  color: #6b4fa8; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand-icon { display: block; width: 34px; height: auto; }
.brand-at { color: #4f7fc2; }
.foot-logo { display: block; height: auto; margin: 0 0 12px; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.site-nav::-webkit-scrollbar { display: none; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.nav-link:hover { color: var(--cobalt); background: var(--sky); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px;
  padding: 13px 24px; border-radius: 10px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--cobalt); color: #fff; box-shadow: 0 6px 18px rgba(32, 80, 216, 0.28); }
.btn-solid:hover { background: var(--cobalt-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky); }
.btn-wide { width: 100%; }
.head-cta { padding: 10px 18px; font-size: 14px; }

.crumbs { background: var(--card); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0; color: var(--muted); flex-wrap: wrap; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); }

.hero { background: linear-gradient(160deg, #eaf1ff 0%, var(--paper) 55%, #fdfdfb 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding: 56px 24px 52px; }
.hero-slim .container { padding-top: 48px; padding-bottom: 40px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cobalt); margin: 0 0 14px;
}
h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 18px; text-wrap: balance;
}
.lead { font-size: 18px; line-height: 1.7; color: #33405a; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-media .art-figure { margin: 0; }

.toc { position: sticky; top: 66px; z-index: 90; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.toc-row { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.toc-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.toc-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toc-scroll::-webkit-scrollbar { display: none; }
.toc-scroll a {
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; background: #fff;
}
.toc-scroll a:hover { color: var(--cobalt); border-color: var(--cobalt); }

.art { background: var(--paper); }
.art-container { padding-top: 40px; padding-bottom: 64px; }
.art p { margin: 0 0 18px; }
.art-h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2; margin: 46px 0 16px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; letter-spacing: -0.01em;
}
.h2-num { font-size: 14px; font-weight: 700; color: var(--cobalt); font-family: var(--sans); }
.art h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; margin: 28px 0 10px; }
.art h4 { font-family: var(--sans); font-weight: 700; font-size: 16.5px; margin: 22px 0 8px; color: #23324e; }
.art a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art a:hover { color: var(--cobalt-deep); }
.art-list { margin: 0 0 18px; padding-left: 22px; }
.art-list li { margin-bottom: 8px; }
.art-list li::marker { color: var(--cobalt); font-weight: 700; }

.art-figure { margin: 26px 0; }
.art-figure img {
  width: 100%; height: auto; display: block; border-radius: var(--r);
  box-shadow: var(--shadow);
}

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0;
  border-radius: var(--r); box-shadow: var(--shadow); background: var(--card);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
thead th {
  background: var(--ink); color: #fff; text-align: left; padding: 12px 16px;
  font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em;
}
tbody td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8faff; }

.faq-sec { margin-top: 8px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; padding: 15px 18px; font-weight: 700; font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-a { padding: 0 18px 14px; color: #33405a; }
.faq-a p { margin: 0 0 10px; }

.cta-band { background: linear-gradient(120deg, var(--cobalt-deep), var(--cobalt)); color: #fff; }
.cta-band-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 38px; padding-bottom: 38px; flex-wrap: wrap; }
.cta-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #bcd0ff; }
.cta-title { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px); font-weight: 600; max-width: 640px; }

.site-foot { background: var(--ink); color: #c9d6ec; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-top: 46px; padding-bottom: 30px; }
.foot-groups { display: grid; align-content: start; gap: 22px; min-width: 0; }
.foot-note { font-size: 13.5px; color: #8fa3c4; margin: 0 0 8px; max-width: 340px; }
.foot-note a { color: #c9d6ec; }
.foot-h { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8fa3c4; margin: 0 0 10px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.foot-col .nav-link { color: #c9d6ec; padding: 4px 0; }
.foot-col .nav-link:hover { color: #fff; background: none; }
.foot-legal { border-top: 1px solid #22334f; }
.foot-legal p { font-size: 12.5px; color: #8fa3c4; padding: 16px 0 22px; margin: 0; }

.form-page { padding: 34px 0 70px; }
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 16px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: #33405a; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"] {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fbfcff; color: var(--ink);
}
.lead-form input:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13px !important; line-height: 1.55; margin-bottom: 14px; }
.consent input { margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; margin: 0; }
.form-status { min-height: 20px; font-size: 13.5px; color: var(--cobalt-deep); margin: 0 0 10px; }
.form-fine { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.contact-block { margin-top: 26px; }
.apply-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.apply-side { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 28px; }
.apply-side .contact-h { margin: 0; }
.apply-side .foot-note-dark { margin: 0; }
.apply-side .map-wrap { flex: 1; min-height: 260px; margin-top: 8px; }
@media (max-width: 900px) { .apply-cols { grid-template-columns: 1fr; } }
.contact-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; align-items: start; }
.contact-h { font-family: var(--serif); font-size: 21px; margin: 0 0 12px; }
.foot-note-dark { font-size: 14px; color: #33405a; margin: 0 0 8px; }
.map-wrap { position: relative; border-radius: 10px; overflow: hidden; min-height: 240px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .contact-cols { grid-template-columns: 1fr; } .map-wrap { min-height: 220px; } }

.legal h2 { font-family: var(--serif); font-size: 24px; margin: 34px 0 12px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal a[href^="mailto:"] { white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-head, .toc { transition: none !important; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .head-row { gap: 12px; flex-wrap: nowrap; }
  .brand-logo { height: 30px; }
  .head-contact { padding: 9px 14px; font-size: 13.5px; }
  .burger { width: 46px; height: 46px; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .cta-band-row { flex-direction: column; align-items: flex-start; }
  .topbar { font-size: 10.5px; }
  .topbar .container { justify-content: center; }
  .topbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { display: none; }
  .btn { width: 100%; white-space: nowrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

.head-row { justify-content: space-between; }
.head-tools { display: flex; align-items: center; gap: 12px; }
.head-contact { padding: 10px 18px; font-size: 14px; }
.brand-logo { display: block; height: 42px; width: auto; }
.foot-logo { height: 48px; width: auto; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; flex: 0 0 auto; align-self: center; gap: 5px; width: 50px; height: 50px; padding: 0; background: transparent; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.burger span { display: block; height: 2px; width: 18px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 99; border-top: 1px solid var(--line); background: var(--card); box-shadow: 0 18px 30px -18px rgba(15, 30, 60, 0.25); max-height: calc(100vh - 80px); overflow-y: auto; }
.menu-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; padding-top: 20px; padding-bottom: 24px; justify-content: start; }
.menu-h { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.menu-col { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.menu-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 11px; border-radius: 8px; align-self: start; }
.menu-home:hover { color: var(--cobalt); background: var(--sky); }
:root { --fcta-bottom: 18px; --fcta-h: 48px; }
.floating-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--fcta-bottom); z-index: 90; height: var(--fcta-h); padding: 0 22px; line-height: 1.2; white-space: nowrap; font-size: 14.5px; box-shadow: 0 10px 26px rgba(32, 80, 216, 0.35); }
.floating-cta:active { transform: translateX(-50%) translateY(1px); }
@media (max-width: 900px) { .menu-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 620px) { .floating-cta { width: auto; } }
@media (max-width: 900px) { .brand-logo { height: 30px; } }
body:has(> .floating-cta) .foot-legal { padding-bottom: calc(var(--fcta-h) + 2 * var(--fcta-bottom)); }
html { scroll-padding-top: 80px; }
@media (max-width: 900px) {
  .head-tools .btn.head-contact { display: inline-flex; align-items: center; justify-content: center; width: auto; text-align: center; white-space: normal; line-height: 1.15; padding: 9px 12px; font-size: 13px; max-width: 42vw; }
}
.floating-cta { transition: transform 0.25s ease, opacity 0.25s ease; }
body.cta-hidden .floating-cta { transform: translateX(-50%) translateY(140%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .floating-cta { transition: none !important; } }
@media (max-width: 900px) { .burger { width: 46px; height: 46px; } }
.modal-veil { position: fixed; inset: 0; z-index: 200; background: rgba(12, 22, 46, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 20px 20px; overflow-y: auto; }
.modal-veil[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 620px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(10, 20, 45, 0.45); padding: 30px 28px; }
.modal-title { font-family: var(--serif); font-size: 26px; margin: 4px 0 16px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { border-color: var(--cobalt); color: var(--cobalt); }
html.modal-open { overflow: hidden; }
@media (max-width: 620px) { .modal-card { padding: 24px 18px; } .modal-veil { padding: 12px; } }

html.menu-open { overflow: hidden; }

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; margin-left: 8px; overflow: visible; }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--cobalt); background: var(--sky); }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-dd-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 120; display: none; flex-direction: column; gap: 2px; min-width: 240px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(15, 30, 60, .35); }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: flex; }
.nav-dd-menu .nav-link { display: block; padding: 9px 12px; white-space: nowrap; }
@media (min-width: 901px) { .burger { display: none; } }
@media (max-width: 900px) { .site-nav { display: none; } }
.art-media { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: 32px; align-items: center; margin: 28px 0; }
.art-media--img-right .art-media__media { order: 2; }
.art-media .art-figure { margin: 0; }
.art-media img { width: 100%; height: auto; border-radius: 12px; display: block; }
.art-media__text > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .art-media { grid-template-columns: 1fr; gap: 16px; } .art-media--img-right .art-media__media { order: 0; } }
