:root {
  --navy-950: #071a32;
  --navy-900: #10284d;
  --navy-800: #183a6a;
  --blue-600: #2458d3;
  --blue-500: #3974ee;
  --red-500: #e34455;
  --cream-100: #f5f3ed;
  --cream-50: #fbfaf7;
  --white: #ffffff;
  --ink: #152239;
  --muted: #5d6878;
  --line: #dfe3e8;
  --line-dark: rgba(255, 255, 255, 0.16);
  --success: #147a59;
  --shadow-sm: 0 1px 2px rgba(11, 29, 56, 0.06);
  --shadow-md: 0 18px 50px rgba(11, 29, 56, 0.12);
  --shadow-lg: 0 28px 80px rgba(5, 20, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: #cddcff; color: var(--navy-950); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; color: var(--white); background: var(--navy-950); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #83a9ff; outline-offset: 3px; }

.eyebrow { margin: 0 0 14px; color: var(--blue-600); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; }
.eyebrow--light { color: #aecaef; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.4rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--white); background: var(--blue-600); box-shadow: 0 10px 30px rgba(36, 88, 211, 0.26); }
.button--primary:hover { background: var(--blue-500); }
.button--ghost { color: var(--navy-900); background: rgba(255, 255, 255, 0.72); border-color: rgba(16, 40, 77, 0.16); }
.button--outline { color: var(--navy-900); background: transparent; border-color: rgba(16, 40, 77, 0.24); }
.button--small { min-height: 42px; padding-inline: 17px; font-size: 0.9rem; }
.text-link { display: inline-flex; margin-top: 10px; color: var(--blue-600); font-weight: 750; }
.text-link--light { color: var(--white); }

/* Masthead */
.utility-bar { color: rgba(255, 255, 255, 0.72); background: var(--navy-950); font-size: 0.78rem; }
.utility-bar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-bar p { margin: 0; letter-spacing: 0.04em; }
.utility-bar__contacts { display: flex; gap: 24px; }
.utility-bar__contacts a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 247, 0.93); border-bottom: 1px solid rgba(16, 40, 77, 0.1); backdrop-filter: blur(18px); }
.site-header__inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: 250px; display: inline-flex; align-items: center; gap: 13px; color: var(--navy-900); }
.brand__mark { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); }
.brand__mark img { width: 48px; height: 48px; object-fit: contain; }
.brand__name { max-width: 220px; font-size: 0.96rem; font-weight: 820; letter-spacing: -0.015em; line-height: 1.15; }
.brand__name small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.69rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav li a { display: block; padding: 10px 11px; border-radius: 10px; color: #3a4659; font-size: 0.88rem; font-weight: 720; white-space: nowrap; }
.primary-nav li a:hover, .primary-nav li.active a { color: var(--blue-600); background: rgba(36, 88, 211, 0.07); }
.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; }

/* Homepage hero */
.home-hero { position: relative; overflow: hidden; color: var(--navy-900); background: var(--cream-100); }
.home-hero::before { content: ""; position: absolute; width: 680px; height: 680px; top: -390px; right: -170px; border: 120px solid rgba(36, 88, 211, 0.08); border-radius: 50%; }
.home-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -290px; bottom: -300px; border: 85px solid rgba(227, 68, 85, 0.08); border-radius: 50%; }
.home-hero__grid { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr); align-items: center; gap: clamp(50px, 8vw, 110px); padding-block: 88px 100px; }
.home-hero__copy h1 { max-width: 850px; margin-bottom: 28px; color: var(--navy-900); font-weight: 830; }
.home-hero__lead { max-width: 690px; margin-bottom: 34px; color: #455167; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; }
.hero-meta { display: flex; gap: 30px; margin-top: 52px; color: var(--muted); font-size: 0.83rem; }
.hero-meta span { display: flex; flex-direction: column; }
.hero-meta strong { color: var(--navy-900); font-size: 1.15rem; }
.hero-schedule { position: relative; padding: 27px; color: var(--white); background: var(--navy-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.hero-schedule::after { content: ""; position: absolute; inset: 9px -9px -9px 9px; z-index: -1; border: 1px solid rgba(36, 88, 211, 0.4); border-radius: inherit; }
.hero-schedule__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; color: rgba(255, 255, 255, 0.62); border-bottom: 1px solid var(--line-dark); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.status-dot::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #59d6a9; box-shadow: 0 0 0 5px rgba(89, 214, 169, 0.12); }
.hero-schedule__label { margin: 24px 0 10px; color: #afc7ee; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-schedule__time { display: flex; align-items: end; gap: 17px; }
.hero-schedule__time strong { font-size: clamp(3.2rem, 7vw, 5.1rem); letter-spacing: -0.07em; line-height: 1; }
.hero-schedule__time span { margin-bottom: 8px; color: #d6e1f2; font-weight: 700; }
.hero-schedule__details { display: grid; gap: 13px; margin: 26px 0; }
.hero-schedule__details div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.hero-schedule__details dt { color: rgba(255, 255, 255, 0.55); font-size: 0.76rem; }
.hero-schedule__details dd { margin: 0; font-size: 0.88rem; font-weight: 650; }
.hero-schedule > a { display: block; padding-top: 18px; border-top: 1px solid var(--line-dark); color: #c8d8f4; font-size: 0.88rem; font-weight: 750; }

.section { padding-block: 100px; }
.section--tasks { background: var(--white); }
.section-heading { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 70px; margin-bottom: 44px; }
.section-heading h2, .resource-lead h2 { max-width: 760px; margin-bottom: 0; color: var(--navy-900); }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.task-card { min-height: 340px; display: flex; flex-direction: column; padding: 30px; background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.task-card:hover { transform: translateY(-5px); border-color: #b8c8ea; box-shadow: var(--shadow-md); }
.task-card--blue { color: var(--white); background: var(--blue-600); border-color: var(--blue-600); }
.task-card__number { margin-bottom: auto; color: var(--blue-600); font-size: 0.77rem; font-weight: 850; letter-spacing: 0.12em; }
.task-card--blue .task-card__number { color: #c9d8ff; }
.task-card h3 { margin: 38px 0 14px; font-size: 1.75rem; }
.task-card p { margin-bottom: 24px; color: var(--muted); }
.task-card--blue p { color: rgba(255, 255, 255, 0.78); }
.task-card__link { margin-top: auto; font-size: 0.9rem; font-weight: 780; }

.section--statement { color: var(--white); background: var(--navy-900); }
.statement-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: clamp(50px, 10vw, 150px); }
.statement-grid h2 { max-width: 800px; margin-bottom: 0; }
.statement-grid > div:last-child p { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; }

.resource-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(60px, 10vw, 140px); }
.resource-lead > p:last-child { max-width: 450px; color: var(--muted); }
.resource-list { border-top: 1px solid var(--line); }
.resource-list a { display: grid; grid-template-columns: 0.45fr 1fr auto; align-items: center; gap: 24px; min-height: 96px; border-bottom: 1px solid var(--line); transition: padding 160ms ease, color 160ms ease; }
.resource-list a:hover { padding-inline: 12px; color: var(--blue-600); }
.resource-list span { color: var(--muted); font-size: 0.82rem; }
.resource-list strong { font-size: 1.05rem; }
.resource-list b { font-size: 1.2rem; }

/* Institutional homepage */
.home-hero--institutional { background: linear-gradient(135deg, #f5f3ed 0%, #fbfaf7 62%, #edf2fb 100%); }
.home-hero--institutional .home-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr); }
.home-hero--institutional .home-hero__copy h1 { max-width: 920px; }
.hero-research { position: relative; padding: 30px; overflow: hidden; color: var(--white); background: var(--navy-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-research::before { content: ""; position: absolute; width: 280px; height: 280px; right: -170px; bottom: -175px; border: 55px solid rgba(57, 116, 238, 0.24); border-radius: 50%; }
.hero-research__top { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-bottom: 22px; color: rgba(255, 255, 255, 0.62); border-bottom: 1px solid var(--line-dark); font-size: 0.73rem; font-weight: 760; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-research__label { position: relative; margin: 30px 0 13px; color: #abc5ef; font-size: 0.74rem; font-weight: 820; letter-spacing: 0.13em; text-transform: uppercase; }
.hero-research h2 { position: relative; margin-bottom: 20px; font-size: clamp(2rem, 3.5vw, 3rem); }
.hero-research > p:not(.hero-research__label) { position: relative; color: rgba(255, 255, 255, 0.7); }
.hero-research > a { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 20px; color: #d2dff4; border-top: 1px solid var(--line-dark); font-size: 0.86rem; font-weight: 760; }

.section--research { background: var(--white); }
.research-direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.research-direction { min-height: 335px; display: flex; flex-direction: column; padding: 30px; background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.research-direction:hover { transform: translateY(-5px); border-color: #afc2e5; box-shadow: var(--shadow-md); }
.research-direction__index { color: var(--blue-600); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.12em; }
.research-direction h3 { max-width: 290px; margin: auto 0 15px; font-size: 1.85rem; }
.research-direction p { color: var(--muted); }
.research-direction__link { margin-top: auto; padding-top: 22px; color: var(--blue-600); font-size: 0.85rem; font-weight: 780; }

.research-impact { color: var(--white); background: var(--navy-950); }
.research-impact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(60px, 10vw, 145px); }
.research-impact__copy h2 { margin-bottom: 24px; }
.research-impact__copy > p:not(.eyebrow) { max-width: 590px; color: rgba(255, 255, 255, 0.7); font-size: 1.04rem; }
.publication-feature { position: relative; padding: 34px; overflow: hidden; color: var(--navy-900); background: var(--cream-100); border-radius: var(--radius-lg); }
.publication-feature::after { content: "XXI"; position: absolute; right: -12px; bottom: -45px; color: rgba(36, 88, 211, 0.08); font-size: 8rem; font-weight: 900; letter-spacing: -0.09em; line-height: 1; }
.publication-feature__meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.72rem; font-weight: 780; letter-spacing: 0.08em; text-transform: uppercase; }
.publication-feature h3 { position: relative; z-index: 1; margin: 58px 0 20px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.publication-feature p { position: relative; z-index: 1; max-width: 520px; color: var(--muted); }
.publication-feature a { position: relative; z-index: 1; display: inline-flex; margin-top: 18px; color: var(--blue-600); font-weight: 780; }

.section--center { background: var(--cream-100); }
.center-overview { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(60px, 10vw, 145px); }
.center-overview__heading h2 { margin: 0; }
.center-overview__body { padding-top: 34px; border-top: 1px solid #cfd4dc; }
.center-overview__body p { color: var(--muted); }
.center-overview__body .center-overview__lead { color: var(--ink); font-size: 1.18rem; }

.section--activity { background: var(--white); }
.section-heading--compact { align-items: center; }
.section-heading--compact > .text-link { justify-self: end; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.activity-card { min-height: 285px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.activity-card__date { color: var(--blue-600); font-size: 0.75rem; font-weight: 820; letter-spacing: 0.09em; text-transform: uppercase; }
.activity-card h3 { margin-top: auto; font-size: 1.45rem; }
.activity-card > p:last-child { margin: 0; color: var(--muted); font-size: 0.88rem; }

.education-service { padding-block: 80px; background: #edf2fb; border-top: 1px solid #d7dfec; }
.education-service__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: clamp(55px, 9vw, 130px); }
.education-service h2 { margin-bottom: 14px; font-size: clamp(2rem, 3.2vw, 3rem); }
.education-service__grid > div > p:last-child { margin: 0; color: var(--muted); }
.education-service__links { border-top: 1px solid #c9d4e5; }
.education-service__links a { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #c9d4e5; font-weight: 780; transition: padding 160ms ease, color 160ms ease; }
.education-service__links a:hover { padding-inline: 10px; color: var(--blue-600); }

/* Migrated institutional content */
.content-section { background: var(--white); }
.section--soft { background: var(--cream-100); }
.content-intro-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(60px, 10vw, 145px); }
.content-intro-grid h2 { margin: 0; }
.prose { color: var(--muted); font-size: 1.02rem; }
.prose--lead > p:first-child { color: var(--ink); font-size: 1.18rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 70px; }
.fact-grid div { min-height: 150px; display: flex; flex-direction: column; justify-content: end; padding: 24px; background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fact-grid strong, .fact-grid span { display: block; }
.fact-grid strong { color: var(--navy-900); font-size: 1.65rem; letter-spacing: -0.04em; }
.fact-grid span { margin-top: 5px; color: var(--muted); font-size: 0.8rem; }
.structure-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1fr; gap: 16px; margin-top: 65px; }
.structure-grid article { min-height: 230px; display: flex; flex-direction: column; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.structure-grid span { color: var(--blue-600); font-size: 0.74rem; font-weight: 850; }
.structure-grid h3 { margin: auto 0 0; font-size: 1.35rem; }
.collaboration-panel { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 55px; padding: 46px; color: var(--white); background: var(--navy-900); border-radius: var(--radius-lg); }
.collaboration-panel h2, .collaboration-panel p { margin-bottom: 0; }
.collaboration-panel > p { color: rgba(255, 255, 255, 0.7); }
.collaboration-panel .button--ghost { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.35); }

.report-summary { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: end; gap: 80px; }
.report-summary__copy > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-stats div { min-height: 135px; display: flex; flex-direction: column; justify-content: end; padding: 20px; color: var(--white); background: var(--navy-900); border-radius: var(--radius-sm); }
.report-stats strong { font-size: 2rem; letter-spacing: -0.05em; }
.report-stats span { color: #b9cbea; font-size: 0.72rem; line-height: 1.35; }
.theme-list { border-top: 1px solid #cfd4dc; }
.theme-list article { display: grid; grid-template-columns: 0.25fr 0.85fr 1fr; gap: 35px; padding: 30px 0; border-bottom: 1px solid #cfd4dc; scroll-margin-top: 110px; }
.theme-list span { color: var(--blue-600); font-size: 0.78rem; font-weight: 820; }
.theme-list h3, .theme-list p { margin: 0; }
.theme-list p { color: var(--muted); }
.timeline-list { border-top: 1px solid var(--line); }
.timeline-list article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-list span { color: var(--blue-600); font-size: 0.76rem; font-weight: 820; }
.timeline-list h3 { margin: 8px 0; }
.timeline-list p { margin: 0; color: var(--muted); }
.research-cta { color: var(--white); background: var(--navy-950); }
.research-cta__inner { display: grid; grid-template-columns: 1fr 0.7fr auto; align-items: end; gap: 55px; }
.research-cta h2, .research-cta p { margin-bottom: 0; }
.research-cta p { color: rgba(255, 255, 255, 0.68); }
.research-cta .button--ghost { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.35); }

.journal-feature { display: grid; grid-template-columns: 0.42fr 1fr; align-items: center; gap: clamp(55px, 9vw, 120px); padding: 55px; color: var(--white); background: var(--navy-900); border-radius: var(--radius-lg); }
.journal-feature__number { display: grid; place-items: center; aspect-ratio: 1; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; font-size: clamp(5rem, 12vw, 9rem); font-weight: 850; letter-spacing: -0.09em; line-height: 1; }
.journal-feature h2 { margin-bottom: 20px; }
.journal-feature p { max-width: 680px; color: rgba(255, 255, 255, 0.7); }
.journal-feature .button--ghost { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.publication-list { border-top: 1px solid #cfd4dc; }
.publication-list > * { min-height: 94px; display: grid; grid-template-columns: 0.2fr 1fr auto; align-items: center; gap: 28px; border-bottom: 1px solid #cfd4dc; }
.publication-list a { transition: padding 160ms ease, color 160ms ease; }
.publication-list a:hover { padding-inline: 10px; color: var(--blue-600); }
.publication-list span { color: var(--muted); font-size: 0.8rem; }
.publication-list strong { font-size: 1.05rem; }
.publication-list b { color: var(--blue-600); font-size: 0.78rem; }

.news-list { border-top: 1px solid var(--line); }
.news-list > article { display: grid; grid-template-columns: 0.35fr 1fr; gap: 60px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.news-list__date { color: var(--muted); font-size: 0.8rem; font-weight: 760; }
.news-list h2 { max-width: 900px; margin-bottom: 15px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.news-list article > div > p:last-child { margin: 0; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 80px; }
.contact-panel span { color: #aecaef; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-panel a + span { margin-top: 18px; }
.contact-address h2 { margin-bottom: 20px; }
.contact-address > p:last-child { color: var(--muted); }

/* Inner pages */
.inner-hero { padding-block: 105px 90px; background: var(--cream-100); }
.inner-hero__content { max-width: 900px; }
.inner-hero h1 { margin-bottom: 24px; color: var(--navy-900); }
.inner-hero__content > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.18rem; }
.narrow-content { max-width: 900px; min-height: 280px; }
.content-placeholder { display: grid; grid-template-columns: 54px 1fr; gap: 28px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.content-placeholder > span { width: 54px; height: 54px; display: grid; place-items: center; color: var(--blue-600); background: #edf2ff; border-radius: 50%; font-size: 1.3rem; }
.content-placeholder h2 { margin-bottom: 10px; font-size: 1.8rem; }
.content-placeholder p { margin: 0; color: var(--muted); }
.contact-panel { display: flex; flex-direction: column; gap: 10px; padding: 36px; background: var(--navy-900); border-radius: var(--radius-md); color: var(--white); font-size: 1.35rem; font-weight: 750; }

/* Schedule */
.schedule-hero { position: relative; overflow: hidden; padding-block: 82px; color: var(--white); background: var(--navy-900); }
.schedule-hero::after { content: ""; position: absolute; width: 520px; height: 520px; top: -340px; right: -80px; border: 90px solid rgba(57, 116, 238, 0.17); border-radius: 50%; }
.schedule-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: 60px; }
.schedule-hero h1 { margin-bottom: 22px; }
.schedule-hero__grid > div:first-child > p:last-child { max-width: 680px; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 1.12rem; }
.schedule-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.schedule-hero__stats div { min-height: 112px; display: flex; flex-direction: column; justify-content: end; padding: 18px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); }
.schedule-hero__stats strong { font-size: 1.6rem; }
.schedule-hero__stats span { color: rgba(255, 255, 255, 0.62); font-size: 0.73rem; line-height: 1.3; }
.schedule-workspace { padding-block: 0 110px; background: var(--cream-50); }
.schedule-tabs { position: sticky; top: 84px; z-index: 20; display: flex; gap: 6px; padding: 18px 0; background: rgba(251, 250, 247, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.schedule-tabs a { padding: 10px 18px; color: var(--muted); border-radius: 999px; font-size: 0.9rem; font-weight: 760; }
.schedule-tabs a[aria-current="page"] { color: var(--white); background: var(--navy-900); }
.schedule-filters { display: grid; grid-template-columns: minmax(320px, 1.8fr) minmax(180px, 0.65fr) auto; align-items: end; gap: 14px; margin: 28px 0 56px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.schedule-filters label, .import-form label { display: block; margin-bottom: 8px; color: var(--navy-900); font-size: 0.78rem; font-weight: 800; }
.schedule-filters select, .schedule-filters input, .import-form input[type="file"] { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--cream-50); border: 1px solid #cfd5de; border-radius: 10px; }
.filter-search__control { position: relative; }
.filter-search__control span { position: absolute; left: 15px; top: 10px; color: var(--muted); font-size: 1.4rem; }
.filter-search__control input { padding-left: 45px; }
.filter-search > p { margin: 6px 0 0; color: var(--muted); font-size: 0.72rem; }
.filter-reset { min-height: 50px; padding: 12px 14px; border: 0; background: transparent; color: var(--blue-600); font-size: 0.82rem; font-weight: 760; cursor: pointer; }
.schedule-results-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 28px; }
.schedule-results-heading h2 { margin: 0; color: var(--navy-900); font-size: 2.25rem; }
.schedule-results-heading > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 0.86rem; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.schedule-card { display: flex; flex-direction: column; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.schedule-card__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.schedule-card__header > div { display: flex; align-items: center; gap: 8px; }
.schedule-card__group { color: var(--navy-900); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.schedule-card__header small { color: var(--muted); font-size: 0.72rem; font-weight: 650; }
.tag { display: inline-flex; padding: 5px 8px; color: var(--blue-600); background: #edf2ff; border-radius: 999px; font-size: 0.68rem; font-weight: 760; }
.tag--online { color: var(--success); background: #e7f7f1; }
.schedule-card__when { display: flex; align-items: center; gap: 20px; margin: 24px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.schedule-card__when > strong { color: var(--navy-900); font-size: 3.1rem; letter-spacing: -0.07em; line-height: 1; }
.schedule-card__when div { display: flex; flex-direction: column; }
.schedule-card__when span { font-weight: 800; }
.schedule-card__when small { color: var(--muted); }
.card-label { margin: 0 0 8px; color: var(--muted); font-size: 0.68rem; font-weight: 820; letter-spacing: 0.11em; text-transform: uppercase; }
.institution-list { margin: 0; padding: 0; list-style: none; }
.institution-list li { position: relative; margin: 7px 0; padding-left: 14px; font-size: 0.86rem; line-height: 1.4; }
.institution-list li::before { content: ""; position: absolute; width: 5px; height: 5px; left: 0; top: 0.62em; border-radius: 50%; background: #94a7c7; }
.institution-more { margin-top: 6px; }
.institution-more summary { color: var(--blue-600); font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.institution-more[open] summary { margin-bottom: 9px; }
.schedule-card__teacher { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: center; margin-top: auto; padding-top: 24px; }
.teacher-avatar { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy-900); background: var(--cream-100); border-radius: 50%; font-weight: 850; }
.schedule-card__teacher strong, .schedule-card__teacher span { display: block; }
.schedule-card__teacher strong { font-size: 0.9rem; }
.schedule-card__teacher span { color: var(--muted); font-size: 0.77rem; }
.schedule-card__actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.schedule-card__actions a, .schedule-card__actions button { flex: 1; min-height: 42px; display: grid; place-items: center; padding: 8px 10px; border: 1px solid #ced5df; border-radius: 9px; background: transparent; color: var(--navy-900); font-size: 0.76rem; font-weight: 760; cursor: pointer; }
.schedule-card__actions a:hover, .schedule-card__actions button:hover { color: var(--blue-600); border-color: #9cb7ee; }
.schedule-empty, .schedule-unpublished { max-width: 760px; margin: 70px auto 0; padding: 50px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.schedule-empty h2, .schedule-unpublished h2 { margin-bottom: 14px; color: var(--navy-900); }
.schedule-empty p, .schedule-unpublished > p { color: var(--muted); }
.schedule-unpublished__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 24px; color: var(--blue-600); background: #edf2ff; border-radius: 50%; font-size: 1.8rem; }
.schedule-unpublished .button-row { justify-content: center; margin-top: 26px; }

/* Import prototype */
.import-layout { max-width: 980px; }
.import-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 18px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.import-form label, .import-form p { grid-column: 1 / -1; }
.import-form p { margin: -7px 0 0; color: var(--muted); font-size: 0.82rem; }
.notice { margin-top: 18px; padding: 18px 20px; background: #fff8dd; border: 1px solid #eadb9f; border-radius: var(--radius-sm); }
.notice--error { background: #fff0f1; border-color: #edb9bf; }
.notice p, .notice ul { margin: 5px 0 0; }
.import-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.import-summary div { padding: 20px; background: var(--navy-900); color: var(--white); border-radius: var(--radius-sm); }
.import-summary span, .import-summary strong { display: block; }
.import-summary span { color: #aecaef; font-size: 0.75rem; }
.import-summary strong { font-size: 2rem; }
.import-preview { margin-top: 34px; }
.table-scroll { overflow-x: auto; }
.import-preview table { width: 100%; border-collapse: collapse; background: var(--white); }
.import-preview th, .import-preview td { padding: 12px; border: 1px solid var(--line); text-align: left; font-size: 0.82rem; }
.import-preview th { background: var(--cream-100); color: var(--navy-900); }

/* Footer */
.site-footer { padding: 72px 0 26px; color: rgba(255, 255, 255, 0.7); background: var(--navy-950); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.7fr 0.8fr; gap: 55px; padding-bottom: 54px; }
.footer-brand { display: block; margin-bottom: 8px; color: var(--white); font-size: 1.2rem; font-weight: 820; }
.site-footer__grid p { margin-bottom: 12px; }
.site-footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 7px; }
.site-footer__grid a:hover { color: var(--white); }
.footer-label { color: var(--white); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.76rem; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 1280px) {
  .site-header__inner { min-height: 76px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px; }
  .nav-toggle__label { font-size: 0.82rem; font-weight: 760; }
  .nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { width: 22px; height: 2px; display: block; background: var(--navy-900); transition: transform 160ms ease; }
  .nav-toggle__icon { position: relative; }
  .nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__icon::before { top: -7px; }
  .nav-toggle__icon::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }
  .primary-nav { position: absolute; inset: 76px 0 auto; display: none; align-items: stretch; padding: 22px 24px 28px; background: var(--cream-50); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .primary-nav[data-open] { display: flex; flex-direction: column; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .primary-nav li a { padding: 12px; }
  .primary-nav .button { align-self: flex-start; }
  .schedule-tabs { top: 76px; }
  .home-hero__grid { grid-template-columns: 1fr 360px; gap: 45px; }
  .home-hero__copy h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
  .schedule-filters { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
  .filter-reset { justify-self: start; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .utility-bar p { display: none; }
  .utility-bar__inner { justify-content: center; }
  .utility-bar__contacts { width: 100%; justify-content: space-between; gap: 12px; }
  .brand { min-width: 0; }
  .brand__mark { width: 46px; height: 46px; }
  .brand__mark img { width: 42px; height: 42px; }
  .brand__name { max-width: 175px; font-size: 0.82rem; }
  .brand__name small { font-size: 0.6rem; }
  .home-hero__grid { min-height: auto; grid-template-columns: 1fr; padding-block: 70px; }
  .home-hero--institutional .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero__copy h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .home-hero__lead { font-size: 1.05rem; }
  .hero-meta { margin-top: 38px; }
  .hero-schedule { width: min(100%, 500px); transform: none; }
  .hero-research { width: min(100%, 560px); }
  .section { padding-block: 76px; }
  .section-heading, .statement-grid, .resource-grid, .schedule-hero__grid, .schedule-results-heading { grid-template-columns: 1fr; gap: 30px; }
  .section-heading--compact > .text-link { justify-self: start; }
  .task-grid { grid-template-columns: 1fr; }
  .research-direction-grid, .activity-grid { grid-template-columns: 1fr; }
  .research-direction, .activity-card { min-height: 250px; }
  .research-impact__grid, .center-overview, .education-service__grid, .content-intro-grid, .report-summary, .collaboration-panel, .research-cta__inner, .journal-feature, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .structure-grid { grid-template-columns: 1fr 1fr; }
  .structure-grid article:first-child { grid-column: 1 / -1; }
  .theme-list article { grid-template-columns: 0.32fr 1fr; gap: 12px 28px; }
  .theme-list article p { grid-column: 2; }
  .journal-feature__number { width: min(52vw, 300px); }
  .news-list > article { grid-template-columns: 0.32fr 1fr; gap: 30px; }
  .task-card { min-height: 250px; }
  .resource-list a { grid-template-columns: 0.5fr 1fr auto; }
  .schedule-hero { padding-block: 65px; }
  .schedule-hero__stats { max-width: 520px; }
  .schedule-tabs { top: 76px; overflow-x: auto; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-card { padding: 23px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.65rem; }
  h2 { font-size: 2.15rem; }
  .utility-bar__contacts { font-size: 0.7rem; }
  .home-hero::before { right: -430px; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .hero-research { padding: 24px; }
  .hero-research h2 { font-size: 2rem; }
  .hero-schedule { padding: 22px; }
  .hero-schedule__time strong { font-size: 3.7rem; }
  .hero-schedule__details div { grid-template-columns: 1fr; gap: 1px; }
  .resource-list a { grid-template-columns: 1fr auto; gap: 5px 12px; padding-block: 17px; }
  .resource-list span { grid-column: 1 / -1; }
  .fact-grid, .structure-grid, .report-stats { grid-template-columns: 1fr; }
  .structure-grid article:first-child { grid-column: auto; }
  .collaboration-panel, .journal-feature { padding: 30px 24px; }
  .theme-list article, .news-list > article { grid-template-columns: 1fr; gap: 10px; }
  .theme-list article p { grid-column: auto; }
  .publication-list > * { grid-template-columns: 1fr auto; gap: 5px 15px; padding-block: 18px; }
  .publication-list span { grid-column: 1 / -1; }
  .journal-feature__number { width: min(70vw, 250px); }
  .education-service { padding-block: 62px; }
  .schedule-hero__stats { grid-template-columns: 1fr; }
  .schedule-hero__stats div { min-height: 82px; }
  .schedule-tabs a { padding-inline: 15px; white-space: nowrap; }
  .schedule-filters { grid-template-columns: 1fr; padding: 18px; }
  .filter-search { grid-column: auto; }
  .schedule-card__when { align-items: flex-start; }
  .schedule-card__when > strong { font-size: 2.7rem; }
  .schedule-card__actions { flex-direction: column; }
  .schedule-empty, .schedule-unpublished { padding: 30px 22px; }
  .import-form { grid-template-columns: 1fr; }
  .import-summary { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > div:first-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
