@media (max-width: 1240px) {
    .container {
        margin-right: 20px;
        margin-left: 20px;
    }
}

@media (max-width: 950px) {
    .header .header-links {
        display: none;
    }

    #burger-menu {
        display: flex;
    }

    .main-login {
        width: 100%;
    }

    .catalog .main-catalog-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 740px) {
    .catalog .main-catalog-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 630px) {
    .header .open-catalog {
        display: none;
    }

    .header {
        gap: 10px;
        padding: 10px;
        margin-bottom: 20px;
    }

    .header-search {
        gap: 5px;
        padding-right: 8px;
    }

    .header-search input {
        padding: 6px 8px;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.5);
    }

    .header-search svg {
        width: 14px;
        height: 14px;
    }

    #burger-menu {
        padding: 12px 8px;
    }

    .mobile-menu .header-links {
        gap: 10px;
        justify-content: space-between;
        padding-bottom: 15px;
        border-bottom: 1px solid #c4c4c4;
        margin-bottom: 15px;
    }

    .mobile-menu .header-links a:first-of-type {
        font-size: 13px;
    }

    .mobile-menu .header-links a:last-of-type {
        font-size: 13px;
    }

    .main-page {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .main-page-make {
        width: 100%;
        padding: 14px;
    }

    .main-page-make h1 {
        margin-bottom: 10px;
        font-size: 25px;
    }

    .main-page-catalog {
        display: none;
    }

    .main-page-make input {
        margin-bottom: 10px;
        font-size: 14px;
        padding: 7px;
    }

    .main-page-make button {
        padding: 9px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .main-page-make p {
        font-size: 10px;
    }

    .main-catalog {
        margin-bottom: 30px;
    }

    .main-catalog-title {
        font-size: 18px;
    }

    .main-catalog-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .main-catalog-inner__item-photo {
        height: 166px;
        border-radius: 10px;
        margin-bottom: 5px;
    }

    .main-catalog-inner__item-title {
        font-size: 10px;
    }

    .main-catalog-inner__item-dop {
        font-size: 11px;
    }

    .main-catalog-button__other {
        font-size: 14px;
        padding: 7px;
        border-radius: 6px;
    }

    .main-how {
        margin-bottom: 60px;
    }

    .main-how-title {
        font-size: 18px;
    }

    .main-how-inner {
        flex-direction: column;
        gap: 15px;
    }

    .main-how-item {
        width: 100%;
    }

    .main-how-item h2 {
        font-size: 21px;
    }

    .main-how-item p {
        font-size: 14px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .login-page {
        margin-top: 40px;
        margin-bottom: 70px;
    }

    .main-login-top button {
        font-size: 11px;
        padding: 7px;
    }

    .main-login-top {
        border-radius: 11px 11px 0px 0px;
    }

    .main-login-base {
        border-radius: 0px 0px 11px 11px;
        padding: 16px;
    }

    .main-login-base form input {
        padding: 6px;
        font-size: 13px;
        border-radius: 5px;
    }

    .main-login-base form button {
        font-size: 13px;
        padding: 7px;
        border-radius: 6px;
    }

    .profile {
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .cookies {
        margin-bottom: 11px;
        flex-wrap: wrap;
    }

    .cookies a {
        font-size: 12px;
    }

    .universal-title {
        margin-bottom: 25px;
        font-size: 20px;
    }

    .profile-inner {
        flex-direction: column-reverse;
    }

    .profile-asside {
        width: 100%;
    }

    .profile-about-top__info div h5 {
        font-size: 14px;
    }

    .profile-about-top__info div p {
        font-size: 12px;
    }

    .profile-about-top {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .profile-about-verification {
        font-size: 11px;
        padding: 10px 14px;
    }

    .profile-about-bottom {
        gap: 12px;
    }

    .profile-about-bottom div p {
        font-size: 12px;
    }

    .input-container {
        margin-bottom: 25px;
    }

    .radio-tabs {
        gap: 10px;
    }

    .radio-tab span {
        font-size: 10px;
        padding: 10px;
        min-width: unset;
        height: auto;
    }

    .header-logo img,
    .footer-column-logo img {
        height: 26px;
    }

    .new-ad-first {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .new-ad-right {
        width: 100%;
        flex-wrap: nowrap;
    }

    .new-ad-type h3 {
        font-weight: 600;
        font-size: 13px;
        line-height: 120%;
    }

    .new-ad-type span {
        font-weight: 400;
        font-size: 11px;
        line-height: 147%;
        color: #000;
    }

    .new-ad-name__right img {
        width: 30px;
        height: 30px;
        min-height: 30px;
        min-width: 30px;
        border-radius: 30px;
    }

    .new-ad-name__right-ava {
        gap: 10px;
        justify-content: right;
    }

    .new-ad-name__right-ava p {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .new-ad-name__right-ava h5 {
        font-size: 8px;
    }

    .new-ad-name__right-status {
        font-size: 8px;
    }

    .new-ad-name__right-views {
        font-size: 11px;
    }

    .open-contacts {
        padding: 6px 10px;
        border-radius: 10px;
        border: none;
        outline: none;
        cursor: pointer;
        font-size: 14px;
        background-color: #0C3180;
        color: #fff;
        border: 1px #0c3180 solid;
        transition: all .4s ease;
    }

    .new-ad-block__title {
        font-size: 20px;
    }

    .new-ad-block__text p {
        font-size: 16px;
    }

    .new-ad-block__text {
        padding: 15px;
    }

    .header-city {
        font-size: 8px;
        max-width: 77px;
        margin-top: 1px;
    }

    .change-city-form {
        width: 90%;
    }

    .change-city-form {
        top: 36%;
    }

    .change-city-form h2 {
        font-size: 13px;
    }

    .catalog {
        margin-top: 27px !important;
    }

    .catalog-results {
        width: 100% !important;
    }

    .open-filter {
        display: flex;
    }

    .catalog-asside-topp {
        justify-content: space-between;
    }

    .catalog-asside {
        position: fixed !important;
        box-shadow: 1px 1px 10px 2px #d8d8d8;
        width: calc(100% - 45px) !important;
        transform: translateX(-140%);
        z-index: 999;
    }

    .open-catalog-asside {
        transform: translateX(0%) !important;
    }

    #close-catalog-asside {
        display: flex !important;
        /* margin-bottom: 10px; */
        margin-left: auto;
    }

    #contact-form {
        padding: 20px;
        gap: 16px;
    }

    #contact-form h2 {
        font-size: 16px;
        font-weight: 500;
    }

    #contact-form h3 {
        font-size: 13px;
        font-weight: 500;
    }

    #contact-form a {
        font-size: 13px;
    }

    #contact-form p {
        font-size: 9px;
    }

    #contact-form input {
        font-size: 14px;
        padding: 6px 8px;
    }

    #contact-form button {
        padding: 8px 14px;
        font-size: 14px;
    }

    .right-messenger-button {
        display: block;
    }

    .messenger {
        border: none;
    }

    .messenger .left {
        width: 100%;
        border: 2px #8d8d8d solid;
        border-radius: 10px;
    }

    .messenger .right {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        /* height: 90vh; */
        width: 100%;
        border: 2px #8d8d8d solid;
        border-radius: 10px;

        transform: translateX(120%);
        transition: all .4s ease;
    }

    .open-right-messenger {
        transform: translateX(0%) !important;
    }

    .wrapper-messenger {
        position: relative;
        overflow: hidden;
    }

    .chat-fixed {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}