@media screen and (max-width: 1384px) {
  .banner-text, .about-head .bread-crumbs { left: 20px; }
  .banner-swiper .swiper-pagination { right: 20px !important; }
  .project-swiper, .gallery-swiper { padding-left: 20px !important; }
  .footer-logo img:last-child { width: calc(100% - 40px); }
  .gallery-prev > p { padding: 0 20px; }
}

@media screen and (max-width: 1250px) {
  .menu-items { gap: 15px; }
  .menu-items > a, .menu-head span { font-size: 24px; line-height: 32px; }
  .menu { gap: 30px; }

  .menu-item ul {
    gap: 10px;
    padding-left: 10px;
    li:first-child { margin-top: 10px; }
    a { font-size: 14px; line-height: 19px; }
  }

  .ici-cards { grid-template-columns: repeat(4, 1fr); }
  .vacancies { grid-template-columns: repeat(3, 1fr); }

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

@media screen and (max-width: 1023px) {
  .main-page-link {
    padding: 16px 16px 24px;
    .head { margin-bottom: 95px; }
  }

  .ici-prev { padding: 0; }
  .ici-prev-cont { padding: 40px 20px; }
  .ici-cards { display: none; }
  .mobile-ici-cards {
    width: 100% !important;
    display: block !important;
    padding: 15px 0 30px !important;
  }

  .ici-card.swiper-slide {
    display: flex !important;
    width: 252px !important;
    height: 312px !important;
    &:hover { transform: translateX(0) !important; }
  }

  .projects-prev, .news-prev { padding: 60px 0; }

  .experience-cont, .partners-cont { padding: 40px 20px; }
  .exp-numbers { grid-template-columns: repeat(2, 1fr); }

  .footer-right { gap: 40px 64px; }

  .menu-register { max-width: 450px; }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-head { margin-bottom: 56px; }
  .management { grid-template-columns: repeat(2, 1fr); }
  .history-section { display: none; }
  .mobile-history-section {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .time-line {
    max-width: 100%;
    width: 100%;
    height: unset;
    flex-direction: column;
    padding: 40px 20px 80px;
    gap: 60px;
    min-width: unset;
    &::after { content: none; }
  }

  .timeline-item {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .year { padding-top: 0; }
  .timeline-images {
    display: flex;
    flex-direction: column;
    height: unset;
    gap: 24px;
    width: 100%;
  }

  .image-top, .image-bottom {
    align-self: unset;
    padding: 0;
    margin: 0;
  }

  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-item:first-child { grid-column: unset; }
  .program-item {
    padding: 20px;
    p:first-child { font-size: 24px; line-height: 32px; margin-bottom: 50px; }
    > p:nth-child(2) { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
  }
}

@media screen and (max-width: 900px) {
  .menu { flex-direction: column; gap: 15px; }
  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

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

  .management-overview {
    width: 100%;
    max-width: 100%;
  }

  .about-vision { gap: 60px; }
  .about-vision > div p:first-child { font-size: 24px; line-height: 32px; }
  .about-vision > div p:last-child { max-width: unset; width: 100%; font-size: 16px; line-height: 24px; }

  .courses-page { flex-direction: column; }
  .courses-list { width: 100%; }
}

@media screen and (max-width: 767px) {
  .banner-swiper .swiper-pagination { display: none !important; }
  .banner-text {
    right: 20px; bottom: 40px;
    p:first-child { font-size: 32px; line-height: 40px; }
  }

  .about-prev {
    padding: 40px 20px 64px;
    .content {
      flex-direction: column-reverse;
      align-items: unset;
      gap: 40px;
      > * { width: 100%; }
      > img { height: auto; }
    }
  }

  .main-page-links {
    padding: 0 20px 40px;
    .content { display: none; }
  }

  .mobile-page-links {
    display: block !important;
    padding-bottom: 30px !important;
  }

  .main-page-link.swiper-slide {
    display: flex !important;
    flex-direction: column;
    width: 305px !important;
    min-height: 290px;
    .text { font-size: 12px; line-height: 20px; margin-top: auto; }
    .head { flex-wrap: wrap; margin-bottom: 0; }
  }

  .project-slide {
    height: 480px !important;
    > div {
      inset: 16px; top: unset;
      > p:first-child { font-size: 16px; line-height: 24px; }
    }
    &.swiper-slide { width: 350px !important; }
  }

  .news-card.swiper-slide { width: 350px !important; }
  .footer-top { margin-bottom: 40px; }
  .footer-logo {
    gap: 23px;
    img:first-child { max-width: 200px; }
  }

  .city-hall { display: none; }
  #logo { width: calc(100% - 40px); }

  header {
    height: 40px;
    .search { display: none !important; }
  }
  .banner-cont, .about-head { margin-top: -40px; }

  .header-content > a:first-child img { width: 48px; }
  .header-actions > a:first-child { display: none; }

  .dropdownMenu { 
    .content1 { gap: 40px; }
    .search { display: flex; width: 100%; margin-top: 56px; }
  }

  .menu-cont {
    flex-direction: column;
    gap: 56px;
    margin-top: 0;
  }

  header.open-menu { background: var(--black) !important; }

  .page-cont { padding: 10px 20px 65px; }
  .bread-crumbs {
    margin-bottom: 14px;
    gap: 12px;
    a { font-size: 12px; line-height: 20px; } 
  }

  .page-title2 {
    font-size: 32px; line-height: 40px;
    margin-bottom: 40px;
  }

  .project-list { gap: 24px; }
  .proj-title { margin-bottom: 16px; }
  .curr-proj-img { height: 300px; margin-bottom: 40px; }

  .proj-details {
    flex-direction: column-reverse;
    gap: 50px;
    > div > p:first-child { font-size: 24px; line-height: 32px; }
  }

  .proj-overview, .proj-det { width: 100%; }
  .gallery-prev { margin-bottom: 40px; }
  .gallery-prev > p { font-size: 24px; line-height: 32px; } 
  .gallery-card {
    width: 350px !important;
    img { height: 320px; }
  }

  .media-title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 32px;
    gap: 10px;
  }

  .curr-media .page-title2 {
    font-size: 16px; line-height: 24px;
    margin-bottom: 8px;
  }

  .curr-media .date { margin-bottom: 40px; }
  .curr-media .text { 
    font-size: 16px;
    line-height: 24px;
    max-width: 100%; 
  }

  .vacancy-page {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .vacancy-overview, .vacancy-details { width: 100%; }
  .vacancy-details > .group { gap: 20px; }
  .vacancy-details > p:first-child { font-size: 24px; line-height: 32px; }

  .member-name { font-size: 32px; line-height: 40px; margin-bottom: 8px; }
  .member-pos { margin-bottom: 40px; }

  .about-head .bread-crumbs { top: 56px; }
  .about-page { padding: 40px 20px 64px; }
  .about-intro { margin-bottom: 120px; }

  .program-grid  { display: none; }
  .mobile-programs {
    display: block !important;
    width: 100%;
    padding-bottom: 30px !important;
  }
  
  .programs-prev { padding: 60px 20px; }
  .program-item {
    padding: 40px 16px 53px;
    > p:first-child { margin-bottom: 24px; }
  }

  .programs-prev .page-title1 { font-size: 24px; line-height: 32px; }
  .teachers-slide { width: 350px !important; }

  .ici-header .header-content > a:first-child { display: none; }
  .ici-logo { margin-left: 0;  img { width: 31px; }}

  .ici-reg-cont { 
    height: 560px; 
    > img:first-child { top: -50px; left: -50px; }
    > img:nth-child(2) { top: -50px; right: -50px; }
    > img:nth-child(3) { bottom: -150px; right: -50px; }
    > img:nth-child(4) { bottom: -50px; left: -50px; }
  }
  .ici-reg-cont > div > p:first-child { font-size: 32px; line-height: 40px; }
}

@media screen and (max-width: 600px) {
  .media-grid { grid-template-columns: repeat(1, 1fr); gap: 32px; }
  .news-card {
    img { margin-bottom: 8px; }
    .date { margin-left: 8px; }
    .title { padding: 0 8px; }
  }

  .news-prev1 { padding-top: 0; }
  .news-prev1 .head { margin-bottom: 30px; }
  .news-prev1 .head .page-title1 {
    font-size: 20px;
    line-height: 28px;
  }

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

  .year {
    gap: 20px;
    span { font-size: 80px; line-height: 80px; }
    div { max-width: unset; }
  }

  .image-top, .image-bottom {
    img { width: 100%; height: auto; }
    p { max-width: unset; }
  }
  
  .footer-menu .ici-footer-logo { display: none !important; }
  .ici-footer .content1 > .ici-footer-logo { 
    display: flex !important; 
    flex-direction: column;
    align-items: center;
  }

  .courses-list { grid-template-columns: repeat(1, 1fr); } 
  .courses-filter { width: 100%; }
}

@media screen and (max-width: 500px) {
  .experience-cont .head { margin-bottom: 56px; }
  .exp-numbers {
    grid-template-columns: repeat(1, 1fr);
    gap: 56px;
  }

  .legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-info { grid-template-columns: repeat(1, 1fr); }
  .contact-links { 
    order: 3; 
    margin-bottom: 30px; 
    justify-content: flex-start;
  }

  .map { order: 4; margin-bottom: 0; }
}

@media screen and (max-width: 450px) {
  .ici-prev-cont .head span:last-child { display: none; }
  .documents-list span:last-child { font-size: 12px; line-height: 20px; }
  .documents-list a{
    gap: 16px;
    &:first-child { padding-top: 0; }
  }
}