@font-face {
  font-family: Golos;
  src: url("golos-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Golos;
  src: url("golos-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Oswald;
  src: url("oswald-cyrillic.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Oswald;
  src: url("oswald-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  color-scheme: dark;
  --ink: #f0f3f9;
  --ink-muted: #aab9cf;
  --night: #0b111c;
  --night-panel: #151e2c;
  --night-line: var(--line);
  --night-muted: #bbc8dc;
  --paper: #0e1420;
  --surface: #151e2c;
  --surface-raised: #1b273a;
  --white: #fff;
  --line: #34445d;
  --blue: #a4bbff;
  --light-blue: #bdcdff;
  --blue-ink: #101c34;
  --signal: #e0ff72;
  --accent-ink: #1b240a;
  --focus: #adc3ff;
  --page-max: 86rem;
  --edge: clamp(1.05rem, 3.9vw, 4.25rem);
  --nav-height: 4.5rem;
  --section-pad: clamp(4.25rem, 9.5vw, 9rem);
  --radius: .72rem;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-menu: cubic-bezier(.32, .72, 0, 1);
  --body: Golos, system-ui, sans-serif;
  --display: Oswald, "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-block-start: calc(var(--nav-height) + 1.15rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
h1, h2, h3, p, figure, ol { margin: 0; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: .18rem solid var(--focus); outline-offset: .22rem; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - var(--edge) * 2), var(--page-max)); margin-inline: auto; }
.section-wrap { padding-block: var(--section-pad); }
.display {
  max-width: 100%;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 5.85vw, 6rem);
  line-height: 1.03;
  letter-spacing: -.032em;
}
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 20; inset: .4rem auto auto .4rem; padding: .8rem 1rem; background: var(--surface-raised); color: var(--ink); transform: translateY(calc(-100% - 1rem)); }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 10; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; width: fit-content; color: inherit; text-decoration: none; font-size: 1.11rem; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.brand img { border-radius: .4rem; }
.brand small { font-size: .79em; font-weight: 500; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(.55rem, 1.75vw, 1.7rem); }
.site-nav > a:not(.button) { position: relative; display: inline-grid; min-height: 2.75rem; place-items: center start; padding-inline: .5rem; color: var(--ink-muted); font-size: .89rem; white-space: nowrap; font-weight: 600; text-decoration: none; }
.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: .48rem;
  bottom: .28rem;
  left: .48rem;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 170ms var(--ease-out);
}
.site-nav > a[aria-current="location"]:not(.button) { color: var(--blue); }
.site-nav > a[aria-current="location"]:not(.button)::after { transform: scaleX(1); }
.menu-button { display: none; }

.button {
  min-height: 3rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .68rem .95rem .68rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: none;
  color: inherit;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.button .icon, .text-action .icon { transition: transform 170ms var(--ease-out); }
.button:active { transform: translateY(1px) scale(.985); }
.button:disabled, .button[aria-disabled="true"] { opacity: .68; cursor: wait; }
.button-accent { background: var(--signal); color: var(--accent-ink); }
.button-dark { background: var(--surface-raised); border-color: var(--line); color: var(--ink); }
.button-quiet { border-color: var(--night-line); color: var(--white); }
.button-dark[aria-current="location"] { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--white);
  background: var(--night);
}
.hero::before {
  content: "";
  position: absolute;
  width: 64%;
  height: 95%;
  inset: auto -10% -38% auto;
  z-index: -1;
  background: radial-gradient(ellipse at center, #233c67 0, transparent 70%);
  pointer-events: none;
}
.hero :focus-visible, .request :focus-visible, .site-footer :focus-visible { outline-color: var(--light-blue); }
.hero-inner {
  min-height: min(54rem, calc(100svh - var(--nav-height)));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.2rem, 5.8vw, 6.75rem);
  padding-block: clamp(3.2rem, 8vw, 8.5rem);
}
.hero-copy h1 { font: 700 clamp(4rem, 7.1vw, 7.5rem)/1.01 var(--display); letter-spacing: -.044em; }
.hero-copy h1 span { display: block; }
.hero-accent { color: var(--light-blue); }
.hero-copy > p { max-width: 35ch; margin-top: 1.65rem; color: var(--night-muted); font-size: clamp(1rem, 1.47vw, 1.25rem); }
.hero-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

.flow { min-width: 0; border: 1px solid var(--night-line); border-radius: var(--radius); background: var(--night-panel); box-shadow: 0 1.3rem 3.6rem #08122448; }
.flow-header, .flow-footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .85rem clamp(.8rem, 1.55vw, 1.45rem); }
.flow-header h2 { font-size: clamp(.95rem, 1.23vw, 1.18rem); line-height: 1.25; font-weight: 700; }
.flow-label { padding: .22rem .55rem; background: #d3ddff14; border-radius: .25rem; color: var(--light-blue); font-size: .68rem; font-weight: 700; }
.flow-stage {
  min-height: clamp(15rem, 26vw, 26rem);
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.88rem, 2.8vw, 2.55rem);
  padding: clamp(.8rem, 2vw, 1.85rem);
  overflow: hidden;
  border-block: 1px solid var(--night-line);
  background:
    linear-gradient(#819fc018 1px, transparent 1px),
    linear-gradient(90deg, #819fc018 1px, transparent 1px),
    radial-gradient(ellipse at 68% 50%, #223d6b, #121d31 76%);
  background-size: 1.5rem 1.5rem, 1.5rem 1.5rem, 100% 100%;
  perspective: 700px;
}
.flow-card { position: relative; overflow: hidden; border: 1px solid #536a98; border-radius: .42rem; background: #1b2b48; box-shadow: 0 .45rem 1.4rem #080f2070; }
.flow-source { transform: translateY(-12%); }
.flow-target { transform: translateY(12%); }
.flow-card-head { min-height: 2.4rem; display: flex; align-items: center; gap: .46rem; padding: .5rem .65rem; color: #dce6fd; background: #243a5e; font-size: clamp(.65rem, .9vw, .84rem); line-height: 1.2; }
.flow-card-head .icon { color: #c2d3ff; font-size: 1rem; }
.flow-card-body { display: grid; align-content: center; gap: .18rem; min-height: clamp(6.6rem, 9.8vw, 9.7rem); padding: clamp(.5rem, .95vw, .85rem); background: #182743; color: #e3ecff; font-size: clamp(.69rem, 1.02vw, .93rem); line-height: 1.28; }
.flow-card-body small { margin-top: .13rem; color: #b7c8e8; font-size: .75em; }
.flow-source .flow-card-body > span { margin-bottom: .28rem; padding: .33rem .4rem; border: 1px solid #4d6190; border-radius: .22rem; }
.flow-idle { grid-area: 1/1; align-self: center; text-align: center; color: var(--night-muted); transition: opacity 180ms ease; }
.flow-message {
  grid-area: 1/1;
  display: grid;
  align-content: center;
  gap: .18rem;
  min-height: 4.45rem;
  padding: .5rem;
  border: 1px solid #859cca;
  border-radius: .26rem;
  background: #293e66;
  opacity: 0;
  transform: translateY(.65rem) scale(.96);
  transition: transform 380ms var(--ease-out), opacity 235ms ease;
}
.flow-message strong { display: flex; align-items: center; gap: .25rem; }
.flow-message .icon { color: var(--signal); }
.flow-route { position: absolute; z-index: -1; width: 52%; height: 29%; left: 24%; bottom: 11%; color: #7286a9; }
.flow-route::before, .flow-route::after { content: ""; position: absolute; inset: 0 auto 0 0; width: .12rem; background: currentColor; }
.flow-route::after { inset-inline: auto 0; }
.flow-route i, .flow-route b { position: absolute; inset: auto 0 0; height: .12rem; transform-origin: left; }
.flow-route i { background: #7286a9; }
.flow-route b { transform: scaleX(0); background: var(--signal); box-shadow: 0 0 .75rem #e0ff7260; }
.flow-route span { position: absolute; inset: auto 0 -.19rem; height: .5rem; opacity: 0; }
.flow-route span::before { content: ""; position: absolute; inset: 0 auto 0 -.32rem; width: .64rem; border-radius: .1rem; background: var(--signal); box-shadow: 0 0 .6rem #e0ff7290; }
[data-phase="sending"] .flow-route b { animation: route-signal 700ms var(--ease-in-out) both; }
[data-phase="sending"] .flow-route span { animation: move-packet 700ms var(--ease-in-out) both; }
[data-phase="received"] .flow-route b { transform: scaleX(1); }
[data-phase="received"] .flow-route { color: #a7b86c; }
[data-phase="received"] .flow-idle { opacity: 0; }
[data-phase="received"] .flow-message { opacity: 1; transform: none; }
[data-phase="sending"] .flow-source { animation: send-card 700ms var(--ease-out); }
[data-phase="received"] .flow-target { animation: receive-card 390ms var(--ease-out); }
@keyframes route-signal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes move-packet {
  0% { opacity: 0; transform: translateX(0); }
  18%, 81% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}
@keyframes send-card { 38% { transform: translateY(-12%) translateX(.2rem) rotateY(-7deg); } }
@keyframes receive-card { 38% { transform: translateY(12%) translateX(.17rem) rotateY(5deg); } }
.flow-footer { min-height: 4.35rem; }
.flow-footer p { max-width: 23ch; color: var(--night-muted); font-size: clamp(.68rem, .95vw, .83rem); line-height: 1.26; }
.button-demo { min-height: 2.75rem; flex: 0 0 auto; padding: .55rem .68rem; background: #304777; color: #f2f6ff; font-size: clamp(.68rem, 1.1vw, .86rem); gap: .37rem; }

.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3.35vw, 3.5rem); margin-top: clamp(2rem, 4.4vw, 3.9rem); }
.service { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.service-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(12.5rem, 24vw, 24rem);
  padding: clamp(1rem, 3.6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-art-site { background: linear-gradient(145deg, #26354d, #151e2c); }
.service-art-bot { background: linear-gradient(145deg, #233a60, #142033); }
.service-info { display: grid; justify-items: start; align-content: start; gap: .7rem; margin-top: 1.5rem; }
.service h3, .process h3 { font: 600 clamp(1.65rem, 3.1vw, 2.8rem)/1.12 var(--display); letter-spacing: -.024em; }
.service-info p, .academic-copy p, .process p { max-width: 49ch; color: var(--ink-muted); }
.text-action { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding-block: .35rem; color: var(--blue); font-size: .92rem; font-weight: 700; text-underline-offset: .28rem; }
.site-sample { width: min(100%, 28rem); overflow: hidden; border-radius: .36rem; background: #faf3e6; box-shadow: 0 .85rem 2rem #172a5142; }
.sample-bar { display: flex; align-items: center; gap: .18rem; padding: .36rem .48rem; background: #dcd0ba; color: #3c3528; font-size: clamp(.48rem, .8vw, .7rem); }
.sample-bar i { width: .21rem; aspect-ratio: 1; border-radius: 50%; background: #675944; }
.sample-bar span { margin: auto; padding-inline-end: 1rem; }
.sample-page { display: grid; grid-template-columns: 1.17fr 1fr; min-height: 8.55rem; color: #2e261b; }
.sample-page > div { align-self: center; padding: clamp(.57rem, 1.4vw, 1.45rem); }
.sample-page img { width: 100%; height: 100%; object-fit: cover; transition: transform 380ms var(--ease-out); }
.sample-page strong { display: block; font: 400 clamp(.98rem, 2.5vw, 2.5rem)/.97 Georgia, serif; }
.sample-page small { display: block; margin-block: .33rem .55rem; font-size: clamp(.46rem, .75vw, .66rem); line-height: 1.3; }
.sample-button { display: inline-flex; align-items: center; gap: .17rem; padding: .26rem .35rem; background: #2e261b; color: #fff8e9; font-size: clamp(.44rem, .7vw, .63rem); white-space: nowrap; }
.chat-sample { width: min(100%, 21rem); overflow: hidden; border-radius: .45rem; background: #edf2fb; box-shadow: 0 .7rem 2rem #07132b80; }
.sample-chat-head { display: flex; align-items: center; gap: .48rem; padding: .54rem .63rem; background: #0e2347; color: #f7faff; font-size: .73rem; line-height: 1.2; }
.sample-chat-head small { display: block; color: #c5d2f3; font-size: .62rem; }
.sample-avatar { display: grid; place-items: center; width: 1.62rem; aspect-ratio: 1; border-radius: 50%; background: #bcd1ff; color: #153371; }
.sample-chat-thread { display: grid; justify-items: start; gap: .35rem; padding: .62rem .68rem .86rem; font-size: clamp(.55rem, .91vw, .79rem); color: #172e55; }
.sample-chat-thread > * { width: fit-content; padding: .29rem .44rem; border-radius: .25rem; background: var(--white); font-style: normal; }
.sample-chat-thread i { justify-self: end; background: #cbd9fa; }
.chat-calendar { position: absolute; right: 7%; bottom: 8%; display: flex; gap: .42rem; align-items: center; padding: .37rem .57rem; border: 1px solid #6388d5; border-radius: .35rem; background: #c9dbff; color: #112952; box-shadow: 0 .4rem 1rem #09183d43; font-size: clamp(.58rem, .91vw, .75rem); line-height: 1.2; }
.chat-calendar small { display: block; font-size: .78em; }

.academic { background: var(--surface); }
.academic-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6.6rem); padding-block: var(--section-pad); }
.academic-copy p { margin-block: 1.25rem 1.65rem; max-width: 36ch; }
.academic-panel { overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.academic-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: .24rem; padding: .45rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.academic-tabs a { display: grid; place-items: center; min-width: 0; min-height: 2.75rem; padding: .4rem .42rem; border-radius: .35rem; color: var(--ink-muted); font-size: .78rem; font-weight: 650; text-align: center; text-decoration: none; line-height: 1.23; }
.academic-tabs a[aria-selected="true"] { color: var(--blue-ink); background: var(--blue); }
.academic-tabs a:focus-visible { outline-offset: 0; }
.switch-panel { min-height: 13.8rem; scroll-margin-top: 1rem; padding: clamp(.9rem, 2.15vw, 2.15rem); }
.switch-panel + .switch-panel { border-top: 1px solid var(--line); }
.switch-panel h3 { font: 600 clamp(1.65rem, 2.8vw, 2.72rem)/1.13 var(--display); letter-spacing: -.024em; }
.switch-panel p { margin-top: .55rem; color: var(--ink-muted); min-height: 3.1em; }
.academic-note { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; margin-top: 1.05rem; padding: .65rem .6rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--surface-raised); color: var(--light-blue); font-size: clamp(.57rem, .98vw, .83rem); font-weight: 650; }
.academic-note i { width: .42rem; aspect-ratio: 1; border-radius: 50%; background: var(--blue); }
.academic-note i:not(:first-child) { margin-left: .35rem; }
.academic-examples[data-enhanced] .switch-panel { border-top: 0; }
.switch-panel.is-switched { animation: switch-in 265ms var(--ease-out) both; }
@keyframes switch-in { from { opacity: .47; transform: translateX(.48rem); } }

.process { background: var(--paper); }
.process-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(2rem, 4.15vw, 3.8rem); padding: 0; list-style: none; }
.process-route li { position: relative; padding-right: clamp(1rem, 2.2vw, 2.7rem); }
.process-route li::before, .process-route li::after { content: ""; height: 2px; position: absolute; inset: 1.25rem 0 auto; transform-origin: left; }
.process-route li::before { background: var(--line); }
.process-route li::after { background: var(--blue); }
.process-route:not(.is-traced) li::after { transform: scaleX(0); }
.process-route.is-traced li::after { animation: route-signal 490ms var(--ease-out) both; }
.process-route.is-traced li:nth-child(2)::after { animation-delay: 205ms; }
.process-route.is-traced li:nth-child(3)::after { animation-delay: 410ms; }
.process-point { position: relative; z-index: 1; width: 2.5rem; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); color: var(--blue); font-size: .83rem; font-weight: 800; }
.process-route p { margin-top: .62rem; }

.request { background: var(--night); color: var(--white); }
.request-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 8vw, 8rem); padding-block: var(--section-pad); }
.request-copy p { max-width: 34ch; margin-top: 1.2rem; color: var(--night-muted); }
.request-form { min-width: 0; display: grid; gap: .95rem; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.field { min-width: 0; }
.field label { display: block; width: fit-content; margin-bottom: .34rem; font-size: .84rem; font-weight: 700; color: #f2f6fd; }
.field label .optional { color: var(--night-muted); font-weight: 400; }
.field :is(select, input, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.98rem;
  padding: .65rem .68rem;
  border: 1px solid #52647e;
  border-radius: .39rem;
  background: var(--surface);
  color: var(--white);
  color-scheme: dark;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; }
.field :is(input, textarea)::placeholder { color: #aab9d6; }
.field [aria-invalid="true"] { border-color: #ff9a8b; }
.field-hint, .field-error { margin-top: .29rem; color: var(--night-muted); font-size: .76rem; line-height: 1.37; }
.field-error, .form-error { color: #ffad9e; }
.field-error:empty, .form-status:empty { display: none; }
.form-status { font-size: .9rem; }
.form-trap { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.site-footer { background: var(--night); color: var(--white); border-top: 1px solid var(--night-line); }
.footer-inner { min-height: 5rem; display: flex; gap: .8rem; align-items: center; justify-content: space-between; }
.footer-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .5rem; color: #c7d7fa; font-size: .82rem; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .site-nav > a:not(.button):hover::after { transform: scaleX(1); }
  .button:hover { transform: translateY(-2px); }
  .button:hover .icon, .text-action:hover .icon { transform: translate(.14rem, -.14rem); }
  .button-accent:hover { background: #efffb9; }
  .button-dark:hover { background: #2a3952; border-color: #667897; }
  .button-dark[aria-current="location"]:hover { background: var(--light-blue); border-color: var(--light-blue); }
  .button-quiet:hover { background: #223451; border-color: #526785; }
  .button-demo:hover { background: #3e5890; }
  .service:hover .service-art-site img { transform: scale(1.035); }
  .academic-tabs a:not([aria-selected="true"]):hover { background: var(--surface-raised); color: var(--ink); }
  .footer-link:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-in 610ms var(--ease-out) both; }
  .flow { animation: hero-in 650ms 80ms var(--ease-out) both; }
  @keyframes hero-in { from { opacity: .25; transform: translateY(1.15rem); } }
}

@media (max-width: 66rem) {
  .hero-inner { gap: clamp(1.25rem, 4vw, 2.8rem); }
  .hero-copy h1 { font-size: clamp(3.15rem, 7.2vw, 6rem); }
  .academic-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academic-tabs a { font-size: .83rem; }
}
@media (max-width: 50rem) {
  :root { --nav-height: 3.85rem; }
  .header-inner { flex-wrap: wrap; gap: .5rem; }
  .header-inner:not(.has-menu) .site-nav { flex-wrap: wrap; justify-content: start; padding-bottom: .6rem; }
  .header-inner.has-menu .menu-button {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    min-height: 2.75rem;
    padding: .42rem .65rem;
    border-radius: .35rem;
    border: 1px solid var(--line);
    background: var(--surface-raised);
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-button i { position: relative; width: .96rem; height: .8rem; }
  .menu-button i::before, .menu-button i::after { content: ""; position: absolute; left: 0; right: 0; top: 25%; height: 2px; background: currentColor; transition: transform 170ms var(--ease-out); }
  .menu-button i::after { top: 65%; }
  .menu-button[aria-expanded="true"] i::before { transform: translateY(.16rem) rotate(44deg); }
  .menu-button[aria-expanded="true"] i::after { transform: translateY(-.16rem) rotate(-44deg); }
  .header-inner.has-menu .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: .12rem;
    max-height: calc(100dvh - var(--nav-height));
    overflow: auto;
    padding: .7rem var(--edge) .95rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 .85rem 1.3rem #141e3525;
    opacity: 0;
    transform: translateY(-.45rem);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 180ms var(--ease-menu), visibility 180ms;
  }
  .header-inner.has-menu .site-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .site-nav > a:not(.button)::after { right: auto; width: 2.2rem; }
  .nav-request { width: 100%; margin-top: .3rem; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 2.45rem; padding-block: 3rem 3.55rem; }
  .hero-copy h1 { font-size: clamp(3.1rem, 10.1vw, 5.7rem); }
  .hero-copy > p { margin-top: 1rem; }
  .hero-links { margin-top: 1.2rem; }
  .flow { width: min(100%, 38rem); }
  .flow-stage { min-height: clamp(13.45rem, 42vw, 17rem); }
  .flow-card-head { font-size: .77rem; }
  .flow-card-body { font-size: .79rem; }
  .service-grid { gap: 2.25rem 1rem; }
  .academic-layout, .request-layout { grid-template-columns: 1fr; }
  .academic-panel { max-width: 40rem; }
  .academic-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-route h3 { font-size: clamp(1.4rem, 3.3vw, 2rem); }
}
@media (max-width: 35rem) {
  .service-grid, .form-pair, .process-route { grid-template-columns: 1fr; }
  .service-info { margin-top: 1rem; }
  .service-art { min-height: 13rem; padding: 1.5rem; }
  .academic-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academic-tabs a { place-items: center start; padding-inline: .7rem; text-align: left; }
  .switch-panel { min-height: 12.35rem; }
  .process-route li { padding: .3rem 0 1.5rem 3.15rem; }
  .process-route li:last-child { padding-bottom: 0; }
  .process-point { position: absolute; top: 0; left: 0; }
  .process-route li::before, .process-route li::after { width: 2px; height: auto; inset: 1rem auto -.4rem 1.2rem; transform-origin: top; }
  .process-route:not(.is-traced) li::after { transform: scaleY(0); }
  .process-route.is-traced li::after { animation-name: route-vertical; }
  @keyframes route-vertical { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .process-route li:last-child::before, .process-route li:last-child::after { display: none; }
  .request-form .button { width: 100%; }
}
@media (max-width: 23rem) {
  .brand { gap: .43rem; }
  .brand img { width: 1.95rem; height: 1.95rem; }
  .hero-links .button { width: 100%; }
  .flow-card-head { font-size: .68rem; }
  .flow-card-body { font-size: .68rem; }
  .flow-footer { gap: .38rem; }
  .button-demo { padding-inline: .47rem; }
  .footer-link { gap: .17rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .flow-source, .flow-target { animation: none !important; }
}
