@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
    }

    .menu.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .submenu {
        position: relative;
        display: none;
    }

    .menu li:hover .submenu {
        display: flex;
        flex-direction: column
    }

    .submenu li {
        margin: 0;
    }

    .hidden-item {
        display: none;
        /* Скрыть элемент */
    }

    .news-block {
        width: 90%;
        margin: 5%;
    }

    .news-block:hover {
        width: 95%;
        margin: 5%;
    }

    .socialmedia {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .media {
        height: auto;
        margin-top: 250px;
        margin-bottom: 250px;
    }

    .text-block {
        width: 100%;
        height: 170px;
        align-content: center;

    }

    .background-figure {
        opacity: 0;
    }

    .history_etc {
        flex-direction: column;
    }

    .left-container,
    .right-container {
        width: 90%;
        margin: 0 auto 20px;
    }

    .photo-accordion {
        flex-direction: column;
    }

    .phlink {
        width: 400px;
        aspect-ratio: 16/9;
        margin: 10px;
    }

    .phlink:hover {
        width: 500px;
    }

    .accordion {
        flex-direction: column;
    }

    .text {
        writing-mode: horizontal-tb;
        font-size: 40px;
        display: flex;
    }

    .more {
        height: 5%;
    }

    .link {
        width: 100%;
        height: 100px;
    }

    .link.active {
        height: 500px;
        width: 100%;
    }

    .link:nth-child(1).active,
    .link:nth-child(2).active,
    .link:nth-child(3).active {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .employee {
        width: 90%;
        height: 500px;
    }

    .main {
        display: flex;
        flex-direction: column;
        background-position: bottom;
    }

    .image {
        width: 90%;
        background-image: url(img/main.png);
        aspect-ratio: 16/9;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .board_image {
        display: none;
    }

    .ornament {
        display: none;
    }

    .main_text {
        width: auto;
        padding: 20px;
        text-align: center;
    }

    .main_text h4 {
        font-size: 30px;
    }

    #faq p img {
        width: 90%;
        height: auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin: 20px;
    }

    .photo_block {
        width: 90%;
        margin: 5%
    }

    .photo_block.wide {
        width: 90%;
        margin: 5%
    }

    footer img {
        display: none
    }
}

@media (max-width: 1190px) {

    .socialmedia {
        display: flex;
        justify-content: space-between;
        padding-right: 30px
    }

    .text-block {
        width: 100%;
        height: auto;
    }

    .media {
        height: auto;
    }

    .background-figure {
        top: 63%;
        right: 0%;
        width: 110%;
        height: 50%;
        transform: translateY(-50%);
    }

    footer img {
        display: none
    }
}


@media (max-width: 1130px) {
    #faq p img {
        width: 90%;
        height: auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin: 0px;
    }

    .menu {
        display: none;
        flex-direction: column;
    }

    .menu.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .submenu {
        position: relative;
        display: none;
    }

    .menu li:hover .submenu {
        display: flex;
        justify-content: space-between;
    }

    .submenu li {
        margin: 0;
    }

    .hidden-item {
        display: none;
        /* Скрыть элемент */
    }


    .photo-accordion {
        gap: 10px;
    }

    .phlink {
        width: 368px;
        aspect-ratio: 16/9;
        height: 207px;
        margin: 10px;
    }

    .phlink:hover {
        width: 400px;
        aspect-ratio: 16/9;
    }

    .novosti {
        width: 100%;
        flex-direction: column;
        align-content: center;
    }

    .news {
        width: 95%;
        margin-bottom: 10px
    }

    .news:hover {
        width: 100%
    }

    .news:first-child {
        margin-bottom: 75px;

    }

    .text-content h2 {
        font-size: 18px;
    }

    footer img {
        display: none
    }

    #block6 {
        display: block;
    }

    #block3 {
        display: none;
    }

}
