/* 05. ОБРАЗОВАТЕЛЬНЫЕ ПРОГРАММЫ. Общая ширина контейнера и компактная статистика */

#kru-facts {
  --op-blue: var(--kru-blue);
  --op-sky: #287e9e;
  --op-gold: #aa7331;
  font-size: 15px;
  line-height: 1.5;
  color: #123c57;
  border: 0;
  box-shadow: none;
}

#kru-facts .kr-op-main {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 75px;
}

#kru-facts .kr-op-copy,
#kru-facts .kr-op-portfolio {
  min-width: 0;
}

#kru-facts .kr-op-eyebrow {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #526b7a;
  letter-spacing: 0.1px;
}

#kru-facts h2 {
  font-family: var(--kru-font);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  color: #123c57;
}

#kru-facts h2 span {
  color: var(--op-blue);
}

#kru-facts .kr-op-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--kru-muted);
  margin: 20px 0 24px;
}

#kru-facts .kr-op-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 50px;
  padding: 12px 21px;
  background: var(--op-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  transition: background 0.2s;
}

#kru-facts .kr-op-cta :is(svg, img.kru-svg) {
  width: 26px;
  height: 26px;
  flex: none;
  transition: transform 0.2s;
}

#kru-facts .kr-op-cta:hover {
  background: #073d61;
}

#kru-facts .kr-op-cta:hover :is(svg, img.kru-svg) {
  transform: translateX(4px);
}

#kru-facts .kr-op-portfolio {
  margin: 0;
  padding: 0;
}

#kru-facts .kr-op-total {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  min-height: 0;
}

#kru-facts .kr-op-total > strong {
  display: block;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--op-blue);
  font-variant-numeric: lining-nums tabular-nums;
}

#kru-facts .kr-op-total > span {
  display: block;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.45;
  color: #3f6074;
  letter-spacing: 0;
}

#kru-facts .kr-op-distribution {
  display: flex;
  gap: 5px;
  height: 6px;
  margin: 25px 0 22px;
}

#kru-facts .kr-op-distribution > span {
  display: block;
  min-width: 0;
}

#kru-facts .kr-op-distribution > .kr-op-bachelor {
  background: var(--op-blue);
}

#kru-facts .kr-op-distribution > .kr-op-master {
  background: var(--op-sky);
}

#kru-facts .kr-op-distribution > .kr-op-doctoral {
  background: var(--op-gold);
}

#kru-facts .kr-op-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
}

#kru-facts .kr-op-breakdown > div {
  min-width: 0;
}

#kru-facts .kr-op-breakdown dd {
  margin: 0 0 5px;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.8px;
  font-variant-numeric: lining-nums tabular-nums;
}

#kru-facts .kr-op-bachelor dd {
  color: var(--op-blue);
}

#kru-facts .kr-op-master dd {
  color: var(--op-sky);
}

#kru-facts .kr-op-doctoral dd {
  color: var(--op-gold);
}

#kru-facts .kr-op-breakdown dt {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--kru-muted);
  margin: 0;
}

#kru-facts .kr-op-proof {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 75px;
  border-top: 1px solid #dce5eb;
  margin-top: 36px;
  padding-top: 27px;
}

#kru-facts .kr-op-proof-label {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--kru-muted);
  margin: 0 0 8px;
}

#kru-facts h3 {
  font-family: var(--kru-font);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  color: #123c57;
  margin: 0;
}

#kru-facts .kr-op-rating-source {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--op-blue);
  text-decoration: none;
  margin-top: 10px;
}

#kru-facts .kr-op-rating-source > span {
  font-size: 21px;
  line-height: 1;
}

#kru-facts .kr-op-rating-source:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#kru-facts .kr-op-ranks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#kru-facts .kr-op-rank {
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--op-blue);
  list-style: none;
}

#kru-facts .kr-op-rank:before {
  content: none;
}

#kru-facts .kr-op-rank-3 {
  color: var(--op-gold);
}

#kru-facts .kr-op-rank-5 {
  color: #397487;
}

#kru-facts .kr-op-medal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
}

#kru-facts .kr-op-medal :is(svg, img.kru-svg) {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}

#kru-facts .kr-op-top {
  display: block;
}

#kru-facts .kr-op-medal strong {
  display: block;
  color: inherit;
}

#kru-facts .kr-op-rank p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--kru-muted);
  margin: 8px 0 0;
  white-space: nowrap;
}

#kru-facts .kr-op-rank p b {
  font-size: 26px;
  line-height: 1.1;
  color: #123c57;
  font-weight: 700;
  letter-spacing: 0;
  margin-right: 3px;
}

#kru-facts a:focus-visible {
  outline: 3px solid #aa7331;
  outline-offset: 5px;
}

#kru-facts {
  background: #f1f5f8;
  position: relative;
  isolation: isolate;
}

#kru-facts > .container {
  position: relative;
  z-index: 1;
}

#kru-facts .kr-op-backdrop {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  max-width: 900px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#kru-facts .kr-op-backdrop :is(svg, img.kru-svg) {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

#kru-facts .kr-op-proof {
  border-top-color: #cddce6;
}

/* Адаптация: ширина до 760px */

@media (max-width: 760px) {
  #kru-facts .kr-op-backdrop {
    width: 100%;
    opacity: 0.65;
  }
}

/* Доступность: усиление контраста. */

@media (prefers-contrast: more) {
  #kru-facts .kr-op-backdrop {
    display: none;
  }
}

/* Версия для печати. */

@media print {
  #kru-facts {
    background: #fff;
  }

  #kru-facts .kr-op-backdrop {
    display: none;
  }
}

#kru-facts .kr-op-medal {
  width: 120px;
  height: 120px;
}

#kru-facts .kr-op-top {
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 2px 0 5px;
}

#kru-facts .kr-op-medal strong {
  font-size: 46px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -1px;
}

#kru-facts .kr-op-rank p {
  margin-top: 12px;
}

/* Адаптация: ширина до 1199px */

@media (max-width: 1199px) {
  #kru-facts .kr-op-main {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  #kru-facts .kr-op-eyebrow {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 10px;
  }

  #kru-facts h2 {
    font-size: 28px;
    line-height: 1.18;
  }

  #kru-facts .kr-op-lead {
    font-size: 15px;
    line-height: 1.5;
    margin: 12px 0 16px;
  }

  #kru-facts .kr-op-lead br {
    display: none;
  }

  #kru-facts .kr-op-cta {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 14px;
    gap: 20px;
  }

  #kru-facts .kr-op-cta :is(svg, img.kru-svg) {
    width: 21px;
    height: 21px;
  }

  #kru-facts .kr-op-portfolio {
    display: block;
    margin: 0;
    padding: 0;
  }

  #kru-facts .kr-op-total {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  #kru-facts .kr-op-total > strong {
    font-size: 52px;
    line-height: 1;
    letter-spacing: -1.5px;
  }

  #kru-facts .kr-op-total > span {
    font-size: 16px;
    line-height: 1.4;
  }

  #kru-facts .kr-op-distribution {
    height: 4px;
    margin: 16px 0 14px;
    gap: 4px;
  }

  #kru-facts .kr-op-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  #kru-facts .kr-op-breakdown > div {
    display: block;
  }

  #kru-facts .kr-op-breakdown dd {
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 3px;
    min-width: 0;
  }

  #kru-facts .kr-op-breakdown dt {
    font-size: 13px;
    line-height: 1.4;
  }

  #kru-facts .kr-op-proof {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    margin-top: 22px;
    padding-top: 18px;
    align-items: center;
  }

  #kru-facts .kr-op-proof-copy {
    display: block;
  }

  #kru-facts .kr-op-proof-label {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 6px;
  }

  #kru-facts h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  #kru-facts .kr-op-rating-source {
    font-size: 12px;
    line-height: 1.4;
    gap: 10px;
    margin-top: 8px;
  }

  #kru-facts .kr-op-rating-source > span {
    font-size: 17px;
  }

  #kru-facts .kr-op-ranks {
    gap: 10px;
  }

  #kru-facts .kr-op-medal {
    width: 72px;
    height: 72px;
  }

  #kru-facts .kr-op-top {
    font-size: 11px;
    line-height: 1;
    margin: 1px 0 3px;
  }

  #kru-facts .kr-op-medal strong {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.5px;
  }

  #kru-facts .kr-op-rank p {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 5px;
    white-space: normal;
  }

  #kru-facts .kr-op-rank p b {
    display: inline;
    font-size: 20px;
    line-height: 1.1;
    margin: 0 3px 0 0;
  }
}

/* Адаптация: ширина от 576px и ширина до 767px */

@media (min-width: 576px) and (max-width: 767px) {
  #kru-facts h2 {
    font-size: 25px;
  }

  #kru-facts .kr-op-main,
  #kru-facts .kr-op-proof {
    gap: 20px;
  }

  #kru-facts .kr-op-total {
    gap: 11px;
  }

  #kru-facts .kr-op-total > strong {
    font-size: 46px;
  }

  #kru-facts .kr-op-total > span {
    font-size: 14px;
  }

  #kru-facts .kr-op-breakdown dd {
    font-size: 25px;
  }

  #kru-facts .kr-op-breakdown dt {
    font-size: 12px;
  }

  #kru-facts .kr-op-medal {
    width: 68px;
    height: 68px;
  }

  #kru-facts h3 {
    font-size: 19px;
  }
}

/* Адаптация: ширина до 575px */

@media (max-width: 575px) {
  #kru-facts .kr-op-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #kru-facts .kr-op-eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }

  #kru-facts h2 {
    font-size: 25px;
    line-height: 1.18;
  }

  #kru-facts .kr-op-lead {
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 13px;
  }

  #kru-facts .kr-op-cta {
    font-size: 14px;
    min-height: 40px;
    padding: 9px 14px;
  }

  #kru-facts .kr-op-total {
    gap: 13px;
    flex-direction: row;
    align-items: center;
  }

  #kru-facts .kr-op-total > strong {
    font-size: 44px;
  }

  #kru-facts .kr-op-total > span {
    font-size: 14px;
    line-height: 1.35;
  }

  #kru-facts .kr-op-distribution {
    margin: 13px 0 12px;
    height: 4px;
  }

  #kru-facts .kr-op-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #kru-facts .kr-op-breakdown > div {
    display: block;
  }

  #kru-facts .kr-op-breakdown dd {
    font-size: 24px;
    margin: 0 0 2px;
    min-width: 0;
  }

  #kru-facts .kr-op-breakdown dt {
    font-size: 12px;
    line-height: 1.35;
  }

  #kru-facts .kr-op-proof {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 19px;
    padding-top: 16px;
  }

  #kru-facts .kr-op-proof-label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  #kru-facts h3 {
    font-size: 18px;
    line-height: 1.22;
  }

  #kru-facts .kr-op-proof-copy h3 br {
    display: none;
  }

  #kru-facts .kr-op-rating-source {
    font-size: 12px;
    margin-top: 6px;
  }

  #kru-facts .kr-op-ranks {
    gap: 8px;
  }

  #kru-facts .kr-op-medal {
    width: 64px;
    height: 64px;
  }

  #kru-facts .kr-op-top {
    font-size: 11px;
    margin: 1px 0 2px;
  }

  #kru-facts .kr-op-medal strong {
    font-size: 27px;
  }

  #kru-facts .kr-op-rank p {
    font-size: 12px;
    margin-top: 4px;
  }

  #kru-facts .kr-op-rank p b {
    display: inline;
    font-size: 18px;
    margin: 0 2px 0 0;
  }
}

/* Доступность: отключение анимации по системной настройке. */

@media (prefers-reduced-motion: reduce) {
  #kru-facts .kr-op-cta,
  #kru-facts .kr-op-cta :is(svg, img.kru-svg) {
    transition: none;
  }

  #kru-facts .kr-op-cta:hover :is(svg, img.kru-svg) {
    transform: none;
  }
}

/* ШИРОКИЙ ЭКРАН: дополнительные поля появляются между колонками, текст не растягивается. */

@media (min-width: 1441px) {
  #kru-facts .kr-op-copy {
    max-width: 600px;
  }

  #kru-facts .kr-op-lead {
    max-width: 52ch;
  }

  #kru-facts .kr-op-portfolio {
    width: 100%;
    max-width: 650px;
    justify-self: end;
  }
}
