@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 400;
  src: url("/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 600;
  src: url("/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 700;
  src: url("/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 800;
  src: url("/manrope-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 400;
  src: url("/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 600;
  src: url("/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 700;
  src: url("/manrope-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-display: swap;
  font-weight: 800;
  src: url("/manrope-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: light;
  --ink: #171d22;
  --muted: #66727e;
  --line: #e4e6e8;
  --blue: #007baf;
  --bg: #f6f5f4;
  --card: white;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  scroll-padding-top: 20px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.45;
  background: var(--bg);
}
body.home {
  background: white;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #009cce;
  outline-offset: 3px;
}
::selection {
  background: #b4edec;
}
svg {
  flex: none;
}
p {
  margin: 0 0 16px;
}
.wrap {
  width: min(1260px, calc(100% - 96px));
  margin-inline: auto;
}
header {
  border-bottom: 1px solid #e8e9ea;
  background: inherit;
}
.topline {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--ink);
}
.topline nav,
.usernav,
.login,
.navsearch {
  display: flex;
  align-items: center;
}
.topline nav {
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}
.usernav {
  margin-left: auto;
  gap: 10px;
}
.navsearch,
.login {
  height: 37px;
  background: #f4f4f4;
  border-radius: 11px;
  justify-content: center;
}
.navsearch {
  width: 37px;
}
.login {
  font-size: 14px;
  font-weight: 700;
  padding: 0 15px;
  max-width: 180px;
  overflow: hidden;
}
.inner .login,
.inner .navsearch {
  border: 1px solid #bdc3c8;
  background: transparent;
}
.account {
  position: relative;
}
.account summary {
  list-style: none;
}
.account > div {
  position: absolute;
  background: white;
  z-index: 5;
  right: 0;
  min-width: 145px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
}
.account a,
.account button {
  display: block;
  background: white;
  padding: 5px;
  font-weight: 600;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  background: #fff;
  padding: 6px;
}
.skip:focus {
  top: 0;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.032em;
}
h2 {
  font-size: 30px;
  line-height: 1.16;
  margin: 0 0 17px;
}
.market-section > h1 {
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -0.037em;
  text-align: center;
  margin: 50px 0 22px;
}
.segments {
  display: flex;
  max-width: 630px;
  border-radius: 23px;
  padding: 4px;
  background: #f5f5f5;
  margin: 0 auto 24px;
}
.segments a {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 19px;
  font-size: 15px;
  font-weight: 700;
}
.segments [aria-current] {
  background: #191f24;
  color: white;
}
.market {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(150px, 12.7vw, 185px));
  gap: 20px;
}
.market-tile {
  background: #f5f5f5;
  overflow: hidden;
  isolation: isolate;
  border-radius: 29px;
  position: relative;
  color: var(--ink);
  transition: background-color 160ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .market-tile:hover {
    color: var(--ink);
    background: #eff1f2;
  }
  .market-tile:hover .tile-arrow {
    background: #26363e;
    color: white;
  }
  .schoolrow:hover {
    background: #f8f9fa;
  }
}
.tile-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.tile-copy h2 {
  font-size: 22px;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.025em;
}
.tile-copy p {
  font-size: 15px;
  line-height: 1.38;
  margin: 12px 0 0;
  max-width: 19ch;
  color: #39424a;
}
.tile-art {
  position: absolute;
  right: -3%;
  bottom: -6%;
  width: 48%;
  height: 68%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tile-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  left: 24px;
  bottom: 22px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #e1e4e7;
  color: #52606b;
}
.tile-es {
  grid-column: 1;
  grid-row: 1/3;
}
.tile-en {
  grid-column: 2;
  grid-row: 1;
}
.tile-de {
  grid-column: 3;
  grid-row: 1;
}
.tile-compare {
  grid-column: 2;
  grid-row: 2;
}
.tile-method {
  grid-column: 3;
  grid-row: 2;
}
.tile-academy {
  grid-column: 4;
  grid-row: 1/3;
}
.tall .tile-copy {
  padding: 30px;
}
.tall .tile-copy h2 {
  font-size: 25px;
}
.tall .tile-arrow {
  bottom: auto;
  left: auto;
  top: 21px;
  right: 18px;
  background: transparent;
  color: #7a838b;
}
.tall .tile-art {
  width: 96%;
  height: 60%;
  right: -4%;
  bottom: 0;
}
.tile-academy .tile-art {
  width: 103%;
  right: -3%;
  height: 57%;
}
.tile-academy {
  background: #f0f3f5;
}
.languages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 270px;
}
.languages .market-tile {
  grid-column: auto;
  grid-row: auto;
}
.languages .tile-art {
  width: 62%;
  height: 73%;
  bottom: -5%;
}
.languages .tile-copy {
  padding: 26px;
}
.languages .tile-arrow {
  display: none;
}
.section {
  margin-top: 42px;
  scroll-margin-top: 16px;
}
.home-ranking {
  margin-top: 50px;
  background: #f6f5f4;
  border-radius: 30px;
  padding: 29px;
}
.sectiontitle,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sectiontitle {
  margin-bottom: 18px;
}
.sectiontitle h2 {
  margin: 0;
}
.text-link,
.methodlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.toolbar {
  margin-bottom: 21px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tabs a {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 13px;
  border: 1px solid #b8c0c6;
  border-radius: 9px;
}
.tabs .active {
  color: #fff;
  background: #172a33;
  border-color: #172a33;
}
.search {
  width: 200px;
  height: 37px;
  border: 1px solid #bfc6cb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #67737b;
  padding: 0 12px;
}
.search input {
  padding: 0;
  border: 0;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  background: transparent;
}

.ranktable {
  border-radius: 18px;
  background: white;
  padding: 10px 24px 12px;
}
.rankgrid {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.rankgrid th {
  height: 65px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.rankgrid td {
  text-align: right;
  height: 74px;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.rankgrid th:first-child,
.rankgrid td:first-child {
  text-align: left;
}
.rankgrid th:first-child {
  width: 32%;
}
.rankgrid th:last-child {
  padding-left: 12px;
}
.identity,
.schoollink {
  display: flex;
  align-items: center;
}
.identity {
  gap: 10px;
}
.schoollink {
  gap: 10px;
}
.schoollink b {
  font-size: 14px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.place {
  color: #67717c;
  font-size: 12px;
  min-width: 12px;
}
.schoolmark {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #f3f4f5;
  border-radius: 10px;
  overflow: hidden;
  color: var(--blue);
  font-weight: 800;
}
.schoolmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.score {
  font-weight: 700;
  white-space: nowrap;
}
.score i {
  color: #ff9700;
  font-style: normal;
}
.reviewcount {
  padding: 6px;
}
.vote {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.vote button {
  background: #f5f6f7;
  border-radius: 8px;
  padding: 5px 7px;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
}
.vote button:hover,
.vote .selected {
  background: #daf1f6;
  color: #006979;
}
.sortButton {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 6px 0 6px 5px;
}
.sortButton span {
  margin-left: 6px;
  color: #8f9da8;
}

.directory,
.catalog-panel,
.empty,
.panel,
.faq details {
  background: white;
  border-radius: 17px;
  padding: 25px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #002a39;
  color: white;
  font-size: 14px;
  padding: 11px 15px;
  border-radius: 9px;
  font-weight: 700;
}

.primary:hover {
  color: white;
  background: #074456;
}

.ranking-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 50px 0 25px;
  min-height: 205px;
}
.ranking-intro h1 {
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 860px;
}
.ranking-intro p {
  font-size: 14px;
  color: var(--muted);
  max-width: 69ch;
  margin: 0 0 8px;
}
.ranking-intro a,
.auth small a,
.switch {
  color: var(--blue);
}
.ranking-intro img {
  object-fit: contain;
  mix-blend-mode: multiply;
  width: 17%;
  height: 145px;
  transform: rotate(4deg);
  margin-right: 3%;
}
.rank-filters {
  margin-bottom: 36px;
}
.rank-filters > b {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.catalog-panel {
  background: #f5f5f5;
}
.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  background: transparent;
}
.directory-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border-radius: 14px;
}
.directory-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.directory-item > svg {
  margin-left: auto;
}
.empty {
  color: var(--muted);
}
footer {
  margin-top: 60px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.foot {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.foot .brand {
  font-size: 18px;
}
.foot .brand svg {
  width: 26px;
}
.foot > div {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.foot > small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin: 23px 0 15px;
}
.lightbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.faq details {
  padding: 17px 22px;
  margin-bottom: 8px;
}
.faq summary {
  list-style: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq details p {
  max-width: 75ch;
  color: var(--muted);
  margin: 14px 0 0;
}
.profile,
.prose {
  padding: 34px;
}
.profiletop,
.metrics,
.program {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profiletop .schoolmark {
  width: 62px;
  height: 62px;
}
.profile h1,
.prose h1,
.auth h1,
.adminhead {
  font-size: 38px;
}
.profile > p,
.prose p {
  max-width: 78ch;
  margin: 22px 0;
  color: #464d5a;
}
.muted {
  color: var(--muted);
}
.metrics {
  gap: 36px;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  margin: 20px 0 26px;
}
.metrics small {
  margin-bottom: 6px;
}
.metrics .score {
  font-size: 21px;
}
.metrics .score small {
  display: inline;
  font-size: 13px;
  font-weight: 400;
}
.program {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  justify-content: space-between;
}
.program:last-child {
  padding-bottom: 0;
}
.lightbutton {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--blue);
  background: #f7f7ff;
  border-color: #e4e4fb;
}
.review {
  margin-top: 12px;
}
.review time {
  font-size: 12px;
  color: var(--muted);
  margin-left: 15px;
}
.review p {
  white-space: pre-line;
  margin: 12px 0 0;
}
.prose {
  max-width: 800px;
}
.prose h2,
.profile h2 {
  font-size: 23px;
}
.prose h2 {
  margin-top: 28px;
}
.auth {
  max-width: 440px;
  margin: 55px auto;
  min-height: 320px;
  padding: 32px;
}
.auth h1 {
  font-size: 30px;
}
.auth > p {
  margin: 10px 0 21px;
  color: var(--muted);
}
.auth form,
.editor form {
  display: grid;
  gap: 15px;
}
.auth label,
.editor label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.auth input,
.editor input,
.editor textarea {
  border: 1px solid #cfd3dd;
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  font-weight: 400;
}
.editor textarea {
  min-height: 85px;
  resize: vertical;
}
.auth small a,
.switch {
  color: var(--blue);
}
.switch {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
}
.auth .error {
  color: #aa2632;
}
.adminhead {
  margin: 8px 0 22px;
}
.adminlayout {
  display: grid;
  grid-template-columns: 215px minmax(0, 720px);
  gap: 20px;
}
.schoolnav {
  align-self: start;
  padding: 10px;
}
.schoolnav a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
}
.schoolnav .on,
.notice {
  background: #ececff;
  color: var(--blue);
}
.notice {
  padding: 9px 12px;
  border-radius: 8px;
}
.editor h3 {
  margin: 30px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.editor fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
}
.editor legend {
  font-weight: 700;
  padding: 0 4px;
}
.pair {
  display: flex;
  gap: 12px;
}
.editor button {
  justify-self: start;
}
[hidden] {
  display: none !important;
}
h2 small {
  color: var(--muted);
  font-size: 18px;
}
main {
  min-height: 65vh;
}
.profile h1,
.auth h1,
.prose h1 {
  line-height: 1.12;
  margin: 0;
}
.metrics .vote {
  justify-content: flex-start;
}
.program small,
.metrics small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.profile .metrics .score small {
  display: inline;
}
.lightbutton {
  background: #eef1f2;
  color: #122d39;
  border: 0;
  border-radius: 8px;
}
.adminlayout,
.auth {
  font-size: 15px;
}
.faq {
  margin-top: 36px;
}
.auth .primary {
  min-height: 43px;
}
.faq h2 {
  font-size: 26px;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .topline {
    gap: 25px;
    height: 72px;
  }
  .topline nav {
    gap: 16px;
    font-size: 13px;
  }
  .market {
    gap: 12px;
  }
  .tile-copy,
  .tall .tile-copy {
    padding: 19px;
  }
  .tile-copy h2,
  .tall .tile-copy h2 {
    font-size: 20px;
  }
  .tile-copy p {
    font-size: 13px;
  }
  .ranktable {
    padding-inline: 15px;
  }

  .home-ranking {
    padding: 20px;
  }
  .rankgrid th:first-child {
    width: auto;
  }
  .rankgrid th {
    font-size: 12px;
  }
  .identity {
    gap: 5px;
  }
  .schoollink {
    gap: 7px;
  }
  .market-section > h1 {
    margin-top: 35px;
  }
  .home-ranking {
    margin-top: 36px;
  }
}
@media (max-width: 960px) {
  .topline nav a:nth-child(4),
  .topline nav a:nth-child(5) {
    display: none;
  }
}
@media (max-width: 760px) {
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 154px);
  }
  .tile-academy {
    grid-column: 1/4;
    grid-row: 3;
    min-height: 120px;
  }
  .tile-academy .tile-copy p {
    max-width: 30ch;
  }
  .tile-academy .tile-art {
    width: 28%;
    height: 116%;
    right: 2%;
    bottom: -8%;
  }
  .tile-academy .tile-arrow {
    display: none;
  }
  .languages {
    grid-template-rows: 220px;
  }
  .rank-filters {
    margin-bottom: 23px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .topline {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0 0;
  }
  .brand {
    font-size: 20px;
  }
  .brand svg {
    width: 29px;
    height: 29px;
  }
  .topline nav {
    flex: 0 0 100%;
    order: 3;
    gap: 16px;
    padding: 10px 0;
    overflow: auto;
    white-space: nowrap;
  }
  .topline nav a:nth-child(4) {
    display: block;
  }
  .login,
  .navsearch {
    height: 33px;
  }
  .navsearch {
    width: 33px;
  }
  .login {
    padding-inline: 11px;
  }
  .market-section > h1 {
    font-size: 35px;
    margin: 28px 0 17px;
  }
  .segments {
    margin-bottom: 14px;
    border-radius: 16px;
  }
  .segments a {
    min-height: 36px;
    font-size: 13px;
    border-radius: 13px;
  }
  .market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 148px);
    gap: 9px;
  }
  .market-tile {
    border-radius: 20px;
  }
  .tile-es {
    grid-column: 1;
    grid-row: 1/3;
  }
  .tile-en {
    grid-column: 2;
    grid-row: 1;
  }
  .tile-de {
    grid-column: 2;
    grid-row: 2;
  }
  .tile-compare {
    grid-column: 1;
    grid-row: 3;
  }
  .tile-method {
    grid-column: 2;
    grid-row: 3;
  }
  .tile-academy {
    grid-column: 1/3;
    grid-row: 4;
    min-height: 112px;
  }
  .tile-copy,
  .tall .tile-copy {
    padding: 15px;
  }
  .tile-copy h2,
  .tall .tile-copy h2 {
    font-size: 18px;
  }
  .tile-copy p {
    font-size: 13px;
  }
  .tile-art {
    width: 54%;
    height: 62%;
  }
  .tall.tile-es .tile-art {
    width: 106%;
    height: 56%;
    right: -6%;
    bottom: 3%;
  }
  .tall.tile-es .tile-arrow {
    display: none;
  }
  .tile-academy .tile-copy p {
    max-width: 22ch;
    margin-top: 6px;
  }
  .tile-academy .tile-art {
    width: 39%;
    height: 103%;
    right: 0;
  }
  .tile-arrow {
    left: 15px;
    bottom: 14px;
    width: 19px;
    height: 19px;
  }
  .languages {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 112px);
  }
  .languages .tile-art,
  .languages .tall.tile-es .tile-art {
    width: 42%;
    height: 99%;
    right: 1%;
    bottom: -5%;
  }
  .languages .tile-copy h2 br {
    display: none;
  }
  .languages .tile-copy {
    padding: 16px;
  }
  .catalog-panel {
    padding: 14px;
  }
  .directory {
    grid-template-columns: 1fr;
  }
  .directory-item {
    padding: 11px;
  }
  .sectiontitle,
  .toolbar {
    flex-wrap: wrap;
    gap: 9px;
  }
  .sectiontitle h2,
  h2 {
    font-size: 24px;
  }
  .home-ranking {
    padding: 14px 9px;
    border-radius: 20px;
    margin-top: 25px;
  }
  .tabs a {
    font-size: 12px;
    padding: 7px 10px;
  }
  .tabs {
    gap: 5px;
  }
  .search {
    width: 100%;
  }
  .ranktable {
    padding: 4px 9px 7px;
    border-radius: 13px;
  }
  .rankgrid th {
    font-size: 10px;
    height: 44px;
  }
  .rankgrid td {
    height: 56px;
    font-size: 12px;
  }
  .rankgrid th:last-child {
    padding-left: 2px;
  }
  .rankgrid .schoolmark {
    width: 25px;
    height: 25px;
    border-radius: 7px;
  }
  .rankgrid .schoollink {
    gap: 5px;
  }
  .rankgrid .schoollink b {
    font-size: 12px;
  }
  .rankgrid .place {
    min-width: 9px;
    font-size: 10px;
  }
  .vote {
    gap: 2px;
  }
  .vote button {
    min-height: 29px;
    padding: 3px 4px;
    font-size: 11px;
    gap: 1px;
  }
  .vote svg {
    width: 11px;
  }
  .sortButton {
    padding: 0;
  }
  .sortButton span {
    margin-left: 2px;
  }

  .ranking-intro {
    padding: 24px 0 12px;
    min-height: 0;
  }
  .ranking-intro h1 {
    font-size: 28px;
  }
  .ranking-intro p {
    font-size: 13px;
  }
  .ranking-intro img {
    width: 18%;
    height: auto;
    margin-right: 0;
  }
  .ranking-intro > div {
    max-width: 80%;
  }
  .rank-filters {
    margin-bottom: 18px;
  }
  .section {
    margin-top: 24px;
  }
  .foot {
    padding: 17px 0;
    gap: 12px;
    flex-wrap: wrap;
  }
  .foot > div {
    flex-basis: 100%;
  }
  .foot > small {
    margin: 0;
  }
  footer {
    margin-top: 30px;
  }
  .panel {
    padding: 18px;
  }
  .prose h1,
  .profile h1,
  .adminhead {
    font-size: 28px;
  }
  .profiletop .schoolmark {
    width: 45px;
    height: 45px;
  }
  .program {
    gap: 6px;
  }
  .lightbutton {
    font-size: 12px;
  }
  .adminlayout {
    grid-template-columns: 1fr;
  }
  .schoolnav {
    display: flex;
    overflow-x: auto;
  }
  .schoolnav a {
    white-space: nowrap;
  }
  .auth {
    margin: 25px auto;
  }
  .crumbs {
    margin-top: 15px;
  }
  .metrics {
    gap: 18px;
  }
  .text-link {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[hidden] {
  display: none !important;
}
.market-section > h1,
.ranking-intro h1,
.tile-copy h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (max-width: 374px) {
  .rankgrid th:nth-child(4),
  .rankgrid td:nth-child(4) {
    display: none;
  }

  .topline nav {
    gap: 12px;
    font-size: 12px;
  }
  .tile-copy h2,
  .tall .tile-copy h2 {
    font-size: 16px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs a {
    padding: 6px 8px;
  }
}

.rankgrid .program-detail {
  text-align: left;
  color: #53616b;
  font-weight: 400;
  padding-inline: 16px;
  max-width: 30ch;
}
.rankgrid th.program-detail {
  font-weight: 700;
  color: inherit;
}
.tile-arrow,
.vote button,
.directory-item,
.tabs a {
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}
.segments {
  position: relative;
  isolation: isolate;
}
.segments::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 3);
  border-radius: inherit;
  background: #191f24;
  z-index: -1;
}
.segments[data-active="yazyki"]::before {
  transform: translateX(100%);
}
.segments[data-active="shkoly"]::before {
  transform: translateX(200%);
}
.segments[data-enhanced]::before {
  transition: transform 185ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.segments [aria-current] {
  background: transparent;
}
.segments a {
  transition: color 120ms ease-out;
}
.schoolrow,
.metrics {
  scroll-margin-block: 22px;
}
.vote button[aria-pressed="true"] {
  background: #d9eef2;
  color: #03546b;
}
.vote button:active {
  background: #c9e3ea;
}
.vote[aria-busy="true"] {
  cursor: progress;
}
.vote [aria-disabled="true"] {
  cursor: inherit;
}
.vote-message {
  font-size: 13px;
  color: #42505a;
  margin: 8px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 761px) {
  .market-stage {
    min-height: calc(2 * clamp(150px, 12.7vw, 185px) + 20px);
  }
}
@media (max-width: 760px) {
  .rankgrid .program-detail {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .segments::before {
    transition: none !important;
  }
}

.account summary {
  gap: 4px;
}
.account summary > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-empty {
  color: #7b8791;
}
@media (max-width: 600px) {
  .account summary {
    max-width: clamp(64px, 25vw, 140px);
  }
}
@media (pointer: coarse) {
  .vote button {
    min-height: 40px;
    min-width: 32px;
  }
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/open-sans-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF;
}
.ranking-intro h1 {
  font-size: 38px;
  line-height: 44px;
  letter-spacing: -0.012em;
}
.ranking-intro p,
.rank-filters,
.rankgrid,
.vote,
.picker form,
.filter-result {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
}
.rank-filters .tabs a {
  font-weight: 600;
}
.rating-workspace.with-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 23%, 300px);
  column-gap: 20px;
  align-items: start;
}
.rating-workspace .ranking-results {
  grid-area: 1/1;
  min-width: 0;
  scroll-margin-block: 16px;
}
.picker {
  grid-area: 1/2;
  background: #fff;
  border-radius: 17px;
  padding: 24px;
}
.picker summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 23px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.picker summary::-webkit-details-marker {
  display: none;
}
.picker summary svg {
  margin-left: auto;
  color: #63717b;
  transition: transform 150ms ease;
}
.picker details[open] summary svg {
  transform: rotate(180deg);
}
.picker form {
  display: grid;
  gap: 20px;
  padding-top: 20px;
}
.picker fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.picker legend {
  color: #596570;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice span {
  display: block;
  border: 1px solid #d5dadf;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 600;
}
.choice input:checked + span {
  background: #e5f3f5;
  border-color: #82b5bf;
  color: #134555;
}
.choice input:focus-visible + span {
  outline: 2px solid #0086a1;
  outline-offset: 2px;
}
.picker .primary {
  width: 100%;
  min-height: 44px;
}
.clear-pick {
  justify-self: center;
  color: #006c91;
  font-size: 13px;
}
.filter-number {
  background: #e5f3f5;
  border-radius: 50%;
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}
.filter-result {
  margin: 0 0 10px;
  color: #51616d;
}
.empty-pick {
  background: white;
  border-radius: 16px;
  padding: 28px;
}
.empty-pick h2 {
  font-size: 23px;
}
.rankgrid {
  font-variant-numeric: tabular-nums;
}
.rankgrid th {
  font-size: 14px;
  font-weight: 600;
  height: 56px;
}
.rankgrid td {
  height: 68px;
  font-size: 14px;
  line-height: 20px;
}
.rankgrid th.program-detail {
  font-weight: 600;
}
.schoollink b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
}
.sortButton {
  font-weight: 600;
}
.rankgrid .schoolmark {
  width: 36px;
  height: 36px;
}
.rankgrid .score {
  font-weight: 600;
}
.official-program {
  color: #445460;
}
.official-program svg,
.mobile-program svg {
  vertical-align: middle;
  color: #708692;
}
.mobile-program {
  display: none;
}
.rankgrid .vote,
.metrics .vote {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
  border: 1px solid #dce1e4;
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.vote button {
  border-radius: 0;
  background: transparent;
  min-width: 43px;
  min-height: 34px;
  padding: 5px 8px;
  gap: 5px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: #4f5c67;
}
.vote button + button {
  border-left: 1px solid #dce1e4;
}
.vote button:focus-visible {
  outline-offset: -3px;
}
.vote button[aria-pressed="true"] {
  color: #005a72;
  background: #e1f3f5;
}
.program-tags,
.edit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.program-tags span {
  font-size: 12px;
  background: #f3f5f6;
  border-radius: 7px;
  padding: 3px 7px;
}
.editor .edit-tags label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding-right: 6px;
}
.editor .edit-tags input {
  width: auto;
}
.rankgrid td.program-detail {
  text-align: left;
  padding-right: 10px;
}
.rankgrid th:first-child {
  width: 32%;
}
@media (max-width: 1050px) {
  .rating-workspace.with-picker {
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 12px;
  }
  .picker {
    padding: 18px;
  }
  .rating-workspace .rankgrid .program-detail {
    max-width: 14ch;
  }
}
@media (max-width: 900px) {
  .rating-workspace.with-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .picker,
  .ranking-results {
    width: 100%;
  }
  .picker {
    padding: 12px 16px;
  }
  .picker summary {
    font-size: 16px;
    line-height: 24px;
  }
  .picker form {
    gap: 16px;
  }
  .choice span {
    padding: 9px 12px;
  }
  .picker .primary {
    width: fit-content;
  }
  .clear-pick {
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .ranking-intro {
    min-height: 0;
    padding-top: 27px;
  }
  .ranking-intro > div {
    max-width: 100%;
  }
  .ranking-intro img {
    display: none;
  }
  .ranking-intro h1 {
    font-size: 25px;
    line-height: 32px;
    letter-spacing: normal;
  }
  .ranking-intro p {
    font-size: 14px;
    line-height: 20px;
  }
  .rank-filters {
    margin-bottom: 18px;
  }
  .rankgrid th:nth-child(4),
  .rankgrid td:nth-child(4) {
    display: none;
  }
  .rankgrid th,
  .sortButton {
    font-size: 12px;
    font-weight: 600;
    height: 52px;
  }
  .rankgrid th:first-child {
    width: auto;
  }
  .rankgrid td {
    height: 68px;
    padding-block: 6px;
  }
  .rankgrid .identity {
    display: grid;
    grid-template-columns: 12px 32px minmax(0, 1fr);
    column-gap: 6px;
    row-gap: 0;
    text-align: left;
  }
  .rankgrid .place {
    grid-area: 1/1/3/2;
    font-size: 11px;
  }
  .rankgrid .schoollink {
    display: contents;
  }
  .rankgrid .schoollink b {
    grid-area: 1/3;
    font-size: 14px;
    line-height: 18px;
    align-self: end;
  }
  .rankgrid .schoollink:focus-visible b {
    outline: 2px solid #0086a1;
  }
  .rankgrid .schoolmark {
    grid-area: 1/2/3/3;
    width: 32px;
    height: 32px;
  }
  .rankgrid .mobile-program {
    grid-area: 2/3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    line-height: 18px;
    color: #526673;
    width: fit-content;
  }
  .rankgrid .score {
    font-size: 14px;
  }
  .rankgrid .vote button,
  .metrics .vote button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px;
    gap: 3px;
    font-size: 12px;
  }
  .vote svg {
    width: 15px;
    height: 15px;
  }
  .rankgrid th:last-child {
    padding-left: 6px;
  }
  .rankgrid .program-detail {
    display: none;
  }
  .program {
    align-items: flex-start;
  }
  .program-tags {
    max-width: 42ch;
  }
  .program .lightbutton {
    flex-shrink: 0;
  }
}
@media (max-width: 359px) {
  .rankgrid .identity {
    grid-template-columns: 10px 24px minmax(0, 1fr);
    column-gap: 4px;
  }
  .rankgrid .schoolmark {
    width: 24px;
    height: 24px;
  }
  .rankgrid th {
    font-size: 11px;
  }
  .rankgrid .schoollink b {
    font-size: 13px;
  }
}
.mobile-nav {
  display: none;
}
@media (max-width: 600px) {
  header .topline {
    height: 60px;
    min-height: 60px;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    position: relative;
  }
  header .desktop-nav {
    display: none;
  }
  header .mobile-nav {
    display: block;
  }
  header .mobile-nav summary {
    display: grid;
    place-items: center;
    list-style: none;
    width: 30px;
    height: 44px;
    cursor: pointer;
  }
  header .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  header .mobile-nav nav {
    display: grid;
    gap: 0;
    position: absolute;
    z-index: 20;
    top: calc(100% - 3px);
    left: 0;
    min-width: 195px;
    max-width: 100%;
    padding: 5px;
    border: 1px solid #e1e5e8;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 25px #162b3b16;
  }
  header .mobile-nav nav a {
    display: block;
    padding: 11px 12px;
    font-size: 14px;
  }
  header .mobile-nav nav a:hover {
    background: #f4f6f7;
    border-radius: 7px;
  }
  .topline .brand {
    gap: 4px;
  }
  .topline .usernav {
    gap: 5px;
  }
}
@media (max-width: 359px) {
  header .topline {
    gap: 3px;
  }
  .topline .brand {
    font-size: 17px;
  }
  .topline .brand svg {
    width: 24px;
  }
  .topline .navsearch {
    width: 28px;
  }
  .usernav .account summary {
    max-width: 62px;
  }
}
