@media(max-width: 700px) {
    html #wpadminbar {
        position: fixed !important;
    }

    body {
        line-height: 20px;
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
        line-height: 32px;
    }

    h2 {
        font-size: 20px;
        line-height: 28px;
    }

    h3 {
        font-size: 18px;
        line-height: 24px;
    }

    h4, h5, h6 {
        line-height: 20px;
    }

    .site-header .fixed-info-block {
        left: 0;
        bottom: 0;
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: center;
        transform: translateY(0);
    }

    .site-header .fixed-info-block a {
        border-radius: 16px 16px 0 0;
    }

    .site-header .fixed-info-block a:hover span {
        font-size: 14px;
    }

    .site-header .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        gap: 20px;
        position: fixed;
        top: -150%;
        left: 0;
        opacity: 0;
        visibility: hidden;
        z-index: -1;
        transition: all 0.3s ease-in-out;
    }

    .site-header .mobile-header.open {
        opacity: 1;
        visibility: visible;
        top: 0;
        z-index: 99999999;
    }

    .site-header .mobile-header .container {
        width: calc(100% - 20px);
        padding: 15px 0;
        position: relative;
    }

    .site-header .mobile-header .container .top {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .mobile-header .container .top a svg {
        width: 74px;
        height: 80px;
    }

    #topmenu > .menu > li {
        position: unset;
    }

    #topmenu > .menu > li > ul {
        width: 100%;
        top: 0;
    }

    #topmenu > .menu > li > ul > li > ul {
        top: 20px;
        left: 0;
    }

    #cssmenu > .menu > li {
        font-size: 14px;
        line-height: 20px;
    }

    #cssmenu > .menu > li > .mega-menu-content {
        top: 0;
        width: 100%;
    }

    #cssmenu > .menu > li > .mega-menu-content .container {
        padding: 15px 15px;
    }

    #cssmenu > .menu > li:nth-child(1) > .mega-menu-content .container .sub-menu-list,
    #cssmenu > .menu > li:nth-child(2) > .mega-menu-content .container .sub-menu-list,
    #cssmenu > .menu > li:nth-child(4) > .mega-menu-content .container .sub-menu-list,
    #cssmenu > .menu > li:nth-child(5) > .mega-menu-content .container .sub-menu-list,
    #cssmenu > .menu > li:nth-child(6) > .mega-menu-content .container .sub-menu-list {
        columns: 2;
    }

    #cssmenu > .menu > li > .mega-menu-content .container .sub-menu-list li a {
        font-size: 14px;
        line-height: 20px;
    }

    .site-header .container {
        width: calc(100% - 20px);
        padding: 15px 0;
    }

    .site-header .container .top-menu {
        display: none;
    }

    .site-header .container hr {
        display: none;
    }

    .header-main .top-menu,
    .header-main .content {
        display: none;
    }

    #topmenu > .menu, #cssmenu > .menu {
        flex-direction: column;
    }

    .header-main .menu-toggle {
        display: flex;
        margin-left: auto;
        cursor: pointer;
    }

    .header-main .goToMain svg {
        width: 74px;
        height: 80px;
    }

    .header-main .content {
        display: none;
    }

    .site-footer .container {
        width: calc(100% - 20px);
        padding: 40px 0;
    }

    .site-footer .container .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container .footer-grid .item {
        align-items: center;
        justify-content: center;
    }

    .footer-grid .item .copyright {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }

    .footer-grid .item .visually {
        font-size: 16px;
        line-height: 22px;
    }

    .footer-grid .item .title {
        font-size: 16px;
        line-height: 24px;
    }

    #footermenu > .menu > li {
        font-size: 14px;
        text-align: center;
    }

    #footermenu > .menu > li > a {
        justify-content: center;
    }

    .footer-grid .item .adr {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }

    .container-main {
        gap: 50px;
    }

    #breadcrumbs span {
        font-size: 14px;
        line-height: 20px;
    }

    .container-main .container {
        width: calc(100% - 20px);
    }

    .container.main-grid {
        grid-template-columns: 1fr;
        padding: 25px 25px 0 25px;
        gap: 0;
    }

    .container.main-grid img {
        width: 100%;
        height: auto;
    }

    .container.main-grid .item .go {
        font-size: 16px;
        line-height: 24px;
        padding: 15px 50px;
        margin-top: 0;
    }

    .container:has(.info-link-grid) {
        margin-top: 0;
    }

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

    .info-link-grid .item {
        padding: 15px 15px;
        line-height: 20px;
    }

    .container.about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container.about-grid .item .text {
        padding-top: 0;
    }

    .container.about-grid .main-stuff {
        padding: 15px 15px;

    }

    .container.about-grid .main-stuff .name {
        font-size: 20px;
        line-height: 24px;
    }

    .container.about-grid .main-stuff .stuff-link {
        font-size: 16px;
        line-height: 24px;
        padding: 15px 15px;
    }

    .container .title {
        flex-direction: column;
    }

    .container .title .link {
        padding: 15px 30px;
        font-size: 16px;
        line-height: 24px;
    }

    .swiper-news .news-item .more {
        font-size: 16px;
        line-height: 24px;
        padding: 15px 15px;
    }

    .quick-access-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .quick-access-grid .item {
        width: calc(50% - (25px / 2));
        padding: 15px 15px;
    }

    .search-blocks {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .search-blocks svg {
        width: auto;
        height: 80px;
    }

    .search-blocks .search-links .links a {
        padding: 15px 15px;
        font-size: 16px;
        line-height: 24px;
    }

    .schedules {
        overflow-y: scroll;
    }

    .schedules #filters {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .schedules #schedule-table th {
        font-size: 16px;

    }

    .ads-grid {
        grid-template-columns: 1fr;
    }

    .container.events-grid {
        grid-template-columns: 1fr;
    }

    .container.events-grid .events .event-list {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid .docs-item, .docs-list .doc-item {
        grid-template-columns: 1fr;
    }

    .docs-grid .docs-item .image, .docs-list .doc-item .image {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .docs-grid .docs-item img, .docs-list .doc-item img {
        width: 20%;
    }

    .docs-grid .docs-item .info h4, .docs-list .doc-item .info h4 {
        text-align: center;
    }

    .docs-grid .docs-item .info .file-info a, .docs-list .doc-item .info .file-info a {
        font-size: 14px;
    }

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

    .video-wrapper {
        flex-direction: column;
    }

    .video-wrapper .video-small-group {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    body.page-template-about-page .container.main-grid .main-img {
        position: relative;
        top: 0;
        right: 0;
    }

    .teacher-swiper .personal-item img {
        height: 300px;
    }

    .teacher-swiper .personal-item h4 {
        font-size: 18px;
        line-height: 20px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        flex-direction: column;
        padding-right: 20px;
    }

    .timeline-container::before {
        width: 4px;
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%;
    }

    .timeline-item.left::after {
        right: -28px;
        width: 20px;
        height: 20px;
        border-width: 4px;
    }

    .timeline-item .year {
        font-size: 24px;
        line-height: 32px;
    }

    .timeline-item .timeline-content {
        font-size: 14px;
        line-height: 20px;
    }

    .timeline-item.right {
        margin-top: 0 !important;
    }

    .timeline-item.right::before {
        right: -28px;
        left: auto;
        width: 20px;
        height: 20px;
        border-width: 4px;
    }

    .edu-desc {
        font-size: 14px;
        line-height: 20px;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .edu-grid .edu-item img {
        height: 250px;
    }

    .edu-grid .edu-item .name {
        font-size: 20px;
    }

    .edu-grid .edu-item .desc {
        font-size: 14px;
        line-height: 20px;
    }

    .reviews-list .review-item .name {
        font-size: 18px;
        line-height: 24px;
    }

    .reviews-list .review-item .doc-item .file-info {
        flex-wrap: wrap;
    }

    .employment-list .employment-item {
        grid-template-columns: 1fr;
    }

    .employment-list .employment-item .detail .name {
        font-size: 24px;
        line-height: 32px;
    }

    .employment-list .employment-item .detail .excerpt {
        font-size: 14px;
        line-height: 20px;
    }

    .employ-image {
        height: 200px;
    }

    main .container .content {
        gap: 20px;
    }

    .diploms-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-item img {
        height: 200px;
    }

    .services-item .title {
        font-size: 24px;
        line-height: 32px;
    }

    .services-item .excerpt {
        font-size: 14px;
        line-height: 20px;
    }

    .price-table .price-item,
    .price-table .price-title {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-table .price-title .name-title, .price-table .price-title .prices-title {
        font-size: 16px;
        line-height: 20px;
    }

    table:not(#schedule-table) tr {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-vacancy .input input,
    .form-vacancy .input textarea {
        font-size: 14px;
        line-height: 20px;
    }

    .form-vacancy .acceptance .wpcf7-list-item label span {
        flex-direction: column;
    }

    .form-vacancy .submit input {
        font-size: 14px;
        line-height: 20px;
        padding: 15px 15px;
    }

    .vacancy-item {
        padding: 15px 15px;
        max-height: 140px;
    }

    .vacancy-item .title {
        font-size: 20px;
        line-height: 32px;
        align-items: flex-start;
    }

    .vacancy-item .links .accessVacancy,
    .vacancy-item .links .moreVacancy {
        font-size: 14px;
        line-height: 20px;
        padding: 15px 15px;
    }

    .vacancy-item .more-vacancy .item .subtitle {
        font-size: 16px;
        line-height: 20px;
    }

    .vacancy-item .more-vacancy .item .text {
        font-size: 14px;
        line-height: 20px;
    }

    .vacancy-item .more-vacancy .callback {
        flex-direction: column;
    }

    .container .accordion .details .details__title {
        line-height: 20px;
    }

    .container .accordion .details .details__content {
        font-size: 14px;
        line-height: 20px;
    }

    .golden-fund-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .golden-fund-list .golden-fund-item .title {
        font-size: 20px;
        line-height: 32px;
    }

    .pagination .nav-links .page-numbers {
        width: 35px;
        height: 35px;
    }

    .partners-grid .partner-item .content,
    .partners-grid .partner-item .info-grid .item {
        font-size: 14px;
        line-height: 20px;
    }

    .partners-grid .partner-item h4 {
        font-size: 20px;
        line-height: 32px;
    }

    body.page-template-live-gimnasium-page .container.main-grid {
        height: auto;
    }

    body.page-template-live-gimnasium-page .container.main-grid .main-img {
        position: relative;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-grid .video-item {
        height: 250px;
    }

    .video-grid .video-item h3 {
        font-size: 16px;
        line-height: 24px;
    }

    .level-list .level .level-name {
        font-size: 20px;
        line-height: 32px;
    }

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

    .level-list .level .class-list .class-item {
        font-size: 16px;
        line-height: 28px;
        padding: 20px 20px;
    }

    .schedule .day-schedule .schedule-table {
        overflow-x: scroll;
    }

    .schedule .day-schedule .schedule-table .table-item {
        width: 700px;
    }

    .schedule .day-schedule .title {
        font-size: 20px;
        line-height: 32px;
    }

    .news-list .news-item {
        grid-template-columns: 1fr;
    }

    .news-list .news-item .image img,
    .articles-list .article-item .image img {
        height: 200px;
    }

    .news-list .news-item .news-content .more,
    .ads-grid .ads-item .more,
    .articles-list .article-item .news-content .more {
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }

    .pagination .nav-links {
        flex-wrap: wrap;
    }

    .gallery-list .gallery-item h4 {
        font-size: 20px;
        line-height: 32px;
    }

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

    .events-grid {
        grid-template-columns: 1fr;
    }

    .post-image img {
        height: 300px;
    }

    .articles-list .article-item {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-grid .media-item {
        height: 250px;
    }

    .sublinks-list a {
        padding: 20px 15px;
    }

    .useful-links .useful-item {
        flex-direction: column;
    }

    .class-list {
        grid-template-columns: 1fr;
    }

    .class-list .class-item {
        font-size: 18px;
        line-height: 24px;
        padding: 20px 20px;
    }

    .class-list .class-item .stuff .sub, .class-list .class-item .stuff .value {
        font-size: 14px;
        line-height: 20px;
    }

    .schedules #filters select, .schedules #filters input {
        font-size: 14px;
        line-height: 20px;
    }

    .content img {
        width: 100%;
        height: auto;
    }

    .teaching-grid {
        grid-template-columns: 1fr;
    }

    .teaching-grid .teacher-item img {
        height: 300px;
    }

    .teaching-grid .teacher-item .teacher img {
        height: 300px;
    }

    .personal-grid {
        grid-template-columns: 1fr;
    }

    .mobile-scroll {
        overflow-x: scroll;
    }

    .mobile-scroll table {
        width: 700px;
    }

    body.page-id-25 .table-scroll table {
        width: 2200px;
    }

    

    body.page-id-41 .table-scroll table {
        width: 2200px;
    }

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

    /* Request popup */
    #request-popup .modal-content-wrapper .modal-content,
    .video-modals .modal-content-wrapper .modal-content,
    .eds-modals .modal-content-wrapper .modal-content,
    #pdfModal .modal-content-wrapper .modal-content {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 40px 20px 20px 20px;
    }

    #request-popup .modal-content-wrapper .modal-content .closeModal,
    .eds-modals .modal-content-wrapper .modal-content .closeModal,
    .video-modals .modal-content-wrapper .modal-content .closeModal,
    #pdfModal .modal-content-wrapper .modal-content .closeModal {
        font-size: 20px;
        top: 20px;
        right: 20px;
    }
}