@media only screen and (max-width: 1025px) {
    .slider-box {margin-top: -20px;}
    .blockcontent {
        gap: 20px;
        font-size: 13px;
    }
    ul.bottom-menu {
        margin-left: -60px;
        max-width: 100%;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .top .container ul.menu-top {
        gap: 5px;
        flex-direction: column;
        padding-top: 5px;
    }
    .blockcontent {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        padding-top: 0;
        gap: 5px;
        justify-content: center;
    }
    .blockcontent > div {font-size: 0;}
    .blockcontent > div b {font-size: 14px;}
    .arendator-images-grid a {
        flex: 0 0 25%;
        padding: 30px;
    }
    .arendator-images-grid a:nth-child(-n+8) {display: flex;}
    .child-categories-section ul li {width: 33.33%;}
    img.alignright {
        width: 40%;
        height: auto;
    }
    .kontakty .kont,
    .reklamodatelyam.kontakty .kont {width: 48%;}
    .kontakty .wpcf7 {
        max-width: 48%;
        margin-top: 0;
    }
    .arendators-grid .arendator-item {
        justify-content: flex-start;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .arendators-grid .arendator-thumbnail {margin-right: 0;}
    .arendators-grid .title-name {
        padding-right: 0;
        margin-left: auto;
    }
    .arendators-grid .raspologenie {
        align-items: center;
        text-align: center;
    }
}

@media only screen and (max-width: 430px) {
    .top {background-position-x: calc(50% - 110px);}
    a.custom-logo-link {
        display: flex;
        align-items: center;
    }
    a.custom-logo-link img {
        width: 100%;
        height: auto;
    }
    .blockcontent {display: none;}
    .news-block .blog-post {
        width: 100%;
        padding-right: 0;
        margin: 10px 0;
    }
    .posts .post {
        gap: 20px;
        flex-direction: column;
    }
    .promo-block.posts .post:nth-child(3) {padding-left: 0;}
    .arendator-images-grid a {
        flex: 0 0 50%;
        padding: 20px;
    }
    .arendator-images-grid a:nth-child(-n+15) {display: none;}
    .arendator-images-grid a:nth-child(-n+6) {display: flex;}
    .child-categories-section ul li {width: 50%;}
    .bottom.container {
        flex-direction: column;
        gap: 40px;
        margin-top: 20px;
    }
    img.logo2 {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    ul.bottom-menu {
        margin-left: 0;
        padding-right: 0;
    }
    .bottom.container .right-block {width: 100%;}
    .top .container ul.menu-top {
        gap: 0;
        padding-top: 0;
        padding-bottom: 10px;
    }
    .posts a.title {font-size: 16px;}
    .aktsii a.page-thumbnail {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
    #mmenu {
        display: flex !important;
        cursor: pointer;
        padding: 10px;
        border-radius: 10px;
        z-index: 99;
        flex-direction: column;
        justify-content: center;
        width: 33.33%;
        align-items: flex-end;
    }
    #mmenu span {
        display: block;
        background-color: #ed1c24;
        margin-top: 8px;
        height: 5px;
        width: 40px;
        transition: All 0.2s ease-in-out;
        -webkit-transition: All 0.2s ease-in-out;
        -moz-transition: All 0.2s ease-in-out;
        -o-transition: All 0.2s ease-in-out;
    }
    #mmenu span:nth-child(1) {margin-top: 0;}
    #mmenu.open span:nth-child(1) {
        margin-top: 8px;
        position: relative;
        top: 5px;
        -moz-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #mmenu.open span:nth-child(2) {
        margin-top: 0;
        -moz-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #mmenu.open span:last-child {opacity: 0;}
    .aktsii .date {
        align-items: flex-start;
        flex-direction: column;
    }
    .mobile-menu.open {
        display: block !important;
        position: fixed;
        background: #fff;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 98;
        padding: 30px;
        overflow: auto;
    }
    .mobile-menu.open ul.menu {
        padding: 0;
        list-style: none;
    }
    .mobile-menu.open ul.menu li.menu-item-533 {display: none;}
    .mobile-menu.open ul.menu li a {
        font-weight: bold;
        display: block;
        margin: 10px 0;
    }
    h1.page-title {font-size: 26px;}
    .var {flex-direction: column;}
    .var > div {width: 100%;}
    .galery a,
    .category-fotogalereya .galery a.title {width: calc(50% - 15px);}
    .category-fotogalereya .galery a.title img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .category-fotogalereya .galery a.title span {font-size: 16px;}
    .kontakty .kont,
    .reklamodatelyam.kontakty .kont {width: 100%;}
    .kontakty .wpcf7 {max-width: 100%;}
    .page-template-page-grany img.attachment-post-thumbnail {margin: 30px auto;}
    .cifry {
        width: 100%;
        margin-bottom: 40px;
    }
    .storony .block {width: calc(50% - 10px);}
    ul.arendators-items li {
        gap: 10px;
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }
    ul.arendators-items li .arendator-number {width: auto;}
    ul.arendators-items li .arendator-section {
        max-width: 100%;
        margin-right: auto;
        text-align: center;
    }
    .arendators-grid .arendator-item {width: 100%;}
    .arrowss {display: none;}
    .arendator .arendator-page {flex-direction: column;}
    .arendator .arendator-page .the_content {width: 100%;}
    .arendator .right-dlock {width: 100%;}
}

@media only screen and (max-width: 380px) {
    .category-fotogalereya .galery {justify-content: center;}
    .category-fotogalereya .galery a.title {width: 80%;}
}

@media only screen and (max-width: 330px) {
    .top .container ul.menu-top {font-size: 10px;}
    .aktsii .date span,
    .posts .post .left span {width: 100px;}
    .posts .post .left a {
        width: 100px;
        height: auto;
        margin-top: 0;
        margin-left: 0;
    }
    .galery a {width: 100%;}
    .child-categories-section ul li {width: 100%;}
}