@media screen and (max-width: 1310px) {
  .Container { padding-left: 16px; padding-right: 16px; }
  .menuHead a { padding: 5px; }
  .register-link { 
    font-size: 12px;
    width: 100px; height: 40px;
  }
  .typewriter { width: 85px; }
  @keyframes typing {
    from { width: 0; }
    to { width: 85px; }
  }

  .important-links {
    width: calc(100% - 40px);
    gap: 12px;
  }

  .programs-preview .content { gap: 20px; }
  .programs-images { width: 450px !important; }
  .programs-preview-text { width: calc(100% - 470px); }

  .rector-text { font-size: 14px; line-height: 24px; } 
  .mission-text { padding: 25px; }

  .staff-list, .gallery-links { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(4, 1fr); }

  .text-block1, .text-block2 { padding: 24px 20px; margin-bottom: 20px; }
  .club-card { padding: 20px 30px 20px 50px; }
  .welcome-msg { padding: 20px 25px; }

  .research-competition {
    border-left-width: 2px;
    padding-left: 10px;
  }
}

@media screen and (max-width: 1250px) {
  .childMenu {
    padding: 10px;
    width: 270px;
    a { font-size: 12px; line-height: 16px; }
  }

  .menuHead a { font-size: 12px; line-height: 16px; padding: 5px 1px; }
  .programs-preview-text > div { grid-template-columns: 1fr; gap: 10px; }
  .social-media > div { grid-template-columns: 1fr; }

  .articles-form { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 1023px) {
  header { padding: 30px 20px !important; }
  .header-bottom { display: none; }
  #menu-toggle-button { display: flex; }

  .register-link { width: calc(100% - 40px); margin: 16px 20px; }

  .important-links { display: none; }
  .importantLink-swiper {
    display: block !important;
    position: absolute !important;
    bottom: 35px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px) !important;
    z-index: 2;
  }
  .importantLink-swiper a { width: 154px !important; }

  .banner-text { top: 190px; }
  .banner-text > p:first-child { font-size: 30px; line-height: 40px; }

  .side-nav { display: none; }
  .page-content { width: 100%; }

  .history-text1 {
    padding: 25px;
    font-size: 14px;
    line-height: 18px;
  }

  .mission-text > div:first-child { font-size: 20px; line-height: 24px; }
  .mission-text .text { font-size: 14px; line-height: 18px; margin-bottom: 25px; }
  .mission-text > div:last-child { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 950px) {
  .programs-preview .content {
    flex-direction: column;
    align-items: unset;
    padding: 0;
  }

  .programs-images { width: 100% !important; border-radius: 15px 15px 0 0; }
  .programs-preview-text {
    padding: 0 20px 30px;
    width: 100%;
    > p {
      font-size: 20px;
      line-height: 27px;
      margin-bottom: 20px;
    }
    > div a {
      font-size: 14px;
      height: 50px;
    }
  }

  .media-preview { background: linear-gradient(to bottom, #FFFFFF 50%, #F9FAFB 50%); }
  .media-head > span, .video-preview .content1 > p:first-child { font-size: 25px; line-height: 35px; }
  .media-cards {
    flex-direction: column;
    gap: 25px;
    > div { width: 100%; }
  }

  .media-cards .media-head {
    display: flex;
    justify-content: start;
    width: unset;
    margin-bottom: 0;
  }

  .media-page { padding: 30px 16px 70px; }
  .news {
    flex-direction: column;
    gap: 40px;
  }

  .curr-news, .other-news { width: 100%; }

  .assurance-graph1 { min-width: 935px; }

  .contact-head .content { grid-template-columns: repeat(2, 1fr); }
  .contact-head { height: unset; padding: 0 !important; }
  .contact-info {
    padding: 16px;
    > div:last-child { width: 207px; }
    &:nth-child(2) { border-right: none; }
  }

  .contact-page .content { flex-direction: column; }
  .contact-left, .contact-right { width: 100%; }
  .social-media > div { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
  .header-actions .socials, .header-actions .decor { display: none; }
  
  .banner-text > p:first-child { font-size: 18px; line-height: 21px; }
  .banner-text > p:nth-child(2) { font-size: 13px; line-height: 20px; margin-bottom: 20px; }

  .banner-text > div {
    gap: 12px;
    a {
      border-radius: 14px;
      font-size: 14px;
      line-height: 20px;
      height: 45px;
      padding: 0 15px;
    }
  }

  .media-head > span,.video-preview .content1 > p:first-child { font-size: 20px; line-height: 25px; max-width: 170px; }
  .video-preview .content1 > p:first-child { max-width: unset; }
  .media-head a {
    font-size: 12px; line-height: 16px;
    width: 150px; height: 35px;
  }

  footer { padding: 32px 16px 42px !important; }
  .footer-top, .footer-bottom  {
    flex-direction: column;
    align-items: unset;
  }

  footer .socials { order: 1; }
  .creator { order: 2; }
  .copyright { order: 3; }

  .page-head .content1 > p {
    font-size: 20px;
    line-height: 24px;
  }

  .page-head { height: 130px; padding-bottom: 40px; }

  .curr-news .title { font-size: 20px; line-height: 26px; margin-bottom: 15px; }
  .curr-news .text {
    font-size: 14px;
    line-height: 28px;
    h1 { font-size: 16px; line-height: 24px; margin-bottom: 10px; }
  }
  .news-img { height: 350px; }

  .founder {
    flex-direction: column;
    gap: 20px;
    padding: 25px;
  }
  
  .founder .text {
    font-size: 14px;
    line-height: 18px;
    padding: 0;
    width: 100%;
  }

  .founder-img {
    width: 300px;
    margin: 0 auto;
    img { border-radius: 15px; }
  }

  .assurance-graph2 {
    width: 350px; height: 350px;
    margin-left: 60px;
    div {
      font-size: 12px;
      line-height: 16px;
      width: 120px; height: 120px;
      padding: 0;
    }
    div:first-child { top: -65px; }
    div:nth-child(2) { top: 65px; right: -65px; }
    div:last-child { top: 65px; left: -60px; }
  }

  .docs { grid-template-columns: 1fr; }
  .doc-link div:first-child, .doc-link1 div:first-child {
    width: 32px; height: 32px;
    img { width: 16px; }
  }

  .doc-head {
    padding: 25px 20px;
    > span { font-size: 18px; line-height: 24px; }
  }

  .doc-body, .doc-footer, .content-page-text { padding: 25px 20px; }

  .point1 > span:first-child { font-size: 15px; line-height: 23px; }

  .gallery-grid { grid-template-rows: repeat(6, 120px); }
  .ombudsman { flex-direction: column; }

  .welcome-msg > p { font-size: 18px; line-height: 22px; }

  .answer-content { padding: 20px 20px; }
  .answer-content .text-block2 {
    font-size: 12px;
    line-height: 16px;
    padding: 10px;
  }

  .research-competition h1 { font-size: 16px; line-height: 20px; margin-bottom: 15px; }

  .funded-page .content { flex-direction: column; }
  .project-left, .project-right { width: 100%; }

  .partners-columns { grid-template-columns: 1fr; }
}

@media screen and (max-width: 660px) {
  .search { position: relative; }
  .search input  {
    border-radius: 20px;
    width: 230px; height: 40px;
    padding: 0 12px;
    position: absolute;
    top: 40px; left: -200px;
    visibility: hidden;
  }

  .search.active input { width: 230px; visibility: unset; }
  .search.active button { border-radius: 50%; border-left: unset; }

  .rector-page, #rector { flex-direction: column; gap: 30px; }
  .rector-img { margin: 0 auto; }
  .rector-text { margin: 0 20px; width: calc(100% - 40px); }

  #structure > div:nth-child(2) div {
    padding: 10px;
    font-size: 12px;
    line-height: 16px;
  }

  #rector .text { width: 100%; }

  .member-card {
    flex-direction: column;
    .name { 
      border-radius: 16px 16px 0 0;
      width: 100%; height: 200px;
    }
    .desc { padding: 20px; width: 100%; }
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: unset;
    img { height: 120px; object-fit: cover; }
  }

  .gallery-grid > *:nth-child(14n + 1),
  .gallery-grid > *:nth-child(14n + 2),
  .gallery-grid > *:nth-child(14n + 3),
  .gallery-grid > *:nth-child(14n + 4),
  .gallery-grid > *:nth-child(14n + 5),
  .gallery-grid > *:nth-child(14n + 6),
  .gallery-grid > *:nth-child(14n + 7),
  .gallery-grid > *:nth-child(14n + 8),
  .gallery-grid > *:nth-child(14n + 9),
  .gallery-grid > *:nth-child(14n + 10),
  .gallery-grid > *:nth-child(14n + 11),
  .gallery-grid > *:nth-child(14n + 12),
  .gallery-grid > *:nth-child(14n + 13),
  .gallery-grid > *:nth-child(14n + 14) {
    grid-column: auto;
    grid-row: auto;
    grid-column-start: auto;
    grid-column-end: auto;
    grid-row-start: auto;
    grid-row-end: auto;
  }

  .contact-head .content, .umis-grid { grid-template-columns: 1fr; }
  .contact-info {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .club-membership .body { padding: 24px 20px; }
  .membership-links {
    flex-direction: column;
    > div { width: 100%; }
  }

  .success { 
    padding: 20px;
    flex-direction: column; 
    align-items: start !important;
    > div:last-child { width: 100%; }
  }
  .imp-info { padding: 20px; margin-bottom: 20px; }
  .imp-info + div img { display: none; }

  .cont1-text {
    flex-direction: column;
    > div { width: 100%; }
  }
  .cont2-text, .workload, 
  .contact-grid, .projects-form { grid-template-columns: 1fr; }

  .prog-overview {
    padding: 10px 0;
    flex-direction: column;
    align-items: unset;
    gap: 10px;
  }

  .download-forms {
    padding: 20px;
    div { font-size: 15px; line-height: 19px; }
  }
 
  .doc-link1 { gap: 10px; }
  .doc-link1 > span { width: calc(100% - 80px); }
  .doc-link1 a {
    width: 28px; height: 28px;
    margin-left: auto;
    span { display: none; } 
  }
}

@media screen and (max-width: 550px) {
  .news-card {
    flex-direction: column;
    > img {
      border-radius: 16px 16px 0 0; 
      height: 180px; width: 100%;
      min-height: unset;
    }
  }

  .news-desc {
    padding: 16px;
    .title {
      font-size: 16px; height: 24px;
      height: 48px;
      margin-bottom: 8px;
    }
    .intro { height: 72px; }
  }

  .article-meta {
    font-size: 12px; line-height: 16px;
    margin-bottom: 8px;
  }

  .event-card, .curr-event-card { padding: 16px; }
  .event-head > div:first-child {
    width: 54px; height: 54px;
    span:first-child { font-size: 18px; line-height: 18px; }
    span:last-child { font-size: 11px; line-height: 14px; }
  }

  .event-head > div:nth-child(2) {
    width: calc(100% - 175px);
    .title { 
      font-size: 15px; line-height: 22px; 
      height: 66px;
      line-clamp: 3;
    }
  }

  .event-card .intro {
    font-size: 14px;
    line-height: 22px;
    height: 66px;
  }

  .status {
    padding: 4px 8px;
    img { display: none; }
  }

  .history-text1, .mission-text, .staff-intro, .staff-section { padding: 15px; }
  .mission-text > div:last-child { grid-template-columns: 1fr; }
  .staff-intro { font-size: 14px; line-height: 20px; }

  .staff-section > p:first-child { font-size: 18px; line-height: 24px; }
  .staff-section hr { margin: 15px 0; }

  .staff-list, .gallery-links { grid-template-columns: 1fr; }

  .assurance-graph2 {
    width: 200px; height: 200px;
    margin-top: 60px;
    div {
      font-size: 10px;
      line-height: 13px;
      width: 100px; height: 100px;
      padding: 0;
    }
    div:nth-child(2) { top: 0; right: -65px; }
    div:last-child { top: 0; left: -60px; }
  }

  .docs1 .doc-link { padding: 13px 15px; }
  .doc-link, .doc-link1 {
    font-size: 12px; line-height: 18px;
    padding: 13px 15px;
  }

  .doc-link div:last-child { margin-left: auto; }
  .legal-docs-form { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form, .structural-units, .social-media,
  .contact-block .body, .working-hours { padding: 20px; }
  .form-group {
    flex-direction: column;
    gap: 0;
    > div { width: 100%; }
  }

  .calendar-years {
    align-items: unset;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    div:first-child p:first-child { font-size: 20px; line-height: 24px; }
    div:last-child {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 150px;
    }
  }

  .holidays {
    grid-template-columns: repeat(2, 1fr);
    div:nth-child(3n + 3) { border-right: 1px solid var(--border-color); }
    div:nth-child(even) { border-right: none; }
  }

  .welcome-msg > div:first-child div:first-child { display: none !important; }

  .welcome-msg > div:first-child div:last-child {
    span:first-child { font-size: 16px; }
    span:last-child { font-size: 11px; }
  }

  .welcome-links {
    flex-direction: column;
    a { justify-content: center; }
  }

  .system-entry { padding: 14px 20px; }

  .project-link { padding: 20px; }
  .project-tags {
    flex-direction: column;
    align-items: unset;
    > div:nth-child(2) { display: none !important; }
    > div { flex-wrap: wrap; }
  }

  .fprojects-head .head {
    flex-direction: column;
    align-items: start;
    div { flex-wrap: wrap; }
  }

  .fprojects-head .name {
    font-size: 16px;
    line-height: 24px;
  }

  .articles-form { grid-template-columns: 1fr; }
  .article-link { padding: 18px; }
}

@media screen and (max-width: 450px) {
  .importantLink-swiper a {
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px;
    font: 11px 'Helvetica Roman';
    line-height: 14px;
    font-feature-settings: 'case' 1;
    width: 120px !important;
    height: 95px;
    div {
      width: 32px; height: 32px;
      img { width: 13px; }
    }
  }

  .banner { height: 670px; }
  .programs-images img { height: 200px; }

  .video-swiper { padding: 0 0 20px 5px !important; }
  .video-slide {
    width: 260px !important;
    font-size: 15px;
    line-height: 22px;
    padding-bottom: 16px;
    span { padding: 0 16px; }
  }

  .clickbait { height: 148px; margin-bottom: 16px; }
  .play { font-size: 18px; width: 42px; height: 42px; }

  .logo { width: 150px; }
  .footer-left .logo { width: 140px; margin-bottom: 16px; }
  .footer-top > div:nth-child(2) { display: none; }

  .email-cont { grid-template-columns: 200fr 120fr; }
  .directions, .program-select { gap: 5px; }

  header { 
    background: linear-gradient(90deg, #1A538F 0%, #1298C0 52%, #1A518D 100%) !important;
    padding: 24px 16px !important;
  }

  .other-news {
    padding: 15px;
    > div { gap: 10px; }
  }

  .other-news a {
    gap: 15px;
    img { height: 90px; }
    p { width: calc(100% - 90px); }
  }

  .page-cont { padding: 30px 16px 100px; }
  .page-title { font-size: 20px; line-height: 30px; }
  .page-title-row { flex-wrap: wrap; }
  .project-card {
    .name-row { flex-wrap: wrap; }
    .project-logo { width: 100px; height: 47px; }
  }
  .sec-title1, .sec-title { font-size: 16px; line-height: 20px; }

  .founder-img {
    width: 100%;
    img { height: auto; } 
  };

  .page-text { font-size: 16px; line-height: 24px; }
  #download-plan { width: 100%; }

  .form-head { 
    flex-direction: column-reverse;
    align-items: unset;
    flex-wrap: unset;
    > div { width: 100%; }
  }

  .page-section { font-size: 15px; line-height: 23px; }

  .structural-units a { padding: 10px; }

  .text-block {
    padding: 20px;
    h2 { font-size: 16px; line-height: 20px; }
  }

  .holidays {
    grid-template-columns: 1fr;
    div:nth-child(3n + 3) { border-right: none; }
    div:nth-child(even) { border-right: none; }
    div:nth-child(odd) { border-right: none; }
    div { border-bottom: 1px solid var(--border-color); }
    div:last-child { border-bottom: none; }
  }

  .map-container { height: 350px; }
  .locations-body { width: 250px; }
  #show-list.active { left: 260px; }
  .partners-list { grid-template-columns: 1fr; }
  .staff-card img { height: 350px; }
}