@media only screen and (max-width: 1600px) {
  html {
    font-size: 58%;
  }
}

@media only screen and (max-width: 1499px) {
  html {
    font-size: 54%;
  }
}

@media only screen and (max-width: 1399px) {
  html {
    font-size: 52%;
  }
}

@media only screen and (max-width: 1199px) {
  html {
    font-size: 62.5%;
  }

  .header {
    top: 0;
  }

  .header__inner {
    justify-content: space-between;
    padding: 1rem 3rem;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__menu {
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateX(-100vw);
    z-index: 100;
    height: 100vh;
    width: 100%;
    background-color: #fff;
    transition-property: transform;
    transition-duration: 0.3s;
  }

  .header__menu .header__logo {
    display: none;
  }

  .header__list {
    flex-direction: column;
  }

  .header__list li:hover .sub-menu {
    opacity: 0;
    visibility: hidden;
  }

  .header__list li a {
    padding: 0;
  }

  .header__list li {
    margin: 0 1rem;
    margin-bottom: 2rem;
  }

  .menu-item-has-children {
    padding: 0;
  }

  .menu-item-has-children:after {
    display: none;
  }

  .header__menu.active {
    transform: translateX(0);
  }

  .header__menu.active .header__list a {
    font-size: 2.5rem;
    color: #000e23;
  }

  .header__right {
    display: flex;
    align-items: center;
  }

  .header__mobile_logo {
    display: block;
  }

  .plug {
    display: none;
  }

  .hero {
    height: calc(100vh - 9rem);
  }

  .hero__slide_wrap {
    min-height: auto;
  }

  .hero__title {
    margin-bottom: 5rem;
    font-size: 3.2rem;
  }

  .hero__link {
    max-width: 16rem;
    min-height: 3rem;
    font-size: 1.4rem;
  }

  .specialties,
  .history,
  .events,
  .news,
  .science {
    padding: 2rem 0;
  }

  .specialties__list__spec {
    grid-template-columns: repeat(3, 1fr);
  }

  .specialties__description {
    padding: 0;
  }

  .events__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .news__list {
    grid-template-columns: repeat(1, 1fr);
  }

  .news__img_wrapper {
    order: 1;
    width: 40%;
  }

  .news__img_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .news__item_content {
    width: 80%;
    order: 2;
  }

  .news__item_content {
    max-width: 65rem;
    padding: 1rem 2.5rem;
  }

  .university_name {
    display: none;
  }

  .specialties__list__departments {
    grid-template-columns: repeat(2, 1fr);
  }

  h2 {
    font-size: 3.6rem;
  }

  .footer__list {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 3rem;
  }

  .footer__item:not(:last-child) {
    margin-bottom: 2rem;
  }

  .footer__item:nth-child(2) {
    padding: 0;
    border: none;
  }

  .form__textarea {
    min-width: auto;
    max-width: 100%;
    resize: none;
  }

  .footer__item:nth-child(3) {
    padding: 0;
  }

  .footer {
    padding: 2rem 0;
  }

  .main__sub {
    padding-top: 2rem;
    margin-bottom: 2rem;
  }

  .employees__list {
    flex-direction: column;
  }

  .employees__list .employees__item {
    max-width: 100%;
  }

  .employees__list__main .employees__item:not(:last-child) {
    margin-bottom: 2rem;
  }

  .employees__list__sub {
    grid-template-columns: 1fr;
  }

  .posts__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .post h3 {
    font-size: 1.8rem;
  }

  .post .post__text {
    font-size: 1.4rem;
  }

  .departments_page__item {
    flex-direction: column;
  }

  .departments_page__item_left {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 2.5rem;
  }

  .departments_page__item_left h3 {
    order: 2;
  }

  .departments_page__img_wrapper {
    margin-bottom: 1rem;
    max-width: 20rem;
    width: 100%;
  }

  .tabs {
    display: none;
  }

  .departments_page__info {
    margin-bottom: 1rem;
    padding: 0;
    justify-content: space-between;
  }

  .departments_page__item_right {
    padding: 2rem;
  }

  .accordion {
    display: block;
  }

  .accordion__content {
    overflow-x: auto;
  }

  .accordion__content table {
    min-width: 50rem;
  }

  .form__btn {
    width: 100%;
    min-width: auto;
  }

  .hero {
    height: auto;
  }

  .hero__inner {
    height: auto;
  }

  .hero__col {
    width: 100%;
  }

  .hero__col__left {
    padding: 2rem 1.5rem;
  }

  .hero__col__right {
    display: none;
  }

  .hero h2 {
    margin-bottom: 2rem;
  }

  .statistics__inner {
    padding: 2rem 0;
  }

  .about__inner {
    padding: 2rem 0;
  }

  .about__content h2 {
    font-size: 3.6rem;
  }

  .about__inner {
    gap: 2rem;
  } 

  .students__prev_btn, .students__next_btn {
    display: none;
  }

  .teachers__prev_btn, .teachers__next_btn {
    display: none;
  }

  .advantages__inner {
    padding: 2rem 0;
  }

  .teachers__inner {
    padding: 2rem 0;
  }
}

@media only screen and (max-width: 1024px) {
  .specialties__text p {
    font-size: 1.4rem;
  }

  .specialties__description h3 {
    margin-right: 4.8rem;
    font-size: 2rem;
  }
  .specialties__text a {
    font-size: 1.4rem;
  }

  .specialties__list__spec li h4 {
    font-size: 1.4rem;
  }

  .specialties__list__departments li .specialties__text_wrap h4 {
    font-size: 1.6rem;
  }

  .history__item {
    flex-direction: column;
    min-height: auto;
  }

  .history__text {
    font-size: 1.4rem;
    width: 100%;
  }

  .history__links a {
    font-size: 1.4rem;
  }

  .history__img_wrapper {
    width: 100%;
  }

  .history__item .history__text {
    order: 2;
    padding: 2.4rem;
  }

  .events__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .events__item_title {
    font-size: 1.6rem;
  }

  .events__item_descr {
    font-size: 1.4rem;
  }

  .news__item_title {
    font-size: 1.6rem;
  }

  .news__item_descr {
    font-size: 1.4rem;
  }

  .news__link {
    font-size: 1.6rem;
  }

  .form__btn {
    font-size: 1.6rem;
  }

  .history_page__inner p {
    font-size: 1.6rem;
  }

  .departments_page__item_left h3 {
    margin-bottom: 0;
  }

  .departments_page__text {
    font-size: 1.4rem;
  }

  .departments_page__text_bold {
    font-size: 1.6rem;
  }

  .tabs__content_text {
    font-size: 1.4rem;
  }

  .tabs__content_title {
    font-size: 1.6rem !important;
  }

  .page__body {
    font-size: 1.4rem;
  }

  .important_info {
    font-size: 1.6rem;
  }

  .statistics ul {
    gap: 2rem;
    justify-content: space-between;
  }

  .statistics__count {
    font-size: 2.5rem;
  }

  .statistics__name {
    font-size: 1.4rem;
  }

  .educ_program__item_content h3 {
    margin-bottom: 1rem;
  }

  .educ_program__item_content p {
    font-size: 1.4rem;
  }

  .educ_program__inner {
    padding: 2rem 0;
  }

  .educ_program li::after {
    font-size: 2rem;
  }

  .advantages__text {
    padding: 1.5rem;
  }

  .advantages__text > div, .advantages__text > p, .advantages__text > strong {
    font-size: 1.6rem;
  }

  .advantages__list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .advantages__item {
    flex-direction: column;
  }

  .advantages__text {
    order: 2;
    width: 100%;
  }

  .advantages__img_wrapper {
    order: 1;
    width: 100%;
  }

  .advantages__item:after {
    display: none;
  }

  h2 {
    margin-bottom: 3.5rem;
  }

  .opportunities__program_img_wrapper img {
    max-width: 20rem;
  }

  .opportunities__program_text p {
    font-size: 1.8rem;
  }
}

@media (max-height: 499px) and (max-width: 899px), (max-width: 767px) {
  .container {
    padding: 0 1.5rem;
  }

  .history__links {
    flex-direction: column;
  }

  .history__links::after {
    display: none;
  }

  .history__links a {
    width: 100%;
  }

  .history__links a:not(:last-child) {
    margin-bottom: 1rem;
  }

  .events__list {
    grid-template-columns: repeat(1, 1fr);
  }

  .science__list {
    grid-template-columns: repeat(1, 1fr);
  }

  .specialties__template:not(.specialties__template:last-child) {
    margin-bottom: 2.5rem;
  }

  .specialties__description {
    margin: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .specialties__description h3 {
    margin: 0;
  }

  .specialties__text {
    margin: 1rem 0;
  }

  .specialties__list__departments {
    grid-template-columns: repeat(1, 1fr);
  }

  .specialties__list__spec {
    grid-template-columns: repeat(2, 1fr);
  }

  .departments_page__info {
    align-items: flex-start;
    flex-direction: column;
  }

  .departments_page__photo_wrapper {
    margin-bottom: 1rem;
  }

  .departments_page__content {
    margin: 0;
    order: 2;
  }

  .statistics ul {
    flex-direction: column;
  }

  .about__inner {
    flex-direction: column;
  }

  .about__content, .about__player {
    width: 100%;
  }

  .educ_program ul {
    flex-direction: column;
  }

  .educ_program li {
    width: 100%;
  }

  .opportunities__links ul {
    flex-direction: column;
  }

  .opportunities__links li {
    max-width: 100%;
  }
}

@media only screen and (max-width: 599px) {
  .specialties__list__spec {
    grid-template-columns: repeat(1, 1fr);
  }

  .header__menu.active .header__list a {
    font-size: 1.8rem;
  }

  .news__item {
    max-height: none;
    min-height: auto;
    flex-direction: column;
  }

  .post__stub_wrap {
    width: 100%;
    padding-top: 65.5%;
  }

  .news__item_content {
    max-width: 100%;
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .news__img_wrapper {
    position: relative;
    height: auto;
    width: 100%;
    padding-top: 65.5%;
  }

  .news__img_wrapper img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .history__item .history__text {
    padding: 1.5rem;
  }

  .specialties__list__spec li {
    padding: 1.5rem;
  }

  .specialties__list__spec {
    gap: 3rem 0;
  }

  .specialties__list__departments {
    gap: 3rem 0;
  }

  .events__list {
    gap: 3rem 0;
  }

  .news__list {
    gap: 3rem 0;
  }

  .science__list {
    gap: 3rem 0;
  }

  .specialties__list__departments li .specialties__text_wrap {
    min-height: auto;
    padding: 1.5rem;
  }

  .copyright {
    font-size: 1.6rem;
  }

  .text_wrapper * {
    font-size: 1.4rem;
  }

  .post_page .text_wrapper h2 {
    font-size: 3rem;
  }

  .text_wrapper ul {
    margin: 1rem 0;
  }

  h2 {
    font-size: 3rem;
  }

  .contacts__list h3 {
    font-size: 2.4rem;
  }

  .contacts__list li > * {
    margin-left: 0;
    font-size: 1.4rem;
  }

  .research__content ul {
    margin-left: 2rem;
  }

  .research__content > * {
    font-size: 1.4rem;
  }

  table {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 2.4rem;
  }

  ol {
    padding-left: 1.5rem;
  }

  .important_info {
    font-size: 1.4rem;
  }

  .employees__item_content {
    align-items: flex-start;
    flex-direction: column;
  }

  .employees__list .employees__item {
    align-items: flex-start;
    flex-direction: column;
  }

  .employees__item .employees__photo {
    margin: 0;
    margin-bottom: 1rem;
  }

  .employees__item .employees__info {
    width: 100%;
  }

  .employees__item {
    font-size: 1.4rem;
  }

  strong {
    display: inline-block;
  }

  .posts__list {
    grid-template-columns: 1fr;
  }

  .post {
    padding: 1rem;
  }

  .departments_page__text_wrapper {
    align-items: flex-start;
    flex-direction: column;
  }

  .accordion__item {
    border-radius: 0.5rem;
    padding: 1rem;
  }

  .accordion__title {
    font-size: 1.6rem;
  }

  .accordion__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .departments_page__list {
    margin-bottom: 0;
  }

  .footer__socials li {
    width: 2rem;
    height: 2rem;
  }

  .footer__socials li:not(:last-child) {
    margin-right: 2rem;
  }

  h2, 
  h2 * {
    font-size: 3rem !important;
  }

  h3,
  h3 * {
    font-size: 2.2rem !important;
  }

  h5,
  h5 * {
    font-size: 1.8rem !important;
  }

  .specialties__title {
    margin-bottom: 3rem;
  }

  .advantages__text > div, .advantages__text > p, .advantages__text > strong {
    font-size: 1.4rem;
  }

  .teachers__main_text {
    padding: 1rem;
  }

  .teachers__name {
    font-size: 2rem;
  }
  
  .teachers__position {
    font-size: 1.6rem;
  }

  .teachers__descr {
    padding: 1rem;
    font-size: 1.6rem;
  }

  .opportunities__program_text p {
    font-size: 1.4rem;
  }

  .students__content_wrapper {
    padding: 1rem;
  }

  .students__name {
    font-size: 2rem;
  }

  .students__job {
    font-size: 1.6rem;
  }

  .marquee {
    padding: 3rem 0;
  }

  .marquee-container img {
    width: 20%;
    margin: 0 2rem;
  }

  .header__logo {
    max-width: 7rem;
  }

  .students__img_wrapper img {
    height: auto;
    min-height: 20rem;
  }

  .header__inner {
    padding: 1rem 1.5rem;
  }

}
