@font-face {
    font-family: "CoFo Sans Semi-Mono";
    src: url("fonts/CoFoSansSemi-Mono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Areal Numeral Vol";
    src: url("fonts/ArealNumeralVol.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

/* Reset the old shell without changing styles of the page content. */
#legacy-header-shell,
#legacy-footer-shell {
    font-family: "Manrope";
    font-weight: 400;
    color: #262626;

    & :where(*:not(svg, svg *)) {
        all: revert;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    & :where(*)::before,
    & :where(*)::after {
        content: none;
    }
    & button {
        font-family: inherit;
        border: none;
        background: transparent;
    }
    & img {
        max-width: 100%;
        display: block;
        user-select: none;
    }
    & a {
        text-decoration: none;
        font-size: inherit;
    }
    & ul {
        list-style: none;
    }
    & .container {
        max-width: 1440px;
        width: 100%;
        padding: 0 48px;
        height: 100%;
        margin: 0 auto;
    }
    @media (max-width: 992px) {
        & .container { padding: 0 24px; }
    }
    @media (max-width: 480px) {
        & .container { padding: 0 20px; }
    }

.header {
    z-index: 10;
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    transition: top 0.8s ease-in-out;
  }
  .header .switcher a {
    color: #fff;
  }
  .header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
  }
  @media (max-width: 600px) {
    .header__content {
      padding: 12px 0;
    }
  }
  .header--hidden {
    top: -74px;
  }
  @media (max-width: 768px) {
    .header--hidden {
      top: -64px;
    }
  }
  @media (max-width: 600px) {
    .header--hidden {
      top: -58px;
    }
  }
  .header--isScrolled {
    background: #FBFBFB;
  }
  .header--white .logo--black, .header--white .burger__black {
    display: none;
  }
  .header--white .header__menu > li {
    color: #FBFBFB;
  }
  @media (min-width: 769px) {
    .header--white .header__menu > li > a:hover {
      background: rgba(38, 38, 38, 0.4);
    }
  }
  .header--white .header__dropdown span::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.2497 4.8125L6.99971 10.0632L1.74902 4.8125' stroke='%23FBFBFB' stroke-width='0.875'/%3e%3c/svg%3e ");
  }
  @media (min-width: 769px) {
    .header--white .header__dropdown:hover span {
      background: rgba(38, 38, 38, 0.4);
      backdrop-filter: blur(60px);
    }
  }
  .header--white .header__dropdown ul a {
    color: #FBFBFB;
  }
  @media (min-width: 769px) {
    .header--white .header__dropdown ul a:hover {
      color: rgba(251, 251, 251, 0.56);
    }
  }
  .header--white .switcher a {
    color: #FBFBFB;
  }
  .header--black .logo--white, .header--black .burger__white, .header--isScrolled .logo--white, .header--isScrolled .burger__white {
    display: none;
  }
  .header--black .header__menu > li, .header--isScrolled .header__menu > li {
    color: #262626;
  }
  @media (max-width: 768px) {
    .header--black .header__menu > li, .header--isScrolled .header__menu > li {
      color: #fbfbfb;
    }
  }
  @media (min-width: 769px) {
    .header--black .header__menu > li > a:hover, .header--isScrolled .header__menu > li > a:hover {
      background: rgba(38, 38, 38, 0.05);
    }
  }
  .header--black .header__dropdown span::after, .header--isScrolled .header__dropdown span::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.2497 4.8125L6.99971 10.0632L1.74902 4.8125' stroke='%23262626' stroke-width='0.875'/%3e%3c/svg%3e ");
  }
  @media (min-width: 769px) {
    .header--black .header__dropdown:hover span, .header--isScrolled .header__dropdown:hover span {
      background: rgba(38, 38, 38, 0.05);
    }
    .header--black .header__dropdown ul, .header--isScrolled .header__dropdown ul {
      background: rgb(240, 240, 240);
      backdrop-filter: none;
    }
  }
  .header--black .header__dropdown ul a, .header--isScrolled .header__dropdown ul a {
    color: #262626;
  }
  @media (max-width: 768px) {
    .header--black .header__dropdown ul a, .header--isScrolled .header__dropdown ul a {
      color: #fbfbfb;
    }
  }
  @media (min-width: 769px) {
    .header--black .header__dropdown ul a:hover, .header--isScrolled .header__dropdown ul a:hover {
      color: rgba(38, 38, 38, 0.56);
    }
  }
  .header--black .switcher a, .header--isScrolled .switcher a {
    color: #262626;
  }
  @media (max-width: 768px) {
    .header--black .switcher a, .header--isScrolled .switcher a {
      color: #fbfbfb;
    }
  }
  .header--black .btn--blurred:not(.header__nav .btn--callback), .header--isScrolled .btn--blurred:not(.header__nav .btn--callback) {
    background: #F0F0F0;
    color: #262626;
  }
  @media (min-width: 769px) {
    .header--isScrolled .header__dropdown .header__submenu ul {
      background: #fbfbfb;
      backdrop-filter: none;
    }
  }
  .header--isScrolled .logo--black, .header--isScrolled .burger__black {
    display: block;
  }
  .header--isScrolled .header__dropdown:hover span {
    background: rgba(38, 38, 38, 0.05);
  }
  .header__logo {
    width: 83px;
    outline: none;
  }
  @media (max-width: 600px) {
    .header__logo {
      width: 89px;
    }
  }
  .header__logo img, .header__logo svg {
    width: 100%;
    height: 100%;
  }
  @media (max-width: 768px) {
    .header__nav {
      transition: all 500ms ease-out;
      transform: translateY(-100%);
      visibility: hidden;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      padding: 16px 24px 32px 24px;
      border-radius: 0 0 10px 10px;
      background: rgba(38, 38, 38, 0.4);
      backdrop-filter: blur(160px);
    }
    .header__nav.open {
      transform: translateY(0);
      visibility: visible;
    }
  }
  @media (max-width: 600px) {
    .header__nav {
      padding: 19px 20px 32px 20px;
    }
  }
  .header__menu {
    display: flex;
    gap: 8px;
  }
  @media (max-width: 768px) {
    .header__menu {
      flex-direction: column;
      margin-top: 48px;
      gap: 16px;
      padding-bottom: 32px;
      position: relative;
    }
    .header__menu::after {
      display: block;
      content: "";
      width: calc(100% + 64px);
      position: absolute;
      bottom: 0;
      left: -32px;
      height: 1px;
      background-color: rgba(251, 251, 251, 0.16);
    }
  }
  @media (max-width: 600px) {
    .header__menu {
      margin-top: 55px;
      gap: 18px;
    }
  }
  .header__menu > li {
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.3px;
  }
  @media (max-width: 768px) {
    .header__menu > li {
      font-weight: 600;
    }
  }
  .header__menu > li > a {
    font: inherit;
    color: inherit;
    display: block;
    width: fit-content;
    border-radius: 10px;
    transition: all 500ms ease-out;
  }
  @media (min-width: 769px) {
    .header__menu > li > a {
      padding: 10px 12px;
    }
    .header__menu > li > a:hover {
      backdrop-filter: blur(60px);
    }
  }
  .header__dropdown {
    cursor: pointer;
    position: relative;
    order: 10;
    margin-top: 16px;
  }
  .header__dropdown span {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 19px;
    width: fit-content;
    transition: all 500ms ease-out;
    margin-bottom: 19px;
  }
  @media (min-width: 769px) {
    .header__dropdown {
      order: unset;
      margin-top: 0;
    }
    .header__dropdown span {
      padding: 10px;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      margin-bottom: 0;
    }
    .header__dropdown span::after {
      display: block;
      content: "";
      width: 14px;
      height: 14px;
      background-repeat: no-repeat;
      background-position: center;
      transition: all 500ms ease-out;
    }
  }
  .header__dropdown ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transition: all 300ms ease;
  }
  @media (min-width: 769px) {
    .header__dropdown ul {
      padding: 20px 12px;
      gap: 12px;
      width: 222px;
      border-radius: 10px;
      visibility: hidden;
      opacity: 0;
      border-radius: 10px;
      background: rgba(38, 38, 38, 0.4);
      backdrop-filter: blur(60px);
    }
  }
  @media (max-width: 600px) {
    .header__dropdown ul {
      gap: 10px;
    }
  }
  .header__dropdown ul a, .header__dropdown ul li {
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.3px;
    display: block;
  }
  .header__dropdown a {
    transition: all 500ms ease-out;
  }
  @media (min-width: 769px) {
    .header__dropdown li {
      width: 89%;
    }
  }
  @media (min-width: 769px) {
    .header__dropdown:hover span {
      backdrop-filter: blur(60px);
    }
    .header__dropdown:hover span::after {
      transform: rotate(180deg);
    }
    .header__dropdown:hover .header__submenu {
      visibility: visible;
    }
    .header__dropdown:hover .header__submenu ul {
      visibility: visible;
      opacity: 1;
    }
  }
  @media (min-width: 769px) {
    .header__submenu {
      visibility: hidden;
      position: absolute;
      top: 42px;
      left: 0;
      padding-top: 6px;
      border-radius: 10px;
    }
  }
  .header__close {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.5 4.5L19.5 19.5M19.5 4.5L4.5 19.5' stroke='%23FBFBFB' stroke-width='1.25'/%3e%3c/svg%3e ");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 24px;
  }
  @media (min-width: 769px) {
    .header__close {
      display: none;
    }
  }
  @media (max-width: 600px) {
    .header__close {
      width: 20px;
      height: 20px;
      top: 18px;
      right: 20px;
    }
  }
  .header__contacts {
    padding-top: 32px;
  }
  @media (min-width: 769px) {
    .header__contacts {
      display: none;
    }
  }
  @media (max-width: 600px) {
    .header__contacts {
      padding-top: 34px;
    }
  }
  .header__contact, .header__socials {
    color: rgba(251, 251, 251, 0.68);
    font-variant-numeric: lining-nums tabular-nums;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    display: block;
  }
  .header__contact + .header__contact {
    margin-top: 8px;
  }
  @media (max-width: 600px) {
    .header__contact + .header__contact {
      margin-top: 9px;
    }
  }
  .header__socials {
    display: flex;
    gap: 16px;
    margin-top: 16px;
  }
  .header__socials .header__contact {
    margin-top: 0;
  }
  @media (max-width: 600px) {
    .header__socials {
      margin-top: 18px;
    }
  }
  .header--career .header__content {
    padding: 15px 0;
  }
  @media (min-width: 769px) {
    .header--career .header__menu > li > a {
      padding: 10px 12px;
    }
    .header--career .header__nav {
      transform: translateX(43px);
    }
  }
  @media (max-width: 768px) {
    .header--career .btn--callback {
      display: none;
    }
  }
  .header--career .header__nav .btn--callback {
    display: none;
    background-color: #545454;
  }
  @media (max-width: 768px) {
    .header--career .header__nav .btn--callback {
      display: block;
      margin-top: 24px;
    }
  }
  @media (max-width: 600px) {
    .header--career .header__logo {
      width: 78px;
      height: 28px;
    }
  }
  .header--career .header__logo--mobnav {
    display: none;
  }
  @media (max-width: 768px) {
    .header--career .header__logo--mobnav {
      display: block;
    }
  }
  .header--inner .switcher--desktop {
    display: none;
  }
  @media (max-width: 992px) {
    .header--inner .btn--callback {
      display: none;
    }
  }
  .header--vacancies .header__content {
    padding: 15px 0;
  }
  .header--vacancies .header__menu {
    transform: translateX(44px);
  }
  @media (max-width: 768px) {
    .header--vacancies .btn--callback {
      display: none;
    }
  }
  .header--school .btn--blurred {
    background: #F0F0F0;
    color: #262626;
  }
  @media (max-width: 768px) {
    .header--school .btn--callback {
      display: none;
    }
  }
  .header--school .header__nav {
    margin-left: 98px;
  }
  @media (max-width: 992px) {
    .header--school .header__nav {
      margin-left: 0;
    }
  }
  .header--school .header__nav .btn--callback {
    display: none;
  }
  @media (max-width: 768px) {
    .header--school .header__nav .btn--callback {
      display: block;
      margin-top: 24px;
    }
  }
  @media (max-width: 768px) {
    .header--students .btn--callback {
      display: none;
    }
  }
  .header--students .header__nav {
    margin-left: 98px;
  }
  @media (max-width: 992px) {
    .header--students .header__nav {
      margin-left: 0;
    }
  }
  .header--students .header__nav .btn--callback {
    display: none;
  }
  @media (max-width: 768px) {
    .header--students .header__nav .btn--callback {
      display: block;
      margin-top: 24px;
    }
  }
  .header__logo--mobnav .logo--white {
    display: block !important;
  }
  .burger {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: none;
  }
  .burger img, .burger svg {
    width: 100%;
    height: 100%;
  }
  @media (max-width: 768px) {
    .burger {
      display: block;
    }
  }
  @media (max-width: 600px) {
    .burger {
      width: 20px;
      height: 20px;
    }
  }
  .header--inner + .main {
    padding-top: 78px;
  }
  @media (max-width: 600px) {
    .header--inner + .main {
      padding-top: 56.16px;
    }
  }
  .logo img, .logo svg {
    width: 100%;
    height: 100%;
  }
  .logo--white {
    width: 140px;
    height: 59px;
  }
  @media (max-width: 480px) {
    .logo--white {
      width: 96px;
      height: 41px;
      margin-left: -3px;
    }
  }
  .logo--black {
    width: 89px;
    height: 32px;
  }
  .logo--footer {
    width: 43px;
    height: 48px;
  }
  @media (max-width: 480px) {
    .logo--footer {
      display: none;
    }
  }
  .switcher {
    display: flex;
    gap: 16px;
  }
  .switcher--mobile {
    display: none;
    width: fit-content;
  }
  @media (max-width: 768px) {
    .switcher--desktop {
      display: none;
    }
    .switcher--mobile {
      display: flex;
    }
  }
  .switcher a {
    display: block;
    color: #525252;
    font-family: "Manrope";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 145%;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 500ms ease-out;
  }
  @media (max-width: 480px) {
    .switcher a {
      font-size: 12px;
      letter-spacing: 0.48px;
    }
  }
  @media (min-width: 992px) {
    .switcher a:hover {
      color: #9E8446;
    }
  }
.footer {
    background: #F0F0F0;
    padding: 32px 0 24px 0;
  }
  @media (max-width: 600px) {
    .footer {
      padding: 32px 0 20px 0;
    }
  }
  .footer__main, .footer__bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer__main {
    margin-bottom: 136px;
  }
  @media (max-width: 992px) {
    .footer__main {
      margin-bottom: 86px;
    }
  }
  @media (max-width: 600px) {
    .footer__main {
      display: flex;
      flex-direction: column;
      margin-bottom: 32px;
    }
  }
  .footer__bottom {
    align-items: center;
  }
  @media (max-width: 992px) {
    .footer__bottom {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
    }
  }
  .footer__contact {
    color: rgba(38, 38, 38, 0.56);
    font-family: "Manrope";
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.3px;
    display: block;
    transition: all 300ms ease;
    font-variant-numeric: lining-nums tabular-nums;
    width: fit-content;
  }
  .footer__contact--tel {
    font-family: "Areal Numeral Vol";
  }
  @media (min-width: 993px) {
    .footer__contact:hover {
      color: #262626;
    }
  }
  @media (max-width: 600px) {
    .footer__contact {
      font-size: 12px;
      line-height: 16px;
    }
  }
  .footer__contact + .footer__contact {
    margin-top: 8px;
  }
  .footer__socials {
    margin-top: 24px;
  }
  @media (max-width: 600px) {
    .footer__socials {
      margin-top: 16px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .footer__socials .footer__contact {
      margin-top: 0;
    }
  }
  .footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  @media (max-width: 992px) {
    .footer__nav {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 600px) {
    .footer__nav {
      grid-template-columns: 100%;
      gap: 32px;
    }
  }
  .footer__nav li {
    color: #262626;
    font-family: "CoFo Sans Semi-Mono";
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.78px;
    text-transform: uppercase;
  }
  @media (max-width: 600px) {
    .footer__nav li {
      font-size: 11px;
      line-height: 16px;
      letter-spacing: 0.66px;
    }
  }
  .footer__nav li a {
    font-family: "CoFo Sans Semi-Mono";
    color: #262626;
    transition: all 300ms ease;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.78px;
    text-transform: uppercase;
  }
  @media (max-width: 600px) {
    .footer__nav li a {
      font-size: 11px;
      line-height: 16px;
      letter-spacing: 0.66px;
    }
  }
  @media (min-width: 993px) {
    .footer__nav li a:hover {
      color: rgba(38, 38, 38, 0.56);
    }
  }
  .footer__nav li ul {
    margin-top: 12px;
  }
  .footer__nav li ul li {
    text-transform: none;
    color: #262626;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.3px;
    font-family: "Manrope";
  }
  @media (max-width: 992px) {
    .footer__nav li ul li {
      font-size: 12px;
      line-height: 18px;
      letter-spacing: 0.12px;
    }
  }
  @media (max-width: 600px) {
    .footer__nav li ul li {
      line-height: 16px;
      letter-spacing: 0.24px;
    }
  }
  .footer__nav li ul li + li {
    margin-top: 12px;
  }
  .footer__nav li + li {
    margin-top: 12px;
  }
  .footer__logo {
    max-width: 99px;
    max-height: 36px;
  }
  @media (max-width: 992px) {
    .footer__logo {
      margin-bottom: 16px;
    }
  }
  @media (max-width: 600px) {
    .footer__logo {
      margin-bottom: 32px;
    }
  }
  .footer__policy {
    display: flex;
    gap: 4px 24px;
  }
  @media (max-width: 992px) {
    .footer__policy {
      margin-bottom: 4px;
      flex-wrap: wrap;
    }
  }
  @media (max-width: 600px) {
    .footer__policy {
      margin-bottom: 12px;
    }
  }
  .footer__link {
    color: rgba(38, 38, 38, 0.56);
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.12px;
    transition: all 300ms ease;
  }
  @media (min-width: 993px) {
    .footer__link:hover {
      color: #262626;
    }
  }
  @media (max-width: 600px) {
    .footer__link {
      font-size: 10px;
      line-height: 14px;
      letter-spacing: 0.1px;
    }
  }
  .footer--career {
    background: #F0F0EB;
  }
  .footer--career .footer__main {
    margin-bottom: 86px;
  }
  @media (max-width: 992px) {
    .footer--career .footer__main {
      gap: 24px;
      margin-bottom: 95px;
    }
  }
  @media (max-width: 600px) {
    .footer--career .footer__main {
      gap: 29px;
      margin-bottom: 33px;
    }
  }
  .footer--career .footer__bottom {
    align-items: flex-end;
  }
  @media (max-width: 992px) {
    .footer--career .footer__bottom {
      align-items: flex-start;
    }
  }
  .footer--career .copyright {
    transform: translateX(6px);
  }
  @media (max-width: 992px) {
    .footer--career .copyright {
      transform: none;
    }
  }
  .footer--career .footer__nav {
    height: fit-content;
  }
  @media (max-width: 992px) {
    .footer--career .footer__nav {
      grid-template-columns: 100%;
      gap: 12px;
    }
  }
  @media (max-width: 992px) {
    .footer--career .footer__contact {
      font-size: 12px;
      line-height: 18px;
      letter-spacing: 0.12px;
    }
  }
  @media (max-width: 600px) {
    .footer--career .footer__socials {
      margin-top: 13px;
    }
  }
  .footer--school {
    background: #FBFBFB;
  }
  .copyright {
    color: rgba(38, 38, 38, 0.56);
    text-align: center;
    font-family: "Manrope";
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.12px;
    display: flex;
    justify-content: flex-end;
    height: fit-content;
    gap: 6px;
    width: fit-content;
    justify-self: flex-end;
  }
  .copyright svg, .copyright img {
    width: 23px;
    height: 11.44px;
    transition: all 300ms ease;
  }
  @media (min-width: 993px) {
    .copyright:hover svg, .copyright:hover img {
      transform: scale(1.2);
    }
  }
  .copyright--mobile {
    display: none;
  }
  @media (max-width: 992px) {
    .copyright--mobile {
      display: block;
    }
  }
  @media (max-width: 992px) {
    .copyright--desktop {
      display: none;
    }
  }
}
