:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #e9f1ff;
  --line: #d7e4ff;
  --text: #111827;
  --text-soft: #52607a;
  --primary: #1359c8;
  --primary-deep: #0a3f95;
  --accent: #d60047;
  --shadow: 0 18px 40px rgba(15, 40, 84, 0.12);
  --radius: 24px;
  --container: 1360px;
  --header-block-height: 68px;
}

html.theme-kabancho {
  --bg: #fff6f9;
  --surface: #fff9fb;
  --surface-muted: #ffe6ee;
  --line: #f8b8ca;
  --text: #3b1420;
  --text-soft: #8a4c60;
  --primary: #db5276;
  --primary-deep: #a92d52;
  --accent: #ff7fa2;
  --shadow: 0 18px 40px rgba(168, 45, 82, 0.14);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.pixel-storm {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  animation: pixel-storm-shell 1.42s linear forwards;
  isolation: isolate;
}

.pixel-storm__pixel {
  position: absolute;
  left: var(--storm-left);
  bottom: -22vh;
  width: var(--storm-size);
  height: var(--storm-size);
  color: var(--storm-color);
  background: currentColor;
  opacity: 0;
  transform: translate3d(var(--storm-start-x), var(--storm-start-y), 0) scale(0.72) rotate(0deg);
  animation: pixel-storm-flight var(--storm-duration) cubic-bezier(0.14, 0.8, 0.18, 1) var(--storm-delay) forwards;
  will-change: transform, opacity;
}

html.theme-kabancho .hero {
  background:
    linear-gradient(180deg, rgba(82, 18, 39, 0.28), rgba(219, 82, 118, 0.18)),
    var(--hero-bg) center/cover no-repeat;
}

html.theme-kabancho .hero__backdrop {
  background:
    radial-gradient(circle at 24% 32%, rgba(255, 127, 162, 0.22), transparent 18%),
    radial-gradient(circle at 70% 28%, rgba(219, 82, 118, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(95, 24, 48, 0.18), rgba(59, 20, 32, 0.3));
}

html.theme-kabancho .site-header {
  background: #db5276;
}

html.theme-kabancho .button--primary {
  background: #db5276;
  box-shadow: 0 12px 20px rgba(219, 82, 118, 0.2);
}

html.theme-kabancho .button--secondary,
html.theme-kabancho .program-pill.is-active,
html.theme-kabancho .home-sections__tab.is-active,
html.theme-kabancho .curricula-filter__btn.is-active,
html.theme-kabancho .spec-btn.is-active {
  background: #db5276;
}

html.theme-kabancho .curricula__switch.is-active,
html.theme-kabancho .spec-btn.is-active {
  box-shadow: 0 10px 24px rgba(219, 82, 118, 0.2);
}

html.theme-kabancho .program-highlight {
  background: linear-gradient(135deg, #7a1e3d, #db5276);
}

html.theme-kabancho .stat-card:hover strong {
  color: #db5276;
  text-shadow: 0 10px 18px rgba(219, 82, 118, 0.2);
}

html.theme-kabancho .site-footer {
  background: #3b1420;
}

html.theme-kabancho .site-footer__brand img {
  width: 160px;
}

html.theme-kabancho .home-lower {
  background: #fff6f9;
}

html.theme-kabancho .home-lower__panel {
  background: linear-gradient(135deg, #ffe6ee, #fff5f8);
}

html.theme-kabancho .home-lower__lead,
html.theme-kabancho .home-lower__research h3,
html.theme-kabancho .research-list li {
  color: #3b1420;
}

html.theme-kabancho .home-lower__pixels {
  color: rgba(219, 82, 118, 0.16);
}

html.theme-kabancho .partner-card:hover,
html.theme-kabancho .partner-card:focus-visible {
  border-color: rgba(219, 82, 118, 0.38);
  background: #fff9fb;
  box-shadow: 0 14px 26px rgba(168, 45, 82, 0.1);
}

html.theme-kabancho .curricula-filter__btn,
html.theme-kabancho .spec-accordion__toggle:hover,
html.theme-kabancho .spec-accordion__details,
html.theme-kabancho .curricula-year__summary:hover,
html.theme-kabancho .curricula-year__summary:focus-visible,
html.theme-kabancho .curricula-grid-wrap,
html.theme-kabancho .curricula-grid__header,
html.theme-kabancho .curricula-semester {
  background: #fff6f9;
}

html.theme-kabancho .spec-btn {
  background: #fff9fb;
}

html.theme-kabancho .spec-btn:not(.is-active):hover {
  background: #ffeef4;
}

html.theme-kabancho .spec-btn__tags span {
  background: rgba(219, 82, 118, 0.12);
  color: #a92d52;
}

html.theme-kabancho .spec-accordion,
html.theme-kabancho .spec-btn,
html.theme-kabancho .curricula-year,
html.theme-kabancho .curricula-grid-wrap,
html.theme-kabancho .curricula-grid__header,
html.theme-kabancho .curricula-col,
html.theme-kabancho .curricula-year__body,
html.theme-kabancho .curricula-semester + .curricula-semester {
  border-color: #f8b8ca;
}

html.theme-kabancho .curricula-col.has-spec-highlight {
  background: rgba(219, 82, 118, 0.04);
}

html.theme-kabancho .curricula-filter__btn--primary,
html.theme-kabancho .curricula-row--primary {
  --filter-color: #db5276;
  --row-color: #db5276;
  --row-soft: #ffe6ee;
}

html.theme-kabancho .curricula-filter__btn--light,
html.theme-kabancho .curricula-row--light {
  --filter-color: #f08aaa;
  --row-color: #f08aaa;
  --row-soft: #fff0f5;
}

html.theme-kabancho .curricula-year[open] {
  border-color: rgba(219, 82, 118, 0.28);
  box-shadow: 0 12px 28px rgba(168, 45, 82, 0.08);
}

html.theme-kabancho .curricula-cell:hover,
html.theme-kabancho .curricula-cell:focus-visible {
  box-shadow: 0 4px 14px rgba(168, 45, 82, 0.12);
}

html.theme-kabancho .curricula-cell.is-spec-active {
  box-shadow: 0 0 0 2px var(--row-color), 0 4px 16px rgba(168, 45, 82, 0.14);
}

html.theme-yuliya_myxa {
  --bg: #fbf2e4;
  --surface: #fff8ef;
  --surface-muted: #ead0ad;
  --line: #d7ac75;
  --text: #2b170d;
  --text-soft: #6e4729;
  --primary: #8a5428;
  --primary-deep: #4f2d18;
  --accent: #b77535;
  --shadow: 0 18px 40px rgba(76, 43, 18, 0.14);
}

html.theme-tikomarov {
  --bg: #f7fbff;
  --surface: #fff;
  --surface-muted: #eaf3ff;
  --line: #d5e4ff;
  --text: #142041;
  --text-soft: #4a5878;
  --primary: #145bd1;
  --primary-deep: #0b3f95;
  --accent: #e50046;
  --shadow: 0 18px 40px rgba(11, 87, 208, 0.12);
}

html.theme-grigorevmp {
  --bg: #f8f7fb;
  --surface: #fff;
  --surface-muted: #f0e8f5;
  --line: #ded1e7;
  --text: #15101a;
  --text-soft: #55485e;
  --primary: #7a2fa0;
  --primary-deep: #241028;
  --accent: #9b57bc;
  --shadow: 0 18px 40px rgba(36, 16, 40, 0.12);
}

html.theme-grigorevmp body {
  padding-bottom: calc(54px + env(safe-area-inset-bottom));
}

html.theme-jawa_prog {
  --bg: #fff8fb;
  --surface: #fff;
  --surface-muted: #ffe7f1;
  --line: #ffc1d8;
  --text: #25121b;
  --text-soft: #6e4156;
  --primary: #e05a8c;
  --primary-deep: #673047;
  --accent: #ff7cac;
}

html.theme-abvavrenyuk {
  --bg: #03120f;
  --surface: #071c18;
  --surface-muted: #0c2b24;
  --line: #1f6b58;
  --text: #d9fff2;
  --text-soft: #8ed7be;
  --primary: #25d690;
  --primary-deep: #d9fff2;
  --accent: #5dffc5;
  --shadow: 0 18px 40px rgba(0, 255, 170, 0.1);
}

html.theme-alexanderdyumin {
  --bg: #f6f8ff;
  --surface: #fff;
  --surface-muted: #e6edff;
  --line: #c9d8ff;
  --text: #10244f;
  --text-soft: #506088;
  --primary: #3d67d5;
  --primary-deep: #10244f;
  --accent: #7da0ff;
}

html.theme-aandrei4 {
  --bg: #21170d;
  --surface: #2b1d10;
  --surface-muted: #4b3218;
  --line: #8a5c2a;
  --text: #fff2d8;
  --text-soft: #e2bd82;
  --primary: #c6843a;
  --primary-deep: #fff2d8;
  --accent: #ffcf69;
}

html.theme-titovas {
  --bg: #f3efe7;
  --surface: #fffaf1;
  --surface-muted: #e7ddce;
  --line: #c2b39d;
  --text: #2b2924;
  --text-soft: #686052;
  --primary: #6f7354;
  --primary-deep: #303326;
  --accent: #a47d4e;
  --shadow: 0 18px 40px rgba(70, 68, 52, 0.12);
}

html.theme-jakzy {
  --bg: #fff8e1;
  --surface: #fffdf5;
  --surface-muted: #ffe8a3;
  --line: #f4bf5a;
  --text: #241014;
  --text-soft: #6c4740;
  --primary: #d9432f;
  --primary-deep: #241014;
  --accent: #ffb33f;
}

html.theme-ma_kura {
  --bg: #fff6fb;
  --surface: #fff;
  --surface-muted: #ffe3f4;
  --line: #ffb7df;
  --text: #351128;
  --text-soft: #804467;
  --primary: #c95a9c;
  --primary-deep: #4b1638;
  --accent: #ff8dcc;
}

html.theme-vexxyyx {
  --bg: #f4fbff;
  --surface: #fff;
  --surface-muted: #def4ff;
  --line: #a8def7;
  --text: #083f69;
  --text-soft: #4a6a80;
  --primary: #27a9e6;
  --primary-deep: #083f69;
  --accent: #58d4ff;
}

html.theme-babalova {
  --bg: #fff0fb;
  --surface: #fff8fd;
  --surface-muted: #f6d9ff;
  --line: #e4a5ef;
  --text: #451052;
  --text-soft: #7a3a8b;
  --primary: #d66ce8;
  --primary-deep: #451052;
  --accent: #ff8adf;
}

html.theme-imyadykin {
  --bg: #070b0a;
  --surface: #0d1714;
  --surface-muted: #15251f;
  --line: #39624f;
  --text: #f0fff5;
  --text-soft: #a8cdb9;
  --primary: #ffb21a;
  --primary-deep: #17372c;
  --accent: #d88916;
  --shadow: 0 18px 40px rgba(255, 178, 26, 0.13);
}

html.theme-vasya333 {
  --bg: #fffdf6;
  --surface: #fff;
  --surface-muted: #f0f8dc;
  --line: #d8e4ac;
  --text: #252514;
  --text-soft: #626340;
  --primary: #7aa33e;
  --primary-deep: #33461b;
  --accent: #d99a27;
}

html.theme-drag_3 {
  --bg: #fff8eb;
  --surface: #fffaf2;
  --surface-muted: #ead7bc;
  --line: #cfaa75;
  --text: #2a160c;
  --text-soft: #704d32;
  --primary: #8a5428;
  --primary-deep: #2d1a10;
  --accent: #c89550;
}

html.theme-aiokhim {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --surface-muted: #eeeeee;
  --line: #d8d8d8;
  --text: #161616;
  --text-soft: #5a5a5a;
  --primary: #202020;
  --primary-deep: #050505;
  --accent: #e01c1c;
}

html.theme-annn_dj {
  --bg: #fff7ea;
  --surface: #fffdf8;
  --surface-muted: #ffe7bf;
  --line: #f0bd77;
  --text: #2a1108;
  --text-soft: #704325;
  --primary: #d18a49;
  --primary-deep: #3b180a;
  --accent: #f5b85f;
}

html.theme-toffi_1901 {
  --bg: #fff7f2;
  --surface: #fffefd;
  --surface-muted: #ffe6dc;
  --line: #efb9a8;
  --text: #2b1720;
  --text-soft: #754855;
  --primary: #c6736a;
  --primary-deep: #6f3a43;
  --accent: #f2a46f;
}

html.theme-yuliya_myxa .hero,
html.theme-grigorevmp .hero,
html.theme-tikomarov .hero {
  background:
    linear-gradient(180deg, var(--theme-hero-top, rgba(55, 28, 10, 0.42)), var(--theme-hero-bottom, rgba(22, 10, 4, 0.5))),
    var(--hero-bg) center/cover no-repeat;
}

html.theme-yuliya_myxa .hero {
  --theme-hero-top: rgba(105, 57, 22, 0.38);
  --theme-hero-bottom: rgba(52, 27, 12, 0.46);
}

html.theme-tikomarov .hero {
  --theme-hero-top: rgba(2, 9, 25, 0.46);
  --theme-hero-bottom: rgba(3, 18, 49, 0.36);
}

html.theme-grigorevmp .hero {
  --theme-hero-top: rgba(18, 10, 22, 0.66);
  --theme-hero-bottom: rgba(10, 6, 14, 0.74);
}

html.theme-yuliya_myxa .hero__backdrop {
  background:
    radial-gradient(circle at 28% 30%, rgba(183, 117, 53, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(79, 45, 24, 0.12), rgba(43, 23, 13, 0.28));
}

html.theme-tikomarov .hero__backdrop {
  background:
    radial-gradient(circle at 24% 32%, rgba(29, 106, 255, 0.14), transparent 18%),
    radial-gradient(circle at 70% 28%, rgba(44, 122, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(5, 16, 46, 0.22), rgba(3, 12, 31, 0.42));
}

html.theme-grigorevmp .hero__backdrop {
  background:
    radial-gradient(circle at 64% 22%, rgba(122, 47, 160, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(22, 9, 28, 0.34), rgba(10, 6, 14, 0.64));
}

html.theme-yuliya_myxa .site-header,
html.theme-yuliya_myxa .site-footer {
  background: #4f2d18;
}

html.theme-tikomarov .site-header,
html.theme-tikomarov .site-footer {
  background: #1359c8;
  border-color: rgba(255, 255, 255, 0.06);
}

html.theme-grigorevmp .site-header,
html.theme-grigorevmp .site-footer {
  background: #0d0910;
}

html.theme-yuliya_myxa .button--primary,
html.theme-yuliya_myxa .button--secondary,
html.theme-yuliya_myxa .program-pill.is-active,
html.theme-yuliya_myxa .home-sections__tab.is-active,
html.theme-yuliya_myxa .curricula-filter__btn.is-active,
html.theme-yuliya_myxa .spec-btn.is-active {
  background: #8a5428;
}

html.theme-yuliya_myxa .button--primary {
  box-shadow: 0 12px 20px rgba(79, 45, 24, 0.22);
}

html.theme-tikomarov .button--primary,
html.theme-tikomarov .button--secondary,
html.theme-tikomarov .program-pill.is-active,
html.theme-tikomarov .home-sections__tab.is-active,
html.theme-tikomarov .curricula-filter__btn.is-active,
html.theme-tikomarov .spec-btn.is-active {
  background: #145bd1;
  color: #fff;
}

html.theme-tikomarov .hero .button--primary {
  background: #e24f9a;
  box-shadow: 0 14px 24px rgba(226, 79, 154, 0.28);
}

html.theme-grigorevmp .button--primary,
html.theme-grigorevmp .button--secondary,
html.theme-grigorevmp .program-pill.is-active,
html.theme-grigorevmp .home-sections__tab.is-active,
html.theme-grigorevmp .curricula-filter__btn.is-active,
html.theme-grigorevmp .spec-btn.is-active {
  background: #7a2fa0;
  color: #fff;
}

html.theme-yuliya_myxa .program-highlight {
  background: linear-gradient(135deg, #4f2d18, #9a6231);
}

html.theme-tikomarov .program-highlight {
  background: linear-gradient(135deg, #072e78, #0b57d0);
}

html.theme-grigorevmp .program-highlight {
  background: linear-gradient(135deg, #0d0910, #54206f);
}

html.theme-abvavrenyuk .hero {
  --theme-hero-top: rgba(2, 14, 12, 0.76);
  --theme-hero-bottom: rgba(1, 8, 7, 0.86);
  background:
    linear-gradient(180deg, var(--theme-hero-top), var(--theme-hero-bottom)),
    var(--hero-bg) center/cover no-repeat;
}

html.theme-abvavrenyuk .hero__backdrop {
  background:
    repeating-linear-gradient(180deg, rgba(93, 255, 197, 0.035) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 18% 28%, rgba(37, 214, 144, 0.18), transparent 18%),
    radial-gradient(circle at 74% 42%, rgba(93, 255, 197, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(1, 14, 12, 0.22), rgba(0, 5, 4, 0.58));
}

html.theme-abvavrenyuk .site-header,
html.theme-abvavrenyuk .site-footer {
  background: #041612;
  border-color: rgba(93, 255, 197, 0.16);
}

html.theme-abvavrenyuk body,
html.theme-abvavrenyuk .section--surface,
html.theme-abvavrenyuk .section--muted {
  background: #03120f;
}

html.theme-abvavrenyuk .section--surface-overlap::before {
  background: #03120f;
}

html.theme-abvavrenyuk .programs-widget__header h3,
html.theme-abvavrenyuk .program-tracks__title,
html.theme-abvavrenyuk .section-heading h2,
html.theme-abvavrenyuk .page-title {
  color: #d9fff2;
  text-shadow: 0 0 20px rgba(93, 255, 197, 0.18);
}

html.theme-abvavrenyuk .programs-widget__nav {
  color: #5dffc5;
  filter: drop-shadow(0 0 8px rgba(93, 255, 197, 0.2));
}

html.theme-abvavrenyuk .programs-widget__nav img {
  filter: brightness(0) saturate(100%) invert(83%) sepia(41%) saturate(624%) hue-rotate(96deg) brightness(104%) contrast(102%);
}

html.theme-abvavrenyuk .button--primary,
html.theme-abvavrenyuk .button--secondary,
html.theme-abvavrenyuk .program-pill.is-active,
html.theme-abvavrenyuk .home-sections__tab.is-active,
html.theme-abvavrenyuk .curricula-filter__btn.is-active,
html.theme-abvavrenyuk .spec-btn.is-active {
  background: #0f8f69;
  color: #eafff7;
  box-shadow: 0 12px 24px rgba(37, 214, 144, 0.18);
}

html.theme-abvavrenyuk .program-highlight {
  background:
    linear-gradient(135deg, rgba(3, 18, 15, 0.98), rgba(9, 62, 48, 0.96));
  border: 1px solid rgba(93, 255, 197, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html.theme-abvavrenyuk .stat-card {
  background:
    linear-gradient(180deg, rgba(3, 18, 15, 0.98), rgba(3, 28, 23, 0.98));
  border: 1px solid rgba(93, 255, 197, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(217, 255, 242, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

html.theme-abvavrenyuk .stat-card__plate {
  background:
    radial-gradient(circle at 30% 80%, rgba(93, 255, 197, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(37, 214, 144, 0.16), rgba(37, 214, 144, 0.04));
}

html.theme-abvavrenyuk .stat-card span,
html.theme-abvavrenyuk .program-card__meta span,
html.theme-abvavrenyuk .program-card dt {
  color: rgba(217, 255, 242, 0.72);
}

html.theme-abvavrenyuk .stat-card strong {
  color: #25d690;
  text-shadow: 0 0 20px rgba(37, 214, 144, 0.24);
}

html.theme-abvavrenyuk .stat-card:hover strong {
  color: #5dffc5;
  text-shadow: 0 0 24px rgba(93, 255, 197, 0.3);
}

html.theme-abvavrenyuk .program-card {
  background: #071c18;
  border: 1px solid rgba(93, 255, 197, 0.16);
}

html.theme-abvavrenyuk .program-card p,
html.theme-abvavrenyuk .program-highlight p {
  color: rgba(217, 255, 242, 0.82);
}

html.theme-abvavrenyuk .program-card h3,
html.theme-abvavrenyuk .program-card h4,
html.theme-abvavrenyuk .program-highlight h2,
html.theme-abvavrenyuk .program-highlight h3,
html.theme-abvavrenyuk .spec-accordion__toggle,
html.theme-abvavrenyuk .spec-accordion__toggle h3,
html.theme-abvavrenyuk .curricula-semester h3,
html.theme-abvavrenyuk .curricula-grid__header h2,
html.theme-abvavrenyuk .curricula-grid__header h3,
html.theme-abvavrenyuk .section--muted h2,
html.theme-abvavrenyuk .section--muted h3 {
  color: #d9fff2;
}

html.theme-abvavrenyuk .program-card small,
html.theme-abvavrenyuk .program-card span,
html.theme-abvavrenyuk .spec-accordion__details p,
html.theme-abvavrenyuk .curricula-semester p,
html.theme-abvavrenyuk .curricula-grid__header p,
html.theme-abvavrenyuk .section--muted p,
html.theme-abvavrenyuk .section--muted li {
  color: rgba(217, 255, 242, 0.86);
}

html.theme-abvavrenyuk .curricula-card,
html.theme-abvavrenyuk .discipline-card {
  background: #f8fffc;
  color: #10241f;
}

html.theme-abvavrenyuk .curricula-card h3,
html.theme-abvavrenyuk .curricula-card h4,
html.theme-abvavrenyuk .discipline-card h3,
html.theme-abvavrenyuk .discipline-card h4 {
  color: #10241f;
}

html.theme-abvavrenyuk .curricula-card p,
html.theme-abvavrenyuk .curricula-card span,
html.theme-abvavrenyuk .discipline-card p,
html.theme-abvavrenyuk .discipline-card span {
  color: #527063;
}

html.theme-abvavrenyuk .home-lower,
html.theme-abvavrenyuk .home-lower__panel,
html.theme-abvavrenyuk .partners,
html.theme-abvavrenyuk .spec-accordion__toggle:hover,
html.theme-abvavrenyuk .spec-accordion__details,
html.theme-abvavrenyuk .curricula-filter__btn,
html.theme-abvavrenyuk .curricula-grid-wrap,
html.theme-abvavrenyuk .curricula-grid__header,
html.theme-abvavrenyuk .curricula-semester {
  background: #071c18;
  color: #d9fff2;
  border-color: rgba(93, 255, 197, 0.2);
}

html.theme-abvavrenyuk .home-lower h2,
html.theme-abvavrenyuk .partners h2 {
  color: #25d690;
  text-shadow: 0 0 22px rgba(37, 214, 144, 0.28);
}

html.theme-abvavrenyuk .home-lower__lead,
html.theme-abvavrenyuk .home-lower__research h3,
html.theme-abvavrenyuk .research-list li {
  color: rgba(217, 255, 242, 0.84);
}

html.theme-abvavrenyuk .home-lower__lead {
  text-shadow: 0 0 16px rgba(93, 255, 197, 0.08);
}

html.theme-abvavrenyuk .research-list li::before {
  background: #25d690;
  box-shadow: 0 0 10px rgba(37, 214, 144, 0.55);
}

html.theme-abvavrenyuk .home-lower__pixels {
  color: rgba(93, 255, 197, 0.12);
}

html.theme-abvavrenyuk .partner-card {
  background: #fff;
  border-color: rgba(93, 255, 197, 0.26);
  box-shadow: inset 0 0 0 1px rgba(7, 28, 24, 0.04), 0 12px 28px rgba(0, 0, 0, 0.18);
}

html.theme-abvavrenyuk .partner-card img {
  opacity: 1;
  filter: none;
}

html.theme-abvavrenyuk .partner-card:hover,
html.theme-abvavrenyuk .partner-card:focus-visible {
  border-color: rgba(93, 255, 197, 0.42);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

html.theme-abvavrenyuk .partner-card span {
  color: #10241f;
}

html.theme-titovas .hero {
  --theme-hero-top: rgba(64, 58, 43, 0.52);
  --theme-hero-bottom: rgba(39, 36, 29, 0.68);
  background:
    linear-gradient(180deg, var(--theme-hero-top), var(--theme-hero-bottom)),
    var(--hero-bg) center/cover no-repeat;
}

html.theme-titovas .hero__backdrop {
  background:
    radial-gradient(circle at 28% 30%, rgba(164, 125, 78, 0.2), transparent 19%),
    radial-gradient(circle at 78% 34%, rgba(111, 115, 84, 0.18), transparent 23%),
    linear-gradient(180deg, rgba(39, 36, 29, 0.2), rgba(29, 28, 23, 0.42));
}

html.theme-titovas .site-header,
html.theme-titovas .site-footer {
  background: #303326;
  border-color: rgba(255, 250, 241, 0.12);
}

html.theme-titovas .button--primary,
html.theme-titovas .button--secondary,
html.theme-titovas .program-pill.is-active,
html.theme-titovas .home-sections__tab.is-active,
html.theme-titovas .curricula-filter__btn.is-active,
html.theme-titovas .spec-btn.is-active {
  background: #6f7354;
  color: #fffaf1;
  box-shadow: 0 12px 22px rgba(70, 68, 52, 0.2);
}

html.theme-titovas .program-highlight {
  background: linear-gradient(135deg, #303326, #7b6a4f);
}

html.theme-titovas .home-lower,
html.theme-titovas .home-lower__panel,
html.theme-titovas .spec-accordion__toggle:hover,
html.theme-titovas .spec-accordion__details,
html.theme-titovas .curricula-filter__btn,
html.theme-titovas .curricula-grid-wrap,
html.theme-titovas .curricula-grid__header,
html.theme-titovas .curricula-semester {
  background: #f3efe7;
  border-color: #c2b39d;
}

html.theme-imyadykin .hero {
  background:
    linear-gradient(180deg, rgba(7, 11, 10, 0.62), rgba(7, 11, 10, 0.8)),
    var(--hero-bg) center/cover no-repeat;
}

html.theme-imyadykin .hero__backdrop {
  background:
    repeating-linear-gradient(90deg, rgba(255, 178, 26, 0.032) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(180deg, rgba(255, 178, 26, 0.035) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 24% 30%, rgba(255, 178, 26, 0.18), transparent 20%),
    radial-gradient(circle at 76% 36%, rgba(216, 137, 22, 0.12), transparent 22%);
}

html.theme-imyadykin .site-header,
html.theme-imyadykin .site-footer {
  background: #070b0a;
  border-color: rgba(255, 178, 26, 0.18);
}

html.theme-imyadykin .button--primary,
html.theme-imyadykin .button--secondary,
html.theme-imyadykin .program-pill.is-active,
html.theme-imyadykin .home-sections__tab.is-active,
html.theme-imyadykin .curricula-filter__btn.is-active,
html.theme-imyadykin .spec-btn.is-active {
  background: #ffb21a;
  color: #11140a;
  box-shadow: 0 12px 24px rgba(255, 178, 26, 0.18);
}

html.theme-imyadykin .program-highlight {
  background: linear-gradient(135deg, #0a120f, #233c31);
}

html.theme-imyadykin .programs-widget__header h3,
html.theme-imyadykin .program-tracks__title,
html.theme-imyadykin .section-heading h2,
html.theme-imyadykin .page-title {
  color: #f4f1df;
  text-shadow: none;
}

html.theme-imyadykin .section-eyebrow {
  color: #ffb21a;
}

html.theme-imyadykin .page-shell {
  padding-top: 0;
  background: #070b0a;
}

html.theme-imyadykin .page-intro {
  padding-top: 14px;
}

html.theme-imyadykin .curricula__heading h2 {
  color: #f4f1df;
}

html.theme-imyadykin body.page-programs,
html.theme-imyadykin body.page-programs .site-main,
html.theme-imyadykin body.page-programs .page-shell,
html.theme-imyadykin body.page-programs .section--surface,
html.theme-imyadykin body.page-programs .section--muted,
html.theme-imyadykin body.page-programs .curricula {
  background: #070b0a;
  color: #f4f1df;
}

html.theme-imyadykin body.page-programs .section--surface-overlap::before {
  background: #070b0a;
}

html.theme-imyadykin body.page-programs .page-title,
html.theme-imyadykin body.page-programs .section-heading h2,
html.theme-imyadykin body.page-programs .programs-widget__header h3,
html.theme-imyadykin body.page-programs .program-tracks__title,
html.theme-imyadykin body.page-programs .curricula__heading h2 {
  color: #f4f1df;
  text-shadow: none;
}

html.theme-imyadykin body.page-programs .programs-widget__nav {
  color: #ffb21a;
}

html.theme-imyadykin body.page-programs .programs-widget__nav img {
  filter: brightness(0) saturate(100%) invert(76%) sepia(80%) saturate(1386%) hue-rotate(347deg) brightness(103%) contrast(104%);
}

html.theme-imyadykin body.page-programs .curricula__overview,
html.theme-imyadykin body.page-programs .curricula-filter,
html.theme-imyadykin body.page-programs .curricula-grid-wrap,
html.theme-imyadykin body.page-programs .curricula-grid__header,
html.theme-imyadykin body.page-programs .curricula-semester {
  background: #0d1714;
  color: #f4f1df;
  border-color: rgba(255, 178, 26, 0.24);
}

html.theme-imyadykin body.page-programs .curricula__switch-card {
  background: #101b16;
  color: #f4f1df;
  border-color: rgba(255, 178, 26, 0.22);
}

html.theme-imyadykin body.page-programs .curricula__switch-card.is-active {
  background: #ffb21a;
  color: #11140a;
  border-color: #ffb21a;
}

html.theme-imyadykin body.page-programs .curricula__contacts span,
html.theme-imyadykin body.page-programs .curricula-semester__head span,
html.theme-imyadykin body.page-programs .curricula-semester__head small,
html.theme-imyadykin body.page-programs .curricula-cell__meta {
  color: #c9bb91;
}

html.theme-imyadykin body.page-programs .curricula-cell {
  background: #f8f3de;
  color: #14251f;
}

html.theme-imyadykin .stat-card {
  background: #07120e;
}

html.theme-imyadykin .stat-card span,
html.theme-imyadykin .program-card__meta span,
html.theme-imyadykin .program-card dt {
  color: #c9bb91;
}

html.theme-imyadykin .stat-card strong {
  color: #ffb21a;
}

html.theme-imyadykin .program-card h3,
html.theme-imyadykin .program-card h4 {
  color: #17372c;
}

html.theme-yuliya_myxa .home-lower,
html.theme-yuliya_myxa .home-lower__panel,
html.theme-yuliya_myxa .spec-accordion__toggle:hover,
html.theme-yuliya_myxa .spec-accordion__details,
html.theme-yuliya_myxa .curricula-filter__btn,
html.theme-yuliya_myxa .curricula-grid-wrap,
html.theme-yuliya_myxa .curricula-grid__header,
html.theme-yuliya_myxa .curricula-semester {
  background: #fbf2e4;
}

.theme-creature {
  position: fixed;
  z-index: 120;
  pointer-events: none;
}

.theme-creature--horse {
  left: -128px;
  bottom: 30px;
  width: 116px;
  height: 74px;
  color: #7b4a24;
  animation: theme-horse-run var(--horse-duration, 9s) linear infinite;
  image-rendering: pixelated;
}

.theme-creature--horse::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow:
    8px 0 currentColor,
    16px 0 currentColor,
    24px 0 currentColor,
    32px 0 currentColor,
    40px 0 currentColor,
    48px 0 currentColor,
    56px 0 currentColor,
    64px -8px currentColor,
    72px -16px currentColor,
    80px -16px currentColor,
    88px -8px currentColor,
    80px 0 currentColor,
    56px 0 currentColor,
    8px 8px currentColor,
    16px 8px currentColor,
    24px 8px currentColor,
    32px 8px currentColor,
    40px 8px currentColor,
    48px 8px currentColor,
    56px 8px currentColor,
    64px 8px currentColor,
    32px -8px #4a2a13,
    40px -8px #4a2a13,
    48px -8px #4a2a13,
    72px -24px #2b170d,
    88px -16px #2b170d,
    96px -8px #2b170d,
    96px 0 #f5dfb6,
    40px 0 #c99a5a,
    48px 0 #c99a5a,
    56px 0 #c99a5a,
    0 8px #2b170d,
    -8px 0 #2b170d,
    -16px -8px #2b170d,
    -24px -16px #2b170d,
    88px -24px #f8ead1;
}

.theme-creature--horse::after {
  content: "";
  position: absolute;
  left: 58px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: #f4d493;
  box-shadow:
    8px 0 #f4d493,
    16px 0 #f4d493,
    0 8px #8f2f24,
    8px 8px #8f2f24,
    16px 8px #8f2f24;
}

.theme-horse__leg {
  position: absolute;
  top: 44px;
  width: 8px;
  height: 24px;
  background: currentColor;
  transform-origin: 50% 0;
  animation: theme-horse-leg 0.36s steps(2) infinite;
}

.theme-creature--horse-gallop .theme-horse__leg {
  animation-duration: 0.24s;
}

.theme-creature--horse-canter .theme-horse__leg {
  animation-duration: 0.42s;
}

.theme-creature--horse-jump {
  animation-name: theme-horse-jump-run;
}

.theme-creature--horse-jump .theme-horse__leg {
  animation-name: theme-horse-jump-leg;
  animation-duration: 0.58s;
}

.theme-horse__leg--1 { left: 34px; }
.theme-horse__leg--2 { left: 50px; animation-delay: 0.18s; }
.theme-horse__leg--3 { left: 68px; animation-delay: 0.1s; }
.theme-horse__leg--4 { left: 84px; animation-delay: 0.28s; }

.theme-creature--mosquito {
  left: 20vw;
  top: 18vh;
  width: 72px;
  height: 46px;
  color: #151515;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8))
    drop-shadow(0 7px 10px rgba(0, 0, 0, 0.18));
  animation:
    theme-mosquito-flight 13s linear infinite,
    theme-mosquito-color 3.8s steps(1) infinite;
}

.theme-creature--mosquito::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 78% 48%, #8b1020 0 10%, transparent 11%),
    linear-gradient(90deg, #2b2b2b, currentColor 58%, #5f171f);
  transform: rotate(7deg);
}

.theme-creature--mosquito::after {
  content: "";
  position: absolute;
  left: 50px;
  top: 17px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 34%, #fff 0 2px, transparent 3px),
    currentColor;
}

.theme-mosquito__wing-left,
.theme-mosquito__wing-right {
  position: absolute;
  top: 2px;
  width: 28px;
  height: 18px;
  border: 2px solid rgba(18, 18, 18, 0.34);
  border-radius: 70% 22% 70% 26%;
  background: rgba(219, 238, 255, 0.46);
  backdrop-filter: blur(1px);
  animation: theme-mosquito-wing 0.1s steps(2) infinite;
}

.theme-mosquito__wing-left {
  left: 22px;
  transform-origin: 84% 100%;
  transform: rotate(-28deg);
}

.theme-mosquito__wing-right {
  left: 34px;
  transform-origin: 16% 100%;
  transform: rotate(18deg) scaleX(-1);
  animation-delay: 0.06s;
}

.theme-mosquito__leg-left,
.theme-mosquito__leg-mid,
.theme-mosquito__leg-right {
  position: absolute;
  top: 30px;
  width: 34px;
  height: 2px;
  background: currentColor;
  transform-origin: 100% 50%;
}

.theme-mosquito__leg-left {
  left: 18px;
  transform: rotate(38deg);
  box-shadow: 22px -14px 0 -0.5px currentColor;
}

.theme-mosquito__leg-mid {
  left: 18px;
  top: 28px;
  transform: rotate(8deg);
  box-shadow: 24px 8px 0 -0.5px currentColor;
}

.theme-mosquito__leg-right {
  left: 18px;
  top: 26px;
  transform: rotate(-30deg);
  box-shadow: 24px 18px 0 -0.5px currentColor;
}

.theme-mosquito__needle {
  position: absolute;
  left: 63px;
  top: 23px;
  width: 30px;
  height: 2px;
  background: currentColor;
  transform: rotate(5deg);
  transform-origin: 0 50%;
}

.theme-mosquito__tail {
  position: absolute;
  left: 6px;
  top: 23px;
  width: 20px;
  height: 7px;
  border-radius: 999px 0 0 999px;
  background: #6d1821;
  transform: rotate(7deg);
}

.theme-mosquito-curses {
  position: fixed;
  inset: 0;
  z-index: 1001;
  overflow: hidden;
  pointer-events: none;
}

.theme-mosquito-curses span {
  position: absolute;
  padding: 5px 8px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.16);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  transform: rotate(var(--curse-rotate));
  animation: theme-mosquito-curse 1.9s ease-out forwards;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 40;
  background: #1359c8;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - clamp(20px, 2.4vw, 44px));
  max-width: none;
  min-height: 66px;
}

.site-header__toggle {
  display: none !important;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .site-header__tools {
  display: flex;
}

.site-header__toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__toggle span:nth-child(1) {
  top: 13px;
}

.site-header__toggle span:nth-child(2) {
  top: 20px;
}

.site-header__toggle span:nth-child(3) {
  top: 27px;
}

.site-header.is-open .site-header__toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.site-header.is-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .site-header__toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 38px;
  padding: 0;
}

.site-brand__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(10px, 1vw, 20px);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-search {
  position: relative;
  width: clamp(148px, 14vw, 190px);
  min-width: 0;
  flex: 0 1 190px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 41, 101, 0.58);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.site-search__icon img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.74;
}

.site-search:focus-within,
.site-search.is-open {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(4, 35, 90, 0.9);
  box-shadow: 0 12px 24px rgba(3, 15, 42, 0.28);
}

.site-search__input {
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.site-search__input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.site-search__input:focus {
  outline: 0;
}

.site-language,
.site-header.is-open .site-language {
  display: none !important;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-language__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 41, 101, 0.32);
}

.site-language__link.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.site-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: rgba(4, 22, 59, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(2, 11, 31, 0.34);
}

.site-search__results[hidden] {
  display: none;
}

.site-search__result,
.site-search__empty {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
}

.site-search__result {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-search__result:hover,
.site-search__result:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.site-search__result strong {
  font-size: 14px;
  font-weight: 700;
}

.site-search__result span,
.site-search__empty {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-block-height));
  min-height: calc(100svh - var(--header-block-height));
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(2, 9, 25, 0.46), rgba(3, 18, 49, 0.36)),
    var(--hero-bg) center/cover no-repeat;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 32%, rgba(29, 106, 255, 0.14), transparent 18%),
    radial-gradient(circle at 70% 28%, rgba(44, 122, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(5, 16, 46, 0.22), rgba(3, 12, 31, 0.42));
}

.hero__content {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  gap: 26px;
  justify-items: center;
  min-height: calc(100vh - var(--header-block-height));
  min-height: calc(100svh - var(--header-block-height));
  padding: clamp(56px, 8vh, 96px) 0 clamp(154px, 17vh, 220px);
  padding: clamp(56px, 8svh, 96px) 0 clamp(154px, 17svh, 220px);
  text-align: center;
  pointer-events: none;
}

.hero__content > * {
  min-width: 0;
  max-width: min(1100px, calc(100% - 40px));
  pointer-events: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(24px, 2.35vw, 34px);
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero__cat {
  position: absolute;
  left: clamp(-128px, calc(3.8vw - 124px), 34px);
  bottom: clamp(138px, 12.8vh, 196px);
  bottom: clamp(138px, 12.8svh, 196px);
  z-index: 3;
  width: clamp(204px, 21vw, 296px);
  opacity: 0.95;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transform-origin: 50% 80%;
  animation: hero-cat-float 5.4s ease-in-out infinite;
}

.hero__cat.is-gone {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.hero__cat.is-respawning {
  animation: hero-cat-scale-in 0.62s cubic-bezier(0.18, 0.86, 0.24, 1.18) both;
}

.hero__cat.is-spinning {
  transform-origin: 50% 50%;
  animation: hero-cat-spin 5s cubic-bezier(0.42, 0, 0.2, 1) both;
}

.hero__actions {
  position: relative;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 0;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.hero .button {
  min-height: 50px;
  padding: 0 30px;
  font-size: 18px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 20px rgba(214, 0, 71, 0.18);
}

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

.hero__more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 7;
  transform: translateX(-50%);
}

.hero__more:hover .hero__more-arrow,
.hero__more:focus-visible .hero__more-arrow {
  transform: translateY(2px) rotate(45deg);
}

.hero__more-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.hero__divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(74px, 6.2vw, 104px);
  background-image: var(--hero-divider);
  background-repeat: repeat-x;
  background-position: center calc(100% + clamp(38px, 4.8vw, 54px));
  background-size: auto clamp(156px, 10.8vw, 190px);
}

.hero__pixels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__pixel {
  position: absolute;
  bottom: var(--pixel-bottom);
  width: var(--pixel-size);
  height: var(--pixel-size);
  left: var(--pixel-left);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(5, 27, 67, 0.06);
  animation: hero-pixel-rise var(--pixel-duration) linear var(--pixel-delay) infinite;
  opacity: 0.92;
}

.hero__cat-burst {
  position: absolute;
  pointer-events: none;
  z-index: 8;
}

.hero__cat-fragment {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fragment-size);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
  animation: hero-animal-fragment var(--fragment-duration) cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
  animation-delay: var(--fragment-delay);
  will-change: transform, opacity;
}

.hero h1.is-terminal-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.84em;
  margin-left: 0.08em;
  background: currentColor;
  vertical-align: -0.08em;
  animation: hero-terminal-caret 0.72s steps(1) infinite;
}

.hero h1.is-ivanovma-rand {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #b8ffdc;
  text-shadow: 0 0 18px rgba(55, 255, 156, 0.34);
  cursor: help;
}

.terminal-easter {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 20% 12%, rgba(41, 118, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(0, 255, 156, 0.1), transparent 30%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.terminal-easter.is-closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.terminal-easter__window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(960px, 100%);
  height: min(620px, calc(100svh - 32px));
  border: 1px solid rgba(126, 255, 201, 0.32);
  background:
    linear-gradient(180deg, rgba(13, 28, 34, 0.98), rgba(2, 8, 11, 0.98)),
    #02080b;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #b8ffdc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-easter__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(126, 255, 201, 0.18);
  background: linear-gradient(90deg, rgba(20, 50, 58, 0.95), rgba(4, 16, 22, 0.95));
}

.terminal-easter__bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.terminal-easter__bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-easter__bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-easter__bar span:nth-child(3) {
  background: #28c840;
}

.terminal-easter__bar strong {
  margin-left: 8px;
  color: rgba(232, 255, 244, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.terminal-easter__screen {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5;
  scrollbar-color: rgba(126, 255, 201, 0.35) transparent;
}

.terminal-easter__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
}

.terminal-easter__line {
  position: relative;
  z-index: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-easter__line--command {
  margin-top: 12px;
  color: #ffffff;
}

.terminal-easter__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(126, 255, 201, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.terminal-easter__form label {
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
}

.terminal-easter__form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #b8ffdc;
  font: inherit;
  caret-color: #ffffff;
}

html.theme-babalova .terminal-easter {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 138, 223, 0.28), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(214, 108, 232, 0.2), transparent 28%),
    rgba(76, 12, 80, 0.78);
}

html.theme-babalova .terminal-easter__window {
  border-color: rgba(255, 166, 232, 0.72);
  background: linear-gradient(180deg, rgba(255, 217, 246, 0.98), rgba(255, 192, 237, 0.98));
  color: #6f1788;
  box-shadow: 0 24px 70px rgba(125, 28, 130, 0.38);
}

html.theme-babalova .terminal-easter__bar,
html.theme-babalova .terminal-easter__form {
  border-color: rgba(128, 32, 146, 0.18);
  background: rgba(255, 143, 220, 0.32);
}

html.theme-babalova .terminal-easter__bar strong,
html.theme-babalova .terminal-easter__line--command,
html.theme-babalova .terminal-easter__form label,
html.theme-babalova .terminal-easter__form input {
  color: #84209c;
}

html.theme-imyadykin .terminal-easter {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 178, 26, 0.18), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(216, 137, 22, 0.12), transparent 28%),
    rgba(7, 11, 10, 0.88);
}

html.theme-imyadykin .terminal-easter__window {
  border-color: rgba(255, 178, 26, 0.38);
  background:
    linear-gradient(180deg, rgba(13, 23, 20, 0.98), rgba(7, 11, 10, 0.98));
  color: #ffd36b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 34px rgba(255, 178, 26, 0.12);
}

html.theme-imyadykin .terminal-easter__bar,
html.theme-imyadykin .terminal-easter__form {
  border-color: rgba(255, 178, 26, 0.2);
  background: rgba(16, 27, 22, 0.9);
}

html.theme-imyadykin .terminal-easter__line,
html.theme-imyadykin .terminal-easter__form input {
  color: #ffd36b;
  text-shadow: 0 0 10px rgba(255, 178, 26, 0.28);
}

html.theme-imyadykin .terminal-easter__line--command,
html.theme-imyadykin .terminal-easter__form label,
html.theme-imyadykin .terminal-easter__bar strong {
  color: #ffb21a;
}

.theme-seven-terminal {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 70;
  width: min(620px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(255, 178, 26, 0.32);
  background:
    linear-gradient(180deg, rgba(14, 24, 20, 0.96), rgba(6, 10, 9, 0.96));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), 0 0 26px rgba(255, 178, 26, 0.12);
  transform: translateX(-50%);
  pointer-events: auto;
}

.theme-seven-terminal__screen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.theme-seven-terminal__screen button {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255, 178, 26, 0.26);
  color: #ffb21a;
  background: rgba(0, 0, 0, 0.42);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-shadow:
    0 0 8px rgba(255, 178, 26, 0.88),
    0 0 18px rgba(255, 211, 107, 0.28);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.theme-seven-terminal__screen button:hover,
.theme-seven-terminal__screen button:focus-visible {
  outline: 0;
  background: rgba(255, 178, 26, 0.16);
  border-color: rgba(255, 211, 107, 0.48);
}

.theme-seven-terminal__draw {
  display: grid;
  place-items: center;
  min-height: 110px;
  margin-top: 10px;
  border: 1px solid rgba(255, 178, 26, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.theme-seven-terminal__hint {
  color: rgba(255, 178, 26, 0.58);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.theme-seven-terminal__trace {
  display: none;
}

.theme-seven-terminal__trace i {
  position: absolute;
  top: 15px;
  left: calc(var(--i, 0) * 20%);
  width: 28%;
  height: 2px;
  background: #ffb21a;
  box-shadow: 0 0 12px rgba(255, 178, 26, 0.7);
  transform: rotate(var(--r, 0deg));
}

.theme-seven-terminal__trace i:nth-child(1) { --i: 0; --r: 0deg; }
.theme-seven-terminal__trace i:nth-child(2) { --i: 1; --r: 18deg; }
.theme-seven-terminal__trace i:nth-child(3) { --i: 2; --r: -14deg; }
.theme-seven-terminal__trace i:nth-child(4) { --i: 3; --r: 10deg; }
.theme-seven-terminal__trace i:nth-child(5) { --i: 4; --r: -8deg; }

.logic-gate {
  position: relative;
  width: 228px;
  height: 78px;
  color: #ffd36b;
}

.logic-gate__body {
  position: absolute;
  left: 72px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 98px;
  height: 62px;
  border: 3px solid currentColor;
  border-left-width: 6px;
  border-radius: 0 34px 34px 0;
  background: rgba(7, 11, 10, 0.78);
  box-shadow: 0 0 18px rgba(255, 178, 26, 0.28);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 178, 26, 0.74);
}

.logic-gate--or .logic-gate__body,
.logic-gate--xor .logic-gate__body,
.logic-gate--nor .logic-gate__body,
.logic-gate--xnor .logic-gate__body {
  border-radius: 46px 34px 34px 46px;
  border-left-width: 3px;
}

.logic-gate--xor .logic-gate__body::before,
.logic-gate--xnor .logic-gate__body::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  width: 12px;
  height: 46px;
  border-left: 3px solid currentColor;
  border-radius: 50%;
}

.logic-gate--nand .logic-gate__body::after,
.logic-gate--nor .logic-gate__body::after,
.logic-gate--xnor .logic-gate__body::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 24px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: #070b0a;
}

.logic-gate__in,
.logic-gate__out {
  position: absolute;
  height: 3px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 178, 26, 0.68);
}

.logic-gate__in {
  left: 0;
  width: 76px;
}

.logic-gate__in--a { top: 27px; }
.logic-gate__in--b { top: 51px; }

.logic-gate__out {
  left: 170px;
  top: 39px;
  width: 58px;
}

.logic-gate--nand .logic-gate__out,
.logic-gate--nor .logic-gate__out,
.logic-gate--xnor .logic-gate__out {
  left: 182px;
  width: 46px;
}

.theme-phone-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-left));
  color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 9, 16, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.theme-phone-status__icons {
  letter-spacing: 0;
}

.theme-phone-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1300;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  width: min(420px, 100%);
  height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(13, 9, 16, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  pointer-events: auto;
}

.theme-phone-nav button {
  justify-self: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-phone-nav__home {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px;
}

.theme-phone-nav__btn {
  width: 22px;
  height: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.62) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.62) !important;
  transform: rotate(45deg);
}

.theme-phone-nav__btn--menu {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.68) !important;
  transform: none;
}

.theme-sakura,
.theme-jakzy-sky,
.theme-meow-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

.theme-sakura span {
  position: absolute;
  left: var(--x);
  top: -10vh;
  width: var(--size);
  height: var(--size);
  border-radius: 80% 10% 80% 10%;
  background: linear-gradient(135deg, #fff, #ff9fc5 62%, #f06a9a);
  opacity: 0.82;
  animation: theme-sakura-fall var(--duration) linear var(--delay) infinite;
}

.theme-crypto-terminal {
  position: fixed;
  right: clamp(12px, 4vw, 40px);
  bottom: clamp(12px, 4vw, 40px);
  z-index: 1000;
  width: min(420px, calc(100% - 24px));
  overflow: hidden;
  border: 1px solid rgba(121, 255, 210, 0.42);
  background: rgba(2, 12, 10, 0.92);
  color: #b8ffdc;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.theme-crypto-terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(121, 255, 210, 0.18);
  background: rgba(25, 68, 55, 0.78);
}

.theme-crypto-terminal__bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #79ffd2;
}

.theme-crypto-terminal__bar strong {
  margin-left: 6px;
  font-size: 12px;
}

.theme-crypto-terminal pre {
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

html.theme-abvavrenyuk .theme-crypto-terminal {
  top: calc(var(--header-block-height) + 18px);
  right: clamp(12px, 2.2vw, 28px);
  bottom: auto;
  width: min(360px, calc(100% - 24px));
  opacity: 0.92;
  pointer-events: none;
}

html.theme-abvavrenyuk .theme-crypto-terminal__bar {
  min-height: 32px;
  padding: 8px 10px;
}

html.theme-abvavrenyuk .theme-crypto-terminal pre {
  max-height: 136px;
  padding: 10px 12px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.42;
}

.theme-flee-letter {
  display: inline-block;
  transition: transform 0.16s ease-out;
  will-change: transform;
}

.theme-flee-letter.is-abducted {
  opacity: 0;
  transform: translateY(-120px) scale(0.2) rotate(18deg) !important;
  transition: transform 0.7s ease-in, opacity 0.7s ease-in;
}

.theme-dungeon {
  position: fixed;
  inset: auto 0 30px;
  z-index: 1000;
  height: 210px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 36%, rgba(19, 11, 7, 0.18) 36% 100%);
}

.theme-dungeon__gate {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 220px;
  height: 176px;
  transform: translateX(-50%);
  border: 10px solid #3a2a22;
  border-bottom: 0;
  border-radius: 110px 110px 0 0;
  background:
    radial-gradient(ellipse at 50% 66%, rgba(0, 0, 0, 0.76) 0 42%, transparent 43%),
    repeating-linear-gradient(90deg, #4a372c 0 24px, #3a2a22 24px 27px);
  box-shadow:
    inset 0 0 0 4px rgba(255, 207, 105, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.theme-dungeon__gate::before {
  content: "";
  position: absolute;
  inset: 28px 44px 0;
  border-radius: 80px 80px 0 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 118, 38, 0.28), transparent 28%),
    linear-gradient(180deg, #170d08, #050302);
}

.theme-dungeon__gate span {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 138px;
  background: rgba(255, 207, 105, 0.18);
  box-shadow: 0 0 18px rgba(255, 207, 105, 0.22);
}

.theme-dungeon__gate span:nth-child(1) { left: 76px; }
.theme-dungeon__gate span:nth-child(2) { left: 104px; height: 154px; }
.theme-dungeon__gate span:nth-child(3) { right: 76px; }

.theme-dungeon__torch {
  position: absolute;
  bottom: 76px;
  width: 12px;
  height: 62px;
  background: #4b2c17;
  box-shadow: 0 0 0 3px #2c180d;
}

.theme-dungeon__torch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 32px;
  height: 42px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 64%, #fff0a6 0 18%, #ffcf69 19% 42%, #ff6b2b 43% 66%, transparent 67%);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 14px rgba(255, 118, 38, 0.7));
  animation: theme-torch-flame 0.72s ease-in-out infinite alternate;
}

.theme-dungeon__torch--left { left: calc(50% - 156px); }
.theme-dungeon__torch--right { right: calc(50% - 156px); }

.theme-dungeon__result {
  position: absolute;
  left: 50%;
  bottom: 82px;
  min-width: 168px;
  padding: 7px 12px;
  color: #fff2d8;
  background: rgba(36, 20, 11, 0.88);
  border: 1px solid rgba(255, 207, 105, 0.38);
  transform: translateX(-50%);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.theme-dungeon__result.is-critical {
  color: #24140b;
  background: #ffcf69;
}

.theme-dungeon__result.is-fail {
  color: #3b1908;
  background: #f1e6cf;
}

.theme-dungeon__die {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  color: #3b1908;
  background: #ffcf69;
  clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%);
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.theme-dungeon__die:hover,
.theme-dungeon__die:focus-visible {
  filter: brightness(1.08);
  outline: 0;
  transform: translateY(-2px);
}

.theme-dungeon__die.is-rolling {
  animation: theme-die-roll 0.72s cubic-bezier(0.2, 0.9, 0.18, 1.08);
}

.theme-dungeon__dragon {
  position: absolute;
  right: 4vw;
  bottom: 8px;
  width: 236px;
  height: 150px;
  color: #b62f28;
  transform-origin: 56% 62%;
}

.theme-dungeon__dragon i {
  position: absolute;
  display: block;
  pointer-events: none;
}

.theme-dungeon__dragon-body {
  left: 72px;
  top: 68px;
  width: 100px;
  height: 48px;
  border-radius: 56% 44% 46% 54%;
  background:
    radial-gradient(circle at 82% 36%, #ffb458 0 7%, transparent 8%),
    linear-gradient(180deg, #d94a36 0 48%, #9d251f 49% 100%);
  box-shadow:
    inset 0 -9px 0 rgba(86, 15, 14, 0.24),
    0 8px 0 -4px #731917;
}

.theme-dungeon__dragon-tail {
  left: 12px;
  top: 82px;
  width: 78px;
  height: 24px;
  border-radius: 100% 0 0 100%;
  background: linear-gradient(90deg, #7d1b18, #b62f28);
  clip-path: polygon(0 50%, 24% 12%, 100% 8%, 92% 72%, 26% 82%);
}

.theme-dungeon__dragon-neck {
  left: 154px;
  top: 50px;
  width: 44px;
  height: 48px;
  border-radius: 48% 52% 42% 58%;
  background: linear-gradient(135deg, #c83a30, #8d211d);
  transform: rotate(-20deg);
}

.theme-dungeon__dragon-head {
  right: 2px;
  top: 30px;
  width: 58px;
  height: 44px;
  border-radius: 44% 52% 44% 42%;
  background:
    radial-gradient(circle at 72% 38%, #ffe9a8 0 6%, transparent 7%),
    linear-gradient(180deg, #d94a36, #9b251f);
  box-shadow:
    -12px -12px 0 -10px #ffcf69,
    8px -8px 0 -6px #ffcf69,
    10px 16px 0 -12px #6a1414;
}

.theme-dungeon__dragon-head::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 18px;
  width: 22px;
  height: 10px;
  border-radius: 0 10px 10px 0;
  background: #8d211d;
}

.theme-dungeon__dragon-head::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -15px;
  width: 72px;
  height: 18px;
  background: linear-gradient(90deg, #ffcf69 0 12px, transparent 12px 20px, #ffcf69 20px 32px, transparent 32px 40px, #ffcf69 40px 52px, transparent 52px);
  clip-path: polygon(0 100%, 8% 0, 18% 100%, 34% 0, 45% 100%, 62% 0, 74% 100%, 100% 100%);
}

.theme-dungeon__dragon-wing {
  left: 86px;
  top: 18px;
  width: 86px;
  height: 76px;
  transform-origin: 18% 92%;
  clip-path: polygon(0 100%, 20% 4%, 58% 40%, 100% 16%, 72% 100%);
  background:
    linear-gradient(135deg, rgba(255, 207, 105, 0.18) 0 38%, transparent 39%),
    linear-gradient(135deg, #e5533c 0 52%, #7c1d1a 53% 100%);
  animation: theme-dragon-wing 0.88s ease-in-out infinite;
}

.theme-dungeon__dragon-wing--back {
  left: 100px;
  top: 30px;
  opacity: 0.7;
  transform-origin: 12% 92%;
  animation-name: theme-dragon-wing-back;
}

.theme-dungeon__dragon-wing--front {
  z-index: 2;
}

.theme-dungeon__dragon-leg {
  top: 105px;
  width: 18px;
  height: 30px;
  border-radius: 0 0 12px 12px;
  background: #7d1b18;
  transform: rotate(10deg);
}

.theme-dungeon__dragon-leg--front { left: 136px; }
.theme-dungeon__dragon-leg--back { left: 92px; opacity: 0.76; }

.theme-dungeon__dragon-flame {
  right: -52px;
  top: 42px;
  width: 62px;
  height: 28px;
  background:
    linear-gradient(90deg, #ffe9a8 0 30%, #ff9a32 31% 68%, #d92b1c 69% 100%);
  clip-path: polygon(0 50%, 34% 8%, 100% 0, 72% 50%, 100% 100%, 34% 92%);
  animation: theme-dragon-fire 1.1s ease-in-out infinite;
}

.theme-dungeon__dragon.is-flying {
  filter: drop-shadow(0 20px 24px rgba(255, 110, 36, 0.32));
  animation: theme-dragon-fly-away 4.8s cubic-bezier(0.16, 0.78, 0.16, 1) forwards;
}

.theme-dungeon__dragon.is-flying .theme-dungeon__dragon-wing {
  animation-duration: 0.18s;
}

.theme-dungeon__dragon.is-flying .theme-dungeon__dragon-flame {
  width: 94px;
  height: 40px;
  opacity: 0.9;
  animation: theme-dragon-flight-flame 0.34s ease-in-out infinite;
}

.theme-dungeon__dragon.is-bones {
  color: #f1e6cf;
  filter: drop-shadow(0 4px 0 rgba(60, 30, 18, 0.3));
}

.theme-dungeon__dragon.is-bones i {
  display: none;
}

.theme-dungeon__dragon.is-bones::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 70px;
  width: 120px;
  height: 34px;
  background:
    linear-gradient(90deg, transparent 0 14px, currentColor 14px 20px, transparent 20px 28px, currentColor 28px 34px, transparent 34px),
    radial-gradient(circle at 18px 28px, currentColor 0 8px, transparent 9px),
    radial-gradient(circle at 56px 26px, currentColor 0 7px, transparent 8px);
  box-shadow: 84px -18px 0 -18px currentColor;
}

.theme-dungeon__dragon.is-bones::after {
  content: "";
  position: absolute;
  left: 142px;
  top: 54px;
  width: 48px;
  height: 28px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  background: transparent;
  clip-path: none;
  animation: none;
}

.theme-repair {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 126px;
  overflow: hidden;
  pointer-events: none;
}

.theme-repair__letters {
  position: absolute;
  left: 50%;
  bottom: 10px;
  color: #78694f;
  font-size: clamp(28px, 7vw, 74px);
  font-weight: 800;
  transform: translateX(-50%);
  animation: theme-letters-fall 5s ease-in-out infinite;
}

.theme-repair__grandpa {
  position: absolute;
  left: -70px;
  bottom: 12px;
  width: 54px;
  height: 82px;
  border-radius: 28px 28px 8px 8px;
  background: linear-gradient(180deg, #f0d1b2 0 22%, #2f2f36 22% 100%);
  animation: theme-grandpa-walk 5s linear infinite;
}

.theme-repair__grandpa::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 30px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.theme-repair__grandpa::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 36px;
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: #2f2f36;
  transform-origin: 0 50%;
  animation: theme-grandpa-fix 5s ease-in-out infinite;
}

.theme-jakzy-sky span {
  position: absolute;
  left: var(--x);
  bottom: -18vh;
  width: 28px;
  height: 38px;
  border-radius: 14px 14px 18px 18px;
  background: radial-gradient(circle at 50% 64%, #fff0a8 0 22%, #ffb33f 23% 54%, #d9432f 55%);
  box-shadow: 0 0 22px rgba(255, 179, 63, 0.55);
  animation: theme-lantern-rise var(--duration) linear var(--delay) infinite;
}

.theme-ufo {
  position: fixed;
  left: -140px;
  top: 28vh;
  z-index: 1001;
  width: 116px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e9fff9, #6eb8c7 45%, #22384a 46%);
  box-shadow: 0 8px 18px rgba(10, 36, 48, 0.24);
  animation: theme-ufo-flight 9s linear infinite;
  pointer-events: none;
}

.theme-ufo span {
  position: absolute;
  left: 34px;
  top: 34px;
  width: 48px;
  height: 120px;
  background: linear-gradient(180deg, rgba(128, 235, 255, 0.42), transparent);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

.theme-toast {
  position: fixed;
  right: 18px;
  top: 86px;
  z-index: 1300;
  display: grid;
  gap: 4px;
  width: min(340px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 214, 107, 0.62);
  background: rgba(36, 16, 20, 0.94);
  color: #fff8dc;
  box-shadow: 0 18px 38px rgba(36, 16, 20, 0.28);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  animation: theme-toast-in 0.32s ease-out both;
}

.theme-runner-girl {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 46px;
  height: 70px;
  pointer-events: none;
  transition: transform 0.22s ease-out;
}

.theme-runner-girl::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2c6a0;
  box-shadow: 0 -8px 0 4px #3a1f18;
}

.theme-runner-girl::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 27px;
  width: 30px;
  height: 38px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #ff8dcc, #c95a9c);
  box-shadow: -7px 30px 0 -3px #351128, 13px 30px 0 -3px #351128;
  animation: theme-runner-step 0.36s steps(2) infinite;
}

.theme-meow-root span {
  position: absolute;
  color: #083f69;
  font-size: clamp(26px, 6vw, 64px);
  font-weight: 800;
  text-shadow: 0 4px 0 #a8def7;
  transform: rotate(var(--rotate)) scale(0.4);
  animation: theme-meow-pop 1.9s ease-out forwards;
}

.theme-vasya-scene,
.theme-gnome-scene,
.theme-bombs,
.theme-khinkali-sky,
.theme-sofa-scene {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

.theme-vasya-girl {
  position: absolute;
  left: -80px;
  bottom: 18px;
  width: 50px;
  height: 78px;
  animation: theme-runner-cross 7.4s linear infinite;
}

.theme-vasya-girl::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1c29a;
  box-shadow: 0 -8px 0 4px #3a2418, -9px 4px 0 -3px #3a2418, 9px 4px 0 -3px #3a2418;
}

.theme-vasya-girl::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 27px;
  width: 32px;
  height: 42px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #7aa33e, #33461b);
  box-shadow: -7px 34px 0 -3px #252514, 15px 34px 0 -3px #252514;
  animation: theme-runner-step 0.32s steps(2) infinite;
}

.theme-vasya-girl span {
  position: absolute;
  right: -18px;
  top: 34px;
  width: 16px;
  height: 26px;
  border-radius: 3px 3px 7px 7px;
  background: linear-gradient(180deg, #fff7c0 0 18%, #d99a27 19% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.theme-vasya-scene i {
  position: absolute;
  bottom: 8px;
  width: 14px;
  height: 10px;
  animation: theme-trash-fly 2.4s ease-out forwards;
}

.theme-vasya-scene i.is-paper {
  background: #fff;
  border: 1px solid #d9d9d9;
}

.theme-vasya-scene i.is-pill {
  width: 16px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 50%, #d8f08f 51%);
  border: 1px solid rgba(75, 107, 42, 0.32);
}

.theme-gnome {
  position: absolute;
  left: -90px;
  bottom: 20px;
  width: 82px;
  height: 96px;
  animation: theme-gnome-run 8s linear infinite;
}

.theme-gnome::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 34px solid #b71f25;
  filter: drop-shadow(0 3px 0 #681014);
}

.theme-gnome::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 28px;
  width: 48px;
  height: 52px;
  border-radius: 20px 20px 12px 12px;
  background:
    radial-gradient(circle at 38% 18%, #f5c9a4 0 18%, transparent 19%),
    radial-gradient(circle at 62% 18%, #f5c9a4 0 18%, transparent 19%),
    linear-gradient(180deg, #f2c098 0 32%, #1f7280 33% 100%);
  box-shadow:
    -8px -4px 0 -6px #2d1a10,
    8px -4px 0 -6px #2d1a10,
    -9px 10px 0 -7px #3a1d12,
    9px 10px 0 -7px #3a1d12,
    0 17px 0 -8px #f6f0e2,
    inset 0 -8px 0 rgba(0, 0, 0, 0.12),
    0 18px 0 -7px #f6f0e2;
}

.theme-gnome b {
  position: absolute;
  left: 26px;
  top: 78px;
  width: 12px;
  height: 22px;
  border-radius: 0 0 8px 8px;
  background: #2d1a10;
  box-shadow: 18px 0 0 #2d1a10;
  animation: theme-gnome-legs 0.34s steps(2) infinite;
}

.theme-gnome span {
  position: absolute;
  right: -2px;
  top: 48px;
  width: 24px;
  height: 20px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #f7efe2 0 22%, #6b3d20 23% 100%);
  box-shadow:
    inset 0 0 0 3px #f7efe2,
    13px 4px 0 -7px transparent,
    13px 4px 0 -4px #f7efe2;
  animation: theme-gnome-cup 8s linear infinite;
}

.theme-gnome span::before,
.theme-gnome span::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 22px;
  width: 6px;
  height: 24px;
  border-radius: 50%;
  border-left: 2px solid rgba(255, 255, 255, 0.72);
  opacity: 0.75;
  animation: theme-coffee-smoke 2s ease-in-out infinite;
}

.theme-gnome span::after {
  left: 14px;
  height: 28px;
  animation-delay: -0.8s;
}

.theme-gnome-coffee {
  display: none;
}

.theme-sofa {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(430px, 62vw);
  height: 180px;
  border: 0;
  padding: 0;
  appearance: none;
  transform: translateX(-50%);
  border-radius: 46px 46px 28px 28px;
  background:
    linear-gradient(180deg, #eaa59a, #b7646a 58%, #7a3d4a);
  box-shadow:
    inset 0 14px 0 rgba(255, 255, 255, 0.2),
    inset 0 -18px 0 rgba(73, 30, 41, 0.18),
    0 26px 54px rgba(43, 23, 32, 0.24);
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 100%;
}

.theme-sofa.is-pressed {
  animation: theme-sofa-press 0.34s cubic-bezier(0.18, 0.84, 0.24, 1);
}

.theme-sofa::before,
.theme-sofa::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 72px;
  height: 106px;
  border-radius: 28px;
  background: #9a4f5d;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.12);
}

.theme-sofa::before { left: -22px; }
.theme-sofa::after { right: -22px; }

.theme-sofa span {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 28px;
  height: 72px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(93, 40, 52, 0.28) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, #ffd0bd, #cf7273);
  box-shadow:
    0 -64px 0 -20px #f3b1a8,
    -88px 94px 0 -38px #5d2834,
    88px 94px 0 -38px #5d2834;
}

.theme-sofa-button {
  position: absolute;
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 34%, #fff8ec 0 12%, transparent 13%),
    radial-gradient(circle at 64% 64%, #7a3d4a 0 12%, transparent 13%),
    #f2a46f;
  box-shadow: 0 3px 0 #7a3d4a, 0 8px 14px rgba(43, 23, 32, 0.22);
  animation: theme-sofa-button-pop 1.9s ease-out forwards;
}

.theme-bomb {
  position: absolute;
  top: -60px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #555, #141414 62%);
  transform: rotate(var(--bomb-rotate));
  animation: theme-bomb-drop 1.7s cubic-bezier(0.38, 0.02, 0.82, 0.46) forwards;
}

.theme-bomb::before {
  content: "";
  position: absolute;
  right: 2px;
  top: -10px;
  width: 16px;
  height: 10px;
  border-top: 3px solid #333;
  border-radius: 50%;
}

.theme-bomb--red {
  width: 46px;
  height: 46px;
  background: radial-gradient(circle at 34% 28%, #ffb1a8, #e01c1c 58%, #6b0505);
  box-shadow: 0 0 22px rgba(224, 28, 28, 0.7);
}

.theme-bomb-blot {
  position: absolute;
  width: 130px;
  height: 88px;
  border-radius: 46% 54% 38% 62%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) rotate(12deg);
  animation: theme-blot-pop 5.2s ease-out forwards;
}

.theme-bomb-blot--red {
  width: 280px;
  height: 210px;
  background: rgba(224, 28, 28, 0.88);
  animation-duration: 9s;
}

body.theme-aiokhim-wiped > *:not([data-theme-effect]):not(.theme-recovery) {
  opacity: 0 !important;
  pointer-events: none !important;
}

.theme-recovery {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1600;
  min-width: 180px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050505;
  color: #f5f5f5;
  box-shadow: 0 0 28px rgba(224, 28, 28, 0.34);
  transform: translate(-50%, -50%);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.theme-khinkali-sky span {
  position: absolute;
  left: -80px;
  width: 54px;
  height: 48px;
  transform: scale(var(--khinkali-scale));
  animation: theme-khinkali-flight var(--khinkali-duration) linear forwards;
}

.theme-khinkali-sky span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 38px;
  height: 30px;
  border-radius: 48% 48% 58% 58%;
  background: radial-gradient(circle at 50% 38%, #fff8e8, #e7c58f);
  box-shadow: inset 0 -5px 0 rgba(122, 63, 32, 0.12);
}

.theme-khinkali-sky span::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 12px;
  height: 18px;
  border-radius: 6px 6px 2px 2px;
  background: #e7c58f;
  box-shadow: -10px 16px 0 -5px #dba96c, 10px 16px 0 -5px #dba96c;
}

@keyframes theme-sakura-fall {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift), 120vh, 0) rotate(540deg); }
}

@keyframes theme-die-roll {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  35% { transform: translateY(-34px) rotate(220deg) scale(1.08); }
  70% { transform: translateY(4px) rotate(390deg) scale(0.96); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

@keyframes theme-dragon-wing {
  0%, 100% { transform: rotate(8deg) scaleY(0.9); }
  50% { transform: rotate(-24deg) scaleY(1.08); }
}

@keyframes theme-dragon-wing-back {
  0%, 100% { transform: rotate(-8deg) scaleY(0.92); }
  50% { transform: rotate(20deg) scaleY(1.04); }
}

@keyframes theme-dragon-fire {
  50% { transform: scaleX(1.28); opacity: 0.72; }
}

@keyframes theme-dragon-fly-away {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  16% { transform: translate3d(-20vw, -20vh, 0) rotate(-12deg) scale(1.14); opacity: 1; }
  38% { transform: translate3d(-62vw, -50vh, 0) rotate(8deg) scale(1.04); opacity: 1; }
  62% { transform: translate3d(-84vw, -20vh, 0) rotate(18deg) scale(0.92); opacity: 1; }
  84% { transform: translate3d(-42vw, -78vh, 0) rotate(-10deg) scale(0.72); opacity: 0.92; }
  100% { transform: translate3d(20vw, -108vh, 0) rotate(18deg) scale(0.46); opacity: 0; }
}

@keyframes theme-dragon-flight-flame {
  0%, 100% { transform: scaleX(1) translateX(0); opacity: 0.78; }
  50% { transform: scaleX(1.35) translateX(8px); opacity: 1; }
}

@keyframes theme-torch-flame {
  from { transform: translateX(-50%) scaleY(0.92) rotate(-3deg); }
  to { transform: translateX(-50%) scaleY(1.08) rotate(4deg); }
}

@keyframes theme-letters-fall {
  0%, 64%, 100% { transform: translateX(-50%) rotate(0deg); }
  34% { transform: translateX(-50%) rotate(4deg) translateY(26px); }
}

@keyframes theme-grandpa-walk {
  0% { transform: translateX(0); }
  42%, 58% { transform: translateX(calc(50vw - 10px)); }
  100% { transform: translateX(calc(100vw + 120px)); }
}

@keyframes theme-grandpa-fix {
  0%, 36%, 64%, 100% { transform: rotate(0); }
  46%, 54% { transform: rotate(-30deg); }
}

@keyframes theme-lantern-rise {
  from { transform: translateY(0) scale(0.82); opacity: 0; }
  12%, 82% { opacity: 0.92; }
  to { transform: translateY(-126vh) scale(1.08); opacity: 0; }
}

@keyframes theme-ufo-flight {
  from { transform: translateX(0) translateY(0); }
  45% { transform: translateX(54vw) translateY(12vh); }
  to { transform: translateX(calc(100vw + 280px)) translateY(-6vh); }
}

@keyframes theme-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes theme-runner-step {
  50% { box-shadow: -1px 30px 0 -3px #351128, 7px 30px 0 -3px #351128; }
}

@keyframes theme-runner-cross {
  from { transform: translateX(0) translateY(0); }
  18% { transform: translateX(22vw) translateY(-2px); }
  42% { transform: translateX(52vw) translateY(1px); }
  68% { transform: translateX(78vw) translateY(-3px); }
  to { transform: translateX(calc(100vw + 140px)) translateY(0); }
}

@keyframes theme-trash-fly {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8);
  }
  14% { opacity: 1; }
  72% {
    opacity: 0.94;
    transform: translate3d(var(--fall-x), -46px, 0) rotate(var(--fall-rotate)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fall-x), 18px, 0) rotate(var(--fall-rotate)) scale(0.72);
  }
}

@keyframes theme-gnome-run {
  0% { transform: translateX(-90px) translateY(0); }
  22% { transform: translateX(24vw) translateY(-2px); }
  44% { transform: translateX(57vw) translateY(1px); }
  60%, 68% { transform: translateX(calc(100vw - 96px)) translateY(-3px); }
  100% { transform: translateX(calc(100vw + 140px)) translateY(0); }
}

@keyframes theme-gnome-cup {
  0%, 100% { transform: translateY(2px) rotate(-5deg); }
  50% { transform: translateY(-1px) rotate(6deg); }
}

@keyframes theme-gnome-legs {
  50% { transform: translateX(2px); box-shadow: 12px 0 0 #2d1a10; }
}

@keyframes theme-coffee-smoke {
  0% { opacity: 0; transform: translateY(7px) translateX(0) scale(0.72); }
  30% { opacity: 0.78; }
  100% { opacity: 0; transform: translateY(-18px) translateX(8px) scale(1.2); }
}

@keyframes theme-sofa-press {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  42% { transform: translateX(-50%) scaleY(0.88) translateY(8px); }
  72% { transform: translateX(-50%) scaleY(1.05) translateY(-3px); }
}

@keyframes theme-sofa-button-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }
  12% { opacity: 1; }
  74% {
    opacity: 0.95;
    transform: translate3d(var(--button-x), var(--button-y), 0) rotate(var(--button-rotate)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--button-x), 48px, 0) rotate(var(--button-rotate)) scale(0.72);
  }
}

@keyframes theme-bomb-drop {
  0% {
    opacity: 0;
    transform: translateY(-72px) rotate(var(--bomb-rotate)) scale(0.7);
  }
  12% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translateY(78vh) rotate(calc(var(--bomb-rotate) + 210deg)) scale(1.06);
  }
}

@keyframes theme-blot-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(12deg) scale(0.18);
  }
  12% {
    opacity: 0.96;
    transform: translate(-50%, -50%) rotate(18deg) scale(1);
  }
  82% { opacity: 0.92; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(26deg) scale(1.18);
  }
}

@keyframes theme-khinkali-flight {
  0% {
    opacity: 0;
    transform: translate3d(-80px, 0, 0) rotate(-8deg) scale(var(--khinkali-scale));
  }
  12% { opacity: 1; }
  48% {
    transform: translate3d(50vw, -9vh, 0) rotate(14deg) scale(var(--khinkali-scale));
  }
  86% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 110px), 6vh, 0) rotate(34deg) scale(var(--khinkali-scale));
  }
}

@keyframes theme-meow-pop {
  0% { opacity: 0; transform: rotate(var(--rotate)) scale(0.4); }
  20% { opacity: 1; transform: rotate(var(--rotate)) scale(1); }
  100% { opacity: 0; transform: rotate(var(--rotate)) scale(1.38) translateY(-34px); }
}

/* Sections */
.section {
  padding: 36px 0;
}

.section--surface {
  padding-top: 10px;
  padding-bottom: 32px;
  margin-top: 0;
  position: relative;
  z-index: 3;
  background: #fff;
}

.section--muted {
  background: var(--surface-muted);
}

.section--last {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section--surface .section-heading {
  display: none;
}

.section--surface-overlap {
  position: relative;
  z-index: 3;
  margin-top: 40px;
  padding-top: 44px;
}

.section--surface-overlap .programs-widget {
  position: relative;
  z-index: 4;
}

.section--surface-overlap .programs-widget__header {
  transform: translateY(-18px);
}

.section-heading--stacked {
  justify-content: flex-start;
}

.section-heading h2,
.programs-widget__header h3,
.section-copy h2,
.page-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--primary-deep);
}

.section-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-eyebrow--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Programs */
.programs-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 100%;
  padding: 0 0 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.programs-widget__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.programs-widget__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.programs-widget__nav img {
  width: 18px;
  height: 18px;
}

.programs-widget__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  gap: 12px;
  width: min(100%, 980px);
  max-width: 100%;
  min-width: 0;
}

.program-pill {
  min-width: 0;
  padding: 10px 26px;
  border: 0;
  border-radius: 0;
  background: #97b4df;
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.program-pill.is-active {
  color: #fff;
  background: var(--primary);
}

.program-pill.is-transitioning {
  transform: translateY(-2px);
}

.program-tracks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 1180px);
  max-width: 100%;
  justify-self: center;
  min-width: 0;
  margin-top: 4px;
}

.program-tracks[hidden] {
  display: none !important;
}

.program-tracks__title {
  margin: 0;
  color: var(--primary-deep);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  text-align: center;
}

.program-tracks__rail {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.program-tracks__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 318px);
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.program-tracks__viewport::-webkit-scrollbar {
  display: none;
}

.program-tracks__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 40px;
  border: 0;
  border-radius: 0;
  background: var(--primary);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.program-tracks__nav:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.program-tracks__nav img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.program-track-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  scroll-snap-align: start;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.program-track-card:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.program-track-card h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.12;
}

.program-track-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.26;
}

.track-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 112px;
  max-width: 100%;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.track-video-link::before {
  content: "↗";
  font-size: 14px;
  line-height: 1;
}

.track-video-link:hover,
.track-video-link:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  outline: none;
}

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

.stat-card,
.program-highlight,
.program-card {
  padding: 24px;
  border-radius: 0;
  background: var(--surface);
  border: 0;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(11, 87, 208, 0.08);
}

.stat-card__plate {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 148px;
  height: 110px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(213, 228, 255, 0.9), rgba(228, 239, 255, 0.66));
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
}

.stat-card:hover .stat-card__plate {
  transform: translate3d(10px, -8px, 0) scale(0.96) rotate(-4deg);
  background: linear-gradient(180deg, rgba(187, 214, 255, 0.85), rgba(216, 231, 255, 0.5));
}

.stat-card span,
.program-card__meta span,
.program-card dt {
  position: relative;
  z-index: 1;
  color: #142041;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.28s ease, color 0.28s ease, opacity 0.28s ease;
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  font-size: clamp(56px, 5vw, 96px);
  line-height: 0.95;
  color: var(--primary);
  white-space: nowrap;
  transition: transform 0.32s ease, letter-spacing 0.32s ease, color 0.32s ease, text-shadow 0.32s ease;
}

.stat-card strong[data-program-stat="price"] {
  font-size: clamp(42px, 4.2vw, 82px);
  letter-spacing: -0.03em;
}

.stat-card.is-changing > span:last-of-type,
.program-highlight.is-changing h4,
.program-highlight.is-changing p {
  animation: content-fade-swap 0.32s ease;
}

.stat-card.is-changing strong {
  animation: stat-pop 0.48s ease;
}

.stat-card:hover > span:last-of-type {
  transform: translate3d(0, -4px, 0);
  color: var(--primary-deep);
}

.stat-card:hover strong {
  transform: translate3d(0, -8px, 0) scale(1.03);
  color: #0957db;
  text-shadow: 0 10px 18px rgba(11, 87, 208, 0.18);
}

/* Animations */
@keyframes pixel-storm-shell {
  0% {
    opacity: 0;
  }

  10%,
  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes pixel-storm-flight {
  0% {
    opacity: 0;
    transform: translate3d(var(--storm-start-x), var(--storm-start-y), 0) scale(0.72) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  52% {
    opacity: 1;
    transform: translate3d(var(--storm-mid-x), var(--storm-mid-y), 0) scale(1) rotate(calc(var(--storm-rotate) * 0.45));
  }

  84% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--storm-end-x), var(--storm-end-y), 0) scale(0.62) rotate(var(--storm-rotate));
  }
}

@keyframes theme-horse-run {
  0% {
    transform: translate3d(-8vw, 0, 0) scaleX(1);
  }

  49% {
    transform: translate3d(108vw, 0, 0) scaleX(1);
  }

  50% {
    transform: translate3d(108vw, 0, 0) scaleX(-1);
  }

  99% {
    transform: translate3d(-8vw, 0, 0) scaleX(-1);
  }

  100% {
    transform: translate3d(-8vw, 0, 0) scaleX(1);
  }
}

@keyframes theme-horse-jump-run {
  0% {
    transform: translate3d(-8vw, 0, 0) scaleX(1);
  }

  18% {
    transform: translate3d(18vw, 0, 0) scaleX(1);
  }

  28% {
    transform: translate3d(32vw, -34px, 0) scaleX(1);
  }

  38% {
    transform: translate3d(46vw, 0, 0) scaleX(1);
  }

  49% {
    transform: translate3d(108vw, -5px, 0) scaleX(1);
  }

  50% {
    transform: translate3d(108vw, -5px, 0) scaleX(-1);
  }

  68% {
    transform: translate3d(64vw, 0, 0) scaleX(-1);
  }

  78% {
    transform: translate3d(42vw, -32px, 0) scaleX(-1);
  }

  88% {
    transform: translate3d(18vw, 0, 0) scaleX(-1);
  }

  99% {
    transform: translate3d(-8vw, 0, 0) scaleX(-1);
  }

  100% {
    transform: translate3d(-8vw, 0, 0) scaleX(1);
  }
}

@keyframes theme-horse-leg {
  0%,
  100% {
    transform: skewX(-16deg);
  }

  50% {
    transform: skewX(16deg);
  }
}

@keyframes theme-horse-jump-leg {
  0%,
  100% {
    transform: rotate(-18deg);
  }

  45% {
    transform: rotate(52deg) translateY(-2px);
  }

  60% {
    transform: rotate(34deg) translateY(-2px);
  }
}

@keyframes theme-mosquito-flight {
  0% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }

  18% {
    transform: translate3d(58vw, 12vh, 0) rotate(-12deg);
  }

  36% {
    transform: translate3d(24vw, 54vh, 0) rotate(18deg);
  }

  56% {
    transform: translate3d(72vw, 42vh, 0) rotate(-20deg);
  }

  78% {
    transform: translate3d(10vw, 22vh, 0) rotate(14deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
}

@keyframes theme-mosquito-wing {
  0% {
    transform: rotate(-24deg) scaleY(1);
  }

  100% {
    transform: rotate(12deg) scaleY(0.42);
  }
}

@keyframes theme-mosquito-color {
  0% {
    color: #171717;
  }

  25% {
    color: #242424;
  }

  50% {
    color: #351f22;
  }

  75% {
    color: #1b1b1b;
  }

  100% {
    color: #171717;
  }
}

@keyframes theme-mosquito-curse {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) rotate(var(--curse-rotate)) scale(0.82);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--curse-x), -54px, 0) rotate(var(--curse-rotate)) scale(1.08);
  }
}

@keyframes hero-cat-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(3deg);
  }
}

@keyframes curricula-table-open {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scaleY(0.96);
    transform-origin: top center;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleY(1);
    transform-origin: top center;
  }
}

@keyframes curricula-cell-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-cat-scale-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.22) rotate(-8deg);
  }

  72% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) scale(1.08) rotate(2deg);
  }

  100% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1) rotate(1deg);
  }
}

@keyframes hero-cat-spin {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(1800deg);
  }

  100% {
    transform: rotate(3600deg);
  }
}

@keyframes hero-pixel-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0.96;
  }

  100% {
    transform: translate3d(var(--pixel-drift), calc(var(--pixel-rise) * -1), 0) scale(0.56);
    opacity: 0;
  }
}

@keyframes hero-animal-fragment {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.92) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(calc(var(--fragment-x) - 50%), calc(var(--fragment-y) - 50%), 0) scale(0.24) rotate(var(--fragment-rotate));
    opacity: 0;
  }
}

@keyframes hero-terminal-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes partners-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-storm,
  .pixel-storm__pixel,
  .curricula-year[open] .curricula-year__body,
  .curricula-cell {
    animation: none;
  }

  .partners__carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .partners__track {
    animation: none;
  }

  .partners__set[aria-hidden="true"] {
    display: none;
  }
}

@keyframes stat-pop {
  0% {
    opacity: 0.55;
    transform: translate3d(0, 10px, 0) scale(0.96);
  }

  55% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes content-fade-swap {
  0% {
    opacity: 0.3;
    transform: translate3d(0, 8px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-panel-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.program-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(135deg, #072e78, #0b57d0);
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.program-highlight h4 {
  margin: 0;
  font-size: 28px;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.program-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.program-highlight .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Home sections */
.home-sections {
  display: grid;
  gap: 24px;
}

.home-sections__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-sections__tab {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(19, 89, 200, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.home-sections__tab.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(11, 87, 208, 0.2);
}

.home-sections__tab:hover,
.home-sections__tab:focus-visible {
  transform: translateY(-2px);
}

.home-sections__panels {
  position: relative;
}

.home-section-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
  border: 1px solid rgba(19, 89, 200, 0.08);
  box-shadow: var(--shadow);
}

.home-section-panel[hidden] {
  display: none;
}

.home-section-panel.is-entering {
  animation: section-panel-enter 0.38s ease;
}

.home-section-panel__copy,
.home-section-panel__aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-section-panel__copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  color: var(--primary-deep);
}

.home-section-panel__copy p,
.home-section-panel__lead {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.home-section-panel__lead {
  font-size: 18px;
  color: #193969;
}

.home-section-panel__aside {
  padding: 20px;
  background: linear-gradient(180deg, rgba(11, 87, 208, 0.08), rgba(11, 87, 208, 0.02));
}

.home-section-panel__eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-section-panel__points {
  display: grid;
  gap: 10px;
}

.home-section-panel__points span {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  background: #fff;
  color: #15325f;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(14, 42, 89, 0.08);
}

.section-copy {
  display: grid;
  gap: 16px;
}

.section-copy--center {
  text-align: center;
}

.section-copy p,
.page-description,
.prose,
.program-card p {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
}

.home-lower {
  padding: 18px 0 0;
  background: #fff;
}

.home-lower__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4.2vw, 56px) max(24px, calc((100vw - var(--container)) / 2 + 24px)) clamp(38px, 4.8vw, 66px);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  background: #eaf4ff;
}

.home-lower__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3.4vw, 44px);
  text-align: center;
}

.home-lower h2,
.partners h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 800;
}

.home-lower__lead {
  max-width: 1080px;
  margin: 0;
  color: #111827;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.35;
}

.home-lower__research {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.home-lower__research h3 {
  margin: 0;
  color: #0d1324;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

.research-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 1140px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.research-list li {
  position: relative;
  padding-left: 15px;
  color: #111827;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.25;
}

.research-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.home-lower__pixels {
  position: absolute;
  right: -8px;
  bottom: 64px;
  width: 10px;
  height: 10px;
  color: rgba(19, 89, 200, 0.08);
  background: currentColor;
  box-shadow:
    18px -18px currentColor,
    36px -8px currentColor,
    54px -18px currentColor,
    72px -8px currentColor,
    -18px 0 currentColor,
    18px 0 currentColor,
    36px 10px currentColor,
    54px 0 currentColor,
    -36px 18px currentColor,
    -18px 18px currentColor,
    0 18px currentColor,
    18px 18px currentColor,
    36px 28px currentColor,
    54px 18px currentColor;
}

.partners {
  display: grid;
  gap: 24px;
  padding: clamp(42px, 5vw, 68px) 0 clamp(46px, 5vw, 72px);
  text-align: center;
}

.partners__carousel {
  width: 100%;
  overflow: hidden;
  margin: -8px 0 -28px;
  padding: 12px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partners__track {
  display: flex;
  width: max-content;
  animation: partners-scroll 28s linear infinite;
}

.partners__carousel:hover .partners__track {
  animation-play-state: paused;
}

.partners__set {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding-right: 16px;
}

.partner-card {
  display: flex;
  flex: 0 0 clamp(224px, 23vw, 320px);
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(19, 89, 200, 0.38);
  box-shadow: 0 14px 26px rgba(15, 40, 84, 0.08);
}

.partner-card img {
  display: block;
  max-width: min(260px, 86%);
  max-height: 64px;
  object-fit: contain;
}

.partner-card--wide {
  flex-basis: clamp(420px, 46vw, 640px);
}

.partner-card--wide img {
  width: min(560px, 88%);
  max-width: none;
  max-height: 86px;
}

.partner-card span {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
}

.page-shell {
  padding: 64px 0 88px;
}

.page-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.page-description {
  margin: 0;
  max-width: 70ch;
}

.not-found-page__inner {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(240px, 360px);
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 5vw, 72px);
  min-height: clamp(520px, 62vh, 720px);
}

.not-found-page__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.not-found-page__copy .page-description {
  max-width: 70ch;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.not-found-page .section-eyebrow {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 56px);
}

.not-found-page .page-title {
  max-width: none;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.not-found-page__cat {
  width: min(100%, 360px);
  justify-self: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 22px 34px rgba(19, 89, 200, 0.16));
}

.prose {
  max-width: 76ch;
}

.prose p,
.prose ul {
  margin: 0 0 18px;
}

.search-page {
  display: grid;
  gap: 24px;
}

.search-page__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-page__input {
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f5f9ff);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.search-page__input:focus {
  outline: 0;
  border-color: rgba(19, 89, 200, 0.36);
  box-shadow: 0 0 0 4px rgba(19, 89, 200, 0.08);
}

.search-page__meta {
  display: grid;
  gap: 6px;
}

.search-page__summary,
.search-page__count {
  margin: 0;
}

.search-page__summary {
  color: var(--primary-deep);
  font-size: 24px;
  font-weight: 700;
}

.search-page__count {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.search-page__results {
  display: grid;
  gap: 14px;
}

.search-page__item {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow);
}

.search-page__link {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.search-page__link:hover,
.search-page__link:focus-visible {
  transform: translateY(-2px);
  background: rgba(19, 89, 200, 0.03);
}

.search-page__link strong {
  color: var(--primary-deep);
  font-size: 20px;
  line-height: 1.2;
}

.search-page__link span,
.search-page__empty {
  color: var(--text-soft);
  line-height: 1.6;
}

.about-feature {
  margin-top: 44px;
}

.history-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(19, 89, 200, 0.08), rgba(19, 89, 200, 0) 42%),
    linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: 0 24px 44px rgba(15, 40, 84, 0.12);
}

.history-preview::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 220px;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(214, 0, 71, 0.12), rgba(214, 0, 71, 0)),
    linear-gradient(135deg, rgba(19, 89, 200, 0.16), rgba(19, 89, 200, 0));
  transform: translate(26%, 24%) rotate(14deg);
  pointer-events: none;
}

.history-preview__copy,
.history-preview__action {
  position: relative;
  z-index: 1;
}

.history-preview__copy {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.history-preview__eyebrow {
  margin: 0;
  color: var(--primary-deep);
  font-size: 18px;
  line-height: 1.1;
}

.history-preview h2 {
  margin: 0;
  color: #142041;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.history-preview__copy > p:last-of-type {
  margin: 0;
  color: #24324d;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.42;
  max-width: 32ch;
}

.history-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-preview__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(19, 89, 200, 0.14);
  color: #24324d;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 40, 84, 0.08);
}

.history-preview__action {
  display: flex;
  align-items: end;
}

.history-preview__action .button {
  min-width: 280px;
  min-height: 78px;
  justify-content: center;
  padding: 0 28px;
  box-shadow: 0 18px 36px rgba(214, 0, 71, 0.22);
}

.history-layout {
  display: grid;
  gap: 32px;
}

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

.history-overview__card {
  display: grid;
  gap: 12px;
  min-height: 156px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  box-shadow: var(--shadow);
}

.history-overview__card span {
  color: #142041;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-overview__card strong {
  color: var(--primary);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
}

.history-tabs {
  display: grid;
  gap: 24px;
}

.history-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.history-tabs__button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(19, 89, 200, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.history-tabs__button.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(11, 87, 208, 0.2);
}

.history-tabs__button:hover,
.history-tabs__button:focus-visible {
  transform: translateY(-2px);
}

.history-tabs__panels {
  position: relative;
}

.history-tab-panel {
  display: grid;
  gap: 24px;
}

.history-tab-panel[hidden] {
  display: none;
}

.history-section-title {
  margin: 0;
  color: var(--primary-deep);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
}

.history-timeline {
  display: grid;
  gap: 26px;
}

.history-year {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.history-year__label {
  position: sticky;
  top: 88px;
  padding-top: 10px;
  color: var(--primary-deep);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.history-year__items {
  display: grid;
  gap: 14px;
}

.history-event {
  padding: 18px 20px 18px 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-left: 4px solid var(--primary);
  box-shadow: 0 16px 28px rgba(15, 40, 84, 0.08);
}

.history-event p,
.history-article p,
.history-lyrics__stanza p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.history-article {
  display: grid;
  gap: 16px;
}

.history-article--section {
  padding: 22px 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.history-article--section h3 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 28px;
  line-height: 1.05;
}

.history-sections {
  display: grid;
  gap: 18px;
}

.history-lyrics {
  display: grid;
  gap: 18px;
}

.history-lyrics__stanza {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .search-page__form {
    grid-template-columns: 1fr;
  }

  .search-page__submit {
    width: 100%;
  }

  .history-preview {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .history-preview h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .history-preview__copy > p:last-of-type {
    max-width: none;
    font-size: 18px;
  }

  .history-preview__action .button {
    width: 100%;
    min-width: 0;
    min-height: 62px;
  }

  .history-overview {
    grid-template-columns: 1fr;
  }

  .history-tabs__button {
    width: 100%;
    justify-content: center;
  }

  .history-year {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-year__label {
    position: static;
    padding-top: 0;
  }
}

.program-catalog {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

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

.program-card {
  display: grid;
  gap: 18px;
}

.program-card__meta {
  display: grid;
  gap: 8px;
}

.program-card__meta strong {
  font-size: 24px;
  line-height: 1.15;
}

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

.program-card dl div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.program-card dd {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-deep);
  white-space: nowrap;
}

/* Curricula */
.curricula {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.curricula__heading {
  margin-bottom: 0;
}

.curricula__heading h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.curricula__intro {
  max-width: 42ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.curricula__overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.curricula__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  grid-column: 1 / -1;
  align-items: stretch;
}

.curricula__info-text {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 18px 22px;
  color: #fff;
  background: var(--primary);
}

.curricula__info-text p {
  max-width: 880px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.38;
}

.curricula__info-text strong {
  color: #fff;
}

.curricula__info-text em {
  color: rgba(255, 255, 255, 0.84);
}

.curricula__contacts {
  display: grid;
  gap: 8px;
  align-content: stretch;
  max-width: none;
}

.curricula__contacts span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.curricula__contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.curricula__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.curricula__copy {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--primary);
  border-left: 0;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.curricula__copy--primary {
  width: 100%;
  border-left: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  font-size: 13px;
}

.curricula__contacts a:hover,
.curricula__contacts a:focus-visible,
.curricula__copy:hover,
.curricula__copy:focus-visible {
  background: var(--primary-deep);
  color: #fff;
  outline: 0;
}

.curricula__copy.is-copied {
  color: #fff;
  background: var(--primary-deep);
}

.curricula__switcher {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 640px));
  gap: 12px;
}

.curricula__switch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-content: start;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-deep);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.curricula__switch-card.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(11, 87, 208, 0.18);
}

.curricula__switch-card:hover,
.curricula__switch-card:focus-within {
  transform: translateY(-2px);
}

.curricula__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.curricula__switch.is-active {
  color: #fff;
}

.curricula__switch:hover,
.curricula__switch:focus-visible {
  outline: none;
}

.curricula__switch-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}

.curricula__switch-title {
  font-size: 17px;
  line-height: 1.2;
}

.curricula__switch-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.curricula__switch-card:not(.is-active) .curricula__switch-code {
  background: rgba(11, 87, 208, 0.08);
}

.curricula__switch-card:not(.is-active) .curricula__switch-video {
  background: rgba(11, 87, 208, 0.1);
  color: var(--primary);
}

.curricula__switch-video::before {
  content: "↗";
  font-size: 14px;
  line-height: 1;
}

.curricula__switch-video:hover,
.curricula__switch-video:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.curricula-board {
  display: grid;
  gap: 16px;
}

.curricula-board.is-refreshing {
  animation: section-panel-enter 0.32s ease;
}

.curricula-board__grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.curricula-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}

.curricula-filter__title {
  width: 100%;
  color: #7d8faa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.curricula-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid transparent;
  background: #f4f8ff;
  color: #43506e;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.curricula-filter__btn:hover,
.curricula-filter__btn:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--filter-color) 42%, #dce7fb);
}

.curricula-filter__btn.is-active {
  color: #fff;
  background: var(--filter-color);
  border-color: var(--filter-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--filter-color) 24%, transparent);
}

.curricula-filter__btn i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--filter-color);
}

.curricula-filter__btn.is-active i {
  background: #fff;
}

.curricula-filter__btn--primary {
  --filter-color: #1c63d5;
}

.curricula-filter__btn--accent {
  --filter-color: #d11067;
}

.curricula-filter__btn--light {
  --filter-color: #58a1e8;
}

.curricula-filter__btn--muted {
  --filter-color: #7d879b;
}

.curricula-filter__btn--choice {
  --filter-color: #d11067;
}

.curricula-filter__btn--choice i {
  width: 18px;
  height: 10px;
  border: 2px dashed #d11067;
  border-radius: 0;
  background: transparent;
}

.curricula-filter__btn--choice.is-active i {
  border-color: #fff;
  background: transparent;
}

/* Spec filter accordion */
.spec-accordion {
  border: 1px solid #dce7fb;
  background: #fff;
}

.spec-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #1c2a4f;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.spec-accordion__toggle:hover {
  background: #f4f8ff;
}

.spec-accordion__icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  margin-bottom: 3px;
}

.spec-accordion.is-open .spec-accordion__icon {
  transform: rotate(225deg);
  margin-bottom: -3px;
}

.spec-accordion__body {
  display: none;
  padding: 0 18px 16px;
}

.spec-accordion.is-open .spec-accordion__body {
  display: block;
  animation: section-panel-enter 0.22s ease;
}

.spec-accordion__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.spec-btn {
  display: grid;
  grid-template-rows: auto minmax(64px, 1fr) auto auto;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dce7fb;
  background: #f8fbff;
  color: #1c2a4f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.spec-btn:hover {
  border-color: var(--primary);
  background: #eef5ff;
}

.spec-btn.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 87, 208, 0.22);
}

.spec-btn__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.spec-btn__summary {
  color: #63718f;
  font-size: 12px;
  line-height: 1.35;
}

.spec-btn.is-active .spec-btn__summary {
  color: rgba(255, 255, 255, 0.78);
}

.spec-btn .track-video-link {
  margin-top: 2px;
  align-self: end;
  background: rgba(11, 87, 208, 0.1);
  color: var(--primary);
}

.spec-btn .track-video-link:hover,
.spec-btn .track-video-link:focus-visible {
  background: rgba(11, 87, 208, 0.16);
}

.spec-btn.is-active .track-video-link {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.spec-btn.is-active .track-video-link:hover,
.spec-btn.is-active .track-video-link:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.spec-btn__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-btn__tags span {
  padding: 3px 7px;
  background: rgba(11, 87, 208, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.spec-btn.is-active .spec-btn__tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.spec-accordion__details {
  margin-top: 14px;
  padding: 14px 16px;
  color: #43506e;
  background: #f4f8ff;
  border-left: 3px solid var(--primary);
}

.spec-accordion__details:empty {
  display: none;
}

.spec-accordion__details strong {
  display: block;
  margin-bottom: 4px;
  color: #1c2a4f;
}

.spec-accordion__details p {
  margin: 0;
  line-height: 1.45;
}

.curricula-years {
  display: grid;
  gap: 12px;
}

.curricula-year {
  border: 1px solid #dce7fb;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.curricula-year[open] {
  border-color: rgba(19, 89, 200, 0.28);
  box-shadow: 0 12px 28px rgba(15, 40, 84, 0.08);
}

.curricula-year__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #1c2a4f;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.curricula-year__summary:hover,
.curricula-year__summary:focus-visible {
  outline: 0;
  background: #f4f8ff;
}

.curricula-year__summary::-webkit-details-marker {
  display: none;
}

.curricula-year__summary span:first-child {
  font-size: 24px;
  font-weight: 900;
}

.curricula-year__summary span:last-child {
  color: #7d8faa;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.curricula-year__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #dce7fb;
}

.curricula-year[open] .curricula-year__body {
  animation: curricula-table-open 0.34s cubic-bezier(0.18, 0.84, 0.24, 1);
}

.curricula-semester {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  background: #f8fbff;
}

.curricula-semester + .curricula-semester {
  border-left: 1px solid #dce7fb;
}

.curricula-semester__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: end;
  margin-bottom: 5px;
  color: #1c2a4f;
}

.curricula-semester__head strong {
  grid-row: span 2;
  color: var(--primary);
  font-size: 40px;
  line-height: 0.9;
}

.curricula-semester__head span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.curricula-semester__head small {
  color: #7d8faa;
  font-size: 11px;
  line-height: 1.25;
}

.curricula-choice-group {
  border: 1px dashed #f0abc9;
  background: #fff7fb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.curricula-choice-group.is-open {
  border-color: rgba(209, 16, 103, 0.42);
  box-shadow: 0 8px 16px rgba(209, 16, 103, 0.08);
}

.curricula-choice-group__head {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #8f164f;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.curricula-choice-group__head span {
  line-height: 1.2;
}

.curricula-choice-group__head small {
  color: #a65c7f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.curricula-choice-group__body {
  display: none;
  gap: 5px;
  padding: 0 8px 8px;
}

.curricula-choice-group.is-open .curricula-choice-group__body {
  display: grid;
  animation: section-panel-enter 0.22s ease;
}

/* Curricula horizontal grid */
.curricula-grid-wrap {
  overflow-x: auto;
  border: 1px solid #dce7fb;
  background: #f4f8ff;
}

.curricula-grid {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: calc(var(--sem-count, 8) * 180px);
}

.curricula-grid__header {
  display: grid;
  grid-template-columns: repeat(var(--sem-count, 8), 1fr);
  border-bottom: 2px solid #dce7fb;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f8ff;
}

.curricula-col-head {
  display: grid;
  padding: 14px 12px 12px;
  border-right: 1px solid #dce7fb;
  text-align: center;
  gap: 2px;
}

.curricula-col-head:last-child {
  border-right: 0;
}

.curricula-col-head__num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}

.curricula-col-head__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d8faa;
}

.curricula-col-head__stats {
  font-size: 11px;
  color: #9aabbd;
  margin-top: 2px;
}

.curricula-grid__body {
  display: grid;
  grid-template-columns: repeat(var(--sem-count, 8), 1fr);
  align-items: start;
}

.curricula-col {
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  border-right: 1px solid #dce7fb;
  align-content: start;
  transition: background 0.22s ease;
}

.curricula-col:last-child {
  border-right: 0;
}

.curricula-col.has-spec-highlight {
  background: rgba(11, 87, 208, 0.03);
}

.curricula-cell {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  background: #fff;
  border-left: 3px solid var(--row-color);
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.18s ease, box-shadow 0.18s ease;
  will-change: opacity, transform;
  animation: curricula-cell-enter 0.26s cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.curricula-cell--compact {
  padding: 10px 11px;
  background: #fff;
}

.curricula-cell--static {
  cursor: default;
}

.curricula-cell:hover,
.curricula-cell:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 35, 80, 0.12);
}

.curricula-cell--static:hover {
  transform: none;
  box-shadow: none;
}

.curricula-cell.is-spec-dim {
  opacity: 0.22;
}

.curricula-cell.is-spec-active {
  box-shadow: 0 0 0 2px var(--row-color), 0 4px 16px rgba(6, 35, 80, 0.14);
}

.curricula-cell__marker {
  display: none;
}

.curricula-cell__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2a4f;
}

.curricula-cell__meta {
  font-size: 12px;
  color: #7d8faa;
  font-weight: 600;
  line-height: 1.25;
}

.curricula-row--primary {
  --row-color: #1c63d5;
  --row-soft: #eaf3ff;
}

.curricula-row--accent {
  --row-color: #d11067;
  --row-soft: #fff0f7;
}

.curricula-row--light {
  --row-color: #58a1e8;
  --row-soft: #edf7ff;
}

.curricula-row--muted {
  --row-color: #7d879b;
  --row-soft: #f0f2f6;
}

.curricula-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.curricula-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 37, 0.38);
}

.curricula-modal__dialog {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 7vh auto 0;
  background: #fff;
  border: 1px solid #dbe6fb;
  box-shadow: 0 24px 60px rgba(6, 27, 67, 0.22);
}

.curricula-modal__body {
  padding: 22px 28px 10px;
}

.curricula-modal__body h3 {
  margin: 0 0 16px;
  font-size: 28px;
  color: #1c2a4f;
}

.curricula-modal__meta,
.curricula-modal__focus {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 4px;
  font-weight: 700;
}

.curricula-modal__meta {
  color: #d11067;
}

.curricula-modal__focus {
  color: var(--primary);
}

.curricula-modal__text,
.curricula-modal__faq {
  color: #43506e;
  line-height: 1.55;
}

.curricula-modal__faq h4 {
  margin: 20px 0 12px;
  color: #1c2a4f;
}

.curricula-modal__faq article + article {
  margin-top: 12px;
}

.curricula-modal__faq strong {
  display: block;
  margin-bottom: 4px;
  color: #1c2a4f;
}

.curricula-modal__faq p {
  margin: 0;
}

.curricula-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 28px 22px;
}

body.is-modal-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 36px 0 44px;
  color: #fff;
  background: #061b43;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__brand img {
  width: 160px;
}

.site-footer__copy {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer__nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-header__toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-header__tools {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none !important;
    width: 100%;
    padding: 16px clamp(20px, 2.4vw, 44px);
    background: #1359c8;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 34px rgba(3, 18, 48, 0.22);
  }

  .site-header.is-open .site-header__tools {
    display: grid !important;
    align-items: stretch;
    justify-items: stretch;
    gap: 12px;
  }

  .site-header.is-open .site-nav {
    display: grid;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    gap: 8px;
  }

  .site-header.is-open .site-nav a {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 41, 101, 0.24);
    font-size: 15px;
    line-height: 1.15;
    text-align: left;
  }

  .site-search {
    width: min(280px, 100%);
    min-width: 0;
    flex-basis: auto;
  }

  .site-header.is-open .site-language {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  .site-header.is-open .site-language__link {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    background: rgba(6, 41, 101, 0.3);
  }
}

/* Tablet */
@media (max-width: 960px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-nav,
  .program-grid,
  .program-card dl {
    grid-template-columns: 1fr;
  }

  .program-grid {
    display: grid;
  }

  .site-search {
    width: min(280px, 100%);
    min-width: 0;
    flex-basis: auto;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero__cat {
    left: clamp(-76px, calc(3vw - 70px), -12px);
    bottom: clamp(104px, 12vh, 164px);
    bottom: clamp(104px, 12svh, 164px);
    width: 190px;
    opacity: 0.82;
  }

  .hero__content {
    padding-top: clamp(48px, 7vh, 72px);
    padding-bottom: clamp(142px, 16vh, 190px);
    padding-top: clamp(48px, 7svh, 72px);
    padding-bottom: clamp(142px, 16svh, 190px);
  }

  .home-section-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .programs-widget {
    padding: 0 0 12px;
  }

  .programs-widget__header {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }

  .site-brand__mark {
    width: 138px;
    height: 34px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__nav {
    justify-content: center;
  }

  .partner-card {
    flex-basis: clamp(216px, 34vw, 280px);
  }

  .partner-card--wide {
    flex-basis: clamp(340px, 54vw, 460px);
  }

  .hero__divider {
    height: clamp(70px, 10vw, 96px);
    background-position: center calc(100% + clamp(34px, 6vw, 48px));
    background-size: auto clamp(146px, 20vw, 172px);
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-block-height: 60px;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero__actions,
  .button,
  .site-footer__nav {
    width: 100%;
  }

  .home-lower {
    padding-top: 28px;
  }

  .home-lower__panel {
    padding: 34px 18px 42px;
    border-width: 3px;
  }

  .home-lower__content {
    gap: 28px;
  }

  .home-lower__lead {
    font-size: 16px;
  }

  .research-list {
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
  }

  .research-list li {
    width: 100%;
    font-size: 16px;
  }

  .home-lower__pixels {
    display: none;
  }

  .partners {
    padding: 34px 0 42px;
  }

  .partner-card {
    flex-basis: 220px;
    min-height: 92px;
    padding: 20px;
  }

  .partner-card--wide {
    flex-basis: 320px;
  }

  .partner-card--wide img {
    width: min(284px, 90%);
    max-height: 62px;
  }

  .site-brand__mark {
    width: 116px;
    height: 28px;
  }

  .button {
    justify-content: center;
  }

  .hero h1,
  .section-heading h2,
  .programs-widget__header h3,
  .section-copy h2,
  .page-title {
    line-height: 1.05;
  }

  .section,
  .page-shell {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .not-found-page {
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--header-block-height) - 250px);
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .not-found-page__inner {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 18px;
    min-height: auto;
    text-align: center;
  }

  .not-found-page__cat {
    order: -1;
  }

  .not-found-page__copy {
    justify-items: center;
    gap: 14px;
  }

  .not-found-page__cat {
    width: min(52vw, 170px);
  }

  .not-found-page .page-title {
    font-size: clamp(34px, 8vw, 42px);
  }

  .not-found-page__copy .page-description {
    font-size: clamp(20px, 5vw, 26px);
  }

  .section--surface {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .section--surface-overlap {
    margin-top: 27px;
    padding-top: 23px;
  }

  .section--surface-overlap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 30px;
    background: #fff;
    pointer-events: none;
  }

  .section--surface-overlap .programs-widget {
    margin-top: -10px;
  }

  .hero__content {
    padding-top: clamp(36px, 6vh, 54px);
    padding-bottom: clamp(126px, 18vh, 162px);
    padding-top: clamp(36px, 6svh, 54px);
    padding-bottom: clamp(126px, 18svh, 162px);
  }

  .hero h1 {
    font-size: clamp(34px, 8.6vw, 50px);
    line-height: 1.12;
  }

  .terminal-easter {
    padding: 8px;
  }

  .terminal-easter__window {
    height: calc(100svh - 16px);
  }

  .terminal-easter__screen {
    padding: 14px;
    font-size: 12px;
  }

  .terminal-easter__form {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 14px 14px;
  }

  .terminal-easter__form label {
    font-size: 12px;
  }

  html.theme-abvavrenyuk .theme-crypto-terminal {
    top: auto;
    right: 10px;
    bottom: 10px;
    width: min(280px, calc(100% - 20px));
    opacity: 0.86;
  }

  html.theme-abvavrenyuk .theme-crypto-terminal pre {
    max-height: 86px;
    font-size: 10px;
  }

  .theme-seven-terminal {
    bottom: 8px;
    padding: 8px;
  }

  .theme-seven-terminal__screen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .theme-seven-terminal__screen button {
    min-height: 30px;
    padding: 0 4px;
    font-size: 11px;
  }

  .theme-seven-terminal__draw {
    min-height: 82px;
  }

  .logic-gate {
    transform: scale(0.74);
  }

  .hero__subtitle {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .hero__cat {
    left: -54px;
    bottom: clamp(88px, 13vh, 136px);
    bottom: clamp(88px, 13svh, 136px);
    width: 148px;
    opacity: 0.78;
  }

  .site-header__inner {
    width: calc(100% - 20px);
    max-width: none;
    min-height: 58px;
  }

  .site-header__tools {
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 12px 16px;
  }

  .site-header.is-open .site-nav a {
    justify-content: flex-start;
    font-size: 15px;
    white-space: normal;
  }

  .site-header.is-open .site-language {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-header.is-open .site-language__link {
    width: 100%;
  }

  .section--surface-overlap .programs-widget__header {
    transform: none;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 2px;
  }

  .site-search__results {
    right: auto;
    width: 100%;
  }

  .home-sections__tab,
  .curricula__switch {
    width: 100%;
  }

  .home-section-panel {
    padding: 20px 16px;
  }

  .home-section-panel__copy h3 {
    font-size: 28px;
  }

  .programs-widget__header h3 {
    font-size: 24px;
    text-align: center;
  }

  .programs-widget__nav {
    width: 44px;
    height: 44px;
    align-self: center;
  }

  .programs-widget__nav img {
    width: 24px;
    height: 24px;
  }

  .programs-widget__pills {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .program-pill {
    flex: 0 1 100%;
    width: 100%;
    max-width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
    min-width: 0;
    text-align: center;
    padding: 10px 14px;
    font-size: clamp(14px, 3.85vw, 17px);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .program-pill.is-active {
    display: block;
  }

  .program-tracks {
    gap: 10px;
  }

  .program-tracks__title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .program-tracks__rail {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .program-tracks__viewport {
    grid-auto-columns: min(78vw, 286px);
    gap: 10px;
  }

  .program-tracks__nav {
    width: 44px;
    min-height: 100%;
  }

  .program-tracks__nav img {
    width: 26px;
    height: 26px;
  }

  .program-track-card {
    min-height: 146px;
    padding: 14px;
  }

  .program-track-card h4 {
    font-size: 17px;
  }

  .program-track-card p {
    font-size: 13px;
  }

  .program-highlight {
    padding: 20px 18px;
    text-align: center;
  }

  .program-highlight h4 {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1.16;
  }

  .program-highlight p {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.22;
  }

  .program-highlight .button {
    justify-self: stretch;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .curricula {
    margin-top: 36px;
  }

  .curricula__switch-card {
    grid-template-columns: 1fr;
  }

  .curricula__switch-video {
    justify-self: stretch;
  }

  .curricula__heading h2 {
    font-size: 38px;
  }

  .curricula__overview {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .curricula__info-text p {
    font-size: 15px;
    line-height: 1.34;
  }

  .curricula__info-text {
    padding: 14px;
  }

  .curricula__contacts {
    justify-content: stretch;
    max-width: none;
  }

  .curricula__contacts span {
    text-align: left;
  }

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

  .curricula__contacts a {
    justify-content: center;
  }

  .curricula-filter {
    padding-top: 0;
  }

  .curricula-year__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .curricula-year__body {
    grid-template-columns: 1fr;
  }

  .curricula-semester + .curricula-semester {
    border-top: 1px solid #dce7fb;
    border-left: 0;
  }

  .curricula-choice-group__head {
    display: grid;
  }

  .curricula-modal__dialog {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .curricula-modal__body,
  .curricula-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .curricula-modal__body h3 {
    font-size: 22px;
  }

  .spec-accordion__track {
    grid-template-columns: 1fr;
  }

  .programs-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 0;
    padding: 14px 18px 12px;
    text-align: left;
  }

  .stat-card__plate {
    left: auto;
    right: -16px;
    width: 92px;
    height: 92px;
    transform: none;
  }

  .stat-card strong {
    margin-top: 4px;
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.9;
  }

  .stat-card strong[data-program-stat="price"] {
    font-size: clamp(36px, 12vw, 52px);
  }
}

/* Narrow tablets / large phones */
@media (max-width: 760px) {
  .programs-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    min-height: 0;
  }

  .program-highlight {
    padding: 20px 18px;
    text-align: center;
  }

  .program-highlight h4 {
    font-size: clamp(24px, 5.2vw, 30px);
    line-height: 1.18;
  }

  .program-highlight p {
    font-size: clamp(16px, 3.4vw, 20px);
    line-height: 1.24;
  }

  .program-highlight .button {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .program-highlight h4 {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1.16;
  }

  .program-highlight p {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.22;
  }

}

/* Tall screens with burger header */
@media (min-width: 900px) and (max-aspect-ratio: 11/10) {
  .hero__divider {
    height: clamp(82px, 8vw, 112px);
    background-position: center calc(100% + clamp(42px, 5vw, 58px));
    background-size: auto clamp(168px, 14vw, 196px);
  }

  .section--surface-overlap {
    margin-top: 34px;
    padding-top: 28px;
  }

  .section--surface-overlap .programs-widget {
    margin-top: -20px;
  }
}

/* Final theme override: keep the applicants page readable in IMYadykin. */
html.theme-imyadykin body.page-programs,
html.theme-imyadykin .page-programs,
html.theme-imyadykin body.page-programs .site-main,
html.theme-imyadykin .page-programs .site-main,
html.theme-imyadykin body.page-programs .page-shell,
html.theme-imyadykin .page-programs .page-shell,
html.theme-imyadykin body.page-programs .page-intro,
html.theme-imyadykin .page-programs .page-intro,
html.theme-imyadykin body.page-programs .section,
html.theme-imyadykin .page-programs .section,
html.theme-imyadykin body.page-programs .section--surface,
html.theme-imyadykin .page-programs .section--surface,
html.theme-imyadykin body.page-programs .section--muted,
html.theme-imyadykin .page-programs .section--muted,
html.theme-imyadykin body.page-programs .curricula {
  background-color: #f7f8fb !important;
}

html.theme-imyadykin body.page-programs .page-shell {
  padding-top: 0;
}

html.theme-imyadykin body.page-programs .section--surface-overlap::before {
  background: #f7f8fb !important;
}

html.theme-imyadykin body.page-programs .page-intro {
  padding-top: 14px;
}

html.theme-imyadykin body.page-programs .page-title,
html.theme-imyadykin body.page-programs .section-heading h2,
html.theme-imyadykin body.page-programs .programs-widget__header h3,
html.theme-imyadykin body.page-programs .program-tracks__title,
html.theme-imyadykin body.page-programs .curricula__heading h2 {
  color: #152033 !important;
  text-shadow: none !important;
}

html.theme-imyadykin body.page-programs .program-pill,
html.theme-imyadykin body.page-programs .program-track-card,
html.theme-imyadykin body.page-programs .programs-widget__nav,
html.theme-imyadykin body.page-programs .program-highlight .button,
html.theme-imyadykin body.page-programs .curricula__info-text,
html.theme-imyadykin body.page-programs .curricula__contacts a,
html.theme-imyadykin body.page-programs .curricula__copy--primary {
  background: #ffb21a;
  color: #11140a;
}

html.theme-imyadykin body.page-programs .stat-card,
html.theme-imyadykin body.page-programs .program-highlight,
html.theme-imyadykin body.page-programs .curricula__overview,
html.theme-imyadykin body.page-programs .curricula-filter,
html.theme-imyadykin body.page-programs .curricula-grid-wrap,
html.theme-imyadykin body.page-programs .curricula-grid__header,
html.theme-imyadykin body.page-programs .curricula-semester {
  background: #07120e;
  color: #f4f1df;
  border-color: rgba(255, 178, 26, 0.26);
}

html.theme-imyadykin body.page-programs .program-highlight p,
html.theme-imyadykin body.page-programs .curricula__info-text p,
html.theme-imyadykin body.page-programs .curricula__info-text em,
html.theme-imyadykin body.page-programs .curricula__contacts span,
html.theme-imyadykin body.page-programs .curricula-semester__head span,
html.theme-imyadykin body.page-programs .curricula-semester__head small {
  color: #d6c99f;
}

/* IMYadykin applicants block: light surface with readable dark headings. */
html.theme-imyadykin .section--surface,
html.theme-imyadykin .section--surface-overlap,
html.theme-imyadykin .section--surface-overlap::before,
html.theme-imyadykin .page-shell,
html.theme-imyadykin .page-intro,
html.theme-imyadykin .curricula {
  background: #f7f8fb !important;
}

html.theme-imyadykin .programs-widget__header h3,
html.theme-imyadykin .program-tracks__title,
html.theme-imyadykin .section--surface .section-heading h2,
html.theme-imyadykin .section--surface-overlap .section-heading h2,
html.theme-imyadykin .page-title,
html.theme-imyadykin .curricula__heading h2 {
  color: #152033 !important;
  text-shadow: none !important;
}

html.theme-imyadykin .site-header,
html.theme-imyadykin .site-footer {
  background: #070b0a !important;
  border-color: rgba(255, 178, 26, 0.18) !important;
}

html.theme-imyadykin .site-header .container,
html.theme-imyadykin .site-footer .container {
  background: transparent !important;
}

html.theme-imyadykin body.page-programs .curricula-filter {
  background: transparent !important;
  color: #152033 !important;
  border: 0 !important;
}

html.theme-imyadykin body.page-programs .curricula-filter__title,
html.theme-imyadykin body.page-programs .curricula-filter__btn {
  color: #152033 !important;
}

html.theme-imyadykin body.page-programs .curricula-filter__btn {
  background: #f2f6fc !important;
  border-color: #dbe4f3 !important;
}

html.theme-imyadykin body.page-programs .curricula__info-text,
html.theme-imyadykin body.page-programs .curricula__info-text p,
html.theme-imyadykin body.page-programs .curricula__info-text strong,
html.theme-imyadykin body.page-programs .curricula__info-text em {
  color: #11140a !important;
}
