/* =========================================================
   SmartAPI — Akademia Nauk Stosowanych
   Swiss Modernism 2.0 / editorial grid
   ========================================================= */

:root {
  --navy-950: #081524;
  --navy-900: #0b1b2e;
  --navy-800: #12263f;
  --navy: #1e3a5f;
  --navy-600: #2e4e75;
  --gold: #a16207;
  --gold-400: #c9912f;
  --gold-soft: #d8b26a;
  --ivory: #f7f5ef;
  --paper: #ffffff;
  --sand: #efeae0;
  --ink: #14213a;
  --muted: #5b6577;
  --line: rgba(20, 33, 58, 0.16);
  --line-light: rgba(247, 245, 239, 0.18);
  --font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --container: min(1240px, calc(100% - 96px));
  --header-height: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
h4 {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: var(--gold);
  color: var(--paper);
}

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

[hidden] {
  display: none !important;
}

.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;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--navy-900);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ---------- Utility bar ---------- */

.utility-bar {
  background: var(--navy-950);
  color: rgba(247, 245, 239, 0.72);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 24px;
}

.utility-bar__left,
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.utility-bar__item--place {
  color: rgba(247, 245, 239, 0.9);
}

.utility-bar__divider {
  width: 1px;
  height: 12px;
  background: rgba(247, 245, 239, 0.22);
}

.utility-bar a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.utility-bar a:hover {
  color: var(--gold-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.985);
  box-shadow: 0 10px 30px rgba(8, 21, 36, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--navy-900);
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.brand__sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 9px 0;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(20, 33, 58, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-switch button {
  padding: 4px 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--navy-900);
  border-bottom-color: var(--gold);
}

.lang-switch button:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--navy-900);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 23px;
}

body.nav-open .menu-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn__arrow {
  font-size: 17px;
  line-height: 0.7;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}

.btn--gold:hover {
  background: #865006;
  border-color: #865006;
}

.btn--sm {
  padding: 11px 17px;
  font-size: 10.5px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  min-height: calc(100vh - var(--header-height) - 38px);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vh, 108px) clamp(36px, 5vw, 74px) clamp(54px, 7vh, 84px)
    max(48px, calc((100vw - 1240px) / 2));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow__rule {
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 28px;
  color: var(--navy-900);
  font-size: clamp(54px, 6.3vw, 92px);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 47ch;
  margin-bottom: 36px;
  color: #46536a;
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(46px, 7vh, 68px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.hero-fact:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-fact__value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 600;
  line-height: 1;
}

.hero-fact__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--navy-800);
}

.hero__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 21, 36, 0.02) 45%,
    rgba(8, 21, 36, 0.68) 100%
  );
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  background: rgba(247, 245, 239, 0.93);
  border-left: 3px solid var(--gold);
  backdrop-filter: blur(6px);
}

.hero__badge-year {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.hero__badge-text {
  max-width: 72px;
  color: var(--navy-800);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__caption {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  color: rgba(247, 245, 239, 0.78);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--navy-900);
  color: var(--ivory);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 27px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 28px;
  border-left: 1px solid rgba(247, 245, 239, 0.17);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat__value {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.stat__label {
  color: rgba(247, 245, 239, 0.65);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Shared sections ---------- */

.section {
  padding-block: clamp(82px, 9.5vw, 138px);
}

.section--white {
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head--row {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  max-width: 15ch;
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.01;
}

.section-intro {
  max-width: 47ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-head--row .section-intro {
  justify-self: end;
}

.section-head--light .section-title {
  color: var(--ivory);
}

.section-head--light .section-intro {
  color: rgba(247, 245, 239, 0.67);
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
}

.about__body {
  max-width: 65ch;
}

.about__lead {
  margin-bottom: 22px;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.38;
}

.about__body > p:not(.about__lead) {
  margin-bottom: 1.3em;
  color: var(--muted);
  font-size: 16.5px;
}

.feature-list {
  margin: 34px 0 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list__num {
  padding-top: 3px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.feature-list h3 {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--navy-800);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}

.text-link:hover {
  gap: 13px;
  color: var(--gold);
}

.about__media {
  position: relative;
  margin: 10px 0 0;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  outline: 1px solid var(--gold);
  outline-offset: 10px;
  filter: saturate(0.9) contrast(1.02);
}

.about__media figcaption {
  margin-top: 22px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Programmes ---------- */

.programmes__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.filter__btn {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter__btn:hover {
  color: var(--navy-900);
}

.filter__btn.is-active {
  color: var(--navy-900);
  border-bottom-color: var(--gold);
}

.programme-list {
  border-top: 1px solid var(--line);
}

.programme-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1.55fr) minmax(390px, 1fr) 82px;
  grid-template-areas: "index main meta link";
  gap: 30px;
  align-items: center;
  margin-inline: -20px;
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.programme-row:hover {
  background: var(--navy);
}

.programme-row__index {
  grid-area: index;
  align-self: start;
  padding-top: 7px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.programme-row__main {
  grid-area: main;
}

.programme-row__main h3 {
  margin: 0 0 7px;
  color: var(--navy-900);
  font-size: clamp(25px, 2.2vw, 31px);
  line-height: 1.08;
  transition: color 0.35s var(--ease);
}

.programme-row__main p {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  transition: color 0.35s var(--ease);
}

.programme-row__meta {
  display: grid;
  grid-area: meta;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.programme-row__meta dt {
  margin-bottom: 2px;
  color: #7b8493;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.programme-row__meta dd {
  margin: 0;
  color: var(--navy-800);
  font-size: 13.5px;
  line-height: 1.35;
  transition: color 0.35s var(--ease);
}

.programme-row__link {
  display: inline-flex;
  grid-area: link;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.35s var(--ease), gap 0.25s var(--ease);
}

.programme-row__link:hover {
  gap: 10px;
}

.programme-row:hover .programme-row__main h3,
.programme-row:hover .programme-row__meta dd {
  color: var(--paper);
}

.programme-row:hover .programme-row__main p,
.programme-row:hover .programme-row__meta dt {
  color: rgba(247, 245, 239, 0.63);
}

.programme-row:hover .programme-row__link {
  color: var(--gold-soft);
}

/* ---------- Admissions ---------- */

.admissions {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(161, 98, 7, 0.2), transparent 34%),
    var(--navy-900);
  color: var(--ivory);
}

.admissions::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(216, 178, 106, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.admissions .kicker {
  color: var(--gold-soft);
}

.admissions .kicker::before {
  background: var(--gold-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.step {
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line-light);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step__num {
  display: block;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(44px, 4vw, 58px);
  font-weight: 400;
  line-height: 0.9;
}

.step h3 {
  margin-bottom: 8px;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1.12;
}

.step p {
  margin: 0;
  color: rgba(247, 245, 239, 0.62);
  font-size: 14.5px;
  line-height: 1.55;
}

.admissions__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 36px;
  border-top: 1px solid var(--line-light);
}

.deadlines h3 {
  margin: 0 0 18px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.deadline {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--gold);
}

.deadline + .deadline {
  margin-top: 10px;
}

.deadline__round {
  min-width: 58px;
  color: rgba(247, 245, 239, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deadline__dates {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.15;
}

.admissions__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  text-align: right;
}

.admissions__cta p {
  margin: 0;
  color: rgba(247, 245, 239, 0.58);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- Research ---------- */

.research {
  background: var(--ivory);
}

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

.research-card {
  display: flex;
  flex-direction: column;
  min-height: 338px;
  padding: 30px;
  background: var(--paper);
  border-top: 3px solid var(--navy);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.research-card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 18px 45px rgba(8, 21, 36, 0.08);
  transform: translateY(-6px);
}

.research-card__label {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.research-card h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.03;
}

.research-card > p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.research-card__stat {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.research-card__stat strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 0.9;
}

.research-card__stat span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Campus ---------- */

.campus__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.campus-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--navy-800);
}

.campus-card--wide {
  grid-row: 1 / span 2;
}

.campus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.campus-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.campus-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 48px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(8, 21, 36, 0.78));
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.campus-card__meta {
  color: rgba(247, 245, 239, 0.67);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campus__services {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.campus__services h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.campus__services ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campus__services li {
  position: relative;
  padding: 0 18px 0 20px;
  border-left: 1px solid var(--line);
  color: var(--navy-800);
  font-size: 14px;
  line-height: 1.45;
}

.campus__services li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.campus__link {
  margin-top: 30px;
}

/* ---------- News ---------- */

.news {
  background: var(--ivory);
}

.news__all {
  justify-self: end;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.news-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--sand);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag {
  padding: 2px 7px;
  border: 1px solid rgba(161, 98, 7, 0.45);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.12;
}

.news-card h3 a {
  color: var(--navy-900);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.news-card h3 a:hover {
  color: var(--gold);
}

.news-card > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 0.25s var(--ease);
}

.news-card__more:hover {
  gap: 11px;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(82px, 9vw, 122px);
  background:
    radial-gradient(circle at 78% 20%, rgba(161, 98, 7, 0.24), transparent 36%),
    var(--navy);
  color: var(--ivory);
}

.cta::before {
  content: "S";
  position: absolute;
  top: -120px;
  right: 4vw;
  color: transparent;
  font-family: var(--font-display);
  font-size: 560px;
  font-weight: 600;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(247, 245, 239, 0.08);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}

.cta .kicker {
  justify-content: center;
  color: var(--gold-soft);
}

.cta .kicker::before {
  background: var(--gold-soft);
}

.cta h2 {
  max-width: 14ch;
  margin: 0 auto 20px;
  color: var(--ivory);
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 0.98;
}

.cta__inner > p:not(.kicker):not(.cta__contacts) {
  max-width: 55ch;
  margin: 0 auto 32px;
  color: rgba(247, 245, 239, 0.7);
  font-size: 16.5px;
}

.cta__contacts {
  margin: 26px 0 0;
  color: rgba(247, 245, 239, 0.66);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.cta__contacts a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 178, 106, 0.5);
  transition: color 0.2s var(--ease);
}

.cta__contacts a:hover {
  color: var(--gold-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 70px 0 26px;
  background: var(--navy-950);
  color: rgba(247, 245, 239, 0.68);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.35fr;
  gap: clamp(36px, 5vw, 70px);
}

.brand--footer {
  color: var(--ivory);
}

.brand--footer .brand__sub {
  color: rgba(247, 245, 239, 0.45);
}

.footer__address {
  margin-top: 26px;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer__address span:first-child {
  color: rgba(247, 245, 239, 0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col h3 {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li + li {
  margin-top: 9px;
}

.footer__col a {
  color: rgba(247, 245, 239, 0.68);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--gold-soft);
}

.footer__newsletter p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
}

.newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.newsletter input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.newsletter input::placeholder {
  color: rgba(247, 245, 239, 0.38);
}

.newsletter input:focus {
  border-bottom-color: var(--gold-soft);
}

.form-message {
  margin: 10px 0 0;
  color: var(--gold-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 245, 239, 0.12);
  color: rgba(247, 245, 239, 0.38);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__legal a:hover {
  color: var(--gold-soft);
}

/* ---------- Dialog ---------- */

.dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.dialog::backdrop {
  background: rgba(8, 21, 36, 0.68);
  backdrop-filter: blur(4px);
}

.dialog__panel {
  position: relative;
  max-height: calc(100vh - 40px);
  padding: 38px 40px 34px;
  background: var(--ivory);
  border-top: 4px solid var(--gold);
  overflow-y: auto;
}

.dialog[open] .dialog__panel {
  animation: dialog-in 0.28s var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialog__close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.dialog__close:hover {
  color: var(--navy-900);
}

.dialog .kicker {
  margin-bottom: 12px;
}

.dialog__panel h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 42px);
}

.dialog__intro {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.dialog__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-800);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.dialog__submit {
  margin-top: 4px;
}

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .primary-nav ul {
    gap: 19px;
  }

  .programme-row {
    grid-template-columns: 48px minmax(0, 1.5fr) minmax(330px, 1fr) 72px;
    gap: 22px;
  }

  .campus__services {
    grid-template-columns: 170px minmax(0, 1fr);
  }
}

@media (max-width: 1160px) {
  :root {
    --container: calc(100% - 56px);
  }

  .utility-bar__right {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px 28px 26px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(8, 21, 36, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
  }

  .primary-nav a::after {
    display: none;
  }

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

  .menu-toggle {
    display: block;
  }

  .site-header__actions > .btn {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__content {
    padding: 64px 28px 54px;
  }

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

  .hero__visual {
    min-height: 440px;
  }

  .section-head,
  .section-head--row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head--row .section-intro {
    justify-self: start;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about__media {
    max-width: 680px;
  }

  .programme-row {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
      "index main"
      "index meta"
      ". link";
    row-gap: 20px;
    padding: 26px 0;
  }

  .programme-row__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .programme-row__link {
    justify-content: flex-start;
  }

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

  .step {
    padding: 26px 24px 26px 0;
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(n + 3) {
    border-top: 1px solid var(--line-light);
  }

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

  .research-card:last-child {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .campus__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .campus-card--wide {
    grid-row: auto;
  }

  .campus-card {
    min-height: 280px;
  }

  .campus__services {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .campus__services ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .news__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .news-card {
    max-width: 660px;
  }

  .news__all {
    justify-self: start;
  }

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

@media (max-width: 720px) {
  :root {
    --container: calc(100% - 40px);
    --header-height: 72px;
  }

  body {
    font-size: 16px;
  }

  .utility-bar {
    display: none;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand__name {
    font-size: 16px;
  }

  .brand__sub {
    font-size: 7px;
  }

  .site-header__inner {
    min-height: var(--header-height);
  }

  .lang-switch {
    margin-right: 2px;
  }

  .eyebrow {
    gap: 9px;
    margin-bottom: 22px;
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .eyebrow__rule {
    width: 26px;
  }

  .hero__content {
    padding: 48px 20px 46px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.4vw, 62px);
  }

  .hero__lead {
    font-size: 16.5px;
  }

  .hero__facts {
    flex-direction: column;
    gap: 14px;
    margin-top: 38px;
  }

  .hero-fact {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: baseline;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .hero-fact__value {
    font-size: 27px;
  }

  .hero__visual {
    min-height: 350px;
  }

  .hero__badge {
    top: 18px;
    left: 18px;
  }

  .hero__caption {
    right: 18px;
    bottom: 16px;
    left: 18px;
    font-size: 9px;
  }

  .hero__caption span:last-child {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
    padding-block: 24px;
  }

  .stat {
    padding-left: 18px;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .section {
    padding-block: 72px;
  }

  .section-title {
    font-size: clamp(36px, 10.6vw, 48px);
  }

  .section-intro {
    font-size: 15px;
  }

  .kicker {
    margin-bottom: 14px;
  }

  .feature-list li {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }

  .about__media img {
    outline-offset: 6px;
  }

  .filter {
    gap: 16px;
  }

  .programme-row {
    margin-inline: 0;
    padding-inline: 0;
  }

  .programme-row__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .programme-row__main h3 {
    font-size: 25px;
  }

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

  .step {
    padding: 24px 0;
    border-right: 0;
    border-top: 1px solid var(--line-light);
  }

  .step:first-child {
    border-top: 0;
  }

  .admissions__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .admissions__cta {
    align-items: flex-start;
    text-align: left;
  }

  .deadline {
    flex-direction: column;
    gap: 3px;
  }

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

  .research-card:last-child {
    grid-column: auto;
  }

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

  .campus__services li {
    padding-left: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .dialog__panel {
    padding: 30px 22px 26px;
  }

  .cta h2 {
    font-size: clamp(40px, 12vw, 56px);
  }
}

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

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .site-header__actions {
    gap: 10px;
  }

  .lang-switch {
    gap: 3px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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