@media screen and (max-width: 1320px) {
  .menuHead a {
    font-size: 12px;
    line-height: 16px;
    padding: 13px 10px;
  }

  .programs-prev .content { gap: 20px; }
  .program-imgs { width: calc(100% - 640px); height: 500px; }
  .program-imgs div, .program-imgs img { height: 480px;}

  .childMenu {
    padding: 20px;
    width: 250px;
    a { font-size: 12px; line-height: 16px; }
  }

  .news { gap: 20px; }
  .curr-news { width: calc(100% - 450px); }
}

@media screen and (max-width: 1200px) {
  .values > div {
    padding: 20px;
    > p { font-size: 18px; line-height: 24px; margin-bottom: 10px; }
    div { font-size: 13px; line-height: 18px; }
  }

  .icon { width: 50px; height: 50px; margin-bottom: 20px; }

  .fields > div { padding: 20px; }
  .fields > div > div:last-child {
    > p:first-child { font-size: 18px; line-height: 24px; margin-bottom: 5px; }
    > div:nth-child(2) { font-size: 13px; line-height: 18px; margin-bottom: 10px; }
    ul {
      font-size: 12px;
      line-height: 16px;
      gap: 5px;
      padding-left: 10px;
    }
  }

  .contact-info { gap: 15px; }
  .contact-card { padding: 20px; }

  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 1075px) {
  .menuHead a { padding: 13px 5px; }
  .books { gap: 10px; }
  .book-name > div:first-child { 
    > img { width: 25px; }
    width: 50px; height: 50px; 
  }
  .book-details { width: calc(100% - 70px); }
}

@media screen and (max-width: 1023px) {
  .scroll-menu { display: none; }
  #menu-toggle-button { display: flex; }

  header {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-content { padding: 25px 0; border-bottom: none; }
  .logo {
    gap: 10px;
    img { width: 60px; }
  }

  .banner { height: 500px; }
  .banner-text > div { padding: 30px; }

  .program-imgs { display: none; }
  .programs-left {
    padding: 0;
    width: 100%;
  }

  .about-head {
    padding: 30px 20px;
    p { font-size: 20px; line-height: 24px; }
    div { font-size: 14px; line-height: 20px; }
  }

  .structure {
    padding: 30px 20px;
    > p:first-child {
      font-size: 20px;
      line-height: 24px;
      margin-bottom: 20px;
      padding: 0;
      text-align: center;
    }
  }
  
  .structure-list li {
    padding: 10px; gap: 5px;
    span:first-child { font-size: 14px; line-height: 20px; }
    span:last-child { font-size: 10px; line-height: 13px; }
  }

  .contact-info { grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
  .send-form { margin-bottom: 40px; }

  .news { flex-direction: column; gap: 40px; }
  .curr-news, .other-news { width: 100%; }

  .login {
    width: 50px;
    span { display: none; }
  }
}

@media screen and (max-width: 1000px) {
  .catalogue-cont .content { flex-direction: column; }
  .catalogue-filter, .recommendations { width: 100%; }

  .send-form {
    flex-direction: column;
    gap: 20px;
    > * { width: 100%; }
    iframe { height: 400px; }
  }

  .contact-form {
    padding: 30px 20px;
    > p:first-child { font-size: 20px; line-height: 24px; margin-bottom: 15px; }
  }

  .info-source { padding: 30px 20px; }
}

@media screen and (max-width: 900px) {
  .page-cont .content { flex-direction: column; }
  .page-nav, .page-content { width: 100%; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
  .services-cont { 
    padding: 40px 20px; 
    .content1 {
      > p:first-child { font-size: 16px; line-height: 20px; }
      > p:nth-child(2) {
        font-size: 12px;
        line-height: 20px;
        margin-bottom: 20px;
      }
    }
  }

  .services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card { width: 100%; height: 100%; }

  .programs-prev { padding: 40px 20px; }
  .programs-left, .news-prev .content1 {
    > p:first-child { font-size: 16px; line-height: 20px; margin-bottom: 10px; }
    > p:nth-child(2) { font-size: 12px; line-height: 20px; margin-bottom: 15px; }
  }

  .program-link {
    padding: 20px;
    > div:first-child { width: 50px; height: 50px; }
    .desc { width: calc(100% - 114px); }
    .desc p:first-child { font-size: 16px; line-height: 20px; margin-bottom: 5px; }
  }

  footer { padding: 40px 20px !important; }
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: unset;
    gap: 5px;
  }

  .footer-media { order: 1; margin-bottom: 15px; }
  .copyright { order: 2; }
  .creator { order: 3; }

  .page-cont, .catalogue-cont, .content-page, .contact-cont { padding: 30px 20px 80px; }
  .page-title, .page-title1 { font-size: 25px; line-height: 30px; }
  .about-text, .content-text { font-size: 14px; line-height: 20px; margin-bottom: 20px; }
  .mission-text, .values-text {
    padding: 20px;
    margin-bottom: 30px;
    > p:first-child { font-size: 18px; line-height: 24px; margin-bottom: 10px; }
    div { font-size: 14px; line-height: 20px; }
  }

  .values-text { margin-bottom: 0; }

  .history, .structure-units, .implementation-stages { 
    > p:first-child { font-size: 25px; line-height: 30px; margin-bottom: 20px; }
  }

  .history div, .structure-units div {
    padding-left: 15px;
    margin-bottom: 20px;
    gap: 4px;
    span:first-child { font-size: 16px; line-height: 20px; }
    span:last-child { font-size: 14px; line-height: 17px; }
  }

  .login-cont {
    height: 600px;
    > div { 
      padding: 40px 20px; 
      > p:first-child { font-size: 18px; line-height: 20px; margin-bottom: 10px; }
      > p:nth-child(2) { font-size: 12px; line-height: 18px; margin-bottom: 15px; }
    }
  }

  .structure-head { margin: 0 auto 20px; }
  .dean {
    align-items: flex-start;
    padding: 20px;
    > img { width: 150px; height: 150px; }
  }

  .dean-info { 
    width: calc(100% - 174px); 
    > p:first-child { font-size: 16px; line-height: 20px; }
    > p:nth-child(2) { font-size: 20px; line-height: 22px; }
    > div { font-size: 13px; line-height: 18px; }
  }

  .performance-cards {
    gap: 10px;
    > div { width: calc(50% - 5px); }
  }

  .performance-cards1 > div { padding: 20px; }
  .performance-card { 
    padding: 20px; 
    > p:first-child { font-size: 16px; line-height: 20px; margin-bottom: 10px; }
  }

  .range-head { align-items: flex-end; }
  .range-head span:first-child, .range-head > div p:last-child { font-size: 12px; line-height: 16px; } 
  .range-head > div p:first-child { font-size: 13px; line-height: 17px; }

  .contact-info { grid-template-columns: repeat(2, 1fr); }

  .info-source {
    flex-direction: column;
    gap: 30px;
    > div { 
      max-width: unset; width: 100%;
      > p:first-child { font-size: 18px; line-height: 22px; margin-bottom: 12px; }
      .text { font-size: 13px; line-height: 19px; margin-bottom: 10px; }
      ul { font-size: 13px; line-height: 19px; }
    }
  }

  .add-info {
    p:first-child { font-size: 14px; line-height: 18px; margin-bottom: 4px; }
    p:nth-child(2) { font-size: 12px; line-height: 16px; }
  }

  .header-actions { gap: 5px; }
  .header-actions > a:first-child, .header-actions > div:first-of-type { display: none; }
}

@media screen and (max-width: 700px) {
  .structure-list { 
    flex-direction: column;
    align-items: center;
    gap: 10px;
    li { width: 100%; max-width: 450px; }
  }

  .research-card { padding: 20px; }
  .research-card .head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  .research-card .head span { font-size: 16px; line-height: 20px; width: unset; }
  .research-card .intro, .research-card .text { font-size: 13px; line-height: 20px; }
  .research-card .details { grid-template-columns: repeat(1, 1fr); gap: 5px; }

  .values { grid-template-columns: repeat(1, 1fr); gap: 10px; }

  .comparison {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
    > div {
      flex-direction: row;
      justify-content: center;
      gap: 20px;
      width: 100%;
      > div { margin: 0; }
    }
  }

  .comparison > div:nth-child(2) {
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    padding: 20px 0;
  }

  .books { grid-template-columns: repeat(1, 1fr); }
}

@media screen and (max-width: 600px) {
  .service-card .name { font-size: 14px; line-height: 18px; }
  .service-card ul { padding-left: 10px; }

  .influence, .research-numbers {
    padding: 30px 20px;
    > p:first-child { font-size: 18px; line-height: 24px; }
    > div {
      flex-direction: column;
      align-items: center;
      div { 
        max-width: unset; 
        span:first-child { font-size: 30px; line-height: 30px; }
      }
    }
  }

  .fields > div {
    flex-direction: column;
    gap: 15px;
    .icon { margin: 0; }
    div:last-child { width: 100%; }
  }

  .plan { 
    padding: 15px; 
    > div:last-child { width: 30px; height: 30px; font-size: 10px; }
  }

  .plan-info {
    width: calc(100% - 40px);
    p:first-child { font-size: 16px; line-height: 20px; }
    > p:nth-child(2) { font-size: 10px; line-height: 16px; }
  }
  .implementation-stages > div {
    flex-direction: column;
    gap: 10px;
  }

  .stage-info { 
    font-size: 13px;
    line-height: 20px;
    padding: 20px;
    width: 100%; 
  }

  .member {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .member-info { width: 100%; }

  .research-numbers > p { text-align: center; margin-bottom: 20px; }
  .research-numbers > div {
    flex-direction: column;
    align-items: center;
  }

  .performance-cards, .performance-cards1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    > div { width: 100%; }
  }

  .news-grid { grid-template-columns: repeat(1, 1fr); gap: 15px; } 
  .news-search {
    padding: 20px;
    > div:first-child {
      flex-direction: column;
      align-items: unset;
      gap: 10px;
      button { width: 100%; }
    }
  }
  .news-input { max-width: 100%; }

  .curr-news .title { font-size: 20px; line-height: 24px; }
  .curr-news .text { font-size: 14px; line-height: 22px; }
  .curr-news hr { margin: 20px 0; }
  .news-img { height: auto; }
}

@media screen and (max-width: 500px) {
  .services { grid-template-columns: repeat(1, 1fr); }
  .login-cont { height: 400px; }

  .dean { flex-direction: column; }
  .dean-info { width: 100%; }

  .contact-info { grid-template-columns: repeat(1, 1fr); } 
  .contact-card {
    > div { 
      border-radius: 8px;
      width: 30px; height: 30px; 
      margin-bottom: 10px; 
      > img { width: 17px; }
    }
    > p:first-of-type { font-size: 14px; line-height: 19px; margin-bottom: 10px; }
    a, p { font-size: 12px; line-height: 16px; margin: 0; }
  }

  .main-search, .login { display: none; }
}

@media screen and (max-width: 450px) {
  .banner-text > div {
    > p { font-size: 18px; line-height: 24px; }
    > div { font-size: 12px; line-height: 16px; }
  }

  .history, .structure-units, .implementation-stages {
    & > p:first-child {
      font-size: 22px;
      line-height: 25px;
      margin-bottom: 15px;
    }
  }

  .page-title, .page-title1 { margin-bottom: 15px; }
  .see-all { width: 100%; justify-content: center; padding: 0; }

  .book-name {
    flex-direction: column;
    gap: 10px;
  }

  .book-details { width: 100%; }

  .book-card { 
    padding: 20px; 
    .intro { font-size: 12px; line-height: 15px; margin-bottom: 15px; }
  }

  .book-card .actions > div:last-child { width: 100%; }

  .contact-form > div { margin-bottom: 10px; }
  .contact-form .form-group {
    flex-direction: column;
    gap: 10px;
    > div { width: 100%; }
  }

  .send-form iframe { height: 250px; }

  .other-news { padding: 25px 20px; }
  .other-news a {
    flex-direction: column;
    div { width: 100%; }
    .intro { line-clamp: unset; height: unset; }
  }
}