/* Original Olympio visual system, served directly by PHP without a Node build. */
html { line-height: 1.5; }
h1,h2,h3,h4,p,ul,ol,dl,dd { margin: 0; }
img { max-width: 100%; }
input,select,textarea { font: inherit; }

@font-face { font-family: "Onest"; src: url("/assets/olympio/Onest-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/olympio/Onest-Medium.woff2") format("woff2"); font-style: normal; font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/olympio/Onest-Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/olympio/Onest-ExtraBold.woff2") format("woff2"); font-style: normal; font-weight: 800 900; font-display: swap; }

:root {
  --ink: #0b1d35;
  --blue: #0d4ba0;
  --blue-dark: #082e67;
  --blue-soft: #e9f1fb;
  --line: #d9e1ec;
  --muted: #607086;
  --paper: #f5f7fa;
  --font-ui: "Onest", Arial, sans-serif;
  --font-serif: var(--font-ui);
  --radius-control: 7px;
  --radius-card: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: #fff; font-family: var(--font-ui); }
button, a { font: inherit; }
button, input, select, textarea { border-radius: var(--radius-control); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #79b8f5; outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(1440px, calc(100% - 48px)); height: 82px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(22px,2.2vw,40px); }
.brand { min-width: 0; display: inline-flex; align-items: center; }
.brand-logo-image { display: block; width: clamp(190px,15vw,218px); height: auto; }
.nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(14px,1.55vw,28px); font-size: 12px; font-weight: 700; }
.nav a { white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav-mobile-actions { display: none; }
.nav-lab { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.link-button { border: 0; background: transparent; font-size: 12px; font-weight: 700; color: var(--ink); }
.button { border: 1px solid var(--blue); border-radius: var(--radius-control); background: var(--blue); color: #fff; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 800; font-size: 13px; transition: all .2s; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 12px; }
.button-light { color: var(--blue); background: #fff; border-color: #b9c9dc; }
.button-light:hover { color: #fff; }
.button-white { background: #fff; color: var(--blue-dark); border-color: #fff; }
.button-white:hover { background: #dfeafa; color: var(--blue-dark); border-color: #dfeafa; }
.button-wide { width: 100%; }
.menu-button { display: none; background: transparent; border: 0; width: 38px; height: 38px; }
.menu-button span { display: block; height: 2px; background: var(--ink); margin: 7px 0; }

:where(
  [class$="-card"],
  [class*="-card "],
  [class$="-panel"],
  [class*="-panel "],
  .hero-audit,
  .expert-photo,
  .expert-photo span,
  .portfolio-map,
  .org-card,
  .registry-result,
  .profile-sidebar nav,
  .checkout-summary,
  .auth-shell,
  .admin-actions,
  .admin-toolbar
) { border-radius: var(--radius-card); }

.hero { position: relative; overflow: hidden; min-height: 690px; color: #fff; background: var(--blue-dark); }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,rgba(5,29,67,.98) 0%,rgba(5,29,67,.93) 33%,rgba(5,29,67,.55) 56%,rgba(5,29,67,.12) 82%); }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px); background-size: 64px 64px; }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-grid { min-height: 690px; display: flex; align-items: center; padding-block: 72px; position: relative; z-index: 2; }
.hero-copy { width: min(610px, 52vw); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #98c1f5; font-size: 10px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--blue); }
.hero h1 { max-width: 680px; margin: 24px 0 25px; font-family: var(--font-serif); font-size: clamp(44px, 4.6vw, 64px); line-height: 1.06; font-weight: 400; letter-spacing: -2px; }
.hero h1 span { color: #86b9f4; }
.hero-copy > p { max-width: 620px; font-size: 18px; line-height: 1.7; color: #c9d8eb; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.trust-line { display: flex; gap: 32px; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: #aebed2; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.trust-line b { display: block; margin-bottom: 4px; color: #fff; font-size: 18px; letter-spacing: 0; }
.hero-audit { margin-top: 28px; padding: 14px 14px 14px 18px; width: min(100%, 520px); display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid rgba(255,255,255,.22); background: rgba(4,25,58,.54); backdrop-filter: blur(8px); }
.hero-audit > span { color: #b7c9df; font-size: 10px; line-height: 1.5; }
.hero-audit b { display: block; color: #fff; font-size: 11px; letter-spacing: .2px; }
.hero-audit button, .hero-audit a { flex: 0 0 auto; padding: 11px 14px; border: 0; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; }
.hero-audit i { margin-left: 10px; font-style: normal; }
.hero-rule { height: 5px; background: linear-gradient(90deg,#2d79ca 0 34%,#82b5ee 34% 46%,#fff 46% 100%); opacity: .7; }

.section { padding: 104px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 38px; }
.section h2, .portfolio-section h2, .org-card h2 { margin: 14px 0 0; max-width: 700px; font-family: var(--font-serif); font-size: clamp(36px,4vw,50px); line-height: 1.12; font-weight: 400; letter-spacing: -1px; }
.section-head > p { max-width: 420px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; }
.filter { min-height: 42px; border: 1px solid var(--line); background: #fff; padding: 0 17px; color: #536279; font-size: 11px; font-weight: 800; }
.filter.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.program-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.program-card { min-height: 310px; padding: 26px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: .25s; }
.program-card:hover { border-color: #7ea9d8; box-shadow: 0 14px 40px rgba(19,53,93,.1); transform: translateY(-3px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.card-number { color: #9aacbf; font-family: var(--font-serif); font-size: 16px; }
.card-type { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; text-align: right; }
.program-card h3 { margin: 28px 0 12px; font-family: var(--font-serif); font-size: 24px; line-height: 1.25; font-weight: 400; }
.program-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.card-meta { margin-top: auto; padding-top: 22px; color: #718098; font-size: 10px; font-weight: 700; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.card-footer b { font-size: 14px; }
.card-footer button, .card-footer a { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; }
.catalog-link { display: block; margin: 34px auto 0; border: 0; background: transparent; color: var(--blue); font-weight: 800; font-size: 12px; }
.scenario-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.scenario-card { min-height: 330px; padding: 30px 26px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.scenario-card:hover { border-color: #7ea9d8; box-shadow: 0 14px 40px rgba(19,53,93,.1); transform: translateY(-3px); }
.scenario-card > span { color: #80a8d7; font-size: 13px; font-weight: 800; }
.scenario-card h3 { margin: 38px 0 14px; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; font-weight: 500; }
.scenario-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.scenario-card a { min-height: 44px; margin-top: auto; padding-top: 24px; display: flex; align-items: end; justify-content: space-between; gap: 18px; color: var(--blue); font-size: 12px; font-weight: 800; }
.scenario-card i { font-size: 18px; font-style: normal; }

.expert-section { padding: 0 0 104px; background: #fff; }
.expert-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; align-items: center; }
.expert-photo { position: relative; min-height: 590px; background: var(--blue-soft); }
.expert-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.expert-photo span { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 16px 18px; color: #fff; background: rgba(7,26,50,.86); font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.expert-copy h2 { margin: 14px 0 22px; max-width: 600px; font-family: var(--font-serif); font-size: clamp(36px,4vw,50px); line-height: 1.12; font-weight: 400; letter-spacing: -1px; }
.expert-copy > p { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.expert-list { margin: 30px 0 12px; border-top: 1px solid var(--line); }
.expert-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.expert-list b { color: #7aa8dc; font-family: var(--font-serif); font-size: 15px; }
.expert-list span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.expert-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }

.portfolio-section { padding: 100px 0; background: var(--blue); color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.portfolio-copy p { max-width: 500px; margin: 25px 0 34px; color: #d1e0f4; font-size: 15px; line-height: 1.8; }
.portfolio-map { background: #fff; color: var(--ink); padding: 32px; }
.map-row { padding: 17px 0; border-bottom: 1px solid var(--line); }
.map-row:first-child { padding-top: 0; }
.map-row > div:first-child { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.map-row span { color: var(--blue); font-size: 10px; font-weight: 800; }
.progress { height: 4px; margin-top: 12px; background: #e6edf5; }
.progress i { display: block; height: 100%; background: var(--blue); }
.map-note { margin-top: 24px; padding: 18px; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.map-note b, .map-note span { display: block; font-size: 11px; }
.map-note span { margin-top: 7px; color: var(--muted); line-height: 1.5; }

.documents { background: var(--paper); }
.document-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.certificate { padding: 35px; background: #dbe6f3; }
.cert-frame { min-height: 345px; border: 2px solid var(--blue-dark); background: #fff; padding: 35px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; box-shadow: 0 12px 30px rgba(20,42,68,.12); }
.cert-frame::after { content: "O"; position: absolute; right: 30px; bottom: 30px; display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-family: var(--font-serif); font-size: 22px; }
.cert-brand { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.certificate-brand-logo { width: 180px; height: auto; margin: 0 auto 8px; }
.cert-frame small { margin-top: 35px; color: #7c899a; letter-spacing: 1.3px; font-size: 8px; }
.cert-frame h3 { margin: 8px 0; color: var(--blue-dark); font-family: var(--font-serif); font-size: 36px; letter-spacing: 4px; font-weight: 400; }
.cert-frame p { margin: 0 0 22px; color: #657389; font-size: 10px; }
.cert-frame strong { font-family: var(--font-serif); font-size: 17px; }
.cert-content { width: 100%; display: flex; flex-direction: column; align-items: center; }
.cert-recipient-details { margin: 12px 0 4px; display: grid; gap: 4px; color: #52677f; font-size: 10px; line-height: 1.45; }
.cert-registry-number { margin-top: 12px; color: #52677f; font-size: 9px; font-weight: 700; }
.cert-line { width: 180px; height: 1px; margin: 25px 0 12px; background: #afbac9; }
.cert-frame > span { color: #7f8a99; font-size: 8px; }
.document-point { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid #ced8e5; }
.document-point > span { color: var(--blue); font-family: var(--font-serif); }
.document-point h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.document-point p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.text-action { margin-top: 28px; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 800; }

.org-section { padding: 0 0 104px; background: var(--paper); }
.org-card { padding: 52px 58px; background: var(--blue-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.org-card h2 { max-width: 700px; font-size: 40px; }
.org-card p { max-width: 650px; color: #b9cbe1; font-size: 13px; line-height: 1.7; }
.org-actions { min-width: 245px; text-align: center; }
.org-actions .button { width: 100%; }
.org-actions span { display: block; margin-top: 12px; color: #93a9c4; font-size: 9px; }
.home-trust-section { padding: 96px 0; background: #fff; }
.home-trust-heading { margin-bottom: 34px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.home-trust-heading h2 { max-width: 760px; margin: 14px 0 0; font-family: var(--font-serif); font-size: clamp(34px,3.7vw,48px); line-height: 1.14; font-weight: 500; letter-spacing: -1px; }
.home-trust-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.home-trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.home-trust-grid article { min-height: 250px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper); }
.home-trust-grid article > span { color: #80a8d7; font-size: 12px; font-weight: 800; }
.home-trust-grid h3 { margin: 26px 0 12px; font-family: var(--font-serif); font-size: 23px; font-weight: 500; }
.home-trust-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.home-trust-grid a { min-height: 44px; margin-top: auto; padding-top: 20px; display: flex; align-items: end; color: var(--blue); font-size: 12px; font-weight: 800; }
.home-legal-note { margin: 22px 0 0; padding: 18px 20px; border-left: 3px solid var(--blue); color: #4c5e74; background: var(--blue-soft); font-size: 13px; line-height: 1.7; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.faq-grid > div:first-child > p { max-width: 350px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; border: 0; background: transparent; padding: 21px 0; display: flex; justify-content: space-between; gap: 20px; text-align: left; color: var(--ink); font-size: 13px; font-weight: 800; }
.faq-item i { color: var(--blue); font-size: 22px; font-style: normal; font-weight: 400; }
.faq-item p { margin: -5px 40px 22px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

footer { padding: 62px 0 25px; color: #c2cede; background: #071a32; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 65px; }
.brand-footer { color: #fff; }
.brand-footer .brand-logo-image { filter: none; background: white; padding: 8px; border-radius: 4px; }
.footer-grid > div > p { max-width: 330px; font-size: 11px; line-height: 1.7; }
.footer-grid b { display: block; margin-bottom: 18px; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid a, .footer-grid > div > span { display: block; margin: 11px 0; font-size: 10px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; color: #75869c; font-size: 9px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 390px; padding: 15px 18px; color: #fff; background: var(--ink); box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 12px; animation: toast-in .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Clickable MVP flows */
.flow-page { min-height: 100vh; background: var(--paper); }
.flow-header { background: #fff; border-bottom: 1px solid var(--line); }
.flow-header-inner { min-height: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.flow-label { color: #718096; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.flow-back { justify-self: end; color: var(--blue); font-size: 11px; font-weight: 800; }
.flow-hero { padding: 72px 0; border-bottom: 1px solid var(--line); background: #fff; }
.flow-hero.compact { padding-block: 54px; }
.flow-hero-grid { display: grid; grid-template-columns: 1fr 280px; gap: 70px; align-items: end; }
.flow-hero h1 { max-width: 850px; margin: 14px 0 18px; font-family: var(--font-serif); font-size: clamp(42px,5vw,66px); line-height: 1.02; font-weight: 400; letter-spacing: -2px; }
.flow-hero.compact h1 { font-size: clamp(38px,4.5vw,56px); }
.flow-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.flow-note { padding: 20px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.flow-note b, .flow-note span { display: block; }
.flow-note b { color: var(--blue-dark); font-size: 11px; }
.flow-note span { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.flow-workspace { min-height: 520px; padding: 70px 0 100px; }
.flow-progress { height: 4px; background: #dfe7f0; overflow: hidden; }
.flow-progress i { display: block; height: 100%; background: var(--blue); transition: width .35s ease; }
.question-count { display: block; margin: 28px 0 12px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.audit-card { max-width: 820px; margin: 0 auto; padding: 42px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 55px rgba(17,50,89,.08); }
.audit-card h2, .audit-result h2, .quiz-card h2, .quiz-result h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(30px,4vw,44px); line-height: 1.15; font-weight: 400; }
.audit-card > p { max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.answer-list { margin-top: 28px; border-top: 1px solid var(--line); }
.answer-list button { width: 100%; min-height: 60px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink); text-align: left; font-size: 12px; font-weight: 700; }
.answer-list button:hover { color: var(--blue); padding-left: 10px; }
.answer-list i { color: var(--blue); font-size: 16px; font-style: normal; }
.audit-result { max-width: 920px; margin: 0 auto; padding: 52px; display: grid; grid-template-columns: 230px 1fr; gap: 60px; align-items: center; border: 1px solid var(--line); background: #fff; }
.audit-result p, .quiz-result p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.score-ring { width: 210px; height: 210px; padding: 14px; border-radius: 50%; background: conic-gradient(var(--blue) var(--score),#dfe7f0 0); }
.score-ring::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.score-ring span { position: absolute; width: 182px; height: 182px; margin-top: -182px; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.score-ring b { display: block; color: var(--blue-dark); font-family: var(--font-serif); font-size: 44px; font-weight: 400; letter-spacing: -1px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button-outline { color: var(--blue); border: 1px solid var(--blue); background: #fff; }

.quiz-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.quiz-layout aside { padding: 28px; color: #fff; background: var(--blue-dark); }
.quiz-layout aside > b, .quiz-layout aside > span { display: block; color: #9fb6d3; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.quiz-layout aside > strong { display: block; margin: 24px 0; font-family: var(--font-serif); font-size: 54px; font-weight: 400; }
.quiz-layout aside > strong small { color: #8fa5c0; font-size: 18px; }
.quiz-layout aside .flow-progress { margin-bottom: 26px; background: rgba(255,255,255,.14); }
.quiz-layout aside .flow-progress i { background: #84b9f3; }
.quiz-card { min-height: 440px; padding: 44px; border: 1px solid var(--line); background: #fff; }
.quiz-answers { margin-top: 34px; display: grid; gap: 10px; }
.quiz-answers button { min-height: 66px; padding: 12px 18px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; }
.quiz-answers button:hover { border-color: #8aadd4; }
.quiz-answers button i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-style: normal; font-weight: 800; }
.quiz-answers button.correct { border-color: #5d9e78; background: #f0f8f3; }
.quiz-answers button.wrong { border-color: #bd7272; background: #fff5f5; }
.quiz-feedback { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.quiz-feedback > span { max-width: 420px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.quiz-result { max-width: 760px; margin: 0 auto; padding: 56px; border: 1px solid var(--line); background: #fff; text-align: center; }
.quiz-result h2 { margin-top: 14px; font-size: 70px; }
.quiz-result .result-actions { justify-content: center; }
.result-kicker { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }

.editor-workspace { padding: 54px 0 100px; }
.editor-grid { display: grid; grid-template-columns: 460px 1fr; gap: 26px; align-items: start; }
.editor-form { padding: 32px; border: 1px solid var(--line); background: #fff; }
.editor-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 14px; }
.editor-steps button { min-width: 0; min-height: 55px; padding: 7px 4px; display: grid; justify-items: center; gap: 5px; border: 0; border-bottom: 2px solid #dbe4ee; color: #8190a3; background: transparent; font-size: 9px; font-weight: 700; }
.editor-steps button:disabled { cursor: default; opacity: .55; }
.editor-steps button.active { border-color: var(--blue); color: var(--blue); }
.editor-steps button.done { border-color: #4d916a; color: #397553; }
.editor-steps i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-style: normal; }
.editor-draft-state { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #718097; font-size: 9px; }
.editor-draft-state b { color: var(--blue); }
.editor-step-panel { min-height: 360px; }
.editor-step-actions { margin-top: 28px; display: flex; justify-content: flex-end; gap: 10px; }
.editor-step-actions .editor-submit { width: auto; flex: 1; }
.editor-step-error { margin-top: 20px; }
.form-head { margin-bottom: 28px; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.form-head > span { color: #79a8dc; font-family: var(--font-serif); }
.form-head h2 { margin: 0; font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.form-head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.service-preset-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.service-preset-list button { min-height: 54px; padding: 10px 12px; display: grid; grid-template-columns: 27px 1fr; gap: 11px; align-items: center; border: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.service-preset-list button:hover { border-color: #8eb2d9; }
.service-preset-list button.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.service-preset-list i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #b7c4d3; border-radius: 50%; color: #fff; font-size: 9px; font-style: normal; }
.service-preset-list button.active i { border-color: var(--blue); background: var(--blue); }
.service-preset-list b, .service-preset-list small { display: block; }
.service-preset-list b { font-size: 11px; }
.service-preset-list small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }
.form-divider { margin-top: 28px; padding-top: 21px; display: grid; grid-template-columns: 30px 1fr; gap: 14px; border-top: 1px solid var(--line); }
.form-divider span { color: #79a8dc; font-family: var(--font-serif); }
.form-divider b { font-size: 11px; }
.editor-form label { display: grid; gap: 7px; margin-top: 17px; color: #4d5c70; font-size: 10px; font-weight: 800; }
.editor-form input, .editor-form select, .editor-form textarea { width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px 13px; color: var(--ink); font: inherit; font-size: 12px; outline: none; }
.editor-form input:focus, .editor-form select:focus, .editor-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,75,160,.08); }
.editor-form textarea { resize: vertical; line-height: 1.5; }
.olympiad-select-group { position: relative; display: grid; gap: 7px; margin-top: 17px; color: #4d5c70; font-size: 10px; font-weight: 800; }
.olympiad-select-group > label { margin: 0; }
.olympiad-select-group > small { color: #8a97a8; font-size: 8px; font-weight: 500; line-height: 1.5; }
.olympiad-combobox { position: relative; }
.olympiad-combobox input { padding-right: 42px; }
.olympiad-search-mark { position: absolute; top: 50%; right: 14px; translate: 0 -50%; color: var(--blue); font-size: 21px; font-weight: 400; pointer-events: none; }
.olympiad-combobox-options { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0; max-height: 250px; overflow-y: auto; padding: 6px; border: 1px solid #b9c9dc; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(18, 46, 82, .16); }
.olympiad-combobox-options button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-size: 11px; font-weight: 600; text-align: left; }
.olympiad-combobox-options button:hover, .olympiad-combobox-options button:focus, .olympiad-combobox-options button.active { background: var(--blue-soft); color: var(--blue); outline: none; }
.olympiad-combobox-options > span { display: block; padding: 12px; color: var(--muted); font-size: 10px; text-align: center; }
.editor-form label > small { color: #8a97a8; font-size: 8px; font-weight: 500; line-height: 1.5; }
.design-picker { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 14px; }
.design-picker button { min-width: 0; padding: 10px 7px; border: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.design-picker button.active { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.design-picker button > i { display: block; width: 100%; height: 72px; margin-bottom: 8px; border: 3px double var(--blue); background: #f8fbff; }
.design-picker button.design-modern > i { border: 0; border-top: 8px solid var(--blue); border-left: 3px solid #6ea9e7; background: #eaf2fb; }
.design-picker button.design-formal > i { border-color: #74634d; background: #f4efe5; }
.design-picker button.design-academy > i { border: 4px double #173a68; background: #f8fafc; }
.design-picker button.design-navy > i { border: 4px solid #132f54; background: #eef3f8; }
.design-picker button.design-graphite > i { border: 0; border-left: 7px solid #343f4d; border-right: 2px solid #2465a8; background: #eef0f2; }
.design-picker button.design-royal > i { border: 0; border-top: 8px solid #0d4ba0; border-bottom: 3px solid #79aae0; background: #f7faff; }
.design-picker button.design-ministry > i { border: 5px double #31445b; background: #f3f1ec; }
.design-picker button.design-contour > i { border: 1px solid #274f7e; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #a9bad0; background: #fff; }
.design-picker button.design-columns > i { border: 0; border-left: 8px double #153f72; border-right: 8px double #153f72; background: #f6f9fc; }
.design-picker button.design-horizon > i { border: 0; border-top: 7px solid #153f72; border-bottom: 7px solid #153f72; background: #fff; }
.design-picker button.design-silver > i { border: 3px double #697889; background: #edf0f3; }
.design-picker button.design-registry > i { border: 2px solid #193957; box-shadow: inset 0 -8px 0 #193957; background: #f7f9fb; }
.design-picker b, .design-picker small { display: block; overflow: hidden; text-overflow: ellipsis; }
.design-picker b { font-size: 8px; white-space: nowrap; }
.design-picker small { margin-top: 3px; color: var(--muted); font-size: 6px; line-height: 1.3; }
.editor-total { margin: 26px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.editor-total b { color: var(--ink); font-size: 18px; }
.editor-total span small { color: #8794a5; font-size: 8px; }
.editor-submit { width: 100%; }
.editor-account-box { padding: 16px; display: grid; gap: 12px; border: 1px solid #cbd8e7; border-radius: var(--radius-card); background: #f7faff; }
.editor-account-box > label { margin: 0; }
.editor-account-box > small, .account-status { display: block; color: var(--muted); font-size: 9px; line-height: 1.5; }
.editor-attempt-note { margin-top: 16px; padding: 14px 16px; display: grid; gap: 5px; border: 1px solid #e4c873; border-radius: var(--radius-control); color: #624b12; background: #fff9e8; }
.editor-attempt-note.success { border-color: #b9d8c3; color: #2f6d49; background: #f1f8f4; }
.editor-attempt-note b { font-size: 12px; }
.editor-attempt-note span { color: inherit; font-size: 10px; line-height: 1.5; }
.editor-attempt-note a { width: fit-content; min-height: 36px; display: inline-flex; align-items: center; color: var(--blue); font-size: 10px; font-weight: 800; }
.authenticated-email { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.authenticated-email span { color: var(--muted); font-size: 10px; }
.authenticated-email b { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; text-align: right; }
.account-status.success { color: #397553; }
.optional-password { padding-top: 12px; display: grid; gap: 12px; border-top: 1px solid #d7e1ed; }
.optional-password > label:first-child { display: flex; align-items: center; gap: 9px; font-size: 10px; cursor: pointer; }
.optional-password > label:first-child input { width: 17px; height: 17px; margin: 0; padding: 0; flex: 0 0 auto; border: 0; border-radius: 4px; box-shadow: none; accent-color: var(--blue); }
.optional-password > label:not(:first-child) { margin: 0; }
.optional-password > small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.editor-submit:disabled { cursor: default; border-color: #6d819b; background: #6d819b; transform: none; }
.editor-form > small { display: block; margin-top: 12px; color: #8997a8; font-size: 8px; line-height: 1.5; text-align: center; }
.bundle-offer { margin-top: 28px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.bundle-offer > div { padding: 11px 8px; border-right: 1px solid var(--line); background: #fff; text-align: center; }
.bundle-offer > div:last-child { border-right: 0; }
.bundle-offer span, .bundle-offer b { display: block; }
.bundle-offer span { color: #7c8999; font-size: 7px; text-transform: uppercase; }
.bundle-offer b { margin-top: 4px; color: var(--ink); font-size: 13px; }
.bundle-offer > div.current { background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.bundle-offer > div.current b { color: var(--blue); }
.bundle-offer > div.completed { background: #f1f8f4; }
.bundle-offer > div.completed b { color: #3d7e59; }
.document-batch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.batch-head, .batch-total { display: flex; justify-content: space-between; align-items: center; }
.batch-head b { font-size: 11px; }
.batch-head span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.batch-item { padding: 12px 0; display: grid; grid-template-columns: 24px 1fr auto 20px; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.batch-item > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-style: normal; font-weight: 800; }
.batch-item > span { min-width: 0; }
.batch-item > span b, .batch-item > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-item > span b { font-size: 9px; }
.batch-item > span small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.batch-item > strong { color: var(--blue-dark); font-size: 10px; }
.batch-item > button { padding: 0; border: 0; color: #9a6a6a; background: transparent; font-size: 18px; line-height: 1; }
.batch-total { padding-top: 16px; font-size: 11px; }
.batch-total b { font-size: 17px; }
.batch-saving { margin-top: 12px; padding: 10px 12px; color: #397553; background: #f0f8f3; font-size: 8px; line-height: 1.5; text-align: center; }
.batch-delivery-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.editor-review { margin: 0; border-top: 1px solid var(--line); }
.editor-review > div { padding: 13px 0; display: grid; grid-template-columns: 110px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.editor-review dt { color: #7d8b9e; font-size: 9px; font-weight: 700; }
.editor-review dd { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.mobile-preview-button { display: none; width: 100%; margin-top: 18px; }
.editor-preview { padding: 18px; border: 1px solid var(--line); background: #e6edf5; }
.preview-toolbar { padding: 0 4px 16px; display: flex; justify-content: space-between; color: #68788d; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.preview-toolbar > button { display: none; width: 44px; height: 44px; padding: 0; border: 0; color: var(--ink); background: #fff; font-size: 26px; }
.editor-certificate { padding: 48px; display: grid; place-items: center; background: #d5e0ec; }
.editor-certificate .cert-frame { width: min(100%, 570px); min-height: 0; aspect-ratio: 210 / 297; justify-content: center; overflow: hidden; }
.editor-certificate .cert-frame h3 { max-width: 90%; font-size: clamp(30px,4vw,50px); overflow-wrap: anywhere; }
.editor-certificate .cert-frame p { max-width: 480px; font-size: 12px; }
.editor-certificate .cert-frame strong { max-width: 90%; font-size: 22px; overflow-wrap: anywhere; }
.editor-certificate .cert-frame > span { max-width: 80%; font-size: 10px; overflow-wrap: anywhere; }
.editor-certificate .cert-frame .award-label { margin: 24px 0 8px; color: #6f7d8e; font-family: var(--font-serif); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.editor-certificate .cert-frame em { margin-top: 28px; color: #8390a1; font-size: 8px; font-style: normal; }
.editor-certificate.design-modern .cert-frame { border: 0; border-top: 18px solid var(--blue-dark); border-left: 7px solid #6fa9e7; background: linear-gradient(145deg,#fff 0 72%,#eaf2fb 72%); box-shadow: 0 16px 35px rgba(10,45,91,.18); }
.editor-certificate.design-modern .cert-frame::after { border-radius: 0; border: 0; color: #fff; background: var(--blue); }
.editor-certificate.design-modern .cert-frame h3 { font-family: var(--font-serif); font-weight: 800; letter-spacing: -1px; }
.editor-certificate.design-modern .cert-line { height: 3px; background: #70a9e4; }
.editor-certificate.design-formal { background: #ded8cc; }
.editor-certificate.design-formal .cert-frame { border: 7px double #75634a; color: #322b22; background: #fbf7ee; box-shadow: 0 14px 34px rgba(69,55,38,.16); }
.editor-certificate.design-formal .cert-frame::after { border-color: #75634a; color: #75634a; }
.editor-certificate.design-formal .cert-brand, .editor-certificate.design-formal .cert-frame h3 { color: #67553e; }
.editor-certificate.design-formal .cert-line { background: #aa9a85; }
.editor-certificate.design-formal .cert-frame .award-label { color: #746957; }
.issued-document-toolbar { padding: 16px 0; border-bottom: 1px solid var(--line); background: #fff; }
.issued-document-toolbar > .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.issued-document-toolbar > .shell > span { color: var(--muted); font-size: 13px; }
.issued-document-toolbar > .shell > span small { display: block; margin-top: 4px; color: #a43131; }
.issued-document-toolbar > .shell > div { display: flex; align-items: center; gap: 16px; }
.issued-document-toolbar a { color: var(--blue); font-size: 13px; font-weight: 800; }
.issued-document-toolbar button:not(.button) { padding: 10px 14px; color: var(--blue); border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.issued-document-toolbar button:disabled { cursor: wait; opacity: .65; }
.issued-document-sheet { padding: 42px 24px 70px; overflow-x: auto; background: var(--paper); }
.issued-certificate { width: min(100%, 794px); min-height: 1123px; margin: 0 auto; padding: 42px; display: grid; place-items: center; background: #d5e0ec; box-shadow: 0 22px 55px rgba(17,45,79,.16); }
.issued-certificate .cert-frame { width: 100%; height: 100%; min-height: 1039px; justify-content: center; }
.issued-certificate .cert-frame h3 { max-width: 90%; font-size: 50px; overflow-wrap: anywhere; }
.issued-certificate .cert-frame p { max-width: 600px; font-size: 15px; line-height: 1.7; }
.issued-certificate .cert-frame strong { max-width: 90%; font-size: 28px; overflow-wrap: anywhere; }
.issued-certificate .cert-frame > span { max-width: 85%; font-size: 13px; overflow-wrap: anywhere; }
.issued-certificate .cert-recipient-details { margin-top: 16px; gap: 5px; font-size: 14px; }
.issued-certificate .award-label { margin: 30px 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.issued-certificate .cert-frame > em { margin-top: 24px; color: #8390a1; font-size: 11px; font-style: normal; }
.issued-certificate-meta { width: min(80%, 560px); margin-top: 26px; display: flex; justify-content: space-between; gap: 20px; color: #647389; font-size: 12px; }
.issued-qr { position: absolute; left: 34px; bottom: 30px; width: 120px; height: 120px; padding: 4px; display: grid; place-items: center; border: 1px solid #c7d4e2; background: #fff; }
.issued-qr img,
.issued-qr canvas { display: block; width: 112px !important; height: 112px !important; }
.certificate-auth-block { position: absolute; z-index: 3; right: 8%; bottom: 14%; left: 8%; min-height: 12%; display: grid; grid-template-columns: 1fr 1.35fr 1.15fr; gap: 2%; align-items: end; color: #193957; }
.certificate-auth-qr { display: grid; justify-items: center; gap: 4px; font-size: 7px; font-style: normal; font-weight: 700; }
.certificate-auth-qr > div { padding: 3px; background: #fff; }
.certificate-auth-qr img, .certificate-auth-qr canvas { display: block; max-width: 100%; height: auto !important; }
.certificate-auth-sign { position: relative; min-height: 92px; user-select: none; -webkit-user-select: none; pointer-events: none; }
.certificate-auth-composite { position: absolute; left: 50%; bottom: 0; width: 146px; height: auto; transform: translateX(-50%); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
.certificate-preview-watermark { position: absolute; z-index: 6; top: 46%; left: 50%; display: grid; color: rgba(23,58,104,.13); font-size: clamp(42px,7vw,78px); font-weight: 800; line-height: .82; letter-spacing: 6px; text-align: center; transform: translate(-50%,-50%) rotate(-17deg); pointer-events: none; user-select: none; }
.certificate-preview-watermark span { display: block; }
.certificate-auth-person { display: grid; gap: 4px; align-content: end; text-align: left; font-size: 8px; line-height: 1.35; }
.certificate-auth-person b, .certificate-auth-person span, .certificate-auth-person strong { font-size: inherit; }
.certificate-auth-person strong { margin-top: 2px; }
.editor-certificate .cert-frame .certificate-auth-person > b,
.editor-certificate .cert-frame .certificate-auth-person > span,
.editor-certificate .cert-frame .certificate-auth-person > strong { max-width: none; margin-left: 0; margin-right: 0; font-size: 8px; line-height: 1.35; }
.issued-certificate .certificate-auth-block { right: 7%; bottom: 13.5%; left: 7%; min-height: 145px; }
.issued-certificate .certificate-auth-qr { font-size: 10px; }
.issued-certificate .certificate-auth-sign { min-height: 142px; }
.issued-certificate .certificate-auth-composite { width: 226px; }
.issued-certificate .certificate-auth-person { gap: 6px; font-size: 12px; }
.issued-certificate .cert-frame .certificate-auth-person > b,
.issued-certificate .cert-frame .certificate-auth-person > span,
.issued-certificate .cert-frame .certificate-auth-person > strong { max-width: none; font-size: 12px; line-height: 1.35; }
.issued-certificate.is-void { position: relative; filter: grayscale(.8); }
.issued-certificate.is-void::after { content: "АННУЛИРОВАН"; position: absolute; z-index: 5; left: 8%; right: 8%; top: 46%; padding: 18px; border: 6px solid rgba(152,33,48,.72); color: rgba(152,33,48,.78); background: rgba(255,255,255,.82); text-align: center; font-size: 44px; font-weight: 800; letter-spacing: 5px; transform: rotate(-10deg); }
.registry-result.revoked { border-top: 4px solid #a63142; }
.registry-result.revoked .registry-status { color: #a63142; }
.issued-certificate.design-modern .cert-frame { border: 0; border-top: 18px solid var(--blue-dark); border-left: 7px solid #6fa9e7; background: linear-gradient(145deg,#fff 0 72%,#eaf2fb 72%); }
.issued-certificate.design-modern .cert-frame::after { border-radius: 0; border: 0; color: #fff; background: var(--blue); }
.issued-certificate.design-formal { background: #ded8cc; }
.issued-certificate.design-formal .cert-frame { border: 7px double #75634a; color: #322b22; background: #fbf7ee; }
.issued-certificate.design-formal .cert-frame::after { border-color: #75634a; color: #75634a; }
.issued-certificate.design-formal .cert-brand,
.issued-certificate.design-formal .cert-frame h3 { color: #67553e; }

/* Ten additional restrained A4 diploma systems. The same classes are used by
   the editor preview, olympiad result and issued-document page. */
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame {
  position: relative;
  background: #fff;
}
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .certificate-brand-logo {
  position: absolute;
  z-index: 2;
  top: 14%;
  left: 50%;
  display: block;
  margin: 0;
  clip-path: inset(0 27% 0 0);
  transform: translateX(-36.5%);
}
.certificate.design-academy { background: #dce4ed; }
.certificate.design-academy .cert-frame { border: 8px double #173a68; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #9aaec5; }
.certificate.design-academy .cert-frame h3 { color: #173a68; letter-spacing: 5px; }
.certificate.design-academy .cert-line { background: #6d89a9; }

.certificate.design-navy { background: #132f54; }
.certificate.design-navy .cert-frame { border: 2px solid #132f54; box-shadow: inset 0 0 0 8px #eef3f8, inset 0 0 0 9px #8ca0b7; }
.certificate.design-navy .cert-frame h3 { color: #132f54; font-weight: 700; }
.certificate.design-navy .cert-line { width: 230px; height: 2px; background: #132f54; }

.certificate.design-graphite { background: #d9dde2; }
.certificate.design-graphite .cert-frame { border: 0; border-left: 11px solid #343f4d; border-right: 3px solid #2b69a7; box-shadow: 0 14px 34px rgba(40,48,58,.16); }
.certificate.design-graphite .cert-frame h3 { color: #343f4d; font-weight: 700; letter-spacing: 1px; }
.certificate.design-graphite .cert-frame::after { border-color: #343f4d; color: #343f4d; }
.certificate.design-graphite .cert-line { height: 3px; background: #2b69a7; }

.certificate.design-royal { background: #0d4ba0; }
.certificate.design-royal .cert-frame { border: 0; border-top: 16px solid #0d4ba0; border-bottom: 6px solid #79aae0; box-shadow: inset 0 0 0 1px #b5c8de; }
.certificate.design-royal .cert-frame h3 { color: #0d4ba0; font-weight: 800; letter-spacing: 1px; }
.certificate.design-royal .cert-frame::after { color: #fff; border: 0; background: #0d4ba0; }
.certificate.design-royal .cert-line { width: 250px; height: 3px; background: #79aae0; }

.certificate.design-ministry { background: #d9d8d3; }
.certificate.design-ministry .cert-frame { color: #263747; border: 9px double #31445b; background: #fff; box-shadow: inset 0 0 0 1px #a6afb8; }
.certificate.design-ministry .cert-frame h3 { color: #263747; font-weight: 700; letter-spacing: 4px; }
.certificate.design-ministry .cert-frame::after { border-color: #657485; color: #657485; }
.certificate.design-ministry .cert-line { background: #657485; }

.certificate.design-contour { background: #f2f5f8; }
.certificate.design-contour .cert-frame { border: 1px solid #274f7e; box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 11px #a9bad0; }
.certificate.design-contour .cert-frame h3 { color: #274f7e; font-weight: 500; letter-spacing: 6px; }
.certificate.design-contour .cert-frame::after { border-width: 1px; border-color: #8da4bf; color: #274f7e; }
.certificate.design-contour .cert-line { height: 1px; background: #8da4bf; }

.certificate.design-columns { background: #dce6f0; }
.certificate.design-columns .cert-frame { border: 1px solid #a9b8c8; border-left: 12px double #153f72; border-right: 12px double #153f72; }
.certificate.design-columns .cert-frame h3 { color: #153f72; font-weight: 700; }
.certificate.design-columns .cert-frame::after { border-color: #153f72; color: #153f72; }
.certificate.design-columns .cert-line { width: 260px; background: #7892ae; }

.certificate.design-horizon { background: #e5ebf2; }
.certificate.design-horizon .cert-frame { border: 0; border-top: 15px solid #153f72; border-bottom: 15px solid #153f72; box-shadow: inset 0 6px 0 #8eb5df, inset 0 -6px 0 #8eb5df; }
.certificate.design-horizon .cert-frame h3 { color: #153f72; font-weight: 700; letter-spacing: 3px; }
.certificate.design-horizon .cert-frame::after { border-color: #153f72; color: #153f72; }
.certificate.design-horizon .cert-line { height: 2px; background: #153f72; }

.certificate.design-silver { background: #d8dde2; }
.certificate.design-silver .cert-frame { color: #34404c; border: 7px double #697889; background: #fff; box-shadow: inset 0 0 0 5px #edf0f3; }
.certificate.design-silver .cert-frame h3 { color: #344f6e; font-weight: 600; letter-spacing: 4px; }
.certificate.design-silver .cert-frame::after { border-color: #697889; color: #344f6e; }
.certificate.design-silver .cert-line { background: #8795a5; }

.certificate.design-registry { background: #193957; }
.certificate.design-registry .cert-frame { border: 3px solid #193957; box-shadow: inset 0 0 0 1px #8ca3b9; }
.certificate.design-registry .cert-frame h3 { color: #193957; font-weight: 800; letter-spacing: 2px; }
.certificate.design-registry .cert-frame::after { color: #fff; border: 0; background: #193957; }
.certificate.design-registry .cert-line { width: 260px; height: 2px; background: #193957; }
.certificate.design-registry .cert-frame > em,
.certificate.design-registry .issued-certificate-meta { padding: 8px 12px; color: #fff; background: #193957; }

.design-picker button:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) > i,
.design-swatch:is(.academy,.navy,.graphite,.royal,.ministry,.contour,.columns,.horizon,.silver,.registry) {
  border: 1px solid #b9c8d8;
  box-shadow: none;
  background-color: #eef3f8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.design-picker button.design-academy > i, .design-swatch.academy { background-image: url("/certificates/backgrounds/academy.webp"); }
.design-picker button.design-navy > i, .design-swatch.navy { background-image: url("/certificates/backgrounds/navy.webp"); }
.design-picker button.design-graphite > i, .design-swatch.graphite { background-image: url("/certificates/backgrounds/graphite.webp"); }
.design-picker button.design-royal > i, .design-swatch.royal { background-image: url("/certificates/backgrounds/royal.webp"); }
.design-picker button.design-ministry > i, .design-swatch.ministry { background-image: url("/certificates/backgrounds/ministry.webp"); }
.design-picker button.design-contour > i, .design-swatch.contour { background-image: url("/certificates/backgrounds/contour.webp"); }
.design-picker button.design-columns > i, .design-swatch.columns { background-image: url("/certificates/backgrounds/columns.webp"); }
.design-picker button.design-horizon > i, .design-swatch.horizon { background-image: url("/certificates/backgrounds/horizon.webp"); }
.design-picker button.design-silver > i, .design-swatch.silver { background-image: url("/certificates/backgrounds/silver.webp"); }
.design-picker button.design-registry > i, .design-swatch.registry { background-image: url("/certificates/backgrounds/registry.webp"); }

.certificate.design-academy { background-image: url("/certificates/backgrounds/academy.webp"); }
.certificate.design-navy { background-image: url("/certificates/backgrounds/navy.webp"); }
.certificate.design-graphite { background-image: url("/certificates/backgrounds/graphite.webp"); }
.certificate.design-royal { background-image: url("/certificates/backgrounds/royal.webp"); }
.certificate.design-ministry { background-image: url("/certificates/backgrounds/ministry.webp"); }
.certificate.design-contour { background-image: url("/certificates/backgrounds/contour.webp"); }
.certificate.design-columns { background-image: url("/certificates/backgrounds/columns.webp"); }
.certificate.design-horizon { background-image: url("/certificates/backgrounds/horizon.webp"); }
.certificate.design-silver { background-image: url("/certificates/backgrounds/silver.webp"); }
.certificate.design-registry { background-image: url("/certificates/backgrounds/registry.webp"); }

.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) {
  padding: 0;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 210 / 297;
  padding: 9% 11% 6%;
  justify-content: flex-start;
  border: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-content {
  position: absolute;
  top: 23%;
  right: 11%;
  left: 11%;
  width: auto;
  justify-content: flex-start;
}
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame::after { display: none; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-content > small { margin-top: 0; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame h3 { margin: 4% 0 3%; font-weight: 800; letter-spacing: 1px; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .award-label { margin: 2% 0 1.5%; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame strong { color: #142f52; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-recipient-details { margin: 2.5% 0 0; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame p { margin: 3.5% 0 0; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-line { width: 48%; height: 2px; margin: 3.5% 0 2%; background: #6e91b8; }
.certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .cert-frame > em { margin-top: auto; margin-bottom: 1%; padding: 6px 10px; color: #52677f; background: rgba(255,255,255,.84); }
.issued-certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .certificate-brand-logo { width: 230px; }
.issued-certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .issued-certificate-meta {
  position: absolute;
  right: 8%;
  bottom: 5.5%;
  left: 24%;
  width: auto;
  margin: 0;
  padding: 10px 14px;
  color: #425a73;
  background: rgba(255,255,255,.88);
}
.issued-certificate:is(.design-academy,.design-navy,.design-graphite,.design-royal,.design-ministry,.design-contour,.design-columns,.design-horizon,.design-silver,.design-registry) .issued-qr {
  left: 8%;
  bottom: 4%;
}
.issued-document-state { padding-block: 80px; color: var(--muted); text-align: center; }
.issued-document-links { margin: 24px auto 4px; display: grid; gap: 10px; width: min(100%, 560px); }
.prototype-success { margin-top: 14px; padding: 16px 18px; border-left: 3px solid #4e966c; background: #f5fbf7; }
.prototype-success b, .prototype-success span { display: block; }
.prototype-success b { color: #397553; font-size: 11px; }
.prototype-success span { margin-top: 5px; color: #698076; font-size: 9px; line-height: 1.5; }

.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.text-action.secondary { color: var(--muted); }

.catalog-workspace { padding: 54px 0 100px; }
.catalog-tools { padding: 26px; border: 1px solid var(--line); background: #fff; }
.catalog-search { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-bottom: 22px; color: var(--ink); font-size: 10px; font-weight: 800; }
.catalog-search input { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font: inherit; font-size: 12px; outline: none; }
.catalog-search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(13,75,160,.08); }
.catalog-tools .filter-row { margin: 0; }
.catalog-summary { padding: 24px 2px 18px; display: flex; justify-content: space-between; color: #7a889b; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.catalog-summary b { color: var(--ink); }
.catalog-grid .program-card h2 { margin: 28px 0 12px; font-family: var(--font-serif); font-size: 24px; line-height: 1.25; font-weight: 400; }
.catalog-empty { min-height: 300px; display: grid; place-content: center; justify-items: center; border: 1px solid var(--line); background: #fff; text-align: center; }
.catalog-empty b { font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.catalog-empty span { margin-top: 8px; color: var(--muted); font-size: 11px; }
.catalog-empty button { margin-top: 22px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }

.service-detail-hero { padding: 34px 0 70px; color: #fff; background: var(--blue-dark); }
.service-back { display: inline-flex; margin-bottom: 44px; color: #bfd1e7; font-size: 12px; font-weight: 800; }
.service-detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 80px; align-items: end; }
.service-kicker { display: flex; align-items: center; gap: 16px; color: #bdd0e6; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.service-kicker span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); color: #fff; }
.service-detail-hero h1 { max-width: 780px; margin: 24px 0 20px; font-family: var(--font-serif); font-size: clamp(42px, 5vw, 70px); font-weight: 400; line-height: 1.05; }
.service-detail-hero p { max-width: 720px; margin: 0; color: #cbd8e7; font-size: 15px; line-height: 1.75; }
.service-detail-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.service-detail-hero .button-outline { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.service-facts { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
.service-facts > div { padding: 21px 24px; display: grid; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.16); }
.service-facts > div:last-child { border-bottom: 0; }
.service-facts span { color: #93aac5; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.service-facts b { font-size: 15px; line-height: 1.45; }
.service-detail-body { padding-block: 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.service-detail-body > div > span, .service-assurance > .shell > div:first-child > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.service-detail-body h2, .service-assurance h2 { margin: 15px 0 18px; font-family: var(--font-serif); font-size: 38px; font-weight: 400; line-height: 1.2; }
.service-value > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.service-value ul { margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); list-style: none; }
.service-value li { min-height: 72px; padding: 17px 8px 17px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.service-value li:nth-child(odd) { border-right: 1px solid var(--line); }
.service-value li:nth-child(even) { padding-left: 18px; }
.service-value li i { color: #4b8f68; font-style: normal; }
.service-process { padding: 38px; border: 1px solid var(--line); background: #fff; }
.service-process ol { margin: 24px 0 0; padding: 0; list-style: none; }
.service-process li { min-height: 84px; padding: 20px 0; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; border-top: 1px solid var(--line); }
.service-process li i { color: var(--blue); font-family: var(--font-serif); font-size: 24px; font-style: normal; }
.service-process li span { font-size: 13px; font-weight: 800; line-height: 1.55; }
.service-trust { padding-bottom: 76px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-trust article { min-height: 270px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.service-trust article > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.service-trust h2 { margin: 18px 0 12px; font-family: var(--font-serif); font-size: 26px; font-weight: 400; line-height: 1.2; }
.service-trust p { margin: 0; color: #546273; font-size: 13px; line-height: 1.65; }
.service-trust article > a, .service-trust article > div { margin-top: auto; padding-top: 22px; }
.service-trust a { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.service-trust article > div { display: flex; gap: 20px; }
.service-trust-note { grid-column: 1 / -1; padding: 16px 20px; border-left: 3px solid var(--blue); background: #eef5fc; color: #38495e; font-size: 12px; line-height: 1.55; }
.service-assurance { padding: 62px 0; color: #fff; background: #102f55; }
.service-assurance > .shell { display: grid; grid-template-columns: 1.1fr 1.1fr auto; gap: 50px; align-items: center; }
.service-assurance h2 { max-width: 520px; margin-bottom: 0; }
.service-assurance-items { display: grid; gap: 13px; }
.service-assurance-items span { display: flex; align-items: center; gap: 14px; color: #ccd9e8; font-size: 12px; }
.service-assurance-items b { color: #7ba8d8; font-size: 10px; }
.service-missing { padding-block: 110px; text-align: center; }
.service-missing > span { color: var(--blue); font-family: var(--font-serif); font-size: 54px; }
.service-missing h1 { margin: 16px 0 30px; font-family: var(--font-serif); font-size: 42px; font-weight: 400; }
.olympiad-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.olympiad-card { min-height: 330px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: .2s; }
.olympiad-card:hover { border-color: #80a9d6; box-shadow: 0 14px 38px rgba(19,53,93,.09); transform: translateY(-2px); }
.olympiad-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.olympiad-card-top > span { color: #91a3b8; font-size: 11px; }
.olympiad-card-top > div { display: flex; align-items: center; gap: 7px; }
.olympiad-card-top i, .olympiad-card-top em { padding: 6px 8px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.olympiad-card-top em { color: #7b5b16; background: #fff2cf; }
.olympiad-card h2 { margin: 26px 0 12px; font-family: var(--font-serif); font-size: 24px; line-height: 1.25; font-weight: 400; }
.olympiad-card > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.olympiad-card dl { margin: auto 0 0; padding: 24px 0 18px; display: grid; grid-template-columns: repeat(3,1fr); }
.olympiad-card dl > div { padding: 0 13px; border-left: 1px solid var(--line); }
.olympiad-card dl > div:first-child { padding-left: 0; border-left: 0; }
.olympiad-card dt { color: #8593a5; font-size: 8px; text-transform: uppercase; }
.olympiad-card dd { margin: 6px 0 0; font-size: 10px; font-weight: 800; }
.olympiad-card-footer { padding-top: 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.olympiad-card-footer > span { color: #748398; font-size: 9px; }
.olympiad-card-footer a { color: var(--blue); font-size: 10px; font-weight: 800; }
.olympiad-card-footer b { margin-left: 10px; }
.competition-filters { margin: 0; }
.competition-card dl { grid-template-columns: .85fr .55fr 1.3fr; }
.competition-card dl dd { line-height: 1.45; }
.competition-note { margin-top: 42px; padding: 27px 31px; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 35px; border: 1px solid #a8bfd9; background: #f7fbff; }
.competition-note > span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.competition-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.competition-note a { color: var(--blue); font-size: 9px; font-weight: 800; white-space: nowrap; }
.olympiad-explainer { margin-top: 54px; padding: 38px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; color: #fff; background: var(--blue-dark); }
.olympiad-explainer > div > span { color: #89b9ed; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.olympiad-explainer h2 { margin: 12px 0 0; font-family: var(--font-serif); font-size: 29px; line-height: 1.25; font-weight: 400; }
.olympiad-explainer ol { margin: 0; padding: 0; display: grid; gap: 0; list-style: none; }
.olympiad-explainer li { min-height: 76px; padding: 15px 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
.olympiad-explainer li:last-child { border-bottom: 0; }
.olympiad-explainer li > i { color: #80b6ef; font-size: 9px; font-style: normal; }
.olympiad-explainer li b, .olympiad-explainer li small { display: block; }
.olympiad-explainer li b { font-size: 11px; }
.olympiad-explainer li small { margin-top: 5px; color: #aebfd4; font-size: 9px; line-height: 1.5; }
.olympiad-rules { max-width: 900px; margin: 0 auto; padding: 46px; border: 1px solid var(--line); background: #fff; }
.olympiad-rules h2, .result-document-form h2 { margin: 10px 0 12px; font-family: var(--font-serif); font-size: 38px; font-weight: 400; }
.olympiad-rules > div:first-child > p, .result-document-form > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.olympiad-rules dl { margin: 34px 0 26px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.olympiad-rules dl > div { padding: 18px; border-right: 1px solid var(--line); }
.olympiad-rules dl > div:last-child { border-right: 0; }
.olympiad-rules dt { color: #7c899b; font-size: 8px; text-transform: uppercase; }
.olympiad-rules dd { margin: 8px 0 0; font-size: 10px; font-weight: 800; }
.rules-consent { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.olympiad-rules .result-actions { justify-content: flex-end; }
.result-breakdown { margin: 30px auto 0; max-width: 500px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.result-breakdown span { padding: 18px 10px; color: #7c899b; border-right: 1px solid var(--line); font-size: 8px; text-transform: uppercase; }
.result-breakdown span:last-child { border-right: 0; }
.result-breakdown b { display: block; margin-bottom: 6px; color: var(--blue-dark); font-size: 20px; }
.result-document-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: start; }
.result-document-form { padding: 38px; border: 1px solid var(--line); background: #fff; }
.result-document-form > label { margin-top: 30px; display: grid; gap: 8px; color: #627187; font-size: 9px; font-weight: 800; }
.result-document-form select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 10px; }
.result-designs { margin-top: 12px; display: grid; gap: 7px; }
.result-designs button { min-height: 48px; padding: 8px 10px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-size: 9px; }
.result-designs button.active { border-color: var(--blue); background: #f4f8fd; }
.design-swatch { width: 38px; height: 28px; display: block; border: 3px double var(--blue); background: #fff; }
.design-swatch.modern { border: 0; border-left: 8px solid var(--blue-dark); background: #dcecff; }
.design-swatch.formal { border-color: #94733b; background: #fffaf0; }
.design-swatch.academy { border-color: #173a68; background: #f8fafc; }
.design-swatch.navy { border: 5px solid #132f54; background: #eef3f8; }
.design-swatch.graphite { border: 0; border-left: 9px solid #343f4d; background: #eef0f2; }
.design-swatch.royal { border: 0; border-block: 7px solid #0d4ba0; background: #f7faff; }
.design-swatch.ministry { border-color: #31445b; background: #f3f1ec; }
.design-swatch.contour { border: 1px solid #274f7e; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #a9bad0; }
.design-swatch.columns { border: 0; border-inline: 8px double #153f72; background: #f6f9fc; }
.design-swatch.horizon { border: 0; border-block: 7px solid #153f72; background: #fff; }
.design-swatch.silver { border-color: #697889; background: #edf0f3; }
.design-swatch.registry { border: 2px solid #193957; box-shadow: inset 0 -8px 0 #193957; background: #f7f9fb; }
.result-price { margin-top: 22px; padding: 17px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.result-price b { font-size: 16px; }
.result-certificate { aspect-ratio: 1.414 / 1; }
.result-certificate .cert-frame { min-height: 100%; }

/* Publications */
.publication-callout { margin-bottom: 14px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #fff; background: var(--blue-dark); }
.publication-callout span { color: #8ebcf0; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.publication-callout h2 { max-width: 620px; margin: 9px 0 0; font-family: var(--font-serif); font-size: 25px; font-weight: 400; }
.publication-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.publication-card { min-height: 370px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.publication-index { color: #9aabba; font-size: 10px; }
.publication-card > span { margin-top: 28px; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.publication-card h2 { margin: 12px 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.35; font-weight: 400; }
.publication-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.publication-author { margin-top: auto; padding-top: 23px; display: flex; align-items: center; gap: 10px; }
.publication-author > i, .publication-byline > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-style: normal; font-weight: 800; }
.publication-author b, .publication-author small, .publication-byline b, .publication-byline small { display: block; }
.publication-author b { font-size: 9px; }
.publication-author small { margin-top: 3px; color: #7f8da0; font-size: 8px; }
.publication-card footer { margin-top: 16px; padding-top: 15px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #8491a2; font-size: 8px; }
.publication-card footer a { color: var(--blue); font-weight: 800; }
.publication-detail-head { padding: 65px 0 60px; border-bottom: 1px solid var(--line); background: #fff; }
.publication-detail-head .shell { max-width: 920px; }
.publication-detail-head a { display: block; margin-bottom: 42px; color: var(--blue); font-size: 9px; font-weight: 800; }
.publication-detail-head > .shell > span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.publication-detail-head h1 { max-width: 850px; margin: 16px 0 20px; font-family: var(--font-serif); font-size: clamp(38px,5vw,60px); line-height: 1.1; font-weight: 400; letter-spacing: -1.5px; }
.publication-detail-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.publication-byline { margin-top: 30px; display: flex; align-items: center; gap: 12px; }
.publication-byline b { font-size: 10px; }
.publication-byline small { margin-top: 4px; color: #8190a2; font-size: 8px; }
.publication-body { max-width: 920px; padding-block: 55px 100px; display: grid; grid-template-columns: 190px 1fr; gap: 70px; }
.publication-body aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 12px; }
.publication-body aside b { margin-bottom: 8px; font-size: 9px; text-transform: uppercase; }
.publication-body aside a { color: #718096; font-size: 9px; line-height: 1.45; }
.publication-body aside a:last-child { margin-top: 14px; color: var(--blue); font-weight: 800; }
.publication-body > div > p, .publication-body li { color: #526277; font-size: 13px; line-height: 1.85; }
.publication-body .publication-lead { color: var(--ink); font-size: 17px; line-height: 1.7; }
.publication-body h2 { margin: 45px 0 12px; font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.publication-body blockquote { margin: 34px 0; padding: 22px 26px; border-left: 3px solid var(--blue); color: var(--blue-dark); background: var(--blue-soft); font-size: 14px; line-height: 1.7; }
.publication-certificate { margin-top: 45px; padding: 25px; border: 1px solid #9ab8d9; background: #f7fbff; }
.publication-certificate span, .publication-certificate b { display: block; }
.publication-certificate span { color: var(--blue); font-size: 8px; text-transform: uppercase; }
.publication-certificate b { margin: 10px 0 18px; font-size: 11px; }
.publication-certificate a { color: var(--blue); font-size: 9px; font-weight: 800; }

.about-content { padding: 75px 0 110px; background: #fff; }
.about-intro { max-width: 820px; }
.about-intro h2, .about-contact h2 { margin: 0 0 18px; font-family: var(--font-serif); font-size: clamp(32px,4vw,48px); line-height: 1.15; font-weight: 400; }
.about-intro p, .about-contact p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-principles { margin: 55px 0 70px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-principles article { min-height: 245px; padding: 32px 30px; border-right: 1px solid var(--line); }
.about-principles article:last-child { border-right: 0; }
.about-principles span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.about-principles h3 { margin: 45px 0 12px; font-size: 18px; }
.about-principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-requisites { margin-bottom: 70px; padding: 42px 46px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; border: 1px solid var(--line); background: var(--paper); }
.about-requisites > div > span { display: block; margin-bottom: 14px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.about-requisites h2 { margin: 0 0 18px; font-family: var(--font-serif); font-size: 32px; font-weight: 400; line-height: 1.2; }
.about-requisites p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.about-requisites dl { margin: 0; }
.about-requisites dl > div { padding: 13px 0; display: grid; grid-template-columns: 130px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.about-requisites dl > div:last-child { border-bottom: 0; }
.about-requisites dt { color: var(--muted); font-size: 12px; }
.about-requisites dd { margin: 0; font-size: 13px; font-weight: 800; }
.about-contact { padding: 45px 50px; display: grid; grid-template-columns: 1.5fr .7fr; gap: 60px; align-items: end; background: var(--blue-dark); color: #fff; }
.about-contact > div:first-child > span { display: block; margin-bottom: 14px; color: #8db9ed; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.about-contact p { color: #b8c8db; }
.about-contact > div:last-child { display: grid; gap: 18px; }
.about-contact a:not(.button) { color: #fff; font-size: 17px; font-weight: 800; }

.verify-section { min-height: calc(100vh - 74px); padding: 90px 0; display: flex; align-items: center; background: linear-gradient(90deg,#fff 0 57%,#e8eef6 57%); }
.verify-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.verify-copy h1 { max-width: 570px; margin: 18px 0 22px; font-family: var(--font-serif); font-size: clamp(44px,5vw,66px); line-height: 1.03; font-weight: 400; letter-spacing: -2px; }
.verify-copy > p { max-width: 570px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.verify-copy form { max-width: 580px; margin-top: 34px; }
.verify-copy form > label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 10px; font-weight: 800; }
.verify-copy form > div { display: grid; grid-template-columns: 1fr auto; }
.verify-copy input { min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-right: 0; color: var(--ink); background: #fff; font: inherit; font-size: 12px; outline: none; }
.verify-copy input:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.verify-copy form small { display: block; margin-top: 10px; color: #8794a5; font-size: 8px; }
.registry-card { min-height: 480px; padding: 46px; display: grid; align-items: center; border: 1px solid #cad5e2; background: #fff; box-shadow: 0 22px 65px rgba(16,42,74,.13); }
.registry-placeholder { display: grid; justify-items: center; text-align: center; }
.registry-placeholder i { width: 82px; height: 82px; display: grid; place-items: center; border: 4px solid var(--blue); border-radius: 50%; color: var(--blue); font-family: var(--font-serif); font-size: 28px; font-style: normal; }
.registry-placeholder b { margin-top: 24px; font-family: var(--font-serif); font-size: 25px; font-weight: 400; }
.registry-placeholder span { margin-top: 8px; color: var(--muted); font-size: 10px; }
.registry-status { display: inline-flex; width: fit-content; padding: 7px 10px; color: #fff; background: #4b9169; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.registry-result.missing .registry-status { background: #a96363; }
.registry-result h2 { margin: 20px 0 26px; font-family: var(--font-serif); font-size: 38px; font-weight: 400; }
.registry-result dl { margin: 0; border-top: 1px solid var(--line); }
.registry-result dl > div { padding: 15px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.registry-result dt { color: #7d8b9e; font-size: 9px; }
.registry-result dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 700; }
.registry-result > small { display: block; margin-top: 22px; color: #8c98a8; font-size: 8px; line-height: 1.5; }
.registry-result > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.registry-result > button { margin-top: 18px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }

.organization-hero { padding: 90px 0; color: #fff; background: var(--blue-dark); }
.organization-hero h1 { max-width: 850px; margin: 22px 0; font-family: var(--font-serif); font-size: clamp(48px,6vw,76px); line-height: 1; font-weight: 400; letter-spacing: -2px; }
.organization-hero p { max-width: 700px; color: #bfd0e4; font-size: 15px; line-height: 1.8; }
.organization-workspace { padding: 74px 0 110px; }
.organization-grid { display: grid; grid-template-columns: 1fr 440px; gap: 90px; align-items: start; }
.organization-benefits article { padding: 26px 0; display: grid; grid-template-columns: 50px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.organization-benefits article:first-child { padding-top: 0; }
.organization-benefits article > span { color: #79a8dc; font-family: var(--font-serif); }
.organization-benefits h2 { margin: 0; font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.organization-benefits p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-readiness { margin-top: 34px; padding: 24px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.admin-readiness b { color: var(--blue-dark); font-size: 11px; }
.admin-readiness p { margin-bottom: 0; }
.consultation-card { min-height: 530px; padding: 36px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 55px rgba(17,50,89,.08); }
.consultation-card h2 { margin: 14px 0 8px; font-family: var(--font-serif); font-size: 38px; font-weight: 400; }
.consultation-card form > p { margin: 0 0 25px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.consultation-card label { display: grid; gap: 7px; margin-top: 15px; color: #4d5c70; font-size: 9px; font-weight: 800; }
.consultation-card input, .consultation-card select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); background: #fff; font: inherit; font-size: 11px; outline: none; }
.consultation-card input:focus, .consultation-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,75,160,.08); }
.consultation-card .button-wide { margin-top: 24px; }
.consultation-success { min-height: 455px; display: grid; place-content: center; justify-items: center; text-align: center; }
.consultation-success > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4b9169; font-size: 22px; }
.consultation-success p { max-width: 320px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.consultation-success .button { margin-top: 16px; }

.profile-page { min-height: 100vh; background: var(--paper); }
.profile-heading { padding: 42px 0; color: #fff; background: var(--blue-dark); }
.profile-heading-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.profile-person { display: flex; align-items: center; gap: 20px; }
.profile-person > span { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-family: var(--font-serif); font-size: 19px; }
.profile-person small { color: #8fb4df; font-size: 8px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.profile-person h1 { margin: 6px 0 4px; font-family: var(--font-serif); font-size: 31px; font-weight: 400; }
.profile-person p { margin: 0; color: #afc2da; font-size: 10px; }
.profile-workspace { padding: 42px 0 100px; }
.profile-layout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.profile-sidebar { position: sticky; top: 22px; }
.profile-sidebar nav { border: 1px solid var(--line); background: #fff; }
.profile-sidebar nav button { width: 100%; min-height: 50px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px solid var(--line); color: #58687c; background: #fff; text-align: left; font-size: 10px; font-weight: 700; }
.profile-sidebar nav button:last-child { border-bottom: 0; }
.profile-sidebar nav button.active { color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.profile-sidebar nav i { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #69788b; background: var(--paper); font-size: 8px; font-style: normal; }
.profile-demo-note { margin-top: 15px; padding: 16px; border-left: 3px solid #90a5be; background: #e8eef5; }
.profile-demo-note b, .profile-demo-note span { display: block; }
.profile-demo-note b { font-size: 9px; }
.profile-demo-note span { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.profile-content { min-width: 0; }
.profile-section-head { min-height: 68px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.profile-section-head > div > span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.profile-section-head h2 { margin: 8px 0 0; font-family: var(--font-serif); font-size: 36px; line-height: 1; font-weight: 400; }
.profile-section-head > small { color: #7c8999; font-size: 8px; }
.profile-section-head > a, .panel-head button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 800; }
.profile-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.profile-metrics button { padding: 22px; border: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; transition: .2s; }
.profile-metrics button:hover { border-color: #8eb1d7; transform: translateY(-2px); }
.profile-metrics span, .profile-metrics small { display: block; }
.profile-metrics span { color: #728095; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.profile-metrics b { display: block; margin: 13px 0 4px; font-family: var(--font-serif); font-size: 35px; font-weight: 400; }
.profile-metrics small { color: var(--muted); font-size: 8px; }
.profile-next-step { margin-top: 14px; padding: 30px; display: grid; grid-template-columns: 1fr 230px; gap: 50px; align-items: center; color: #fff; background: var(--blue); }
.profile-next-step > div:first-child > span { color: #9ec6f2; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.profile-next-step h3 { margin: 9px 0 8px; font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.profile-next-step p { max-width: 600px; margin: 0; color: #cfdef0; font-size: 10px; line-height: 1.7; }
.next-progress b { font-family: var(--font-serif); font-size: 27px; font-weight: 400; }
.next-progress > span { display: block; height: 4px; margin: 9px 0 13px; background: rgba(255,255,255,.2); }
.next-progress > span i { display: block; width: 75%; height: 100%; background: #fff; }
.next-progress a { font-size: 9px; font-weight: 800; }
.profile-two-columns { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-panel { border: 1px solid var(--line); background: #fff; }
.panel-head { min-height: 54px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.document-row { min-height: 74px; padding: 12px 18px; display: grid; grid-template-columns: 35px 1fr auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.document-row:last-child { border-bottom: 0; }
.document-row > i { width: 32px; height: 38px; display: grid; place-items: center; color: var(--blue); border: 1px solid #b6c7da; background: var(--blue-soft); font-size: 10px; font-style: normal; font-weight: 800; }
.document-row > span { min-width: 0; }
.document-row > span b, .document-row > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-row > span b { font-size: 9px; }
.document-row > span small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.document-row > time { color: var(--muted); font-size: 8px; }
.document-row > em, .profile-orders em { width: fit-content; padding: 5px 7px; font-size: 7px; font-style: normal; font-weight: 800; }
.status-valid { color: #397553; background: #eaf5ee; }
.status-draft { color: #866833; background: #f8f0dd; }
.document-row > a, .document-row-actions a, .document-row-actions button { color: var(--blue); font-size: 8px; font-weight: 800; }
.document-row-actions { display: flex; align-items: center; gap: 8px; }
.document-row-actions button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.document-row.full { grid-template-columns: 35px minmax(200px,1fr) 85px 75px 85px; }
.quick-actions > a { min-height: 65px; padding: 11px 17px; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.quick-actions > a:last-child { border-bottom: 0; }
.quick-actions > a i { color: #7fa9d8; font-family: var(--font-serif); font-size: 11px; font-style: normal; }
.quick-actions > a span b, .quick-actions > a span small { display: block; }
.quick-actions > a span b { font-size: 9px; }
.quick-actions > a span small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.quick-actions > a strong { color: var(--blue); font-weight: 400; }
.profile-table-head { min-height: 42px; padding: 0 18px 0 65px; display: grid; grid-template-columns: minmax(200px,1fr) 85px 75px 85px; gap: 12px; align-items: center; color: #7a8798; background: var(--paper); font-size: 7px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.activity-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.activity-list article { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; border: 1px solid var(--line); background: #fff; }
.activity-list article > div:first-child > span { color: var(--blue); font-size: 7px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.activity-list h3 { margin: 12px 0 8px; font-family: var(--font-serif); font-size: 21px; line-height: 1.25; font-weight: 400; }
.activity-list p { margin: 0; color: var(--muted); font-size: 8px; }
.activity-list article > strong { color: var(--blue); font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.activity-progress { grid-column: 1 / -1; height: 4px; background: #e2e9f1; }
.activity-progress i { display: block; height: 100%; background: var(--blue); }
.activity-list article > a { grid-column: 1 / -1; color: var(--blue); font-size: 8px; font-weight: 800; }
.profile-orders > div { min-height: 70px; padding: 12px 18px; display: grid; grid-template-columns: 130px 1fr 80px 80px 65px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.profile-orders > div:last-child { border-bottom: 0; }
.profile-orders span b, .profile-orders span small { display: block; }
.profile-orders span b { font-size: 9px; }
.profile-orders span small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.profile-orders p { margin: 0; color: var(--muted); font-size: 9px; }
.profile-orders > div > strong { font-size: 10px; }
.profile-orders button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 8px; font-weight: 800; }

.application-page { min-height: 100vh; background: var(--paper); }
.application-heading { padding: 62px 0; border-bottom: 1px solid var(--line); background: #fff; }
.application-heading-grid { display: grid; grid-template-columns: 1fr 390px; gap: 70px; align-items: end; }
.application-heading h1 { max-width: 760px; margin: 17px 0; font-family: var(--font-serif); font-size: clamp(42px,5vw,62px); line-height: 1.03; font-weight: 400; letter-spacing: -2px; }
.application-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.application-steps { display: grid; grid-template-columns: repeat(3,1fr); }
.application-steps span { position: relative; display: grid; justify-items: center; gap: 8px; color: #9aa6b5; font-size: 7px; text-transform: uppercase; letter-spacing: .8px; }
.application-steps span::before { content: ""; position: absolute; left: -50%; right: 50%; top: 14px; height: 1px; background: var(--line); }
.application-steps span:first-child::before { display: none; }
.application-steps i { position: relative; z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 8px; font-style: normal; }
.application-steps span.active, .application-steps span.done { color: var(--blue); }
.application-steps span.active i { border-color: var(--blue); color: #fff; background: var(--blue); }
.application-steps span.done i { border-color: #4d916a; color: #fff; background: #4d916a; }
.application-workspace { min-height: 600px; padding: 54px 0 100px; }
.application-card { max-width: 920px; margin: 0 auto; padding: 42px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 55px rgba(17,50,89,.07); }
.application-card-head > span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.application-card-head h2 { margin: 11px 0 8px; font-family: var(--font-serif); font-size: 34px; font-weight: 400; }
.application-card-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.application-type-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.application-type-grid button { min-height: 180px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.application-type-grid button:hover { border-color: #88abd2; }
.application-type-grid button.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 -4px 0 var(--blue); }
.application-type-grid button > i { color: #7fa9d8; font-family: var(--font-serif); font-size: 15px; font-style: normal; }
.application-type-grid b, .application-type-grid small { display: block; }
.application-type-grid b { font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
.application-type-grid small { margin-top: 9px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.application-actions { margin-top: 34px; padding-top: 23px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.application-actions > a, .back-action { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 800; }
.application-actions .button:disabled { cursor: default; opacity: .45; transform: none; }
.application-form-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.application-form-grid label { display: grid; gap: 7px; color: #4d5c70; font-size: 9px; font-weight: 800; }
.application-form-grid label.wide { grid-column: 1 / -1; }
.application-form-grid input, .application-form-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); color: var(--ink); background: #fff; font: inherit; font-size: 11px; outline: none; }
.application-form-grid input:focus, .application-form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,75,160,.08); }
.application-form-grid textarea { resize: vertical; line-height: 1.6; }
.application-upload { position: relative; min-height: 92px; padding: 18px; grid-template-columns: 1fr auto !important; align-items: center; border: 1px dashed #9db0c6; color: var(--ink) !important; background: var(--paper); cursor: pointer; }
.application-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.application-upload span b, .application-upload span small { display: block; }
.application-upload span b { font-size: 10px; }
.application-upload span small { margin-top: 6px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.application-upload > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 14px; font-style: normal; }
.application-upload .field-error { color: #a53c3c; font-weight: 700; }
.admin-file-link { display: block; margin-top: 7px; padding: 0; border: 0; color: var(--blue); background: transparent; font-weight: 800; text-align: left; cursor: pointer; }
.admin-application-open { background: #fbfdff; }
.admin-application-detail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px; border-top: 1px solid var(--line); }
.admin-application-detail p { margin: 8px 0 18px; color: var(--muted); }
.admin-application-detail label { display: grid; gap: 10px; font-weight: 800; }
.admin-application-detail textarea, .admin-editor-grid textarea, .admin-question-editor textarea { width: 100%; resize: vertical; }
.admin-editor-panel { margin-top: 28px; padding: 30px; }
.admin-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 25px 0; }
.admin-editor-grid label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
.admin-editor-grid label.wide { grid-column: 1 / -1; }
.admin-editor-grid .admin-check { display: flex; align-items: center; }
.admin-content-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-content-list { display: grid; }
.admin-content-list > button { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.admin-content-list > button.active { color: var(--blue); }
.admin-content-list span b, .admin-content-list span small { display: block; }
.admin-content-list span small { margin-top: 5px; color: var(--muted); }
.admin-content-list em { font-size: 12px; font-style: normal; white-space: nowrap; }
.admin-question-editor { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.admin-question-editor label { display: grid; gap: 7px; margin: 16px 0; font-weight: 800; }
.admin-question-editor > p { padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-request-list article { display: grid; grid-template-columns: 1fr 1fr 1.2fr 150px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.admin-request-list span b, .admin-request-list span small { display: block; }
.admin-request-list span small { margin-top: 5px; color: var(--muted); }
.admin-request-list p { margin: 0; }
.profile-application-detail { grid-column: 1 / -1; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.profile-application-detail p { margin-top: 0; }
.profile-application-detail > div { margin: 14px 0; padding: 14px; background: var(--blue-soft); }
.profile-application-detail > div b, .profile-application-detail > div span { display: block; }
.profile-application-detail > div span { margin-top: 5px; }
.profile-save-message, .result-save-note { margin: 18px 0; padding: 13px 15px; color: #275d3e; background: #eef8f1; font-weight: 800; }
.legal-heading { padding: 72px 0 58px; border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-heading h1 { max-width: 900px; margin: 18px 0 12px; font-family: var(--font-serif); font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: 1.08; }
.legal-heading p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.7; }
.legal-heading small { display: block; margin-top: 16px; color: #7b899a; }
.legal-content { padding: 64px 0 100px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 78px; align-items: start; }
.legal-layout aside { position: sticky; top: 110px; display: grid; gap: 5px; }
.legal-layout aside b { margin-bottom: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.legal-layout aside a { padding: 11px 14px; color: var(--muted); border-left: 2px solid var(--line); }
.legal-layout aside a.active { color: var(--blue); border-left-color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.legal-layout article > section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.legal-layout article > section:first-of-type { padding-top: 0; }
.legal-layout h2 { margin: 0 0 18px; font-family: var(--font-serif); font-size: 31px; font-weight: 400; }
.legal-layout p { color: #47566a; line-height: 1.8; }
.legal-layout ul { margin: 18px 0 0; padding-left: 22px; color: #47566a; }
.legal-layout li { margin: 9px 0; padding-left: 5px; line-height: 1.7; }
.legal-operator-card { margin-bottom: 38px; padding: 24px 26px; border: 1px solid var(--line); background: var(--paper); }
.legal-operator-card > b { display: block; margin-bottom: 16px; color: var(--blue); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.legal-operator-card dl { margin: 0; }
.legal-operator-card dl > div { padding: 8px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.legal-operator-card dt { color: var(--muted); font-size: 12px; }
.legal-operator-card dd { margin: 0; font-size: 13px; line-height: 1.55; }
.legal-operator-card a { color: var(--blue); font-weight: 800; }
.legal-draft-note { margin-bottom: 38px; padding: 18px 20px; border-left: 3px solid #d89a2b; background: #fff8e9; }
.legal-draft-note b, .legal-draft-note span { display: block; }
.legal-draft-note span { margin-top: 5px; color: #6e5b35; }
.review-card dl { margin: 30px 0 0; border-top: 1px solid var(--line); }
.review-card dl > div { padding: 15px 0; display: grid; grid-template-columns: 150px 1fr; gap: 25px; border-bottom: 1px solid var(--line); }
.review-card dt { color: #778699; font-size: 8px; }
.review-card dd { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.6; }
.review-note { margin-top: 22px; padding: 17px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.review-note b, .review-note span { display: block; }
.review-note b { font-size: 9px; }
.review-note span { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.application-success { max-width: 760px; margin: 0 auto; padding: 60px 40px; display: grid; justify-items: center; border: 1px solid var(--line); background: #fff; text-align: center; }
.application-success > span { width: 68px; height: 68px; margin-bottom: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4d916a; font-size: 24px; }
.application-success h2 { margin: 15px 0 10px; font-family: var(--font-serif); font-size: 37px; font-weight: 400; }
.application-success p { max-width: 520px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.application-success > div:last-child { margin-top: 27px; display: flex; gap: 10px; }

/* Checkout */
.checkout-heading { padding: 44px 0; color: #fff; background: var(--blue-dark); }
.checkout-heading > .shell { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.checkout-heading span { color: #91bce8; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.checkout-heading h1 { margin: 9px 0 0; font-family: var(--font-serif); font-size: 38px; font-weight: 400; }
.checkout-steps { display: flex; gap: 30px; }
.checkout-steps > span { display: flex; align-items: center; gap: 8px; color: #879db8; font-size: 8px; }
.checkout-steps > span.active { color: #fff; }
.checkout-steps i { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; }
.checkout-workspace { min-height: 620px; padding: 55px 0 90px; background: var(--paper); }
.checkout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.checkout-card, .checkout-summary { border: 1px solid var(--line); background: #fff; }
.checkout-card { padding: 32px; }
.checkout-card > header { padding-bottom: 23px; display: grid; grid-template-columns: 30px 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.checkout-card > header > span { color: #85a8cf; font-size: 9px; }
.checkout-card h2 { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 400; }
.checkout-card header p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.checkout-document { min-height: 82px; padding: 15px 0; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.checkout-document > i { width: 36px; height: 44px; display: grid; place-items: center; color: var(--blue); border: 1px solid #aac2dc; background: #f4f8fd; font-size: 10px; font-style: normal; font-weight: 800; }
.checkout-document b, .checkout-document small { display: block; }
.checkout-document b { font-size: 10px; }
.checkout-document small { margin-top: 5px; color: #7e8c9e; font-size: 8px; }
.checkout-document strong { font-size: 11px; }
.checkout-add, .checkout-remove { margin-top: 18px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 800; }
.checkout-remove { float: right; color: #8a5960; }
.checkout-next { margin-top: 35px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.checkout-next > a, .checkout-back { padding: 0; border: 0; color: #6f7e91; background: transparent; font-size: 9px; }
.checkout-summary { padding: 26px; }
.checkout-summary > span { color: #77869a; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.checkout-summary dl { margin: 20px 0; padding-block: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-summary dl > div { padding: 6px 0; display: flex; justify-content: space-between; color: #627187; font-size: 9px; }
.checkout-summary dd { margin: 0; color: var(--ink); font-weight: 800; }
.checkout-summary > p { padding: 12px; color: #39734f; background: #eaf6ee; font-size: 8px; line-height: 1.5; }
.checkout-summary > strong { display: block; margin-top: 23px; font-family: var(--font-serif); font-size: 30px; font-weight: 400; }
.checkout-summary > small { display: block; margin-top: 7px; color: #8a98a9; font-size: 8px; }
.checkout-form { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.checkout-form label { display: grid; gap: 7px; color: #607086; font-size: 8px; font-weight: 800; }
.checkout-form input, .checkout-form select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 10px; }
.checkout-consent { margin-top: 22px; display: flex; align-items: center; gap: 9px; color: #6d7b8e; font-size: 8px; }
.checkout-success { max-width: 720px; margin: 0 auto; padding: 54px; border: 1px solid var(--line); background: #fff; text-align: center; }
.checkout-success > span { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4c9168; font-size: 23px; }
.checkout-success h2 { margin: 16px 0 10px; font-family: var(--font-serif); font-size: 36px; font-weight: 400; }
.checkout-success p { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: 10px; line-height: 1.7; }
.payment-state { width: fit-content; margin: 18px auto 0; padding: 8px 12px; color: #75602f; background: #f8f1dd; font-size: 10px; font-weight: 800; }
.payment-state-succeeded { color: #397553; background: #eaf5ee; }
.payment-state-canceled { color: #8d2939; background: #fff0f2; }
.checkout-success > div:last-child { margin-top: 26px; display: flex; justify-content: center; gap: 10px; }

/* Authentication */
.auth-page { min-height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(360px,.85fr) 1.15fr; background: #fff; }
.auth-brand-panel { min-height: 100vh; padding: 42px clamp(35px,5vw,78px); display: flex; flex-direction: column; color: #fff; background-color: var(--blue-dark); background-image: linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px); background-size: 58px 58px; }
.auth-brand .brand-logo-image { filter: brightness(0) invert(1); }
.auth-brand-panel > div { margin-block: auto; }
.auth-brand-panel > div > span { color: #8ab9ec; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.auth-brand-panel h1 { max-width: 570px; margin: 18px 0; font-family: var(--font-serif); font-size: clamp(38px,4vw,54px); line-height: 1.08; font-weight: 400; }
.auth-brand-panel p { max-width: 520px; color: #bacbe0; font-size: 12px; line-height: 1.75; }
.auth-brand-panel ul { margin: 30px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.auth-brand-panel li { color: #d3deeb; font-size: 10px; }
.auth-brand-panel li::before { content: "✓"; margin-right: 10px; color: #7fb6ee; }
.auth-brand-panel > small { color: #7890ad; font-size: 8px; }
.auth-workspace { padding: 70px 24px; display: grid; place-items: center; }
.auth-card { width: min(430px,100%); }
.auth-back { color: #718096; font-size: 9px; }
.auth-title { margin: 50px 0 28px; }
.auth-title > span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.auth-title h2, .auth-sent h2 { margin: 11px 0 9px; font-family: var(--font-serif); font-size: 32px; font-weight: 400; }
.auth-title p, .auth-sent p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.auth-card > label { margin-bottom: 16px; display: grid; gap: 7px; color: #5e6e82; font-size: 8px; font-weight: 800; }
.auth-card > label input { height: 48px; padding: 0 13px; border: 1px solid var(--line); outline: 0; font: inherit; font-size: 10px; }
.auth-card > label input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,75,160,.07); }
.auth-error { margin: 0 0 14px; padding: 11px 13px; border-left: 3px solid #a63142; background: #fff3f5; color: #8d2939; font-size: 9px; line-height: 1.55; }
.auth-demo-credentials { margin-top: 18px; padding: 13px; display: grid; gap: 4px; border: 1px solid var(--line); background: #f7f9fc; color: #66758a; font-size: 8px; line-height: 1.45; }
.auth-demo-credentials b { margin-top: 4px; color: var(--ink); }
.auth-options { margin: 2px 0 24px; display: flex; justify-content: space-between; gap: 20px; color: #718096; font-size: 8px; }
.auth-options label { display: flex; align-items: center; gap: 7px; }
.auth-options button, .auth-switch button, .auth-text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 8px; font-weight: 800; }
.auth-switch { margin-top: 24px; padding-top: 20px; display: flex; justify-content: center; gap: 8px; border-top: 1px solid var(--line); color: #718096; font-size: 8px; }
.auth-text-button { margin-top: 22px; }
.auth-sent { text-align: center; }
.auth-sent > span { width: 60px; height: 60px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4c9168; font-size: 20px; }
.auth-sent .button { margin-top: 24px; }

/* Profile additions and UI system */
.profile-applications article { min-height: 82px; padding: 15px 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.profile-applications article:last-child { border-bottom: 0; }
.profile-applications article > span:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile-applications article > span > i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-style: normal; font-weight: 800; }
.profile-applications b, .profile-applications small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-applications b { font-size: 10px; }
.profile-applications small { margin-top: 5px; color: #7c8a9c; font-size: 8px; }
.profile-applications em { padding: 7px 9px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.profile-applications button { border: 0; color: var(--blue); background: transparent; font-size: 8px; font-weight: 800; }
.profile-settings { padding: 28px; }
.profile-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.profile-settings-grid label { display: grid; gap: 7px; color: #627187; font-size: 8px; font-weight: 800; }
.profile-settings-grid input { height: 44px; padding: 0 12px; border: 1px solid var(--line); outline: 0; font: inherit; font-size: 9px; }
.profile-settings-grid input:focus { border-color: var(--blue); }
.profile-notifications { margin-top: 28px; padding-top: 22px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.profile-notifications > b { margin-bottom: 4px; font-size: 10px; }
.profile-notifications label { display: flex; align-items: center; gap: 9px; color: #627187; font-size: 9px; }
.profile-settings-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; }
.profile-settings-actions a,
.profile-settings-actions > button:not(.button) { padding: 0; border: 0; background: transparent; color: #8a5960; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.batch-checkout { margin-top: 16px; }
.system-page { min-height: 100vh; background: var(--paper); }
.system-heading { padding: 70px 0 58px; color: #fff; background: var(--blue-dark); }
.system-heading span { color: #84b8ee; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.system-heading h1 { margin: 15px 0 12px; font-family: var(--font-serif); font-size: 52px; font-weight: 400; }
.system-heading p { margin: 0; color: #b9cbe0; font-size: 12px; }
.system-workspace { padding: 45px 0 90px; }
.system-sections { display: grid; gap: 16px; }
.system-block { padding: 32px; border: 1px solid var(--line); background: #fff; }
.system-block > header { margin-bottom: 28px; display: flex; align-items: center; gap: 16px; }
.system-block > header span { color: #85a6cc; font-size: 9px; }
.system-block > header h2 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 400; }
.system-block > p { margin: 20px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.system-logo-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.system-logo-row > div { min-height: 150px; display: grid; place-items: center; }
.system-logo-row .dark { background: var(--blue-dark); }
.system-logo-row .dark .brand-logo-image { filter: brightness(0) invert(1); }
.system-colors { display: grid; grid-template-columns: repeat(5,1fr); }
.system-colors > div { min-height: 145px; padding: 18px; display: flex; flex-direction: column; justify-content: end; color: #fff; }
.system-colors b, .system-colors small { display: block; }
.system-colors b { font-size: 9px; }
.system-colors small { margin-top: 5px; opacity: .75; font-size: 8px; }
.system-type { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.system-type span { color: #7d8b9c; font-size: 8px; text-transform: uppercase; }
.system-type h3 { margin: 15px 0 0; font-family: var(--font-serif); font-size: 35px; line-height: 1.2; font-weight: 400; }
.system-type p { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.system-elements { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; }
.system-elements > div { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 9px; }
.system-elements > div:nth-child(2) { display: grid; }
.system-elements label { display: grid; gap: 6px; color: #657489; font-size: 8px; font-weight: 800; }
.system-elements input, .system-elements select { height: 43px; padding: 0 11px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 9px; }
.system-rules { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.system-rules p { margin: 0; padding: 24px; border-right: 1px solid var(--line); }
.system-rules p:last-child { border-right: 0; }
.system-rules b, .system-rules span { display: block; }
.system-rules b { color: var(--blue); font-size: 18px; }
.system-rules span { margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.6; }

/* Simple administration prototype */
.admin-page { min-height: 100vh; background: #f3f6fa; }
.admin-header { position: sticky; top: 82px; z-index: 15; height: 58px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.admin-header > b { color: var(--blue-dark); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.admin-header-meta { display: flex; align-items: center; gap: 26px; color: #738096; font-size: 10px; font-weight: 700; }
.admin-header-meta a { color: var(--blue); }
.admin-layout { min-height: calc(100vh - 140px); display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.admin-sidebar { padding: 28px 18px; display: flex; flex-direction: column; color: #d4dfed; background: var(--blue-dark); }
.admin-account { padding: 0 10px 26px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-account > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-dark); background: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.admin-account span, .admin-account b, .admin-account small { display: block; }
.admin-account b { color: #fff; font-size: 11px; }
.admin-account small { margin-top: 4px; color: #8fa5c1; font-size: 8px; }
.admin-sidebar nav { margin-top: 24px; display: grid; gap: 5px; }
.admin-sidebar nav button { width: 100%; min-height: 48px; padding: 0 13px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; border: 0; color: #9db0c8; background: transparent; text-align: left; font-size: 11px; font-weight: 700; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { color: #fff; background: rgba(255,255,255,.1); }
.admin-sidebar nav button i { color: #6f8bad; font-size: 8px; font-style: normal; }
.admin-sidebar nav button em { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #357ecb; font-size: 8px; font-style: normal; }
.admin-demo-note { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.13); }
.admin-demo-note b { color: #82b9f0; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.admin-demo-note p { margin: 8px 0 0; color: #9eb0c6; font-size: 8px; line-height: 1.65; }
.admin-content { min-width: 0; padding: 48px clamp(28px,4vw,66px) 70px; }
.admin-heading > span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.admin-heading h1 { margin: 10px 0 8px; font-family: var(--font-serif); font-size: 40px; line-height: 1; font-weight: 400; letter-spacing: -1px; }
.admin-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-metrics { margin-top: 32px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.admin-metrics article { min-height: 146px; padding: 21px; border: 1px solid var(--line); background: #fff; }
.admin-metrics span, .admin-metrics small { display: block; color: #77879a; font-size: 9px; }
.admin-metrics b { display: block; margin: 18px 0 7px; color: var(--blue-dark); font-family: var(--font-serif); font-size: 32px; font-weight: 400; }
.admin-overview-grid { margin-top: 14px; display: grid; grid-template-columns: 1.5fr .8fr; gap: 14px; }
.admin-panel { border: 1px solid var(--line); background: #fff; }
.admin-panel-head { min-height: 74px; padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.admin-panel-head span { color: #8290a2; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.admin-panel-head h2 { margin: 5px 0 0; font-family: var(--font-serif); font-size: 18px; font-weight: 400; }
.admin-panel-head button { border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 800; }
.admin-mini-list article { min-height: 74px; padding: 13px 20px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.admin-mini-list article:last-child { border-bottom: 0; }
.admin-mini-list article > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-style: normal; font-weight: 800; }
.admin-mini-list b, .admin-mini-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-mini-list b { font-size: 10px; }
.admin-mini-list small { max-width: 330px; margin-top: 4px; color: #7a899c; font-size: 8px; }
.admin-mini-list time { color: #8290a2; font-size: 8px; }
.admin-status { padding: 6px 8px; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.status-new { color: #145ba9; background: #e5f0fc; }
.status-review { color: #8a6518; background: #fff3d5; }
.status-accepted { color: #32744e; background: #e3f3e9; }
.status-revision { color: #9a483f; background: #fae7e5; }
.admin-actions > button, .admin-actions > a { width: 100%; min-height: 67px; padding: 0 20px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.admin-actions > button:last-child, .admin-actions > a:last-child { border-bottom: 0; }
.admin-actions > button:hover, .admin-actions > a:hover { background: #f8fafc; }
.admin-actions i { color: #83a8d1; font-size: 8px; font-style: normal; }
.admin-actions b, .admin-actions small { display: block; }
.admin-actions b { font-size: 10px; }
.admin-actions small { margin-top: 4px; color: #8290a2; font-size: 8px; }
.admin-actions strong { color: var(--blue); font-size: 12px; }
.admin-toolbar { margin: 30px 0 14px; padding: 15px; display: grid; grid-template-columns: minmax(240px,1fr) 220px; gap: 10px; border: 1px solid var(--line); background: #fff; }
.admin-toolbar label > span { display: block; margin: 0 0 7px; color: #718096; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.admin-toolbar input, .admin-toolbar select { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-control); outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }
.admin-toolbar input:focus, .admin-toolbar select:focus { border-color: var(--blue); }
.admin-table-wrap { margin-top: 14px; overflow-x: auto; }
.admin-table { min-width: 780px; }
.admin-table-row { min-height: 75px; padding: 13px 20px; display: grid; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); font-size: 9px; }
.admin-table-row:last-child { border-bottom: 0; }
.applications-table .admin-table-row { grid-template-columns: minmax(260px,1.5fr) minmax(180px,1fr) 110px 150px; }
.services-table .admin-table-row { grid-template-columns: 70px minmax(300px,1.5fr) minmax(130px,.7fr) 130px; }
.documents-table .admin-table-row { grid-template-columns: minmax(300px,1.5fr) minmax(210px,1fr) 140px 150px; }
.admin-table-header { min-height: 45px; color: #718096; background: #f7f9fc; font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.admin-table-row span b, .admin-table-row span small { display: block; }
.admin-table-row span b { font-size: 10px; }
.admin-table-row span small { margin-top: 5px; color: #8290a2; font-size: 8px; }
.admin-status-select select { width: 100%; height: 36px; padding: 0 9px; border: 0; outline: 0; color: inherit; background: inherit; font: inherit; font-size: 8px; font-weight: 800; }
.admin-section-summary { margin: 30px 0 0; padding: 16px 20px; display: flex; justify-content: space-between; border: 1px solid var(--line); background: #fff; color: #728196; font-size: 9px; }
.admin-section-summary b, .admin-section-summary a { color: var(--blue); }
.admin-order { color: #89a0ba; font-size: 11px; }
.admin-switch { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; cursor: pointer; }
.admin-switch input { position: absolute; opacity: 0; pointer-events: none; }
.admin-switch i { position: relative; width: 34px; height: 19px; border-radius: 10px; background: #cbd5e1; transition: .2s; }
.admin-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: .2s; }
.admin-switch input:checked + i { background: var(--blue); }
.admin-switch input:checked + i::after { transform: translateX(15px); }
.admin-switch span { font-size: 8px; font-weight: 700; }
.admin-empty { padding: 50px 20px; color: #718096; text-align: center; font-size: 10px; }
.analytics-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.analytics-period { padding: 4px; display: flex; gap: 3px; border: 1px solid var(--line); background: #fff; }
.analytics-period button { min-width: 72px; height: 36px; padding: 0 12px; border: 0; color: #68798e; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.analytics-period button:hover, .analytics-period button.active { color: #fff; background: var(--blue); }
.analytics-message { margin-top: 30px; padding: 42px 24px; color: #718096; text-align: center; font-size: 11px; }
.analytics-error { color: #9a483f; background: #fff7f6; }
.analytics-notice { margin-top: 22px; padding: 13px 16px; border: 1px solid #ead7a4; color: #7e641e; background: #fff9e9; font-size: 9px; line-height: 1.5; }
.admin-metrics.analytics-metrics { grid-template-columns: repeat(5,1fr); }
.analytics-metrics article { min-width: 0; }
.analytics-metrics b { overflow: hidden; font-size: clamp(24px,2.3vw,32px); text-overflow: ellipsis; }
.analytics-chart-panel { margin-top: 14px; }
.analytics-chart-panel .admin-panel-head > small { color: #7c8b9d; font-size: 9px; }
.analytics-chart-scroll { padding: 28px 22px 10px; overflow-x: auto; }
.analytics-chart { height: 190px; display: flex; align-items: stretch; gap: 5px; }
.analytics-day { min-width: 20px; flex: 1; display: grid; grid-template-rows: 1fr 24px; gap: 8px; }
.analytics-bars { min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid #dfe6ee; }
.analytics-bars i, .analytics-bars b { width: min(42%,10px); display: block; border-radius: 2px 2px 0 0; }
.analytics-bars i { background: #4b8fd8; }
.analytics-bars b { background: #46a477; }
.analytics-day > span { color: #8b98a8; font-size: 7px; text-align: center; white-space: nowrap; }
.analytics-legend { padding: 0 22px 18px; display: flex; justify-content: flex-end; gap: 18px; color: #738296; font-size: 8px; }
.analytics-legend span { display: flex; align-items: center; gap: 6px; }
.analytics-legend i, .analytics-legend b { width: 9px; height: 9px; display: block; border-radius: 2px; }
.analytics-legend i { background: #4b8fd8; }
.analytics-legend b { background: #46a477; }
.analytics-grid { margin-top: 14px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; align-items: start; }
.analytics-funnel article { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.analytics-funnel article:last-child { border-bottom: 0; }
.analytics-funnel article > div:first-child { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; }
.analytics-funnel article > div:first-child span { color: #8da0b5; font-size: 8px; }
.analytics-funnel article > div:first-child b { font-size: 10px; }
.analytics-funnel article > div:first-child strong { color: var(--blue-dark); font-size: 11px; }
.analytics-funnel-track { height: 6px; margin: 10px 0 7px; overflow: hidden; background: #edf2f7; }
.analytics-funnel-track i { height: 100%; display: block; background: linear-gradient(90deg,var(--blue),#70a9e4); }
.analytics-funnel article > small { color: #8190a2; font-size: 8px; }
.analytics-payments article { min-height: 70px; padding: 13px 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 12px; border-bottom: 1px solid var(--line); }
.analytics-payments article:last-child { border-bottom: 0; }
.analytics-payments span b, .analytics-payments span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-payments span b { font-size: 9px; }
.analytics-payments span small { margin-top: 5px; color: #7b8a9d; font-size: 8px; }
.analytics-payments strong { color: #32744e; font-size: 10px; }
.analytics-payments time { grid-column: 1 / -1; color: #8b98a8; font-size: 7px; }
.analytics-sources { margin-top: 14px; overflow: hidden; }
.analytics-source-table { overflow-x: auto; }
.analytics-source-row { min-width: 850px; min-height: 62px; padding: 12px 20px; display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(180px,1fr) 90px 80px 80px 110px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); font-size: 9px; }
.analytics-source-row:last-child { border-bottom: 0; }
.analytics-source-row span b, .analytics-source-row span small { display: block; }
.analytics-source-row span b { font-size: 10px; }
.analytics-source-row span small { margin-top: 4px; color: #8190a2; font-size: 8px; }
.analytics-source-row strong { color: var(--blue-dark); font-size: 10px; }
.analytics-source-header { min-height: 42px; color: #718096; background: #f7f9fc; font-size: 8px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Brand exploration */
.brand-lab { min-height: 100vh; background: var(--paper); }
.lab-header { border-bottom: 1px solid var(--line); background: #fff; }
.lab-header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; color: #6d7b8e; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.lab-back { color: var(--blue); font-size: 11px; letter-spacing: 0; }
.lab-intro { padding: 84px 0 55px; background: #fff; }
.lab-intro h1 { margin: 16px 0 18px; font-family: var(--font-serif); font-size: clamp(44px,6vw,74px); line-height: 1; font-weight: 400; letter-spacing: -2px; }
.lab-intro p { max-width: 740px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.logo-concepts { padding-block: 44px 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.logo-concept { border: 1px solid var(--line); background: #fff; }
.logo-concept-selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(13,75,160,.1),0 18px 45px rgba(19,53,93,.1); }
.logo-concept-selected .concept-meta { color: #fff; border-color: var(--blue); background: var(--blue); }
.logo-concept:last-child { grid-column: 1 / -1; }
.concept-meta { height: 46px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #718096; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.concept-stage { min-height: 250px; padding: 42px; display: grid; place-items: center; background-color: #fff; background-image: linear-gradient(#edf1f6 1px,transparent 1px),linear-gradient(90deg,#edf1f6 1px,transparent 1px); background-size: 32px 32px; }
.logo-lockup { display: flex; align-items: center; gap: 18px; }
.final-logo-lockup .brand-logo-image { width: 360px; max-width: 100%; }
.concept-mark { position: relative; display: block; flex: 0 0 auto; width: 64px; height: 64px; }
.concept-word { color: var(--blue-dark); font-size: 34px; line-height: .88; font-weight: 800; letter-spacing: -1.8px; }
.concept-word > em { color: #5c9fe7; font-style: normal; }
.concept-word small, .wordmark-only small { display: block; margin-top: 8px; color: #6c7a8e; font-size: 7px; line-height: 1; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.concept-copy { min-height: 105px; padding: 22px 25px; border-top: 1px solid var(--line); }
.concept-copy h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 23px; font-weight: 400; }
.concept-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.logo-orbit .concept-mark { border: 5px solid var(--blue); border-radius: 50%; }
.logo-orbit .concept-mark::before { content: ""; position: absolute; inset: 10px; border: 4px solid transparent; border-top-color: #61a6ee; border-right-color: #61a6ee; border-radius: 50%; transform: rotate(18deg); }
.logo-orbit .concept-mark::after { content: ""; position: absolute; width: 11px; height: 11px; right: -8px; top: 5px; border: 4px solid #fff; border-radius: 50%; background: var(--blue); }
.logo-orbit .concept-mark i { position: absolute; width: 5px; height: 23px; left: 25px; top: 16px; background: var(--blue); transform: rotate(38deg); }
.logo-orbit .concept-mark b { position: absolute; width: 15px; height: 4px; right: 9px; bottom: 14px; background: var(--blue); transform: rotate(-34deg); }

.logo-op .concept-mark { border-radius: 18px; background: var(--blue-dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.logo-op .concept-mark::before { content: "O"; position: absolute; left: 10px; top: 3px; color: #fff; font-family: var(--font-serif); font-size: 48px; line-height: 1; }
.logo-op .concept-mark::after { content: ""; position: absolute; left: 31px; top: 15px; width: 4px; height: 35px; background: #79b8f5; }
.logo-op .concept-mark i { position: absolute; z-index: 1; left: 31px; top: 14px; width: 18px; height: 4px; background: #79b8f5; }
.logo-op .concept-mark b { position: absolute; z-index: 1; left: 31px; top: 28px; width: 13px; height: 4px; background: #79b8f5; }

.logo-academy .concept-mark { border: 4px solid var(--blue); border-top-left-radius: 32px; border-top-right-radius: 32px; }
.logo-academy .concept-mark::before { content: ""; position: absolute; left: 13px; right: 13px; top: 18px; height: 5px; background: var(--blue); box-shadow: 0 27px 0 var(--blue); }
.logo-academy .concept-mark::after { content: ""; position: absolute; left: 17px; top: 25px; width: 5px; height: 19px; background: #69a9ed; box-shadow: 10px 0 0 #69a9ed,20px 0 0 #69a9ed; }
.logo-academy .concept-mark i { position: absolute; left: 22px; top: -7px; width: 14px; height: 14px; border-top: 4px solid var(--blue); border-left: 4px solid var(--blue); transform: rotate(45deg); background: #fff; }

.logo-vector .concept-mark { border: 5px solid var(--blue); border-radius: 50%; }
.logo-vector .concept-mark::before { content: ""; position: absolute; inset: 10px; border: 2px solid #8ebce9; border-radius: 50%; }
.logo-vector .concept-mark::after { content: ""; position: absolute; width: 22px; height: 9px; left: 15px; top: 21px; border-left: 6px solid var(--blue); border-bottom: 6px solid var(--blue); transform: rotate(-45deg); }
.logo-vector .concept-mark i { position: absolute; right: -4px; top: -4px; width: 14px; height: 14px; border: 4px solid #fff; border-radius: 50%; background: #69a9ed; }

.logo-wordmark .concept-stage { min-height: 275px; background-color: var(--blue-dark); background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); }
.wordmark-only { position: relative; color: #fff; font-size: 50px; line-height: .78; font-weight: 800; letter-spacing: -3px; }
.wordmark-only b { font-weight: 800; }
.wordmark-only > em { color: #7db8f3; font-style: normal; }
.wordmark-only small { position: absolute; left: 0; top: 52px; color: #a9bdd5; letter-spacing: 2px; white-space: nowrap; }
.wordmark-o { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: 2px; border: 5px solid #fff; border-radius: 50%; font-size: 0; }
.wordmark-o::before { content: ""; width: 5px; height: 23px; background: #7db8f3; transform: rotate(38deg); }
.wordmark-o i { position: absolute; right: -8px; top: 2px; width: 10px; height: 10px; border: 3px solid var(--blue-dark); border-radius: 50%; background: #7db8f3; }
.lab-note { padding: 54px 0; color: #fff; background: var(--blue-dark); }
.lab-note .shell { display: grid; grid-template-columns: 150px 1fr auto; gap: 40px; align-items: center; }
.lab-note b { color: #82b9f0; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.lab-note p { margin: 0; max-width: 720px; color: #c2d1e3; font-size: 12px; line-height: 1.7; }
.lab-note a { color: #fff; font-size: 11px; font-weight: 800; }

@media (max-width: 1240px) {
  .nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 24px max(24px, calc((100vw - 1180px) / 2)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(11,29,53,.08); flex-direction: column; gap: 18px; }
  .nav-open { display: flex; }
  .nav-mobile-actions { margin-top: 4px; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); }
  .nav-mobile-actions a:last-child { color: var(--blue); font-weight: 800; }
  .header-actions { display: none; }
  .menu-button { display: block; }
  .header-inner { display: flex; justify-content: space-between; }
}

@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 24px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; }
  .nav-open { display: flex; }
  .header-actions { display: none; }
  .menu-button { display: block; }
  .hero-copy { width: min(620px, 67vw); }
  .program-grid { grid-template-columns: repeat(2,1fr); }
  .scenario-grid { grid-template-columns: repeat(2,1fr); }
  .expert-grid, .portfolio-grid, .document-grid, .faq-grid { grid-template-columns: 1fr; gap: 50px; }
  .expert-photo { min-height: 560px; }
  .org-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .logo-concepts { grid-template-columns: 1fr; }
  .logo-concept:last-child { grid-column: auto; }
  .lab-note .shell { grid-template-columns: 1fr; gap: 14px; }
  .flow-hero-grid, .editor-grid { grid-template-columns: 1fr; gap: 34px; }
  .flow-note { max-width: 440px; }
  .editor-form { order: 1; }
  .editor-preview { order: 2; }
  .verify-section { background: var(--paper); }
  .verify-grid, .organization-grid { grid-template-columns: 1fr; gap: 48px; }
  .registry-card { max-width: 700px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-sidebar nav { display: grid; grid-template-columns: repeat(3,1fr); }
  .profile-sidebar nav button { border-right: 1px solid var(--line); border-bottom: 0; }
  .profile-sidebar nav button:last-child { border-right: 0; }
  .profile-demo-note { display: none; }
  .activity-list { grid-template-columns: 1fr 1fr; }
  .application-heading-grid { grid-template-columns: 1fr; gap: 38px; }
  .application-steps { max-width: 440px; }
  .olympiad-explainer { grid-template-columns: 1fr; gap: 22px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; padding: 12px 20px; display: block; }
  .admin-account, .admin-demo-note { display: none; }
  .admin-sidebar nav { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
  .admin-sidebar nav button { grid-template-columns: auto 1fr auto; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics.analytics-metrics { grid-template-columns: 1fr 1fr; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .service-detail-hero-grid, .service-detail-body { grid-template-columns: 1fr; gap: 44px; }
  .service-facts { max-width: 620px; }
  .service-trust { grid-template-columns: 1fr 1fr; }
  .service-trust article:last-of-type { grid-column: 1 / -1; }
  .service-assurance > .shell { grid-template-columns: 1fr 1fr; }
  .service-assurance > .shell > .button { width: fit-content; }
  .home-trust-heading { grid-template-columns: 1fr; gap: 20px; }
  .home-trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 1180px); }
  .header-inner { height: 70px; }
  .nav { top: 70px; padding-inline: 16px; }
  .auth-page { min-height: calc(100vh - 70px); }
  .hero, .hero-grid { min-height: 650px; }
  .hero-grid { padding-block: 54px; }
  .hero::before { background: linear-gradient(90deg,rgba(5,29,67,.98),rgba(5,29,67,.9) 72%,rgba(5,29,67,.62)); }
  .hero-background { object-position: 65% center; opacity: .55; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions, .trust-line, .section-head, .footer-bottom { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-line { gap: 15px; }
  .hero-audit { align-items: stretch; flex-direction: column; }
  .hero-audit button, .hero-audit a { width: 100%; text-align: center; }
  .section { padding: 74px 0; }
  .section-head { gap: 15px; align-items: flex-start; }
  .program-grid { grid-template-columns: 1fr; }
  .scenario-grid, .home-trust-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 280px; }
  .scenario-card p, .home-trust-grid p, .home-trust-heading > p, .home-legal-note { font-size: 16px; }
  .scenario-card a, .home-trust-grid a, .catalog-link { min-height: 44px; font-size: 14px; }
  .home-trust-section { padding: 72px 0; }
  .program-card { min-height: 285px; }
  .expert-section { padding-bottom: 74px; }
  .expert-photo { min-height: 500px; }
  .portfolio-section { padding: 72px 0; }
  .portfolio-map { padding: 22px; }
  .map-row > div:first-child { flex-direction: column; gap: 5px; }
  .certificate { padding: 15px; }
  .cert-frame { padding: 25px 15px; }
  .cert-frame h3 { font-size: 28px; }
  .org-card { padding: 36px 28px; }
  .org-card h2 { font-size: 34px; }
  .org-actions { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .lab-intro { padding: 60px 0 35px; }
  .lab-intro h1 { font-size: 46px; }
  .concept-stage { min-height: 220px; padding: 28px 18px; }
  .concept-word { font-size: 25px; }
  .concept-mark { width: 54px; height: 54px; transform: scale(.85); }
  .wordmark-only { font-size: 36px; }
  .wordmark-only small { top: 43px; font-size: 6px; }
  .wordmark-o { width: 38px; height: 38px; }
  .flow-header-inner { min-height: 66px; grid-template-columns: 1fr auto; }
  .flow-label { display: none; }
  .flow-hero { padding-block: 48px; }
  .flow-hero h1 { font-size: 42px; }
  .audit-card, .quiz-card, .quiz-result { padding: 28px 22px; }
  .audit-result { padding: 30px 22px; grid-template-columns: 1fr; gap: 32px; }
  .score-ring { margin: 0 auto; }
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-layout aside { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 18px; }
  .quiz-layout aside > strong { margin: 0; font-size: 40px; }
  .quiz-layout aside .flow-progress { grid-column: 1 / -1; margin: 0; }
  .quiz-feedback, .result-actions { align-items: stretch; flex-direction: column; }
  .quiz-feedback .button, .result-actions .button { width: 100%; text-align: center; }
  .editor-workspace { padding-top: 26px; }
  .editor-form { padding: 24px 20px; }
  .editor-step-panel { min-height: 0; }
  .editor-steps button { min-height: 62px; font-size: 11px; }
  .editor-draft-state { align-items: flex-start; flex-direction: column; font-size: 12px; }
  .editor-form label, .olympiad-select-group { font-size: 14px; }
  .editor-form input, .editor-form select, .editor-form textarea { min-height: 48px; font-size: 16px; }
  .editor-form label > small, .olympiad-select-group > small, .editor-account-box > small, .account-status { font-size: 13px; }
  .form-head p, .batch-delivery-note { font-size: 14px; }
  .editor-step-actions { align-items: stretch; flex-direction: column-reverse; }
  .editor-step-actions .button { width: 100%; }
  .editor-review > div { grid-template-columns: 1fr; gap: 5px; }
  .editor-review dt { font-size: 13px; }
  .editor-review dd { font-size: 15px; }
  .mobile-preview-button { display: flex; }
  .editor-preview { display: none; padding: 10px; }
  .editor-preview.preview-open { position: fixed; z-index: 100; inset: 0; display: block; overflow-y: auto; padding: 12px; background: #dce6f1; }
  .editor-preview.preview-open .preview-toolbar { position: sticky; z-index: 5; top: 0; min-height: 58px; padding: 7px 4px 10px; align-items: center; background: #dce6f1; }
  .editor-preview.preview-open .preview-toolbar > button { display: grid; place-items: center; }
  .editor-certificate { padding: 12px; }
  .editor-certificate .cert-frame { min-height: 420px; }
  .catalog-search { grid-template-columns: 1fr; gap: 8px; }
  .catalog-summary { gap: 14px; flex-direction: column; }
  .olympiad-grid { grid-template-columns: 1fr; }
  .olympiad-card { min-height: 340px; padding: 24px 20px; }
  .olympiad-card-top { align-items: flex-start; }
  .olympiad-card-top > div { align-items: flex-end; flex-direction: column; }
  .olympiad-card dl > div { padding-inline: 8px; }
  .olympiad-explainer { margin-top: 34px; padding: 28px 22px; }
  .olympiad-explainer h2 { font-size: 25px; }
  .verify-section { padding-block: 54px; }
  .verify-copy form > div { grid-template-columns: 1fr; gap: 8px; }
  .verify-copy input { border-right: 1px solid var(--line); }
  .registry-card { min-height: 410px; padding: 28px 22px; }
  .registry-result dl > div { grid-template-columns: 1fr; gap: 5px; }
  .organization-hero { padding-block: 60px; }
  .organization-hero h1 { font-size: 50px; }
  .organization-grid { gap: 36px; }
  .consultation-card { padding: 28px 22px; }
  .profile-heading-inner, .profile-section-head { align-items: flex-start; flex-direction: column; }
  .profile-section-head > div { width: 100%; min-width: 0; }
  .profile-section-head h2 { overflow-wrap: anywhere; }
  .profile-heading-inner .button { width: 100%; }
  .profile-person { align-items: flex-start; }
  .profile-layout { gap: 22px; }
  .profile-sidebar { overflow-x: auto; }
  .profile-sidebar nav { min-width: 680px; }
  .profile-metrics, .profile-two-columns, .activity-list { grid-template-columns: 1fr; }
  .profile-next-step { padding: 24px 20px; grid-template-columns: 1fr; gap: 26px; }
  .profile-table { overflow-x: auto; }
  .profile-table-head, .document-row.full { min-width: 680px; }
  .profile-orders { overflow-x: auto; }
  .profile-orders > div { min-width: 660px; }
  .application-heading { padding-block: 48px; }
  .application-type-grid, .application-form-grid { grid-template-columns: 1fr; }
  .application-form-grid label.wide { grid-column: auto; }
  .application-card { padding: 28px 20px; }
  .application-actions { align-items: stretch; flex-direction: column-reverse; }
  .application-actions .button, .application-actions > a, .application-actions .back-action { width: 100%; text-align: center; }
  .review-card dl > div { grid-template-columns: 1fr; gap: 5px; }
  .application-success { padding: 42px 22px; }
  .application-success > div:last-child { width: 100%; flex-direction: column; }
  .admin-header { top: 70px; height: 58px; padding: 0 16px; }
  .admin-header .brand small, .admin-header-meta > span { display: none; }
  .admin-header-meta a:first-of-type { display: none; }
  .admin-header-meta { gap: 10px; }
  .admin-sidebar { padding-inline: 10px; overflow-x: auto; }
  .admin-sidebar nav { min-width: 680px; }
  .admin-content { padding: 36px 16px 60px; }
  .admin-heading h1 { font-size: 34px; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metrics.analytics-metrics { grid-template-columns: 1fr; }
  .admin-metrics article { min-height: 125px; }
  .analytics-heading-row { align-items: stretch; flex-direction: column; }
  .analytics-period { width: 100%; }
  .analytics-period button { min-width: 0; flex: 1; }
  .admin-mini-list article { grid-template-columns: 34px minmax(0,1fr) auto; }
  .admin-mini-list time { display: none; }
  .admin-status { grid-column: 2; justify-self: start; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-section-summary { gap: 12px; align-items: flex-start; flex-direction: column; }
  .menu-button { width: 44px; height: 44px; }
  .filter { min-height: 44px; font-size: 14px; }
  .section-head > p, .expert-copy > p, .portfolio-copy p, .document-point p, .org-card p, .faq-grid > div:first-child > p, .faq-item p { font-size: 16px; }
  .faq-item button { min-height: 56px; font-size: 16px; }
  .text-action, .card-footer a, .card-footer button { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
}

@media (max-width: 980px) {
  .result-document-grid, .checkout-grid { grid-template-columns: 1fr; }
  .result-certificate { order: -1; }
  .publication-grid { grid-template-columns: 1fr 1fr; }
  .publication-body { grid-template-columns: 150px 1fr; gap: 38px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: auto; padding-block: 34px; }
  .auth-brand-panel > div, .auth-brand-panel > small { display: none; }
  .system-colors { grid-template-columns: repeat(3,1fr); }
  .system-type, .system-elements { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .brand-logo-image { width: 195px; }
  .certificate-brand-logo { width: 150px; }
  .about-content { padding-block: 48px 70px; }
  .about-principles { grid-template-columns: 1fr; margin-block: 38px 48px; }
  .about-principles article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-principles article:last-child { border-bottom: 0; }
  .about-principles h3 { margin-top: 24px; }
  .about-requisites { padding: 28px 22px; grid-template-columns: 1fr; gap: 30px; }
  .about-requisites dl > div { grid-template-columns: 1fr; gap: 4px; }
  .about-contact { padding: 30px 22px; grid-template-columns: 1fr; gap: 28px; }
  .olympiad-rules { padding: 28px 20px; }
  .olympiad-rules h2, .result-document-form h2 { font-size: 30px; }
  .olympiad-rules dl { grid-template-columns: 1fr 1fr; }
  .olympiad-rules dl > div { border-bottom: 1px solid var(--line); }
  .olympiad-rules dl > div:nth-child(2) { border-right: 0; }
  .olympiad-rules dl > div:nth-child(n+3) { border-bottom: 0; }
  .result-breakdown { grid-template-columns: 1fr; }
  .result-breakdown span { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-breakdown span:last-child { border-bottom: 0; }
  .result-document-form { padding: 28px 20px; }
  .publication-callout, .checkout-heading > .shell { align-items: flex-start; flex-direction: column; }
  .publication-callout { padding: 25px 21px; }
  .publication-callout .button { width: 100%; }
  .publication-grid { grid-template-columns: 1fr; }
  .publication-detail-head { padding-block: 45px; }
  .publication-detail-head a { margin-bottom: 28px; }
  .publication-body { padding-block: 35px 70px; grid-template-columns: 1fr; gap: 20px; }
  .publication-body aside { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .publication-body .publication-lead { font-size: 15px; }
  .checkout-heading { padding-block: 34px; }
  .checkout-steps { width: 100%; justify-content: space-between; gap: 8px; }
  .checkout-steps > span { flex-direction: column; align-items: flex-start; }
  .checkout-card { padding: 25px 19px; }
  .checkout-document { grid-template-columns: 38px 1fr; }
  .checkout-document > strong { grid-column: 2; }
  .checkout-next, .checkout-success > div:last-child { align-items: stretch; flex-direction: column-reverse; }
  .checkout-next .button, .checkout-success .button { width: 100%; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-success { padding: 42px 21px; }
  .auth-brand-panel { padding: 25px 20px; }
  .auth-workspace { padding: 38px 20px 60px; align-items: start; }
  .auth-title { margin-top: 38px; }
  .profile-applications { overflow-x: auto; }
  .profile-applications article { min-width: 680px; }
  .profile-settings { padding: 22px 18px; }
  .profile-settings-grid { grid-template-columns: 1fr; }
  .profile-settings-actions { align-items: stretch; flex-direction: column; }
  .system-heading { padding-block: 50px; }
  .system-heading h1 { font-size: 40px; }
  .system-block { padding: 24px 18px; }
  .system-logo-row, .system-colors, .system-rules { grid-template-columns: 1fr; }
  .system-rules p { border-right: 0; border-bottom: 1px solid var(--line); }
  .system-rules p:last-child { border-bottom: 0; }
  .system-type h3 { font-size: 28px; }
  .competition-note { padding: 24px 20px; grid-template-columns: 1fr; gap: 12px; }
  .competition-note a { white-space: normal; }
  .admin-application-detail, .admin-editor-grid, .admin-content-columns { grid-template-columns: 1fr; }
  .admin-editor-grid label.wide { grid-column: auto; }
  .admin-request-list article { grid-template-columns: 1fr; }
  .admin-editor-panel { padding: 22px 18px; }
  .legal-heading { padding: 48px 0 40px; }
  .legal-heading h1 { font-size: 40px; }
  .legal-content { padding: 42px 0 70px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-layout aside { position: static; grid-template-columns: 1fr; }
  .legal-operator-card dl > div { grid-template-columns: 1fr; gap: 4px; }
  .service-detail-hero { padding: 25px 0 48px; }
  .service-back { margin-bottom: 30px; }
  .service-detail-hero h1 { font-size: 40px; }
  .service-detail-hero p { font-size: 14px; }
  .service-detail-actions { flex-direction: column; }
  .service-detail-actions .button { width: 100%; }
  .service-detail-body { padding-block: 52px; gap: 32px; }
  .service-detail-body h2, .service-assurance h2 { font-size: 31px; }
  .service-trust { grid-template-columns: 1fr; padding-bottom: 52px; }
  .service-trust article:last-of-type { grid-column: auto; }
  .service-trust article { min-height: 0; }
  .service-trust p { font-size: 16px; }
  .service-trust a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .service-value ul { grid-template-columns: 1fr; }
  .service-value li { padding-right: 0; border-right: 0; }
  .service-value li:nth-child(even) { padding-left: 0; }
  .service-process { padding: 28px 20px; }
  .service-assurance > .shell { grid-template-columns: 1fr; gap: 28px; }
  .service-assurance > .shell > .button { width: 100%; }
}

@page { size: A4 portrait; margin: 0; }
@media print {
  body:has(.editor-certificate) { background: #fff; }
  body:has(.editor-certificate) > .site-header,
  body:has(.editor-certificate) .flow-header,
  body:has(.editor-certificate) .flow-hero,
  body:has(.editor-certificate) .editor-form,
  body:has(.editor-certificate) .preview-toolbar,
  body:has(.editor-certificate) .prototype-success { display: none !important; }
  body:has(.editor-certificate) .editor-workspace { padding: 0; background: #fff; }
  body:has(.editor-certificate) .editor-grid { width: 210mm; display: block; }
  body:has(.editor-certificate) .editor-preview { width: 210mm; padding: 0; border: 0; background: #fff; }
  body:has(.editor-certificate) .editor-certificate { width: 210mm; height: 297mm; padding: 10mm; background: #fff; print-color-adjust: exact; }
  body:has(.editor-certificate) .editor-certificate .cert-frame { width: 100%; height: 100%; aspect-ratio: auto; box-shadow: none; }
  body:has(.issued-certificate) > .site-header,
  body:has(.issued-certificate) .flow-header,
  body:has(.issued-certificate) .issued-document-toolbar { display: none !important; }
  body:has(.issued-certificate) .issued-document-sheet { padding: 0; overflow: visible; background: #fff; }
  body:has(.issued-certificate) .issued-certificate { width: 210mm; height: 297mm; min-height: 0; padding: 10mm; background: #fff; box-shadow: none; print-color-adjust: exact; }
  body:has(.issued-certificate) .issued-certificate .cert-frame { min-height: 0; width: 100%; height: 100%; box-shadow: none; }
}

/* Readability layer: standard interface text starts at 14–16 px. Smaller
   typography remains only inside the scaled certificate preview. */
@media screen {
  body { font-size: 16px; line-height: 1.55; }

  .nav,
  .link-button { font-size: 14px; }
  .menu-button { width: 44px; height: 44px; }
  .button { min-height: 48px; font-size: 15px; }
  .button:disabled { cursor: default; opacity: .5; transform: none; }
  .button-small { min-height: 44px; font-size: 14px; }
  .eyebrow,
  .card-type,
  .catalog-summary,
  .application-card-head > span,
  .admin-heading > span,
  .admin-panel-head span { font-size: 12px !important; }

  .hero-audit > span,
  .trust-line { font-size: 13px; }
  .hero-audit b { font-size: 15px; }
  .hero-audit button,
  .hero-audit a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .program-card p,
  .scenario-card p,
  .olympiad-card p,
  .publication-card p,
  .section-head > p { font-size: 15px !important; }
  .card-meta { font-size: 13px; }
  .card-footer button,
  .card-footer a,
  .scenario-card a,
  .catalog-link,
  .text-action { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }

  .footer-grid > div > p,
  .footer-grid b,
  .footer-grid a,
  .footer-grid > div > span { font-size: 14px; }
  .footer-grid a { min-height: 36px; display: flex; align-items: center; margin-block: 3px; }
  .footer-bottom { font-size: 12px; }

  .flow-page p,
  .profile-page p,
  .admin-page p,
  .auth-page p { font-size: 15px !important; }
  .flow-page small,
  .profile-page small,
  .admin-page small,
  .auth-page small,
  .site-header small,
  footer small { font-size: 13px !important; line-height: 1.55; }
  .flow-page label,
  .profile-page label,
  .admin-page label,
  .auth-page label,
  .flow-page dt,
  .flow-page dd,
  .profile-page time { font-size: 14px !important; }
  input,
  select,
  textarea { font-size: 16px !important; }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { min-height: 48px; }
  .flow-page button,
  .profile-page button,
  .admin-page button,
  .auth-page button { font-size: 15px; }
  .flow-back { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .flow-note b { font-size: 15px; }
  .flow-note span { font-size: 14px !important; }

  .editor-steps button { min-height: 64px; font-size: 13px; }
  .editor-steps i { width: 28px; height: 28px; font-size: 12px; }
  .editor-draft-state,
  .form-head p,
  .editor-review dt,
  .editor-review dd { font-size: 14px !important; }
  .editor-form label,
  .olympiad-select-group { font-size: 14px; }
  .editor-form label > small,
  .olympiad-select-group > small,
  .editor-account-box > small,
  .account-status { font-size: 13px !important; }
  .editor-attempt-note b { font-size: 15px; }
  .editor-attempt-note span,
  .editor-attempt-note a { font-size: 14px; }
  .design-picker button { min-height: 66px; }
  .design-picker b { font-size: 14px; }
  .bundle-offer span,
  .editor-total small,
  .batch-item > span small,
  .batch-delivery-note { font-size: 13px !important; }
  .bundle-offer b,
  .batch-item > span b,
  .batch-item > strong,
  .batch-head,
  .batch-total { font-size: 14px; }
  .batch-item > button { width: 44px; height: 44px; }

  .editor-form.added-choice-open > .editor-steps,
  .editor-form.added-choice-open > .editor-draft-state,
  .editor-form.added-choice-open > .editor-step-panel,
  .editor-form.added-choice-open > .editor-step-error,
  .editor-form.added-choice-open > .editor-step-actions,
  .editor-form.added-choice-open > .document-batch { display: none; }
  .editor-next-choice { padding: clamp(26px, 5vw, 44px); border: 1px solid #b9cfbf; border-radius: var(--radius-card); background: #f7fbf8; text-align: center; }
  .editor-choice-check { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4c9168; font-size: 25px; font-weight: 800; }
  .editor-next-choice .eyebrow { justify-content: center; }
  .editor-next-choice h2 { margin: 14px 0 8px; font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
  .editor-next-choice p { margin: 0 auto 22px; max-width: 520px; color: var(--muted); }
  .editor-choice-total { margin: 0 0 20px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; border-block: 1px solid #d7e5da; font-size: 15px; }
  .editor-choice-total b { font-size: 24px; }
  .editor-next-choice .button + .button { margin-top: 10px; }
  .editor-choice-edit { min-height: 44px; margin-top: 10px; padding: 0; border: 0; color: var(--blue); background: transparent; font-weight: 800; }

  .checkout-heading > .shell { align-items: center; }
  .checkout-heading > .shell > div:first-child > span,
  .checkout-steps > span { font-size: 13px !important; }
  .checkout-steps i { width: 30px; height: 30px; }
  .checkout-card > header > span { font-size: 13px; }
  .checkout-card header p { font-size: 15px; }
  .checkout-document b { font-size: 15px; }
  .checkout-document small { font-size: 13px !important; }
  .checkout-document strong { font-size: 16px; }
  .checkout-next > a,
  .checkout-back { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .checkout-summary > span { font-size: 13px; }
  .checkout-summary dl > div { font-size: 14px; }
  .checkout-summary > p,
  .checkout-summary > small { font-size: 13px !important; }
  .checkout-form label { font-size: 14px; }
  .checkout-form label > small { display: inline; }
  .checkout-consent { align-items: flex-start; font-size: 14px; line-height: 1.55; }
  .checkout-consent input { width: 20px; min-height: 20px; flex: 0 0 auto; }
  .checkout-success p { font-size: 16px !important; }
  .payment-state { font-size: 14px; }
  .demo-payment-notice { width: min(100%, 560px); margin: 22px auto 0; padding: 16px 18px; display: grid; gap: 4px; border: 1px solid #e4c873; border-radius: var(--radius-control); color: #624b12; background: #fff9e8; text-align: left; }
  .demo-payment-notice b { font-size: 15px; }
  .demo-payment-notice span { font-size: 14px; }
  .checkout-payment-guide { width: min(100%, 560px); margin: 22px auto 0; padding: 0; display: grid; gap: 10px; list-style: none; text-align: left; }
  .checkout-payment-guide li { padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); }
  .checkout-payment-guide i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-style: normal; font-weight: 800; }
  .checkout-payment-guide b,
  .checkout-payment-guide small { display: block; }
  .checkout-payment-guide b { font-size: 15px; }
  .checkout-payment-guide small { margin-top: 2px; color: var(--muted); font-size: 13px !important; }
  .checkout-success-actions { flex-wrap: wrap; }

  .auth-options,
  .auth-options button,
  .auth-switch button,
  .auth-text-button { font-size: 14px; }
  .form-divider,
  .preview-toolbar,
  .admin-table-header,
  .profile-table-head { font-size: 12px !important; }
  .document-row > span b,
  .profile-applications b,
  .admin-table-row,
  .admin-table-row span b,
  .admin-mini-list b { font-size: 14px !important; }
  .document-row > a,
  .profile-applications button,
  .profile-orders button,
  .profile-orders a,
  .admin-panel-head button,
  .admin-toolbar label > span,
  .admin-status,
  .admin-status-select select,
  .admin-switch span { font-size: 13px !important; }
  .profile-orders a { color: var(--blue); font-weight: 800; }
}

/* Legibility pass for customer and staff pages. Keep document artwork sizes
   untouched: these rules target interface containers only. */
@media screen {
  .flow-page .olympiad-rules li { font-size: 17px; line-height: 1.65; margin-block: 8px; }
  .flow-page .olympiad-rules h3 { margin-block: 24px 12px; font-size: 22px; }
  :where(button, a, input, select, textarea):focus-visible { outline: 3px solid #245ec9; outline-offset: 3px; }
  .nav,
  .link-button { font-size: 15px; }
  .button,
  .button-small { min-height: 48px; font-size: 16px; }

  .flow-label,
  .eyebrow,
  .card-type,
  .catalog-summary,
  .application-card-head > span,
  .admin-heading > span,
  .admin-panel-head span,
  .profile-section-head > div > span { font-size: 14px !important; letter-spacing: 1.1px; }

  .flow-back,
  .catalog-link,
  .text-action,
  .card-footer a,
  .card-footer button { font-size: 15px; }

  .flow-page p,
  .application-page p,
  .legal-page p,
  .legal-page li { font-size: 17px !important; line-height: 1.65; }
  .profile-page p,
  .admin-page p,
  .auth-page p { font-size: 16px !important; line-height: 1.65; }

  .flow-page small,
  .application-page small,
  .profile-page small,
  .admin-page small,
  .auth-page small,
  .legal-page small,
  .site-header small,
  footer small { font-size: 14px !important; line-height: 1.55; }

  .flow-page label,
  .application-page label,
  .profile-page label,
  .admin-page label,
  .auth-page label,
  .legal-page label,
  .flow-page dt,
  .application-page dt,
  .profile-page dt,
  .admin-page dt,
  .legal-page dt,
  .profile-page time { font-size: 15px !important; }
  .flow-page dd,
  .application-page dd,
  .profile-page dd,
  .admin-page dd,
  .legal-page dd { font-size: 16px !important; }

  .flow-page button,
  .application-page button,
  .profile-page button,
  .admin-page button,
  .auth-page button,
  .legal-page button { font-size: 16px; }

  .flow-hero p { font-size: 17px !important; }
  .flow-note b { font-size: 16px; }
  .flow-note span { font-size: 15px !important; }
  .filter { min-height: 46px; font-size: 16px; }
  .catalog-search { font-size: 16px; }
  .catalog-search input { font-size: 16px; }
  .catalog-empty span,
  .catalog-empty button { font-size: 15px; }

  .program-card p,
  .olympiad-card > p,
  .publication-card > p { font-size: 16px !important; }
  .card-meta,
  .olympiad-card-top > span,
  .olympiad-card dt,
  .publication-index,
  .publication-card > span,
  .publication-card footer { font-size: 14px; }
  .olympiad-card-top i,
  .olympiad-card-top em { font-size: 14px; }
  .olympiad-card dd,
  .olympiad-card-footer > span,
  .olympiad-card-footer a { font-size: 15px; }

  .quiz-layout aside > b,
  .quiz-layout aside > span,
  .olympiad-rules dt { font-size: 14px; }
  .quiz-feedback > span,
  .olympiad-rules > div:first-child > p,
  .result-document-form > p { font-size: 16px !important; }
  .olympiad-rules dd { font-size: 16px; }
  .competition-note > span,
  .olympiad-explainer > div > span,
  .olympiad-explainer li > i,
  .result-breakdown span { font-size: 14px; }
  .competition-note p,
  .competition-note a,
  .olympiad-explainer li b,
  .olympiad-explainer li small,
  .rules-consent,
  .result-document-form > label,
  .result-designs button,
  .result-price { font-size: 15px !important; }

  .application-heading p { font-size: 17px !important; }
  .application-steps span { gap: 10px; font-size: 14px; }
  .application-steps i { width: 34px; height: 34px; font-size: 14px; }
  .application-card-head p { font-size: 16px !important; }
  .application-type-grid b { font-size: 22px; }
  .application-type-grid small { font-size: 15px !important; }
  .application-actions > a,
  .back-action { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
  .application-form-grid label { font-size: 16px; }
  .application-form-grid input,
  .application-form-grid textarea { font-size: 16px; }
  .application-upload span b { font-size: 16px; }
  .application-upload span small { font-size: 14px !important; }

  .editor-steps i { font-size: 14px; }
  .editor-form label > small,
  .olympiad-select-group > small,
  .editor-account-box > small,
  .account-status,
  .editor-total small,
  .batch-item > span small,
  .batch-delivery-note,
  .preview-toolbar { font-size: 14px !important; }

  .service-back,
  .service-kicker,
  .service-facts span,
  .service-detail-body > div > span,
  .service-assurance > .shell > div:first-child > span,
  .service-trust article > span { font-size: 14px; }
  .service-detail-hero p,
  .service-value > p { font-size: 17px; }
  .service-facts b,
  .service-value li,
  .service-process li span,
  .service-trust p { font-size: 16px; }
  .service-trust a,
  .service-trust-note,
  .service-assurance-items span { font-size: 15px; }

  .publication-card h2 { font-size: 22px; }
  .publication-callout span { font-size: 14px; }
  .publication-author > i,
  .publication-byline > i { font-size: 14px; }
  .publication-author b,
  .publication-byline b { font-size: 15px; }
  .publication-author small,
  .publication-byline small,
  .publication-detail-head a,
  .publication-detail-head > .shell > span,
  .publication-body aside b,
  .publication-body aside a,
  .publication-certificate span,
  .publication-certificate b,
  .publication-certificate a { font-size: 14px !important; }
  .publication-detail-head p,
  .publication-body > div > p,
  .publication-body li { font-size: 17px; }

  .registry-placeholder span,
  .registry-status,
  .registry-result dt,
  .registry-result > small { font-size: 14px !important; }
  .registry-result dd,
  .registry-result > p,
  .registry-result > button { font-size: 16px !important; }

  .auth-brand-panel > div > span,
  .auth-title > span { font-size: 14px; }
  .auth-brand-panel p { font-size: 17px !important; }
  .auth-brand-panel li,
  .auth-title p,
  .auth-sent p,
  .auth-card > label { font-size: 16px !important; }
  .auth-back,
  .auth-options,
  .auth-options button,
  .auth-switch,
  .auth-switch button,
  .auth-text-button,
  .auth-error,
  .auth-demo-credentials { font-size: 15px; }
  .auth-options button,
  .auth-switch button,
  .auth-text-button { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-options label { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-options input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; }

  .profile-person small,
  .profile-section-head > small,
  .profile-metrics span,
  .profile-next-step > div:first-child > span { font-size: 14px !important; }
  .profile-person p,
  .profile-next-step p { font-size: 16px !important; }
  .profile-sidebar nav button { font-size: 16px; }
  .profile-sidebar nav i { font-size: 13px; }
  .profile-section-head > a,
  .panel-head button,
  .profile-orders button,
  .profile-settings-actions > button:not(.button) { font-size: 15px; }
  .profile-table-head { font-size: 14px !important; }
  .profile-orders span b,
  .profile-orders p,
  .profile-orders > div > strong,
  .profile-applications b,
  .profile-notifications > b,
  .profile-notifications label { font-size: 15px; }

  .checkout-heading span,
  .checkout-heading > .shell > div:first-child > span,
  .checkout-steps > span,
  .checkout-card > header > span,
  .checkout-summary > span { font-size: 14px !important; }
  .checkout-card header p,
  .checkout-document b,
  .checkout-summary dl > div,
  .checkout-form label,
  .checkout-consent,
  .payment-state,
  .demo-payment-notice span { font-size: 16px; }
  .checkout-document small,
  .checkout-summary > p,
  .checkout-summary > small,
  .checkout-payment-guide small { font-size: 14px !important; }

  .admin-header > b,
  .admin-header-meta,
  .admin-account b,
  .admin-account small,
  .admin-sidebar nav button,
  .admin-heading p,
  .admin-metrics span,
  .admin-metrics small,
  .admin-mini-list b,
  .admin-mini-list small,
  .admin-mini-list time,
  .admin-actions b,
  .admin-actions small,
  .admin-toolbar label > span,
  .admin-table-row,
  .admin-table-row span b,
  .admin-table-row span small,
  .admin-section-summary,
  .admin-switch span,
  .admin-empty { font-size: 14px !important; }
  .admin-sidebar nav button { min-height: 52px; font-size: 15px !important; }
  .admin-toolbar input,
  .admin-toolbar select { min-height: 48px; font-size: 16px; }
  .admin-panel-head button,
  .admin-status,
  .admin-status-select select { font-size: 14px !important; }

  .legal-layout aside,
  .legal-layout aside b,
  .legal-layout aside a,
  .legal-operator-card > b,
  .legal-operator-card dt { font-size: 15px; }
  .legal-operator-card dd { font-size: 16px; }
}
