/* ---------- Design tokens ---------- */
:root {
  --blue: #1658da;
  --blue-dark: #0b2b82;
  --blue-deep: #071b4c;
  --lime: #d9ff43;
  --coral: #ff6c52;
  --paper: #f3f3ed;
  --white: #ffffff;
  --ink: #10141c;
  --muted: #646a76;
  --line: rgba(16, 20, 28, 0.18);
  --shadow: 0 24px 60px rgba(7, 27, 76, 0.14);
  --radius: 20px;
  --container: 1240px;
  --header-height: 84px;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

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

button {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin-top: 0;
}

::selection {
  color: var(--blue-deep);
  background: var(--lime);
}

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

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

.section {
  position: relative;
  padding: clamp(88px, 10vw, 152px) 0;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Shared type and controls ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 3px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--lime);
}

h1,
h2 {
  max-width: 100%;
  margin-bottom: 0;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

h2 {
  font-size: clamp(54px, 7.2vw, 104px);
}

h1 em,
h2 em,
.footer-title em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading {
  margin-bottom: clamp(44px, 6vw, 76px);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: end;
}

.section-heading--controls {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
}

.section-intro {
  padding-bottom: 4px;
  color: #414753;
  font-size: clamp(17px, 1.6vw, 21px);
}

.section-intro p {
  margin-bottom: 1.15em;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.section-intro--light {
  color: rgba(255, 255, 255, 0.76);
}

.button {
  display: inline-flex;
  min-height: 58px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button span {
  font-size: 22px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 27, 76, 0.16);
}

.button--small {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 12px;
}

.button--large {
  min-height: 68px;
  padding-inline: 34px;
  font-size: 15px;
}

.button--dark {
  color: var(--white);
  background: var(--blue-deep);
}

.button--lime {
  color: var(--blue-deep);
  background: var(--lime);
}

.button--lime:hover {
  background: #e4ff73;
}

.button--ghost-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.button--ghost-light:hover {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.button--outline-blue {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}

.button--outline-blue:hover {
  color: var(--white);
  background: var(--blue);
}

.button--white {
  color: var(--blue-deep);
  background: var(--white);
}

.button--full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  padding-bottom: 5px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

.text-link--light {
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: height 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  height: 72px;
  color: var(--ink);
  background: rgba(243, 243, 237, 0.93);
  border-bottom-color: rgba(16, 20, 28, 0.08);
  box-shadow: 0 8px 30px rgba(7, 27, 76, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
}

.brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--blue);
  background: var(--white);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.is-scrolled .brand-mark {
  color: var(--white);
  background: var(--blue);
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1vw, 16px);
}

.site-nav a,
.site-nav button {
  position: relative;
  padding: 9px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.site-nav a::after,
.site-nav button::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  background: var(--lime);
  color: var(--blue-deep);
}

.site-nav .header-cta {
  min-height: 46px;
  padding: 0 14px;
  color: var(--blue-deep);
  background: var(--lime);
  font-size: 12px;
}

.site-nav .header-cta::after {
  content: none;
}

.is-scrolled .header-cta {
  color: var(--white);
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle > span:nth-child(2) { transform: translateY(-6px); }
.menu-toggle > span:nth-child(4) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.hero-grid,
.final-cta__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 90%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.hero-orb--one {
  top: 14%;
  right: -7%;
  width: min(38vw, 540px);
  height: min(38vw, 540px);
  background: var(--blue-dark);
}

.hero-orb--two {
  right: 28%;
  bottom: -17%;
  width: 330px;
  height: 330px;
  background: var(--coral);
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: max(710px, calc(100svh - 54px));
  padding-top: calc(var(--header-height) + 65px);
  padding-bottom: 90px;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(52px, 5.2vw, 72px);
}

.hero h1 em {
  color: var(--lime);
}

.hero h1 > span {
  display: block;
  max-width: 650px;
  margin-top: 0.28em;
  font-size: 0.5em;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-lead {
  max-width: 650px;
  margin: 34px 0 38px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.5vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-board {
  position: relative;
  min-height: 490px;
}

.route-card {
  position: absolute;
  top: 52px;
  right: 0;
  left: 3%;
  min-height: 330px;
  padding: 34px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 22px 24px 0 rgba(7, 27, 76, 0.35);
  transform: rotate(2.5deg);
}

.route-card__top {
  display: flex;
  padding-bottom: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-card__status {
  padding: 6px 10px;
  color: var(--blue-deep);
  background: var(--lime);
  border-radius: 30px;
}

.route-card__title {
  margin: 34px 0 42px;
  color: var(--blue-deep);
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.route-line {
  display: flex;
  align-items: center;
}

.route-point {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.route-point--start {
  color: var(--blue-deep);
  background: var(--lime);
  border-color: var(--lime);
}

.route-progress {
  height: 2px;
  flex: 1;
  background: var(--blue);
}

.route-labels {
  display: flex;
  margin-top: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 150px;
  height: 150px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 12px 14px 0 rgba(7, 27, 76, 0.3);
}

.floating-card strong {
  font-size: 48px;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.floating-card span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.floating-card--grade {
  top: 0;
  left: -3%;
  color: var(--blue-deep);
  background: var(--lime);
  transform: rotate(-7deg);
}

.floating-card--modules {
  right: -2%;
  bottom: 15px;
  color: var(--white);
  background: var(--coral);
  transform: rotate(6deg);
}

.hero-sticker {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  left: 15%;
  display: grid;
  width: 114px;
  height: 114px;
  place-items: center;
  color: var(--blue-deep);
  background: var(--white);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-12deg);
}

.hero-ticker {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  color: var(--blue-deep);
  background: var(--lime);
  border-block: 1px solid var(--blue-deep);
}

.hero-ticker__track {
  display: flex;
  width: max-content;
  min-height: 54px;
  align-items: center;
  animation: ticker 28s linear infinite;
}

.hero-ticker span {
  padding-inline: 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-ticker i {
  font-size: 18px;
  font-style: normal;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
  background: var(--paper);
}

.section.about--compact {
  padding-bottom: clamp(36px, 4vw, 56px);
}

.about h2 em,
.media-section h2 em,
.modules h2 em,
.packages h2 em {
  color: var(--blue);
}

.about-links {
  display: grid;
  margin-bottom: clamp(76px, 10vw, 130px);
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--blue-deep);
}

.about--compact .about-links {
  margin-bottom: 0;
}

.link-card {
  position: relative;
  display: flex;
  min-height: 250px;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid var(--blue-deep);
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.link-card:last-child {
  border-right: 0;
}

.link-card:hover {
  z-index: 1;
  filter: brightness(1.04);
  transform: translateY(-9px);
}

.link-card--blue { color: var(--white); background: var(--blue); }
.link-card--lime { color: var(--blue-deep); background: var(--lime); }
.link-card--coral { color: var(--blue-deep); background: var(--coral); }

.link-card__index {
  font-size: 12px;
  font-weight: 800;
}

.link-card__label {
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.link-card__arrow {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 28px;
}

.about-manifesto {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.manifesto-shape {
  display: grid;
  padding: 24px;
  grid-template-columns: repeat(6, 1fr);
  color: var(--white);
  background: var(--blue-deep);
  transform: rotate(-2deg);
}

.manifesto-shape span {
  display: grid;
  min-height: 150px;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 72px);
  font-style: italic;
}

.manifesto-shape span:last-child {
  border-right: 0;
}

.manifesto-copy {
  font-size: 18px;
}

.manifesto-kicker {
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* ---------- Calendar schedule ---------- */
.calendar-section {
  overflow: hidden;
  color: var(--white);
  background: var(--blue-deep);
  border-block: 1px solid var(--blue-deep);
}

.calendar-section .container {
  position: relative;
  z-index: 1;
}

.calendar-section__shape {
  position: absolute;
  pointer-events: none;
}

.calendar-section__shape--one {
  top: -190px;
  right: -130px;
  width: 470px;
  height: 470px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.72;
}

.calendar-section__shape--two {
  top: 320px;
  left: -65px;
  width: 130px;
  height: 130px;
  background: var(--coral);
  transform: rotate(18deg);
}

.calendar-section__heading {
  position: relative;
}

.calendar-section__heading h2 {
  font-size: clamp(48px, 6.5vw, 92px);
}

.calendar-section__heading h2 em {
  color: var(--lime);
}

.calendar-legend {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-legend__mark {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid var(--white);
}

.calendar-legend__mark--module {
  background: #e8efff;
}

.calendar-legend__mark--test {
  background: var(--coral);
}

.calendar-groups {
  display: grid;
  gap: clamp(80px, 10vw, 136px);
}

.calendar-group {
  min-width: 0;
}

.calendar-group.module-group--ten > .calendar-group__heading {
  background: #071b4c;
  border-color: var(--lime);
}

.calendar-filters .filter-button.is-active {
  color: var(--blue-deep);
  background: var(--lime);
}

.calendar-group__heading + .calendar-board {
  margin-top: 0;
}

.calendar-board {
  display: grid;
  position: relative;
  gap: 1px;
  padding: 1px;
  color: var(--ink);
  background: var(--blue-deep);
  box-shadow: 16px 16px 0 var(--lime);
}

.calendar-board__head,
.calendar-grade {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.calendar-board__head span {
  display: flex;
  min-height: 64px;
  padding: 14px 16px;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.calendar-period {
  min-width: 0;
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--white);
}

.calendar-period h4 {
  display: none;
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: 20px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.calendar-events {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  list-style: none;
}

.calendar-event {
  padding: 8px 10px;
  border: 1px solid var(--blue-deep);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.calendar-event--module {
  color: var(--blue-deep);
  background: #e8efff;
}

.calendar-event--test {
  color: var(--blue-deep);
  background: var(--coral);
}

.calendar-notice {
  display: grid;
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.6vw, 32px);
  margin-top: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  color: var(--blue-deep);
  background: var(--lime);
  border: 1px solid var(--blue-deep);
}

.calendar-notice__label {
  display: inline-flex;
  min-height: 38px;
  padding: 7px 13px;
  align-items: center;
  gap: 9px;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-notice__label span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--blue-deep);
  background: var(--coral);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
}

.calendar-notice__list {
  display: grid;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.calendar-notice__list li {
  position: relative;
  min-width: 0;
  padding: 2px clamp(18px, 2.1vw, 28px) 2px 22px;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 800;
  line-height: 1.35;
}

.calendar-notice__list li + li {
  border-left: 1px solid rgba(7, 27, 76, 0.35);
}

.calendar-notice__list li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border: 1px solid var(--blue-deep);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

/* ---------- Video ---------- */
.video-section {
  overflow: hidden;
  color: var(--white);
  background: var(--blue-deep);
}

.video-section::before {
  position: absolute;
  top: -240px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: var(--blue);
  border-radius: 50%;
  content: "";
}

.video-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.video-copy h2 {
  font-size: clamp(58px, 7vw, 98px);
}

.video-copy h2 em {
  color: var(--lime);
}

.video-copy > p:not(.eyebrow) {
  max-width: 390px;
  margin: 32px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.video-frame {
  position: relative;
  padding: 18px;
  background: var(--lime);
  box-shadow: 22px 24px 0 var(--blue);
  transform: rotate(1.5deg);
}

.video-frame__inner {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame__label {
  position: absolute;
  z-index: 2;
  top: -23px;
  right: 28px;
  padding: 11px 17px;
  color: var(--white);
  background: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

/* ---------- Carousels ---------- */
.media-section {
  overflow: hidden;
  background: var(--paper);
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.carousel-button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--blue-deep);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.carousel-button:hover {
  color: var(--white);
  background: var(--blue-deep);
  transform: scale(1.06);
}

.carousel-button--light {
  color: var(--white);
}

.carousel-button--light:hover {
  color: var(--blue-deep);
  background: var(--white);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  padding: 2px 0 30px;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 2.35);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  scroll-snap-align: start;
}

.carousel-progress {
  height: 2px;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(16, 20, 28, 0.16);
}

.carousel-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--blue);
  transform: translateX(0);
  transition: transform 0.15s linear;
}

.gallery-slide {
  background: var(--white);
  border: 1px solid var(--blue-deep);
}

.placeholder-art {
  position: relative;
  display: grid;
  min-height: 380px;
  overflow: hidden;
  place-items: center;
}

.placeholder-art::before,
.placeholder-art::after {
  position: absolute;
  content: "";
}

.placeholder-art span {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  font-size: 12px;
  font-weight: 800;
}

.placeholder-art b {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(52px, 6vw, 84px);
  font-style: italic;
  letter-spacing: -0.06em;
}

.placeholder-art i {
  position: absolute;
  z-index: 1;
  width: 220px;
  height: 220px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.placeholder-art--one { color: var(--white); background: var(--blue); }
.placeholder-art--one::before { inset: 0; background: repeating-linear-gradient(45deg, transparent 0 38px, rgba(255,255,255,.13) 39px 40px); }
.placeholder-art--one::after { right: -60px; bottom: -100px; width: 300px; height: 300px; background: var(--lime); border-radius: 50%; }
.placeholder-art--two { color: var(--blue-deep); background: var(--lime); }
.placeholder-art--two::before { width: 0; height: 0; border-right: 180px solid transparent; border-bottom: 290px solid var(--coral); left: 0; bottom: 0; }
.placeholder-art--two::after { width: 190px; height: 190px; border: 32px solid var(--blue); right: 25px; top: 25px; transform: rotate(18deg); }
.placeholder-art--three { color: var(--white); background: var(--coral); }
.placeholder-art--three::before { inset: 35px; border: 2px solid var(--blue-deep); transform: rotate(-7deg); }
.placeholder-art--three::after { top: -30px; left: 30%; width: 170px; height: 440px; background: var(--blue-deep); transform: rotate(28deg); }
.placeholder-art--four { color: var(--white); background: var(--blue-deep); }
.placeholder-art--four::before { width: 280px; height: 280px; border: 50px solid var(--blue); border-radius: 50%; }
.placeholder-art--four::after { top: 0; right: 0; width: 50%; height: 100%; background: repeating-linear-gradient(0deg, transparent 0 30px, rgba(217,255,67,.7) 31px 34px); }
.placeholder-art--five { color: var(--blue-deep); background: var(--white); }
.placeholder-art--five::before { width: 280px; height: 280px; background: var(--lime); transform: rotate(35deg); }
.placeholder-art--five::after { width: 190px; height: 190px; background: var(--blue); border-radius: 50%; transform: translate(100px, -50px); }

.gallery-slide__caption {
  display: flex;
  padding: 20px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gallery-slide__caption strong {
  font-size: 17px;
}

.gallery-slide__caption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Publications ---------- */
.publications {
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.publications::before {
  position: absolute;
  right: -140px;
  bottom: -250px;
  width: 600px;
  height: 600px;
  background: var(--blue-dark);
  border-radius: 50%;
  content: "";
}

.publications .section-heading,
.publications .carousel {
  position: relative;
  z-index: 1;
}

.publications h2 em {
  color: var(--lime);
}

.publications .carousel-track {
  grid-auto-columns: calc((100% - 48px) / 3);
}

.publication-card {
  display: flex;
  min-height: 570px;
  padding: 14px 14px 24px;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
}

.publication-card__image {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  margin-bottom: 22px;
  background: #dcdcd7;
}

.publication-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.publication-card:hover img {
  transform: scale(1.035);
}

.publication-card__image > span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  color: var(--blue-deep);
  background: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-card__meta {
  display: flex;
  padding-inline: 8px;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-card h3 {
  margin: 24px 8px;
  font-size: clamp(22px, 2vw, 29px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.publication-card > a,
.publication-card > button {
  display: flex;
  width: calc(100% - 16px);
  margin: auto 8px 0;
  padding: 15px 0 0;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.carousel-progress--light {
  background: rgba(255,255,255,.22);
}

.carousel-progress--light span {
  background: var(--lime);
}

/* ---------- Modules ---------- */
.modules {
  background: var(--paper);
}

.section.modules--compact {
  padding-top: clamp(36px, 4vw, 56px);
}

.module-filters {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-button {
  display: inline-flex;
  min-height: 58px;
  padding: 10px 22px;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: var(--white);
  border: 2px solid var(--blue-deep);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover {
  background: var(--lime);
  transform: translateY(-2px);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--blue-deep);
}

.module-groups {
  display: grid;
  gap: clamp(80px, 10vw, 136px);
}

.module-group {
  min-width: 0;
}

.module-group__heading {
  display: grid;
  min-height: 178px;
  padding: clamp(24px, 3.2vw, 40px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  border: 1px solid var(--blue-deep);
}

.module-group--eight .module-group__heading {
  color: var(--white);
  background: var(--blue);
}

.module-group--nine .module-group__heading {
  color: var(--blue-deep);
  background: var(--coral);
}

.module-group--ten .module-group__heading {
  color: var(--white);
  background: var(--blue-deep);
}

.module-group__number {
  min-width: 1.25em;
  font-family: var(--font-serif);
  font-size: clamp(60px, 7vw, 96px);
  font-style: italic;
  letter-spacing: -0.08em;
  line-height: 0.8;
  opacity: 0.28;
}

.module-group__kicker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 17px;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  background: var(--lime);
  border: 2px solid var(--blue-deep);
  box-shadow: 5px 5px 0 rgba(7, 27, 76, 0.28);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.1;
  opacity: 1;
  text-transform: uppercase;
}

.module-group__kicker::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--coral);
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
  content: "";
}

.module-group__heading h3 {
  margin: 0;
  font-size: clamp(35px, 4.2vw, 58px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.module-group__heading h3 em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.module-group--eight .module-group__heading h3 em,
.module-group--ten .module-group__heading h3 em {
  color: var(--lime);
}

.module-group--nine .module-group__heading h3 em {
  color: var(--white);
}

.module-group__count {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--blue-deep);
  border-left: 1px solid var(--blue-deep);
}

.module-card {
  display: flex;
  min-height: 390px;
  padding: clamp(24px, 3vw, 34px);
  flex-direction: column;
  border-right: 1px solid var(--blue-deep);
  border-bottom: 1px solid var(--blue-deep);
  transition: opacity 0.25s ease, transform 0.3s ease, filter 0.3s ease;
}

.module-card:hover {
  z-index: 1;
  filter: brightness(1.025);
  transform: translateY(-7px);
}

.module-card--blue { color: var(--white); background: var(--blue); }
.module-card--lime { color: var(--blue-deep); background: var(--lime); }
.module-card--white { color: var(--ink); background: var(--white); }
.module-card--coral { color: var(--blue-deep); background: var(--coral); }
.module-card--dark { color: var(--white); background: var(--blue-deep); }

.module-card__top {
  display: flex;
  margin-bottom: 34px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.module-card__labels {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.module-type {
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.module-format {
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  background: color-mix(in srgb, currentColor 9%, transparent);
  border: 1px solid currentColor;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.module-symbol {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 0.8;
}

.module-card h3 {
  margin-bottom: 14px;
  font-size: clamp(23px, 2.15vw, 31px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.module-card__admission {
  padding: 11px 13px;
  margin: 2px 0 24px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border-left: 3px solid currentColor;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.module-card__note {
  margin: -2px 0 20px;
  color: inherit;
  font-size: 13px;
  opacity: 0.72;
}

.module-meta {
  display: grid;
  margin: auto 0 28px;
  padding-top: 24px;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 1px solid currentColor;
}

/* Class information is kept in the markup for a quick return later. */
.module-meta > div:first-child {
  display: none;
}

.module-meta > div:nth-child(n + 3) {
  display: flex;
  padding: 12px 14px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid currentColor;
}

.module-meta > div:nth-child(n + 3) dt,
.module-meta > div:nth-child(n + 3) dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  opacity: 1;
  text-transform: none;
}

.module-meta > div:nth-child(n + 3) dt::after {
  content: ":";
}

.module-meta dt {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.65;
  text-transform: uppercase;
}

.module-meta dd {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
}

.module-audience {
  display: grid;
  gap: 5px;
  line-height: 1.25;
}

.module-audience span {
  display: block;
}

.module-card__action {
  display: flex;
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.module-card--blue .module-card__action,
.module-card--dark .module-card__action {
  color: var(--blue-deep);
  background: var(--lime);
  border-color: var(--lime);
}

.module-card__action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(7, 27, 76, 0.2);
}

.module-card__action:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.module-card__action span {
  flex: 0 0 auto;
  font-size: 19px;
  transition: transform 0.25s ease;
}

.module-card__action:hover span {
  transform: translateX(4px);
}

/* ---------- Diagnostic testing schedule ---------- */
.diagnostics {
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--blue-deep);
}

.diagnostics__shape {
  position: absolute;
  pointer-events: none;
}

.diagnostics__shape--one {
  top: 110px;
  right: -180px;
  width: 420px;
  height: 420px;
  background: var(--lime);
  border-radius: 50%;
  opacity: 0.65;
}

.diagnostics__shape--two {
  top: 340px;
  right: 60px;
  width: 120px;
  height: 120px;
  background: var(--coral);
  transform: rotate(18deg);
}

.diagnostics .container {
  position: relative;
  z-index: 1;
}

#diagnostics,
#schedule,
#modules,
#packages {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.diagnostics__heading h2 {
  font-size: clamp(50px, 6.2vw, 88px);
}

.diagnostics__heading h2 em {
  color: var(--blue);
}

.diagnostics__notice {
  display: grid;
  min-height: clamp(180px, 22vw, 270px);
  padding: clamp(28px, 5vw, 64px);
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  box-shadow: 14px 14px 0 var(--lime);
}

.diagnostics__notice > span {
  display: grid;
  width: clamp(58px, 7vw, 88px);
  height: clamp(58px, 7vw, 88px);
  place-items: center;
  color: var(--blue-deep);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.diagnostics__notice p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.diagnostics__groups {
  display: grid;
  gap: clamp(96px, 10vw, 150px);
}

.diagnostics-grade {
  min-width: 0;
}

.diagnostics__context {
  display: grid;
  min-height: 160px;
  padding: clamp(24px, 3vw, 38px);
  margin-bottom: clamp(26px, 3vw, 42px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
}

.diagnostics__context-number {
  font-family: var(--font-serif);
  font-size: clamp(72px, 8vw, 108px);
  font-style: italic;
  letter-spacing: -0.08em;
  line-height: 0.7;
  color: var(--lime);
}

.diagnostics__context > div {
  display: grid;
  gap: 4px;
}

.diagnostics__context > div span,
.diagnostics__context > p {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.diagnostics__context > div span {
  color: var(--lime);
}

.diagnostics__context > div strong {
  font-size: clamp(25px, 3vw, 39px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.diagnostics__context > p {
  max-width: 230px;
  margin-bottom: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  text-align: center;
}

.schedule-list {
  display: grid;
  gap: 16px;
}

.schedule-card {
  min-width: 0;
  color: var(--blue-deep);
  background: var(--paper);
  border: 1px solid var(--blue-deep);
  box-shadow: 8px 8px 0 rgba(7, 27, 76, 0.1);
}

.schedule-card summary {
  display: grid;
  min-height: 124px;
  padding: clamp(22px, 2.7vw, 32px) clamp(24px, 3.4vw, 42px);
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.schedule-card summary::-webkit-details-marker {
  display: none;
}

.schedule-card summary:hover {
  color: var(--white);
  background: var(--blue);
}

.schedule-card summary:focus-visible {
  position: relative;
  z-index: 2;
  outline-offset: -5px;
}

.schedule-card__summary-content {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
}

.schedule-card__period {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.schedule-card__period em {
  color: var(--blue);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.schedule-card__cta {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.schedule-card summary:hover .schedule-card__period em,
.schedule-card summary:hover .schedule-card__cta,
.schedule-card[open] .schedule-card__period em,
.schedule-card[open] .schedule-card__cta {
  color: var(--lime);
}

.schedule-card__toggle {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  color: var(--blue-deep);
  background: var(--lime);
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.schedule-card__toggle::before,
.schedule-card__toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.schedule-card__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.schedule-card[open] > summary {
  color: var(--white);
  background: var(--blue);
  border-bottom: 1px solid var(--blue-deep);
}

.schedule-card[open] > summary:hover {
  background: var(--blue);
}

.schedule-card[open] .schedule-card__toggle {
  background: var(--lime);
  transform: rotate(180deg);
}

.schedule-card[open] .schedule-card__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.schedule-card__body {
  padding: 0 clamp(22px, 3vw, 34px) clamp(26px, 3vw, 38px);
  background: var(--white);
}

.schedule-card__body-heading {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.schedule-card__body-heading p {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-card__body-heading span {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.58;
}

.schedule-tests {
  display: grid;
  border-top: 1px solid var(--blue-deep);
}

.schedule-test {
  display: grid;
  padding: 28px 0;
  grid-template-columns: 38px minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 2.5vw, 34px);
  align-items: start;
  border-bottom: 1px solid rgba(7, 27, 76, 0.28);
}

.schedule-test:last-child {
  border-bottom: 0;
}

.schedule-test__index {
  padding-top: 2px;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
  line-height: 1;
}

.schedule-test__part {
  display: inline-flex;
  min-height: 30px;
  padding: 0 11px;
  margin-bottom: 14px;
  align-items: center;
  color: var(--blue-deep);
  background: var(--lime);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.schedule-test__main h4 {
  margin: 0 0 8px;
  font-size: clamp(23px, 2.1vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.schedule-test__main p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.schedule-test__facts {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: 1.25fr 0.75fr 0.9fr 1.1fr;
}

.schedule-test__facts > div {
  min-width: 0;
  min-height: 76px;
  padding: 4px 14px;
  border-left: 1px solid rgba(7, 27, 76, 0.3);
}

.schedule-test__facts dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.schedule-test__facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.schedule-test__facts dd small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.schedule-test__status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  align-items: center;
  color: var(--blue-deep);
  background: var(--coral);
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.diagnostics__footer {
  display: flex;
  padding: 28px 0 0;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.diagnostics__footer p {
  display: flex;
  max-width: 580px;
  margin-bottom: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.diagnostics__footer p span {
  color: var(--coral);
  font-size: 20px;
  line-height: 1;
}

.diagnostics__notes {
  display: grid;
  max-width: 690px;
  gap: 10px;
}

.diagnostics__notes p {
  max-width: none;
}

.diagnostics__footer a {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 16px;
  align-items: center;
  gap: 18px;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.diagnostics__footer a:hover {
  color: var(--blue-deep);
  background: var(--lime);
  transform: translateY(-2px);
}

/* ---------- Packages ---------- */
.packages {
  overflow: hidden;
  background: var(--paper);
}

.packages::before {
  position: absolute;
  top: 80px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--lime);
  border-radius: 50%;
  content: "";
}

.packages-heading {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.packages-heading > p:last-child {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.packages-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.package-card {
  position: relative;
  display: flex;
  min-height: 590px;
  padding: clamp(27px, 3vw, 38px);
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--blue-deep);
  border-right: 0;
}

.package-card > .button {
  margin-top: auto;
}

.package-card:last-child {
  border-right: 1px solid var(--blue-deep);
}

.package-card--featured {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-22px);
  box-shadow: var(--shadow);
}

.package-card--maximum {
  color: var(--white);
  background: var(--blue-deep);
}

.package-ribbon {
  position: absolute;
  top: -34px;
  right: 0;
  left: 0;
  min-height: 34px;
  padding: 8px 16px;
  color: var(--blue-deep);
  background: var(--lime);
  border: 1px solid var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.package-card__head {
  padding-bottom: 30px;
  border-bottom: 1px solid currentColor;
}

.package-card__tag {
  display: inline-flex;
  min-height: 28px;
  padding: 0 12px;
  align-items: center;
  color: var(--blue);
  border: 1px solid currentColor;
  border-radius: 30px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-card--featured .package-card__tag { color: var(--lime); }
.package-card--maximum .package-card__tag { color: var(--coral); }

.package-card h3 {
  margin: 28px 0 8px;
  font-size: clamp(36px, 3.8vw, 54px);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.package-card__head p {
  margin-bottom: 0;
  font-size: 13px;
  opacity: 0.68;
}

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

.package-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.3;
}

.package-list li > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.package-card--featured .package-list li > span {
  color: var(--blue-deep);
  background: var(--lime);
}

.package-card--maximum .package-list li > span {
  color: var(--blue-deep);
  background: var(--coral);
}

.package-choice {
  margin: -14px 0 25px 34px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.72;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  min-height: 680px;
  padding: clamp(90px, 10vw, 150px) 0 110px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.final-cta::before {
  position: absolute;
  z-index: 1;
  top: -100px;
  right: 8%;
  width: 420px;
  height: 420px;
  background: var(--blue-deep);
  border-radius: 50%;
  content: "";
}

.final-cta__inner {
  position: relative;
  z-index: 3;
}

.final-cta h2 {
  font-size: clamp(66px, 8.5vw, 124px);
}

.final-cta h2 em {
  color: var(--lime);
}

.final-cta__inner > p:not(.eyebrow) {
  max-width: 550px;
  margin: 35px 0;
  color: rgba(255,255,255,.78);
  font-size: 20px;
}

.final-cta__word {
  position: absolute;
  z-index: 2;
  right: -38px;
  bottom: -84px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.28);
  font-size: clamp(170px, 27vw, 410px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.75;
  transform: rotate(-5deg);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 78px 0 30px;
  color: var(--white);
  background: var(--blue-deep);
}

.footer-top {
  display: flex;
  padding-bottom: 56px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.brand--footer .brand-mark {
  color: var(--blue);
  background: var(--white);
}

.footer-title {
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-align: left;
}

.footer-title em {
  color: var(--lime);
}

.contacts-grid {
  display: grid;
  padding: 54px 0 72px;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.45fr);
  gap: clamp(40px, 7vw, 100px);
}

.contact-block h2 {
  margin-bottom: 23px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-block a {
  display: block;
  width: fit-content;
  margin-bottom: 22px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-block a:hover {
  color: var(--lime);
  border-color: currentColor;
}

.contact-block small {
  display: block;
  margin-top: 5px;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.35;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  padding-top: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-legal button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

.footer-legal button:hover {
  color: var(--white);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(430px, calc(100% - 48px));
  min-height: 70px;
  padding: 14px 50px 14px 14px;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: center;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(25px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue-deep);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
}

.toast button {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
}

/* ---------- Reveal motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.75,.25,1);
}

.js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.12s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.22s; }

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

/* Direct links to deep sections must never wait for an observer callback. */
.js section:target [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1101px) {
  .module-group--ten .module-card:last-child {
    grid-column: 2 / 3;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root {
    --header-height: 74px;
  }

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
    gap: 28px;
  }

  .floating-card {
    width: 125px;
    height: 125px;
    padding: 18px;
  }

  .floating-card strong {
    font-size: 39px;
  }

  .route-card {
    left: 0;
  }

  .section-heading--split {
    gap: 60px;
  }

  .about-manifesto {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 24px) / 1.7);
  }

  .publications .carousel-track {
    grid-auto-columns: calc((100% - 24px) / 2.15);
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-card summary {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .schedule-card__toggle {
    grid-row: 1;
    grid-column: 2;
  }

  .schedule-test {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .schedule-test__facts {
    grid-column: 2;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .packages-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .package-card,
  .package-card:last-child {
    border: 1px solid var(--blue-deep);
  }

  .package-card--featured {
    transform: none;
  }

  .package-card--maximum {
    grid-column: 1 / -1;
    min-height: 550px;
  }

  .package-ribbon {
    position: static;
    margin: calc(clamp(27px, 3vw, 38px) * -1) calc(clamp(27px, 3vw, 38px) * -1) 26px;
    border: 0;
    border-bottom: 1px solid var(--blue-deep);
  }
}

/* ---------- Small desktop / mobile navigation ---------- */
@media (max-width: 1170px) {
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    padding: 110px 24px 50px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    color: var(--white);
    background: var(--blue-deep);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity .25s ease, transform .25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav button {
    font-size: clamp(30px, 7vw, 52px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
  }

  .site-nav .header-cta {
    min-height: auto;
    padding: 9px 0;
    justify-content: flex-start;
    color: var(--white);
    background: transparent;
    font-size: clamp(30px, 7vw, 52px);
  }

  .site-header:has(.site-nav.is-open) {
    color: var(--white);
    background: var(--blue-deep);
    border-bottom-color: rgba(255,255,255,.15);
  }

  .site-header:has(.site-nav.is-open) .brand-mark {
    color: var(--blue);
    background: var(--white);
  }
}

/* ---------- Small tablet / mobile layout ---------- */
@media (max-width: 1100px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 130px;
    padding-bottom: 120px;
    grid-template-columns: 1fr;
  }

  .hero-content {
    position: relative;
    z-index: 5;
  }

  .hero h1 {
    font-size: clamp(50px, 10vw, 76px);
  }

  .hero-board {
    min-height: 430px;
    margin-top: 18px;
  }

  .route-card {
    right: 7%;
    left: 7%;
  }

  .floating-card--grade {
    left: 0;
  }

  .floating-card--modules {
    right: 0;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-links {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .calendar-section__shape--two {
    display: none;
  }

  .calendar-board {
    gap: 12px;
    padding: 0;
    background: transparent;
    box-shadow: 12px 12px 0 var(--lime);
  }

  .calendar-board__head {
    display: none;
  }

  .calendar-grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--blue-deep);
  }

  .calendar-period h4 {
    display: block;
  }

  .calendar-notice__list {
    grid-template-columns: 1fr;
  }

  .calendar-notice__list li {
    padding-block: 12px;
  }

  .calendar-notice__list li + li {
    border-top: 1px solid rgba(7, 27, 76, 0.35);
    border-left: 0;
  }

  .link-card {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--blue-deep);
  }

  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-copy > p:not(.eyebrow) {
    max-width: 560px;
  }

  .carousel-track,
  .publications .carousel-track {
    grid-auto-columns: 74vw;
  }

  .diagnostics__shape--one {
    right: -250px;
  }

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

  .diagnostics__context > p {
    grid-column: 2;
    max-width: none;
    justify-self: start;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-column: auto;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Phones ---------- */
@media (max-width: 620px) {
  :root {
    --radius: 14px;
  }

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

  .section {
    padding: 84px 0;
  }

  h2 {
    font-size: clamp(48px, 15.5vw, 74px);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-logos {
    gap: 8px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .hero-inner {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 58px);
  }

  .hero-lead {
    margin-block: 27px 30px;
    font-size: 17px;
  }

  .diagnostics__notice {
    min-height: 230px;
    grid-template-columns: 1fr;
    box-shadow: 8px 8px 0 var(--lime);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-board {
    min-height: 360px;
  }

  .route-card {
    top: 30px;
    right: 2%;
    left: 2%;
    min-height: 278px;
    padding: 24px 20px;
    box-shadow: 12px 14px 0 rgba(7,27,76,.35);
  }

  .route-card__top {
    font-size: 8px;
  }

  .route-card__title {
    margin: 27px 0 34px;
    font-size: 26px;
  }

  .route-labels {
    font-size: 7px;
  }

  .floating-card {
    width: 102px;
    height: 102px;
    padding: 14px;
    box-shadow: 7px 8px 0 rgba(7,27,76,.3);
  }

  .floating-card strong {
    font-size: 32px;
  }

  .floating-card span {
    font-size: 9px;
  }

  .floating-card--grade {
    top: 0;
    left: -2%;
  }

  .floating-card--modules {
    right: -2%;
    bottom: 2px;
  }

  .hero-sticker {
    bottom: 0;
    left: 4%;
    width: 76px;
    height: 76px;
    font-size: 14px;
  }

  .section-heading--controls {
    align-items: flex-end;
  }

  .carousel-button {
    width: 48px;
    height: 48px;
  }

  .about-links {
    margin-bottom: 76px;
  }

  .calendar-section__heading h2 {
    font-size: clamp(39px, 11.5vw, 58px);
  }

  .calendar-board {
    box-shadow: 8px 8px 0 var(--lime);
  }

  .calendar-grade {
    grid-template-columns: 1fr;
  }

  .calendar-period {
    padding: 18px;
  }

  .calendar-event {
    padding: 9px 11px;
    font-size: 12px;
  }

  .calendar-notice {
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calendar-notice__label {
    width: fit-content;
  }

  .calendar-notice__list li {
    padding-right: 0;
    font-size: 13px;
  }

  .manifesto-shape {
    padding: 12px;
  }

  .manifesto-shape span {
    min-height: 100px;
    font-size: 32px;
  }

  .manifesto-copy {
    display: block;
  }

  .manifesto-kicker {
    font-size: 25px;
  }

  .video-frame {
    padding: 9px;
    box-shadow: 11px 12px 0 var(--blue);
  }

  .carousel-track,
  .publications .carousel-track {
    grid-auto-columns: 86vw;
    gap: 14px;
  }

  .placeholder-art {
    min-height: 310px;
  }

  .gallery-slide__caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .publication-card {
    min-height: 520px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .diagnostics__heading h2 {
    font-size: clamp(30px, 8.6vw, 43px);
    letter-spacing: -0.065em;
  }

  .diagnostics__shape--one {
    top: 170px;
    right: -170px;
    width: 270px;
    height: 270px;
  }

  .diagnostics__shape--two {
    display: none;
  }

  .diagnostics__context {
    min-height: 0;
    padding: 22px 18px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 17px;
  }

  .diagnostics__context-number {
    font-size: 66px;
  }

  .diagnostics__context > div strong {
    font-size: 22px;
  }

  .diagnostics__context > p {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

  .schedule-list {
    gap: 13px;
  }

  .schedule-card {
    box-shadow: 5px 5px 0 rgba(7, 27, 76, 0.1);
  }

  .schedule-card summary {
    min-height: 0;
    padding: 20px 16px;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 20px 12px;
  }

  .schedule-card__summary-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .schedule-card__period {
    font-size: clamp(27px, 8vw, 36px);
  }

  .schedule-card__cta {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .schedule-card__toggle {
    width: 44px;
    height: 44px;
    grid-row: 1;
    grid-column: 2;
  }

  .schedule-card__body {
    padding: 0 16px 20px;
  }

  .schedule-card__body-heading {
    min-height: 0;
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .schedule-card__body-heading span {
    font-size: 13px;
  }

  .schedule-test {
    padding: 22px 0;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 14px;
  }

  .schedule-test__index {
    font-size: 20px;
  }

  .schedule-test__part {
    min-height: 24px;
    padding: 0 8px;
    margin-bottom: 12px;
    font-size: 9px;
  }

  .schedule-test__main h4 {
    font-size: 22px;
  }

  .schedule-test__facts {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }

  .schedule-test__facts > div {
    min-height: 68px;
    padding: 2px 10px;
  }

  .schedule-test__facts > div:nth-child(odd) {
    border-left: 0;
  }

  .diagnostics__footer {
    padding-top: 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .diagnostics__footer a {
    width: 100%;
    justify-content: space-between;
  }

  .module-filters {
    margin-top: 26px;
    gap: 8px;
  }

  .filter-button {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .module-groups,
  .calendar-groups {
    gap: 72px;
  }

  .module-group__heading {
    min-height: 0;
    padding: 24px 20px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
  }

  .module-group__kicker {
    min-height: 40px;
    padding: 8px 12px;
    margin-bottom: 16px;
    gap: 8px;
    box-shadow: 4px 4px 0 rgba(7, 27, 76, 0.28);
    font-size: clamp(12px, 3.6vw, 15px);
    letter-spacing: 0.025em;
  }

  .module-group__kicker::before {
    width: 8px;
    height: 8px;
  }

  .module-group__number {
    font-size: 52px;
  }

  .module-group__heading h3 {
    font-size: clamp(30px, 8.5vw, 42px);
  }

  .module-group__count {
    grid-column: 2;
    width: fit-content;
  }

  .module-card {
    min-height: 390px;
    padding: 24px 20px;
  }

  .module-card__top {
    margin-bottom: 30px;
    gap: 16px;
  }

  .module-card__labels {
    gap: 6px;
  }

  .module-format {
    min-height: 26px;
    padding-inline: 9px;
    font-size: 9px;
  }

  .module-card__admission {
    padding: 10px 11px;
    margin-bottom: 22px;
    font-size: 12px;
  }

  .packages::before {
    top: 120px;
    right: -130px;
    width: 240px;
    height: 240px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .package-card--maximum {
    grid-column: auto;
  }

  .package-card {
    min-height: 590px;
  }

  .final-cta {
    min-height: 670px;
  }

  .final-cta h2 {
    font-size: clamp(59px, 16vw, 80px);
  }

  .final-cta__inner > p:not(.eyebrow) {
    font-size: 17px;
  }

  .final-cta .button {
    width: 100%;
  }

  .final-cta::before {
    top: -50px;
    right: -190px;
    width: 360px;
    height: 360px;
  }

  .site-footer {
    padding-top: 60px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-title {
    text-align: left;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    justify-content: flex-start;
    gap: 12px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* ---------- Motion and contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .eyebrow span,
  .route-progress,
  .carousel-progress span {
    background: CanvasText;
  }
}
