:root {
  --font-display: "Plus Jakarta Sans", "Aptos Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Rubik", Aptos, "Segoe UI", Arial, sans-serif;
  --font-code: "Google Sans Code", "Cascadia Code", Consolas, monospace;

  --ink-900: #060606;
  --ink-800: #080808;
  --ink-700: #0b0b0b;
  --ink-600: #0e0e0e;
  --ink-500: #0f0f0f;
  --ink-400: #272727;
  --ink-300: #3f3f3f;
  --ink-200: #575757;
  --ink-100: #6f6f6f;

  --pos-900: #0c341d;
  --pos-800: #145730;
  --pos-700: #1b7a43;
  --pos-600: #239d56;
  --pos-500: #27ae60;
  --pos-400: #3db670;
  --pos-300: #68c690;
  --pos-200: #93d7b0;
  --pos-100: #bee7cf;

  --pre-900: #1a003c;
  --pre-800: #2c0065;
  --pre-700: #3e008d;
  --pre-600: #4f00b5;
  --pre-500: #5800c9;
  --pre-400: #691ace;
  --pre-300: #8a4dd9;
  --pre-200: #ac80e4;
  --pre-100: #cdb3ef;

  --tre-900: #341139;
  --tre-800: #571c60;
  --tre-700: #7a2786;
  --tre-600: #9d32ac;
  --tre-500: #ae38bf;
  --tre-400: #b64cc5;
  --tre-300: #c674d2;
  --tre-200: #d79cdf;
  --tre-100: #e7c3ec;

  --ua-900: #493c17;
  --ua-800: #796526;
  --ua-700: #a98d35;
  --ua-600: #dab544;
  --ua-500: #f2c94c;
  --ua-400: #f3ce5e;
  --ua-300: #f6d982;
  --ua-200: #f9e4a6;
  --ua-100: #fbefc9;

  --ext-900: #0a1931;
  --ext-800: #112b52;
  --ext-700: #173b72;
  --ext-600: #1e4d93;
  --ext-500: #2155a3;
  --ext-400: #3766ac;
  --ext-300: #6488bf;
  --ext-200: #90aad1;
  --ext-100: #bccce3;

  --rose-900: #46091e;
  --rose-800: #750f32;
  --rose-700: #a31545;
  --rose-600: #d21b59;
  --rose-500: #e91e63;
  --rose-400: #eb3573;
  --rose-300: #f06292;
  --rose-200: #f48fb1;
  --rose-100: #f8bcd0;

  --orange-900: #492e16;
  --orange-800: #794d25;
  --orange-700: #a96b34;
  --orange-600: #da8a43;
  --orange-500: #f2994a;
  --orange-400: #f3a35c;
  --orange-300: #f6b880;
  --orange-200: #f9cca5;
  --orange-100: #fbe0c9;

  --slate-900: #141414;
  --slate-800: #171717;
  --slate-700: #1a1a1a;
  --slate-600: #1e1e1e;
  --slate-500: #212121;
  --slate-400: #373737;
  --slate-300: #4d4d4d;
  --slate-200: #646464;
  --slate-100: #7a7a7a;

  --ua-white-00: #f5f5f5;
  --canvas: #f3f2f4;
  --surface: #ffffff;
  --surface-soft: #eceaee;
  --surface-raised: #ffffff;
  --text: var(--ink-500);
  --muted: var(--ink-200);
  --subtle: var(--ink-100);
  --line: rgb(6 6 6 / 0.14);
  --line-strong: rgb(6 6 6 / 0.24);
  --accent: var(--pre-500);
  --accent-hover: var(--pre-700);
  --accent-strong: var(--pre-900);
  --accent-soft: #eee6fa;
  --focus: var(--pre-500);
  --header-bg: rgb(243 242 244 / 0.9);
  --shadow-float: 0 26px 80px rgb(26 0 60 / 0.16);
  --shadow-dialog: 0 32px 100px rgb(6 6 6 / 0.34);
  --ui-action-text: 0.8rem;
  --ui-radius-control: 12px;
  --ui-radius-panel: 20px;
  --control-radius: 12px;
  --panel-radius: 20px;
  --shell: 1320px;
  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: var(--ink-900);
  --surface: var(--slate-700);
  --surface-soft: var(--slate-600);
  --surface-raised: var(--slate-500);
  --text: #f5f5f5;
  --muted: #c4c0c8;
  --subtle: #aaa4b0;
  --line: rgb(255 255 255 / 0.14);
  --line-strong: rgb(255 255 255 / 0.25);
  --accent: var(--pre-300);
  --accent-hover: var(--pre-200);
  --accent-strong: var(--pre-100);
  --accent-soft: #2c1746;
  --focus: var(--pre-200);
  --header-bg: rgb(6 6 6 / 0.9);
  --shadow-float: 0 28px 86px rgb(0 0 0 / 0.4);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: clip;
}

body.has-dialog {
  overscroll-behavior: contain;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--pre-200);
  color: var(--pre-900);
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 16px;
  top: -80px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--control-radius);
  background: var(--ua-500);
  color: var(--ink-900);
  font-size: var(--ui-action-text);
  font-weight: 600;
  text-decoration: none;
  transition: top 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skip-link:focus {
  top: 16px;
}

.system-banner {
  position: relative;
  z-index: 110;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
}

.system-banner__inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
}

.system-banner svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--orange-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition: border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 32px rgb(6 6 6 / 0.07);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  min-height: 80px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand__signature {
  display: grid;
  place-items: center;
  min-width: 142px;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid rgb(6 6 6 / 0.08);
  border-radius: 10px;
  background: #fff;
}

.brand__signature img {
  width: 128px;
  height: auto;
}

.brand__product {
  display: grid;
  line-height: 1.15;
}

.brand__product strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.brand__product small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a {
  min-height: 44px;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--ui-action-text);
  font-weight: 560;
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="location"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--ui-action-text);
  font-weight: 560;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button:active {
  transform: scale(0.985);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .button--primary {
  border-color: var(--pre-500);
  background: var(--pre-500);
}

.button--primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button--quiet {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button--quiet:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.button--light {
  border-color: rgb(255 255 255 / 0.3);
  background: #fff;
  color: var(--pre-900);
}

.button--light:hover {
  background: var(--pre-100);
}

.button--large {
  min-height: 52px;
  padding-inline: 20px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.icon-button:active {
  transform: scale(0.985);
}

.icon-button > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  width: 23px !important;
  height: 23px !important;
}

.theme-icon--light {
  display: none !important;
  fill: none !important;
}

[data-theme="dark"] .theme-icon--dark {
  display: none;
}

[data-theme="dark"] .theme-icon--light {
  display: block !important;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 150;
  inset: 0;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(6 6 6 / 0.58);
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100dvh;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-nav {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mobile-nav a span {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.mobile-menu__actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.section-dots {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: 6px;
  display: grid;
  transform: translateY(-50%);
}

.section-dots a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}

.section-dots a span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  transition: width 180ms cubic-bezier(0.2, 0.8, 0.2, 1), height 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-dots a[aria-current] span {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero {
  position: relative;
  min-height: calc(100svh - 80px);
  overflow: clip;
  isolation: isolate;
  background: var(--pre-900);
  color: #fff;
}

.hero__media,
.hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero__media {
  background-image: url("../img/campus_02.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  animation: hero-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(26 0 60 / 0.97) 0%, rgb(26 0 60 / 0.9) 38%, rgb(26 0 60 / 0.48) 70%, rgb(6 6 6 / 0.18) 100%),
    linear-gradient(0deg, rgb(6 6 6 / 0.38), transparent 45%);
}

.hero__inner {
  display: grid;
  min-height: calc(100svh - 208px);
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.58fr);
  align-items: center;
  gap: clamp(48px, 8vw, 132px);
  padding-block: clamp(76px, 10vw, 150px) 72px;
}

.hero__copy {
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  font-family: var(--font-code);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--ua-500);
}

.eyebrow--light,
.section-kicker--light {
  color: #fff;
}

.hero h1 {
  max-width: 12ch;
  margin: 22px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 7vw, 7.2rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.91;
}

.hero h1 span {
  color: var(--pre-100);
}

.hero__lead {
  max-width: 61ch;
  margin: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.hero-search {
  max-width: 790px;
  margin-top: 38px;
}

.hero-search > label {
  display: block;
  margin-bottom: 8px;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.85rem;
  font-weight: 520;
}

.hero-search__control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 22px 60px rgb(6 6 6 / 0.22);
  color: var(--ink-500);
}

.hero-search__control > svg,
.search-field__control > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-search input,
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}

.hero-search input::placeholder,
.search-field input::placeholder {
  color: var(--ink-100);
  opacity: 1;
}

.hero-search button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--ink-900);
  color: #fff;
  cursor: pointer;
  font-size: var(--ui-action-text);
  font-weight: 560;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-search button:hover {
  background: var(--pre-700);
}

.hero-search button:active {
  transform: scale(0.985);
}

.hero-search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-status {
  align-self: end;
  max-width: 370px;
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--panel-radius);
  background: rgb(26 0 60 / 0.56);
  box-shadow: 0 26px 70px rgb(6 6 6 / 0.22);
  backdrop-filter: blur(18px);
}

.status-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ua-500);
  box-shadow: 0 0 0 6px rgb(242 201 76 / 0.15);
}

.hero-status time {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 22px;
}

.hero-status time strong {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.hero-status time span {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.hero-status h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hero-status p {
  margin: 10px 0 18px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-status > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: var(--ui-action-text);
  font-weight: 560;
  text-underline-offset: 4px;
}

.hero-status > a svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-calendar {
  border-top: 1px solid rgb(255 255 255 / 0.17);
  background: rgb(26 0 60 / 0.82);
  backdrop-filter: blur(14px);
}

.hero-calendar__inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
}

.hero-calendar__inner > div {
  display: grid;
  min-height: 128px;
  align-content: center;
  gap: 5px;
  padding: 20px 28px;
  border-right: 1px solid rgb(255 255 255 / 0.14);
}

.hero-calendar__inner > div:first-child {
  padding-left: 0;
}

.hero-calendar__inner > div:last-child {
  border-right: 0;
}

.hero-calendar span {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-calendar strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section {
  padding-block: clamp(88px, 10vw, 152px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: clamp(36px, 7vw, 110px);
  margin-bottom: clamp(48px, 7vw, 86px);
}

.section-heading h2,
.dates h2,
.admission-criteria__intro h2,
.apply h2,
.support h2 {
  max-width: 15ch;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p,
.dates__intro > p,
.apply__copy > p,
.support__copy > p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.programs {
  background: var(--canvas);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.search-field > label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
}

.search-field > small {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-size: 0.76rem;
}

.search-field__control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--canvas);
}

.search-field__control:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 17%, transparent);
}

.search-field__control input:focus-visible {
  outline: none;
}

.search-field__control button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-field__control button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-self: start;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--canvas);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.filter-trigger:hover,
.filter-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.filter-trigger > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-trigger > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.filter-trigger strong {
  font-size: var(--ui-action-text);
  font-weight: 560;
}

.filter-trigger small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
}

.applied-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--pre-200);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: var(--ui-action-text);
  font-weight: 560;
}

.filter-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin: 30px 0 18px;
}

.catalog-meta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.data-notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ua-500);
  border-radius: var(--control-radius);
  background: var(--surface);
}

.data-notice[hidden] {
  display: none;
}

.data-notice > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ua-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-notice strong,
.data-notice p {
  display: block;
  margin: 0;
}

.data-notice strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
}

.data-notice p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.data-notice--on-dark {
  grid-template-columns: 24px minmax(0, 1fr);
  margin: 0 0 22px;
  border-color: rgb(255 255 255 / 0.22);
  border-left-color: var(--ua-500);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.data-notice--on-dark > svg {
  stroke: var(--ua-300);
}

.data-notice--on-dark p {
  color: rgb(255 255 255 / 0.72);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  position: relative;
  display: grid;
  min-height: 310px;
  grid-template-rows: auto 1fr auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  transition: border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.program-card--has-image {
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}

.program-card__media {
  position: relative;
  height: 138px;
  margin: -24px -24px 20px;
  overflow: hidden;
  background: var(--accent-soft);
}

.program-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgb(26 0 60 / 0.28), transparent);
  pointer-events: none;
}

.program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-card__media img {
  transform: scale(1.025);
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 62px;
  height: 3px;
  background: var(--card-accent, var(--pre-500));
}

.program-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgb(26 0 60 / 0.1);
  transform: translateY(-1px);
}

.program-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.program-card__code {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}

.program-card__body {
  padding-block: 30px 24px;
}

.program-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.program-card__faculty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.program-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.program-card__meta span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.program-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.4;
}

.program-card__details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.program-card__details span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--card-accent, var(--pre-500));
  content: "";
}

.program-card--skeleton {
  min-height: 360px;
  overflow: hidden;
}

.skeleton-block,
.skeleton-line {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.skeleton-block::after,
.skeleton-line::after {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.62), transparent);
  content: "";
  animation: skeleton-sweep 1.15s ease-in-out infinite;
  transform: translateX(-120%);
}

.skeleton-block {
  height: 126px;
  margin: -24px -24px 28px;
}

.skeleton-line {
  height: 12px;
  margin-top: 14px;
}

.skeleton-line--title {
  width: 76%;
  height: 24px;
}

.skeleton-line--short {
  width: 48%;
}

@keyframes skeleton-sweep {
  to { transform: translateX(280%); }
}

.program-card__link {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  padding-inline: 0;
  padding-bottom: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--accent-strong);
  font-size: var(--ui-action-text);
  font-weight: 560;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.program-card__link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.program-card__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  padding: 64px 24px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  text-align: center;
}

.empty-state > svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 54ch;
  margin: 10px auto 20px;
  color: var(--muted);
}

.dates {
  background: var(--pre-900);
  color: #fff;
}

.dates__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(64px, 10vw, 148px);
}

.dates__intro {
  position: sticky;
  top: 116px;
}

.dates h2 {
  max-width: 10ch;
}

.dates__intro > p {
  margin-top: 24px;
  color: rgb(255 255 255 / 0.7);
}

.period-code {
  display: grid;
  gap: 4px;
  margin: 34px 0 26px;
  padding: 18px 0;
  border-block: 1px solid rgb(255 255 255 / 0.18);
}

.period-code > span {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.period-code strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 620;
}

.period-code strong span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.period-code small {
  color: rgb(255 255 255 / 0.62);
  font-family: var(--font-code);
  font-size: 0.68rem;
}

.date-route {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.date-route::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 23px;
  width: 1px;
  background: rgb(255 255 255 / 0.22);
}

.date-route li {
  position: relative;
  display: grid;
  min-height: 122px;
  grid-template-columns: 48px 90px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.date-route li:last-child {
  border-bottom: 0;
}

.date-route__marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  background: var(--pre-900);
}

.date-route__marker > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.45);
}

.date-route__marker svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--pre-100);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-route .is-current {
  margin-block: 8px;
  padding-right: 24px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--panel-radius);
  background: rgb(255 255 255 / 0.08);
}

.date-route .is-current .date-route__marker {
  border-color: var(--ua-500);
  background: var(--ua-500);
  box-shadow: 0 0 0 8px rgb(242 201 76 / 0.1);
}

.date-route .is-current .date-route__marker > span {
  background: var(--pre-900);
}

.date-route time {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.date-route li > div:last-child {
  display: grid;
  gap: 3px;
}

.date-route strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.date-route li > div:last-child span {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.86rem;
}

.route {
  background: var(--surface-soft);
}

.route-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.route-form {
  display: grid;
  gap: 36px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.route-form fieldset,
.filter-dialog fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.route-form legend,
.filter-dialog legend {
  width: 100%;
  margin-bottom: 15px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.route-form legend span {
  margin-right: 10px;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--canvas);
  cursor: pointer;
  transition: border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choice-card:hover {
  border-color: var(--pre-300);
}

.choice-card:active {
  transform: scale(0.985);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card__control {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 2px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
}

.choice-card:has(input:checked) .choice-card__control {
  border: 6px solid var(--accent);
}

.choice-card > span:last-child {
  display: grid;
  gap: 4px;
}

.choice-card strong {
  font-size: 0.9rem;
  font-weight: 580;
  line-height: 1.3;
}

.choice-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.route-result {
  position: sticky;
  top: 116px;
  align-self: start;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--panel-radius);
  background: var(--pre-900);
  color: #fff;
  box-shadow: var(--shadow-float);
}

.route-result__eyebrow {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-result h3 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1;
}

.route-result > p {
  margin: 0;
  color: rgb(255 255 255 / 0.72);
  line-height: 1.65;
}

.route-result__facts-label {
  margin-top: 28px;
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-result__facts {
  display: grid;
  margin-block: 8px 18px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.route-fact {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding-block: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.84);
  font-size: 0.86rem;
}

.route-fact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pre-100);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-result__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: var(--ui-action-text);
  font-weight: 560;
  text-underline-offset: 4px;
}

.route-result__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-result__actions {
  display: grid;
  gap: 10px;
}

.route-result__detail {
  width: 100%;
}

.process {
  background: var(--canvas);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  counter-reset: none;
  list-style: none;
}

.process-list li {
  display: grid;
  min-height: 236px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  padding-block: 30px;
  border-top: 1px solid var(--line-strong);
}

.process-list__number {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.process-list h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admission-criteria {
  margin-top: 62px;
  padding: clamp(34px, 5vw, 68px);
  border-radius: var(--panel-radius);
  background: var(--surface);
  scroll-margin-top: 96px;
}

.admission-criteria__intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.72fr);
  align-items: end;
  justify-content: space-between;
  gap: clamp(36px, 7vw, 104px);
}

.admission-criteria__intro h2 {
  max-width: 13ch;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.admission-criteria__intro > p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.criteria-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 72px);
  border-block: 1px solid var(--line-strong);
}

.criteria-index a {
  display: grid;
  min-height: 116px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  gap: 3px 12px;
  padding: 22px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.criteria-index a:last-child {
  border-right: 0;
}

.criteria-index a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.criteria-index span {
  grid-row: span 2;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 650;
}

.criteria-index strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.criteria-index small {
  color: var(--muted);
  font-size: 0.78rem;
}

.criteria-section {
  padding-top: clamp(56px, 8vw, 96px);
  scroll-margin-top: 96px;
}

.criteria-section + .criteria-section {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line-strong);
}

.criteria-section__heading {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.65fr);
  align-items: end;
  justify-content: space-between;
  gap: 28px clamp(40px, 8vw, 110px);
  margin-bottom: 34px;
}

.criteria-section__heading > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.criteria-section__number {
  padding-top: 9px;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 650;
}

.criteria-section__heading h3 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 3.35rem);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.criteria-section__heading > p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.criteria-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.criteria-search {
  max-width: 580px;
}

.criteria-search--wide {
  margin-block: 32px 24px;
}

.criteria-search .search-field__control {
  background: var(--canvas);
}

.criteria-search .search-field__control > svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.criteria-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.criteria-search input::placeholder {
  color: var(--subtle);
}

.criteria-toolbar__meta {
  display: grid;
  justify-items: end;
  padding-bottom: 4px;
}

.criteria-toolbar__meta strong {
  font-family: var(--font-code);
  font-size: 0.84rem;
}

.criteria-toolbar__meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.criteria-data-notice {
  margin-bottom: 18px;
}

.criteria-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--surface-raised);
  -webkit-overflow-scrolling: touch;
}

.criteria-table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.criteria-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--text);
}

.criteria-table caption {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 560;
  text-align: left;
}

.criteria-table th,
.criteria-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.criteria-table thead th {
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.criteria-table tbody th[scope="row"],
.criteria-table tbody td {
  font-size: 0.8rem;
}

.criteria-table tbody th[scope="row"] {
  background: transparent;
  color: var(--text);
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

.criteria-table tbody tr:last-child th,
.criteria-table tbody tr:last-child td {
  border-bottom: 0;
}

.criteria-table tbody tr:hover th,
.criteria-table tbody tr:hover td {
  background: var(--accent-soft);
}

.criteria-table--cuts {
  min-width: 680px;
}

.criteria-table--cuts th:first-child,
.criteria-table--cuts td:first-child {
  width: 48%;
}

.criteria-table__scope {
  width: 220px;
  color: var(--muted);
}

.criteria-table__numeric {
  width: 180px;
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
  text-align: right !important;
}

td.criteria-table__numeric {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 650;
}

.criteria-table__empty {
  padding-block: 32px !important;
  color: var(--muted);
  text-align: center !important;
}

.algorithm-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.algorithm-context__copy {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px clamp(28px, 4vw, 64px);
}

.algorithm-context__copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.algorithm-context__copy p {
  margin: 0;
  color: var(--muted);
}

.algorithm-model-trigger {
  align-self: stretch;
  white-space: nowrap;
}

.algorithm-model-trigger svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.algorithm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 38px;
}

.algorithm-panel {
  min-width: 0;
  padding-top: 24px;
  border-top: 3px solid var(--accent);
}

.algorithm-panel header > span {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.algorithm-panel h4 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.algorithm-panel header p,
.algorithm-steps p {
  margin: 0;
  color: var(--muted);
}

.algorithm-steps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.algorithm-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.algorithm-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 650;
}

.algorithm-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.algorithm-steps p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.algorithm-example {
  border-top: 1px solid var(--line-strong);
}

.algorithm-example summary {
  padding-block: 16px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.algorithm-example p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.86rem;
}

.algorithm-example small {
  display: block;
  padding-bottom: 16px;
  color: var(--muted);
}

.criteria-callout {
  margin: 30px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  color: var(--muted);
  font-size: 0.9rem;
}

.criteria-callout strong {
  color: var(--text);
}

.criteria-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line-strong);
}

.criteria-stats > div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.criteria-stats > div:last-child {
  border-right: 0;
}

.criteria-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.criteria-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.exam-subsections {
  display: grid;
  min-width: 0;
  gap: 54px;
}

.exam-subsection {
  min-width: 0;
}

.exam-subsection > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.exam-subsection h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.exam-subsection header p {
  grid-column: 2;
  max-width: 75ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill--defined {
  background: var(--pos-100);
  color: var(--pos-900);
}

.status-pill--pending {
  background: var(--ua-100);
  color: var(--ua-900);
}

.criteria-table--exams {
  min-width: 880px;
}

.criteria-table--exams th:first-child,
.criteria-table--exams td:first-child,
.criteria-table--pending th:first-child,
.criteria-table--pending td:first-child {
  width: 180px;
}

.criteria-table--exams th:last-child,
.criteria-table--exams td:last-child {
  width: 38%;
}

.criteria-table--pending {
  min-width: 720px;
}

.criteria-table--pending th:last-child,
.criteria-table--pending td:last-child {
  width: 210px;
}

.exam-status-text {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 560;
}

[data-theme="dark"] .status-pill--defined {
  background: var(--pos-800);
  color: #fff;
}

[data-theme="dark"] .status-pill--pending {
  background: var(--ua-800);
  color: #fff;
}

.apply {
  background: var(--pre-800);
  color: #fff;
}

.apply__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(60px, 10vw, 150px);
}

.apply h2 {
  max-width: 10ch;
}

.apply__copy > p {
  margin-top: 24px;
  color: rgb(255 255 255 / 0.72);
}

.apply__copy > .button {
  margin-top: 26px;
}

.apply__options {
  display: grid;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.apply__options > a {
  display: grid;
  min-height: 126px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.apply__options > a:hover {
  padding-inline: 14px;
  background: rgb(255 255 255 / 0.07);
}

.apply__number {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 600;
}

.apply__options > a > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.apply__options strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.apply__options small {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.86rem;
}

.apply__options svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support {
  background: var(--surface-soft);
}

.support__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(60px, 10vw, 160px);
}

.support h2 {
  max-width: 10ch;
}

.support__copy > p {
  margin-top: 24px;
}

.support__contact {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.support__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.support__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support__icon--whatsapp {
  background: #128c7e;
  color: #fff;
}

.support__icon--whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}

.support__contact > span {
  display: block;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.support__contact > strong {
  display: block;
  max-width: 14ch;
  margin-block: 10px 24px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.site-footer__accent {
  width: min(120px, 22vw);
  height: 4px;
  background: var(--pre-500);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 60px;
  padding-block: 48px;
}

.site-footer__identity {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.site-footer__logo {
  display: grid;
  min-width: 150px;
  min-height: 70px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgb(6 6 6 / 0.08);
  border-radius: 10px;
  background: #fff;
}

.site-footer__logo img {
  width: 125px;
}

.site-footer__identity strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.site-footer__identity p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer__links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-size: var(--ui-action-text);
  font-weight: 520;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__legal {
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.72rem;
}

.site-footer__legal p {
  max-width: 100ch;
  margin: 0 0 16px;
}

.site-footer__legal > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-code);
}

.layer-head {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.layer-head > div {
  display: grid;
  gap: 3px;
}

.layer-head span {
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgb(6 6 6 / 0.62);
  backdrop-filter: blur(4px);
}

.program-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(850px, calc(100dvh - 32px));
  overflow: hidden;
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
}

.program-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: dialog-in 300ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.program-dialog__hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(250px, 34vw, 340px);
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 44px);
  background: var(--pre-900);
  color: #fff;
}

.program-dialog__hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(16 0 38 / 0.68);
  content: "";
}

.program-dialog__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.program-dialog__image[hidden] {
  display: none;
}

.program-dialog__copy {
  position: relative;
  z-index: 1;
  max-width: min(720px, calc(100% - 54px));
}

.program-dialog__copy span {
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-dialog__copy h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.program-dialog__close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  border-color: rgb(255 255 255 / 0.48);
  background: rgb(16 0 38 / 0.58);
  color: #fff;
  backdrop-filter: blur(10px);
}

.program-dialog__close:hover {
  border-color: rgb(255 255 255 / 0.78);
  background: rgb(16 0 38 / 0.82);
}

.program-dialog__body {
  overflow-y: auto;
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
}

.program-dialog__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.program-dialog__meta div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface-soft);
}

.program-dialog__meta dt {
  color: var(--subtle);
  font-family: var(--font-code);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.program-dialog__meta dd {
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-code);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.program-dialog__callout {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--control-radius);
  background: var(--accent-soft);
}

.program-dialog__callout span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.76rem;
}

.program-dialog__callout strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font-code);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.45;
}

.program-dialog__callout p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.program-dialog__link-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.program-dialog__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.program-dialog__actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  color: var(--text);
  font-size: var(--ui-action-text);
  font-weight: 560;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.program-dialog__actions a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.program-dialog__actions a:active {
  transform: scale(0.985);
}

.program-dialog__actions a.is-primary {
  border-color: var(--pre-500);
  background: var(--pre-500);
  color: #fff;
}

.program-dialog__actions a.is-primary:hover {
  border-color: var(--pre-700);
  background: var(--pre-700);
}

.program-dialog__actions a[hidden] {
  display: none;
}

.filter-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-dialog);
}

.filter-dialog[open],
.route-dialog[open],
.drawer-dialog[open] {
  animation: dialog-in 300ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.route-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-dialog);
}

.route-dialog__shell {
  display: grid;
  max-height: min(860px, calc(100dvh - 32px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.route-dialog__body {
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
}

.route-dialog__fit {
  padding: 20px;
  border-radius: var(--control-radius);
  background: var(--accent-soft);
}

.route-dialog__fit h3,
.route-dialog__section h3,
.route-dialog__example h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.route-dialog__fit p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.route-dialog__section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.route-dialog__section[hidden],
.route-dialog__example[hidden] {
  display: none;
}

.route-dialog__section ul,
.route-dialog__example ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.route-dialog__section li::marker,
.route-dialog__example li::marker {
  color: var(--accent);
}

.route-dialog__example {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface-soft);
}

.route-dialog__example p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.route-dialog__example li {
  font-family: var(--font-code);
  font-size: 0.78rem;
}

.route-dialog__note {
  margin: 26px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--ua-500);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.model-dialog {
  width: min(1040px, calc(100% - 32px));
}

.model-dialog__body {
  padding: clamp(24px, 4vw, 42px);
}

.model-stage {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface-soft);
}

.model-stage + .model-stage {
  margin-top: 20px;
}

.model-stage__head > span {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-stage__head h3 {
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.model-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-top: 24px;
}

.model-input {
  position: relative;
  min-width: 0;
  padding: 20px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.model-input > svg {
  width: 30px;
  height: 30px;
  margin-top: 6px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.model-input__number {
  display: block;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.model-input h4 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.model-input p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.model-operator {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 1.3rem;
  font-weight: 700;
}

.model-conversion {
  display: grid;
  justify-items: center;
  margin-top: 8px;
}

.model-arrow {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.model-engine,
.model-threshold {
  display: grid;
  width: min(100%, 470px);
  justify-items: center;
  padding: 17px 24px;
  border: 1px solid var(--accent);
  text-align: center;
}

.model-engine {
  background: var(--accent-soft);
}

.model-threshold {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.model-engine span,
.model-threshold span,
.model-outcome span,
.model-comparison__item > span {
  font-family: var(--font-code);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-engine strong,
.model-threshold strong {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.model-engine small,
.model-threshold small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.model-threshold small {
  color: rgb(255 255 255 / 0.76);
}

.model-stage--comparison {
  background: var(--surface);
}

.model-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 24px;
}

.model-comparison__item {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 20px;
  border-left: 4px solid var(--ua-500);
  background: var(--surface-soft);
}

.model-comparison__item--threshold {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.model-comparison__item > span {
  color: var(--muted);
}

.model-comparison__item strong {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.model-comparison__item small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.model-comparison__connector {
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.model-comparison__connector span {
  font-size: 0.72rem;
}

.model-comparison__connector svg {
  width: 72px;
  margin-top: 5px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.model-outcome {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 18px;
  padding: 20px;
  background: var(--accent-strong);
  color: #fff;
}

.model-outcome > svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.model-outcome span,
.model-outcome p {
  color: rgb(255 255 255 / 0.78);
}

.model-outcome strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}

.model-outcome p {
  margin: 5px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

[data-theme="dark"] .model-threshold,
[data-theme="dark"] .model-outcome {
  border-color: var(--pre-500);
  background: var(--pre-800);
  color: #fff;
}

.dialog-shell {
  display: grid;
  max-height: min(820px, calc(100dvh - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.dialog-body,
.drawer-body {
  overflow-y: auto;
  padding: 24px;
}

.dialog-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.filter-dialog fieldset + fieldset {
  margin-top: 28px;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.filter-options--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-option {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--canvas);
  cursor: pointer;
}

.filter-option:hover {
  border-color: var(--pre-300);
}

.filter-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--pre-500);
}

.filter-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.filter-option span {
  display: grid;
  gap: 2px;
}

.filter-option strong {
  font-size: 0.84rem;
  font-weight: 560;
  line-height: 1.3;
}

.filter-option small {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.66rem;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.dialog-actions > div {
  display: flex;
  gap: 8px;
}

.drawer-dialog {
  width: min(620px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  box-shadow: var(--shadow-dialog);
}

.drawer-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
}

.calendar-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.calendar-list li.is-current {
  margin-inline: -12px;
  padding-inline: 12px;
  border: 1px solid var(--pre-300);
  border-radius: var(--control-radius);
  background: var(--accent-soft);
}

.calendar-list time {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 10px;
  border-radius: var(--control-radius);
  background: var(--pre-900);
  color: #fff;
  line-height: 1;
}

.calendar-list time strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.calendar-list time span {
  margin-top: 4px;
  color: var(--pre-100);
  font-family: var(--font-code);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.calendar-list li > div > span {
  color: var(--accent-strong);
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calendar-list h3 {
  margin: 4px 0 5px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.calendar-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.noscript-message {
  position: fixed;
  z-index: 220;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  padding: 16px;
  border-left: 4px solid var(--orange-500);
  border-radius: var(--control-radius);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--text);
  font-size: 0.9rem;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms cubic-bezier(0.16, 1, 0.3, 1), transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-in {
  from { opacity: 0.72; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.035); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateX(18px) scale(0.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 1240px) {
  .site-header__inner {
    grid-template-columns: minmax(220px, 1fr) auto minmax(210px, 1fr);
    gap: 12px;
  }

  .brand__product,
  .header-documents {
    display: none;
  }

  .desktop-nav {
    gap: 0;
  }

  .desktop-nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 1020px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .desktop-nav,
  .header-apply {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .section-dots {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
    gap: 42px;
  }

  .section-heading,
  .dates__layout,
  .route-builder,
  .apply__layout,
  .support__layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 24px;
  }

  .section-heading h2,
  .dates h2,
  .admission-criteria__intro h2,
  .apply h2,
  .support h2 {
    max-width: 16ch;
  }

  .dates__intro,
  .route-result {
    position: static;
  }

  .dates__intro {
    max-width: 720px;
  }

  .route-result {
    max-width: none;
  }

  .program-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-dialog__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admission-criteria__intro,
  .criteria-section__heading,
  .algorithm-grid {
    grid-template-columns: 1fr;
  }

  .admission-criteria__intro h2 {
    max-width: 13ch;
  }

  .algorithm-context {
    grid-template-columns: 1fr;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(var(--shell), calc(100% - 24px));
  }

  html {
    scroll-padding-top: 76px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__signature {
    min-width: 128px;
    min-height: 44px;
    padding: 5px 8px;
  }

  .brand__signature img {
    width: 116px;
  }

  .hero {
    min-height: auto;
  }

  .hero__media {
    background-position: 57% center;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgb(26 0 60 / 0.82) 0%, rgb(26 0 60 / 0.72) 36%, rgb(26 0 60 / 0.93) 76%, rgb(26 0 60 / 1) 100%),
      linear-gradient(90deg, rgb(26 0 60 / 0.72), transparent);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding-block: 76px 54px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 14vw, 5rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero-search__control {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .hero-status {
    align-self: stretch;
    max-width: none;
    margin-bottom: 0;
  }

  .hero-status time strong {
    font-size: 4.4rem;
  }

  .hero-calendar__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-calendar__inner > div,
  .hero-calendar__inner > div:first-child {
    min-height: 106px;
    padding: 16px;
    border-right: 1px solid rgb(255 255 255 / 0.14);
    border-bottom: 1px solid rgb(255 255 255 / 0.14);
  }

  .hero-calendar__inner > div:nth-child(2n) {
    border-right: 0;
  }

  .hero-calendar__inner > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .dates h2,
  .admission-criteria__intro h2,
  .apply h2,
  .support h2 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .data-notice {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .data-notice .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .program-grid,
  .process-list,
  .choice-grid,
  .choice-grid--two {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 286px;
  }

  .date-route li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding-block: 20px;
  }

  .date-route time {
    grid-column: 2;
    align-self: end;
  }

  .date-route li > div:last-child {
    grid-column: 2;
  }

  .date-route__marker {
    grid-row: 1 / span 2;
  }

  .process-list li {
    min-height: 0;
  }

  .admission-criteria {
    margin-top: 46px;
    padding: 32px 20px;
  }

  .criteria-index,
  .criteria-toolbar,
  .criteria-stats {
    grid-template-columns: 1fr;
  }

  .criteria-index a {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .criteria-index a:last-child {
    border-bottom: 0;
  }

  .criteria-section__heading {
    margin-bottom: 28px;
  }

  .criteria-section__heading > div {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .criteria-section__number {
    padding-top: 6px;
  }

  .criteria-toolbar__meta {
    justify-items: start;
  }

  .algorithm-context {
    padding: 22px 20px;
  }

  .algorithm-context__copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .algorithm-model-trigger {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .algorithm-grid {
    gap: 48px;
  }

  .model-dialog__body {
    padding: 20px;
  }

  .model-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .model-operator {
    min-height: 28px;
  }

  .model-input {
    padding: 18px;
  }

  .model-comparison {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .model-comparison__connector {
    min-height: 64px;
  }

  .model-comparison__connector svg {
    transform: rotate(90deg);
  }

  .criteria-stats > div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 16px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .criteria-stats > div:last-child {
    border-bottom: 0;
  }

  .criteria-stats dd {
    margin: 0;
  }

  .exam-subsection > header {
    grid-template-columns: 1fr;
  }

  .exam-subsection header p {
    grid-column: 1;
  }

  .status-pill {
    justify-self: start;
  }

  .apply__options > a {
    min-height: 138px;
  }

  .site-footer__identity {
    flex-direction: column;
  }

  .site-footer__links ul {
    grid-template-columns: 1fr;
  }

  .site-footer__legal > div {
    flex-direction: column;
    gap: 6px;
  }

  .filter-dialog,
  .route-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .program-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .program-dialog__hero {
    min-height: 238px;
    padding: 24px 20px;
  }

  .program-dialog__copy {
    max-width: calc(100% - 44px);
  }

  .program-dialog__copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .program-dialog__close {
    top: 14px;
    right: 14px;
  }

  .program-dialog__body {
    padding: 20px;
  }

  .program-dialog__meta,
  .program-dialog__actions {
    grid-template-columns: 1fr;
  }

  .dialog-shell {
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .route-dialog__shell {
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .filter-options,
  .filter-options--compact {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .drawer-dialog {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .header-actions {
    gap: 5px;
  }

  .brand__signature {
    min-width: 118px;
  }

  .brand__signature img {
    width: 106px;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero-calendar strong {
    font-size: 0.88rem;
  }

  .section-kicker,
  .eyebrow {
    font-size: 0.68rem;
  }

  .route-form {
    padding: 22px 16px;
  }

  .apply__options > a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .apply__options > a > svg {
    display: none;
  }

  .calendar-list li {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__media {
    transform: scale(1.035);
  }
}

@media print {
  :root {
    --canvas: #fff;
    --surface: #fff;
    --surface-soft: #f2f2f2;
    --text: #000;
    --muted: #333;
  }

  .site-header,
  .section-dots,
  .hero-search,
  .button,
  .catalog-toolbar,
  .support__contact,
  dialog {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: #fff;
    color: #000;
  }

  .hero__media,
  .hero__veil {
    display: none;
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 36px;
  }

  .hero h1 span,
  .hero__lead,
  .hero-status p {
    color: #333;
  }

  .hero-status {
    border: 1px solid #bbb;
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  .hero-calendar {
    border-block: 1px solid #bbb;
    background: #fff;
    color: #000;
  }

  .hero-calendar span {
    color: #333;
  }

  .dates,
  .apply {
    background: #fff;
    color: #000;
  }

  .dates__intro > p,
  .apply__copy > p,
  .date-route li > div:last-child span {
    color: #333;
  }

  .date-route__marker {
    border-color: #666;
    background: #fff;
  }

  .program-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reveal,
  .has-js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
