@media(max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .flip-card {
    width: 400px;
    height: 250px;
  }

}


@media(max-width: 992px) {
  .container {
    max-width: 720px;
    padding: 0 3px;
  }

  .logo__right {
    width: 300px;
  }

  .header__title {
    font-size: 25px;
  }

  .header_title-desc {
    font-size: 12px;
  }

  .topnav a,
  .dropdown,
  .dropbtn {
    font-family: "Roboto";
    font-size: 80%;
  }

  .news__flip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  .flip__row {
    grid-column: span 4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: 10px;
  }

  .flip-card {
    width: 350px;
    height: 300px;
  }

  .news {
    grid-column: span 4;
    margin-bottom: 20px;
  }

  .products__item:nth-child(1n) {
    grid-column: span 3;
  }

  .products__item-desc {
    width: 280px;
    height: 150px;
  }

  .products__item-title {
    font-size: 20px;
  }

  .h3_title {
    font-size: 20px;
  }

  .publications__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: end;
  }

  .publications__desc-title {
    margin-bottom: 10px;
  }

  .publications__desc p {
    font-size: 20px;
  }

  .amenu_box {
    grid-template-columns: repeat(2, 1fr);
  }

  .structure__branch-item-img {
    width: 100%;
  }


  .submenu__list {
    flex-wrap: wrap;
    gap: 10px;
  }

  .structure__branch-list {
    display: flex;
    flex-direction: column;
  }

  .structure__branch-item {
    width: 100%;
  }

  .structure__branch-item-img {
    width: 100%;
  }

  .structure__img {
    width: 100%;
  }



}



@media(max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 5px;
  }

  .topnav a,
  .dropdown,
  .dropbtn {
    font-size: 100%;
  }

  .flip-card {
    grid-column: span 2;
    width: 100%;

  }

  .topnav .container {
    display: block;
  }

  .topnav a,
  .dropdown .dropbtn {
    display: none;

  }

.menu-toggle-button {
    display: block;
    float: right;
    margin-bottom: 10px;
    width: 100%;
  }

.topnav.responsive .menu-toggle-button {
    position: absolute;
    right: 0;
    top: 0;
    /* display: none; */
  }

  .topnav a {
    display: none;
  }

  .topnav.responsive {
    position: relative;
  }


  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {
    float: none;
  }

  .topnav.responsive .dropdown-content {
    position: relative;
    transform: translateX(20px);
  }

  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  .flip-card {
    width: 100%;
  }

  .header_up .container {
    display: flex;
    flex-direction: column;
  }

  .event {
    width: 400px;
    height: 250px;
  }

  .infoProducts::after {
    top: 35px;

  }

  .products__item-desc {
    width: 380px;
    height: 250px;

  }

  .products__cards {
    grid-auto-rows: 200px;
  }



  .products__item:nth-child(1n) {
    grid-column: span 6;
    grid-row: span 2;

  }

  .products__item-img {
    object-fit: fill;
  }

  .products__item-title {
    font-size: 30px;
    text-align: center;
  }

  .h3_title {
    font-size: 15px;
  }

  .releases__txt {
    font-size: 15px;
  }


  .articles__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .poster__block {
    width: 350px;
    height: 200px;
  }

  .poster__title {
    font-size: 16px;
  }

  .amenu_box {
    grid-template-columns: 1fr;
  }

  .reports__item-img img {
    height: 200px;
  }

  .submenu__list a {
    width: 100%;
  }

  .about__page li {
    transform: translateX(0);
    margin-bottom: 10px;
    list-style-position: inside;
  }

  .publications__item {
    align-items: start;
  }

  .resurce__block {
    display: block;
  }

  .resurce__item-title {
    text-align: center;
  }

  .timeline {
    flex-direction: column;
  }


  .panel.active {
    min-height: 650px;
  }


  .panel {

    height: auto;
    max-height: 80px;
    transition: max-height 0.5s ease, padding 0.3s;
    position: relative;
    align-items: start;
    justify-content: start;
  }

  .panel h2 {
    writing-mode: horizontal-tb !important;
    transform: rotate(0) !important;
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    translate: none !important;
    text-align: left;
    font-size: 14px;
    padding: 0px;
  }

  .panel.active h2 {
    position: static !important;
    padding: 0;
  }


  .panel.active .more {
    opacity: 1;
  }

  .panel ul {
    margin: 0;
  }

  .panel li {
    font-size: 12px;
  }

  .panel img {
    height: 100px;
  }

  .panel h3 {
    font-size: 12px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 100% !important;
  }

  .panel p {
    font-size: 10px;
    padding: 3px;
    line-height: 120%;
  }

  .timeline__icon {
    display: none;
  }

  .reports span {
    font-size: 16px;
  }

  .submenu {

    width: 100%;
  }

}



@media(max-width: 576px) {
  .container {
    max-width: auto;
  }


  .flip-card-front,
  .flip-card-front2,
  .flip-card-front3,
  .flip-card-front1 {
    display: block;
  }

  .structure__branch-item {
    width: 450px;
    height: 350px;

  }

  .flip-card {
    width: 100% !important;
  }


  .logo__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .logo__left img {
    width: 90%;
  }

  .mainEvent {
    height: 400px;
  }

  .event {
    row-gap: 30px;
  }

  .title__name {
    text-align: center;
  }

  .infoProducts__h3 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .flip-card-inner img {
    height: 100px;
    margin-top: 15%;
  }

  .flip-card-title {
    padding: 10px;
  }

  .products__cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

  }

  .products__item {
    padding: 0;
    width: 100%;
  }

  .products__item-desc {
    width: 100%;
    height: 100%;
  }

  .products__item-title {
    font-size: 20px;
  }

  .publications__desc-btn {
    position: static;
  }

  .dukh__links img {
    width: 100% !important;
    height: 200px;
  }

  .dukhovniy .container {
    display: flex;
    flex-direction: column-reverse;
    gap: 50px;
  }

  .release__list {
    flex-direction: column;
  }

  .news__item-link {
    gap: 10px;
  }

  .dukhovniy .container .submenu2 .submenu__list a {
    width: 100%;
    height: 120%;
    text-align: center;
  }

  .event__title {
    line-height: 150%;
    font-size: 16px;
  }

  .slide:hover {
    background-color: white;
  }

  #scrollTopBtn {
    bottom: 40px;
    right: 60px;
  }

  .submenu .container {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    width: 100%;
  }

  .news__title {
    font-size: 12px;
  }

  .news__item {
    margin-bottom: 15px;
  }

  .news {
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .publications__desc-btn {
    width: 100%;
  }

  .publications__img {
    width: 100%;
    height: 100%;
  }

  .logo__left-img {
    width: 100%;
  }

  .sliderSite {
    width: 100%;
  }

}

@media(max-width: 320px) {



  .release__item {
    width: 100%;
    height: 400px;
  }

  .release__item-img {
    width: 100%;
    height: 300px;
  }

  .release__item-title {
    font-size: 16px;
  }


  .news__title {
    font-size: 12px;
  }



}