:root {
  --home-ink: var(--black);
  --home-blue: var(--primary);
  --home-blue-dark: var(--primary-dark);
  --home-orange: var(--primary);
  --home-paper: var(--gray);
  --home-line: var(--border);
  --home-muted: var(--muted);
}

.home-page main {
  padding-bottom: 0;
  color: var(--home-ink);
  background: var(--white);
}

.home_eyebrow {
  margin: 0 0 18px;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Hero */
.home_hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.35fr) minmax(460px, .85fr);
  border-bottom: 1px solid var(--home-line);
  background: var(--home-paper);
}

.home_hero_copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(64px, 7vw, 112px) clamp(32px, 5vw, 88px) 42px var(--page-gutter);
}

.home_hero_copy h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(48px, 5.2vw, 88px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.home_hero_lead {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--secondary);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.home_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.home_button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius:var(--radius-xs);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.home_button--primary {
  min-width: 230px;
  color: var(--white);
  background: var(--home-blue);
}

.home_button--primary:hover {
  color: var(--white);
  background: var(--home-blue-dark);
}

.home_button--secondary {
  color: var(--home-ink);
  border-color: var(--border-strong);
  background: transparent;
}

.home_button--secondary:hover {
  color: var(--home-blue-dark);
  border-color: var(--home-blue);
  background: var(--white);
}

.home_hero_facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--border-strong);
}

.home_hero_facts div {
  min-width: 0;
  padding-right: 24px;
}

.home_hero_facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border-strong);
}

.home_hero_facts dt {
  color: var(--home-blue);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.home_hero_facts dd {
  max-width: 150px;
  margin: 9px 0 0;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.home_hero_visual {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(420px, 1fr) auto;
  border-left: 1px solid var(--home-line);
  background: var(--home-blue);
}

.home_hero_media {
  min-width: 0;
  overflow: hidden;
  background: var(--border);
}

.home_hero_media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(.84) contrast(.98);
}

.home_hero_fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--home-blue);
  background: var(--gray);
}

.home_hero_fallback img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.home_hero_fallback span {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .14em;
}

.home_admission {
  position: relative;
  display: grid;
  min-height: 210px;
  align-content: start;
  padding: 34px 96px 34px 36px;
  color: var(--white);
  text-decoration: none;
  transition: background .18s ease;
}

.home_admission:hover {
  color: var(--white);
  background: rgba(var(--white-rgb), .06);
}

.home_admission_label {
  color: rgba(var(--white-rgb), .82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home_admission strong {
  margin-top: 14px;
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.home_admission_text {
  margin-top: 14px;
  color: rgba(var(--white-rgb), .9);
  font-size: 13px;
  line-height: 1.4;
}

.home_admission_arrow {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  color: var(--home-blue);
  background: var(--white);
  font-size: 22px;
  transition: transform .18s ease, background .18s ease;
}

.home_admission:is(:hover, :focus-visible) .home_admission_arrow {
  background: var(--primary-soft);
  transform: translate(2px, -2px);
}

/* Quick services */
.home_services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--home-line);
  background: var(--white);
}

.home_services a {
  position: relative;
  display: grid;
  min-height: 212px;
  align-content: start;
  padding: 28px 64px 26px 28px;
  color: var(--home-ink);
  border-right: 1px solid var(--home-line);
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

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

.home_services a:hover {
  color: var(--home-blue-dark);
  background: var(--primary-soft);
}

.home_services img {
  width: 26px;
  height: 26px;
  margin-bottom: 28px;
}

.home_services span {
  color: var(--home-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home_services strong {
  margin-top: 8px;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.home_services small {
  margin-top: 9px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.4;
}

.home_services b {
  position: absolute;
  right: 28px;
  bottom: 26px;
  color: var(--home-orange);
  font-size: 20px;
  font-weight: 500;
}

/* Shared section rhythm */
.home_section,
.home_paths,
.home_about {
  width: 100%;
  padding: clamp(72px, 8vw, 120px) var(--page-gutter);
}

.home_programs {
  background: var(--home-paper);
}

.home_section_header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 4vw, 56px);
}

.home_section_header .home_eyebrow {
  margin-bottom: 12px;
}

.home_section_header h2,
.home_about h2,
.home_partners h2 {
  max-width: 920px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(36px, 4.3vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.046em;
  text-wrap: balance;
}

.home_text_link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  color: var(--home-ink);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.home_text_link:hover {
  color: var(--home-blue-dark);
}

/* Study programmes */
.home_program_grid,
.home_news_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home_program_grid > li,
.home_news_grid > li {
  min-width: 0;
}

.home_program_card,
.home_news_card {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  border-radius:var(--radius-xs);
  background: var(--white);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home_program_card:hover,
.home_news_card:hover {
  color: var(--home-ink);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), .09);
  transform: translateY(-3px);
}

.home_program_media {
  display: block;
  overflow: hidden;
  background: var(--primary-soft);
}

.home_program_media {
  aspect-ratio: 16 / 9;
}

.home_program_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.home_program_card:hover .home_program_media img {
  transform: scale(1.025);
}

.home_program_placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--primary-light);
  background: var(--primary-soft);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -.03em;
}

.home_program_body,
.home_news_body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.home_program_code {
  color: var(--home-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.home_program_body > strong {
  margin-top: 12px;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.025em;
}

.home_program_meta {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.4;
}

.home_card_action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--home-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.home_card_action b {
  color: var(--home-orange);
  font-size: 18px;
  font-weight: 500;
}

/* Audience paths */
.home_paths {
  color: var(--white);
  background: var(--home-blue);
}

.home_section_header--inverse h2 {
  color: var(--white);
}

.home_section_header--inverse .home_eyebrow {
  color: rgba(var(--white-rgb), .82);
}

.home_path_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(var(--white-rgb), .32);
  border-left: 1px solid rgba(var(--white-rgb), .32);
}

.home_path {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 32px;
  border-right: 1px solid rgba(var(--white-rgb), .32);
  border-bottom: 1px solid rgba(var(--white-rgb), .32);
}

.home_path_index {
  color: var(--home-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.home_path h3 {
  margin: 42px 0 0;
  color: var(--white);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.home_path > p {
  max-width: 400px;
  margin: 20px 0 32px;
  color: rgba(var(--white-rgb), .86);
  font-size: 14px;
  line-height: 1.6;
}

.home_path ul {
  display: grid;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(var(--white-rgb), .32);
}

.home_path li {
  border-bottom: 1px solid rgba(var(--white-rgb), .32);
}

.home_path a,
.home_path button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  color: var(--white);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home_path a:hover,
.home_path button:hover {
  color: var(--white);
}

.home_path a span,
.home_path button span {
  color: var(--home-orange);
}

/* Publications */
.home_news_body time {
  color: var(--home-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.home_news_body > strong {
  margin-top: 13px;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.home_news_body > span:not(.home_card_action) {
  margin-top: 14px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.55;
}

.home_news_body {
  min-height: 310px;
}

.home_notices {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 3fr);
  margin-top: 20px;
  border: 1px solid var(--home-line);
  background: var(--primary-soft);
}

.home_notices_heading {
  padding: 28px;
  border-right: 1px solid var(--home-line);
}

.home_notices_heading > span {
  color: var(--home-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home_notices_heading h3 {
  margin: 8px 0 0;
  color: var(--home-ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.home_notice_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home_notice_list a {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: start;
  padding: 27px 56px 27px 26px;
  color: var(--home-ink);
  border-right: 1px solid var(--home-line);
  text-decoration: none;
  transition: background .18s ease;
}

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

.home_notice_list a:hover {
  background: var(--white);
}

.home_notice_list time {
  color: var(--home-muted);
  font-size: 10px;
}

.home_notice_list strong {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.42;
}

.home_notice_list a > span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--home-orange);
  font-size: 18px;
}

/* Institute and contacts */
.home_about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: clamp(56px, 9vw, 150px);
  background: var(--home-paper);
}

.home_about_intro > p:not(.home_eyebrow) {
  max-width: 820px;
  margin: 30px 0 34px;
  color: var(--secondary);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.55;
  letter-spacing: -.01em;
}

.home_button--light {
  color: var(--white);
  background: var(--home-blue);
}

.home_button--light:hover {
  color: var(--white);
  background: var(--home-blue-dark);
}

.home_about_contacts {
  align-self: end;
  margin: 0;
  font-style: normal;
  border-top: 2px solid var(--home-ink);
}

.home_about_contacts div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-strong);
}

.home_about_contacts span {
  color: var(--home-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home_about_contacts strong,
.home_about_contacts a {
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

/* Partners and official resources */
.home_partners {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr) auto;
  align-items: center;
  gap: 48px;
  padding: 48px var(--page-gutter);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: var(--white);
}

.home_partners .home_eyebrow {
  margin-bottom: 8px;
}

.home_partners h2 {
  font-size: clamp(26px, 2.8vw, 40px);
}

.home_partner_logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.home_partner_logos img {
  max-width: 220px;
  max-height: 80px;
  object-fit: contain;
}

.home_resources {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 42px var(--page-gutter);
  background: var(--white);
}

.home_resources > div {
  display: grid;
  min-height: 104px;
  place-items: center;
  padding: 18px;
  border-right: 1px solid var(--home-line);
}

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

.home_resources img {
  max-height: 70px;
  object-fit: contain;
}

.home_resources a {
  display: grid;
  width: 100%;
  min-height: 70px;
  place-items: center;
  border-radius: var(--radius-md);
}

.home_resources a:hover,
.home_resources a:focus-visible {
  background: var(--home-soft);
}

/* Responsive layout */
@media (max-width: 1180px) {
  .home_hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(410px, .85fr);
  }

  .home_hero_copy h1 {
    font-size: clamp(44px, 5vw, 68px);
  }

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

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

  .home_services a:nth-child(-n+2) {
    border-bottom: 1px solid var(--home-line);
  }
}

@media (max-width: 920px) {
  .home_hero {
    grid-template-columns: 1fr;
  }

  .home_hero_copy {
    min-height: 620px;
    padding-right: var(--page-gutter);
  }

  .home_hero_visual {
    min-height: 370px;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
    grid-template-rows: 1fr;
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .home_program_grid,
  .home_path_grid {
    grid-template-columns: 1fr;
  }

  .home_program_grid {
    gap: 14px;
  }

  .home_program_card {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  }

  .home_program_media {
    aspect-ratio: auto;
  }

  .home_path {
    min-height: 370px;
  }

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

  .home_notices_heading {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

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

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

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

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

  .home_partners {
    grid-template-columns: 1fr auto;
  }

  .home_partner_logos {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .home_hero_copy {
    min-height: auto;
    padding: 48px var(--page-gutter) 34px;
  }

  .home_hero_copy h1 {
    max-width: none;
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.02;
  }

  .home_hero_lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .home_actions {
    display: grid;
    margin-top: 28px;
  }

  .home_button {
    width: 100%;
  }

  .home_hero_facts {
    margin-top: 42px;
    padding-top: 26px;
  }

  .home_hero_facts div {
    padding-right: 12px;
  }

  .home_hero_facts div + div {
    padding-left: 12px;
  }

  .home_hero_facts dt {
    font-size: 27px;
  }

  .home_hero_facts dd {
    font-size: 9px;
  }

  .home_hero_visual {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 250px auto;
  }

  .home_admission {
    min-height: 190px;
    padding: 28px 82px 28px 24px;
  }

  .home_admission_arrow {
    right: 24px;
    bottom: 28px;
  }

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

  .home_services a,
  .home_services a:nth-child(2) {
    min-height: 154px;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

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

  .home_services img {
    margin-bottom: 16px;
  }

  .home_section,
  .home_paths,
  .home_about {
    padding-block: 68px;
  }

  .home_section_header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .home_program_card {
    display: flex;
  }

  .home_program_media {
    aspect-ratio: 16 / 9;
  }

  .home_path {
    min-height: 390px;
    padding: 26px 22px;
  }

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

  .home_news_body {
    min-height: 0;
  }

  .home_about_contacts div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .home_partners {
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

  .home_partner_logos {
    grid-column: auto;
    grid-row: auto;
  }

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

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

  .home_resources > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--home-line);
  }
}

@media (max-width: 380px) {
  .home_hero_copy h1 {
    font-size: clamp(31px, 9.3vw, 35px);
    overflow-wrap: anywhere;
  }

  .home_program_body,
  .home_news_body {
    padding: 22px;
  }

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

  .home_resources > div,
  .home_resources > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

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

@media (prefers-reduced-motion: reduce) {
  .home_button,
  .home_services a,
  .home_program_card,
  .home_news_card,
  .home_program_media img,
  .home_notice_list a {
    transition: none;
  }
}
