:root {
  color-scheme: light;
  --ink: #19202c;
  --muted: #536075;
  --line: #d9dfe9;
  --blue: #263f63;
  --soft: #edf2f9;
  --paper: #f8fafc;
}
.theme-home {
  --paper: #f5f8f7;
  --line: #d6e0dc;
  --blue: #244a50;
  --soft: #e8f0ed;
  --ink-accent: #355f61;
}
.theme-services {
  --paper: #faf8f4;
  --line: #e2dbd0;
  --blue: #4c5948;
  --soft: #efede5;
}
.theme-about {
  --paper: #f3f6fa;
  --line: #d7e0ec;
  --blue: #294565;
  --soft: #e8eef7;
}
.theme-contact {
  --paper: #f7f7f5;
  --line: #dcdfdc;
  --blue: #344749;
  --soft: #edf0ed;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.58 system-ui, -apple-system, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: #375b91; }
button, select, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #4d72a9; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: .8rem; }
h1, h2, h3 { line-height: 1.11; letter-spacing: -.032em; font-weight: 650; }
h1 { font-size: clamp(2.55rem, 5.7vw, 5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.16rem, 2vw, 1.55rem); }
.shell { width: min(1180px, 100% - 64px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 3; padding: 8px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 93px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 680; font-size: clamp(.91rem, 2.4vw, 1.18rem); letter-spacing: .01em; }
.brand picture { flex: none; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.menu > summary { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: white; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 19px; height: 1.5px; background: var(--ink); }
.bars { position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .bars::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; top: 100%; right: 0; width: min(420px, 100%); max-height: 72vh; overflow: auto; padding: 20px 24px; background: white; border: 1px solid var(--line); box-shadow: 0 16px 50px #17203223; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel nav:first-child a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.12rem; }
.menu-panel [aria-current] { color: var(--blue); font-weight: 700; }
.languages { padding: 16px 0; }
.languages p { color: var(--muted); font-size: .8rem; font-weight: 650; margin-bottom: 5px; }
.languages ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.languages a, .email { font-size: .89rem; }
.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(44px, 7vw, 94px) 0; }
.eyebrow { color: var(--blue); font-size: .75rem; letter-spacing: .13em; font-weight: 700; text-transform: uppercase; }
.hero h1 { margin: 16px 0 20px; }
.hero h1 span { display: block; color: var(--ink-accent, var(--blue)); }
.intro { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); max-width: 67ch; }
.cta { display: inline-flex; align-items: center; gap: .75rem; padding: .74rem 1.02rem; border: 1px solid var(--blue); background: var(--blue); color: white; font-weight: 620; text-decoration: none; line-height: 1.35; min-height: 45px; }
.cta:hover { background: var(--ink); color: white; }
.cta.secondary { background: transparent; color: var(--blue); }
.cta.secondary:hover { background: var(--soft); }
.hero .cta { margin-top: 24px; }
.wallet-visual {
  overflow: hidden;
  border-radius: 4px;
  background: url('/assets/wallet-architecture.svg') center / 100% 100% no-repeat,
    radial-gradient(ellipse at center, #215154, #102a32 75%);
}
.wallet-visual img {
  width: 100%;
  transform: translateY(1.3%) scale(.85, .93);
  filter: drop-shadow(0 10px 12px #06151bc4);
}
.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 6vw, 80px);
  padding: clamp(34px, 6vw, 68px) 0 clamp(28px, 5vw, 55px);
}
.editorial-hero .page-intro { padding: 0; }
.editorial-hero .page-intro p + p { color: var(--muted); }
.editorial-image {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
}
.editorial-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.theme-about .editorial-image { border-color: #b7c5d5; }
.section { border-top: 1px solid var(--line); padding: clamp(30px, 5vw, 55px) 0; }
.section h2 { margin-bottom: 20px; }
.services-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 10px; align-items: baseline; text-decoration: none; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.service-row:hover { background: var(--soft); }
.service-row p { margin-top: 7px; color: var(--muted); }
.service-num, .arrow { color: #47638d; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.page-intro { padding: clamp(34px, 7vw, 76px) 0 clamp(25px, 4vw, 42px); max-width: 850px; }
.page-intro .eyebrow { margin-bottom: 12px; }
.page-intro .intro { margin-top: 16px; }
.page-intro .back { display: inline-block; margin-bottom: 16px; }
.prose { max-width: 76ch; padding-bottom: 40px; }
.prose h2 { margin: 1.25rem 0 .6rem; font-size: 1.5rem; }
.prose p, .prose ul { color: var(--muted); }
.prose li + li { margin-top: .42rem; }
.reference { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.ref-meta { display: grid; align-content: start; gap: 4px; color: var(--muted); font-size: .88rem; }
.reference h2 { font-size: 1.55rem; margin-bottom: .45rem; }
.reference p { color: var(--muted); margin: 0 0 .45rem; }
.reference .original { font-style: italic; font-size: .88rem; }
.reference .ref-event { font-weight: 650; color: var(--ink); }
.source-link { color: var(--blue); font-weight: 620; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(24px, 5vw, 65px); padding: 0 0 58px; }
.contact-visual { align-self: start; }
.contact-visual > p { margin-top: 15px; color: var(--muted); }
.contact-visual a { font-weight: 650; color: var(--blue); }
form { min-width: 0; }
form label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 620; }
form input, form select, form textarea { width: 100%; padding: 11px 12px; border: 1px solid #a8b3c4; background: white; border-radius: 0; }
form textarea { resize: vertical; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-pair > label { min-width: 0; }
.hp { position: absolute; left: -9999px; }
.notice, .status { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.status:not(:empty) { margin-top: 8px; overflow-wrap: anywhere; }
.status[data-state="success"], .status[data-state="error"], .status[data-state="validation"] {
  padding: 10px 12px;
  border-inline-start: 3px solid currentColor;
}
.status[data-state="success"] { color: #17553a; background: #eaf7ee; }
.status[data-state="error"], .status[data-state="validation"] { color: #84252a; background: #fff1f0; }
.field-error { color: #84252a; font-size: .88rem; }
form input[aria-invalid="true"] { border-color: #84252a; }
.cta:disabled { opacity: .65; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0; font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.registration .business-type { color: var(--muted); font-size: .95rem; }
.registration dl { display: grid; gap: 14px; margin: 26px 0 0; font-size: .9rem; }
.registration dt { font-weight: 640; color: var(--ink); }
.registration dd { margin: 0; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 34px); }
  .site-header { min-height: 74px; }
  .brand { gap: 9px; }
  .brand img { width: 46px; height: 46px; }
  .hero, .editorial-hero, .contact-layout, .reference { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 28px; }
  h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
  .reference { gap: 8px; }
  .ref-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
  .service-row { grid-template-columns: 27px minmax(0, 1fr) 19px; gap: 6px; }
}
@media (max-width: 440px) {
  .form-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu-panel { padding: 16px; }
}
.record-message { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 12px; }
.services-list h2 { font-size: clamp(1.16rem, 2vw, 1.55rem); }
