@media screen and (max-width: 1599px) {
    .social {
        display: none;
    }
    .social-nav {
        display: flex;
    }
}

@media screen and (max-width: 1400px) {
    .nav-container {
        width: 100%;
        padding: 0 30px;
    }
    nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .footer-container {
        width: 100%;
        padding: 30px 30px;
    }
}

@media screen and (max-width: 1280px) {
    .container {
        width: 100%;
        padding: 0 30px;
    }
}

@media screen and (max-width: 1024px) {
    .swiper {
        width: 100%;
        border-radius: 100px 10px 100px 10px;
    }
    .prev-slide-btn, .next-slide-btn {
        display: none;
    }
    .advantages-item-wrap, .advantages-item {
        width: 100%;
    }
    .item-view-img {
        width: 340px;
        height: 420px;
    }
}

@media screen and (max-width: 800px) {
    .header-gallery {
        display: none;
    }
    .header-info {
        flex: 0 0 80%;
        margin: auto;
    }
    .header-info-images {
        display: flex;
        height: 300px;
    }
    .swiper {
        border-radius: 50px 10px 50px 10px;
    }
    .cards-container {
        grid-template-columns: repeat(auto-fill, 100%);
    }
    .pt-main {
        padding-top: 70px;
    }

    .pb-main {
        padding-bottom: 70px;
    }
    .header-container {
        min-height: auto;
        padding-top: 180px;
        padding-bottom: 50px;
    }
    .contact-form {
        width: 580px;
    }
    .item-view-img {
        width: 260px;
        height: 340px;
        margin-right: 20px;
        margin-bottom: 10px;
    }
    .contacts-container {
        flex-direction: column;
    }
    .width-100 {
        width: 100%;
    }
    .map-container {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 20;
        width: 100%;
        height: 100%;
        background: var(--blue-gradient-mobile);
        display: flex;
        flex-direction: column;
        padding: 10px;
        margin-top: 0;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    #map {
        flex: 1;
    }
    .map-reload-btn {
        width: 50px;
        height: 50px;
    }
    .map-close-btn {
        display: block;
    }
    .show-map-points-btn {
        display: flex;
    }
    .view-mobile-map-btn {
        display: flex;
    }
    .map-hide {
        display: none;
    }
    .map-visible {
        opacity: 1;
    }
    .item-view-info-text img {
        border-radius: 50px 10px 50px 10px;
    }
    .phone-link, .mail-link {
        background-color: var(--buttons-bg);
        color: var(--color-white);
        border-radius: 50px;
        padding: 10px 15px;
        font-size: 14px;
        font-weight: normal;
    }
    .comment-for-user {
        display: none;
    }
}

@media screen and (max-width: 750px) {
    .nav-phone-link, .social-nav {
        display: none;
    }
    .logo-text {
        font-size: 16px;
    }
    .social-nav-mobile {
        display: flex;
    }
    .wrap {
        padding: 180px 0 40px 0;
    }
    .details{
        flex-direction: column;
    }
    .details-title:nth-child(1) {
        border-radius: 10px 10px 0 0;
    }
    .details-title:nth-child(27) {
        border-radius: 0 0 0 0;
    }
    .details-info:nth-child(2) {
        border-radius: 0 0 0 0;
    }

    .details-info:nth-child(28) {
        border-radius: 0 0 10px 10px;
    }
    .new-loaded {
        scroll-margin-top: 180px;
    }
    #contact-form {
        scroll-margin-top: 120px;
    }
}

@media screen and (max-width: 600px) {
    .header-gallery {
        display: none;
    }
    .header-info {
        flex: 0 0 100%;
    }
    .header-buttons {
        margin-top: 20px;
    }
    .header-info-images {
        height: 220px;
    }
    .container {
        padding: 0 10px;
    }
    .nav-container {
        padding: 0 10px;
    }
    .contact-form {
        width: 100%;
        padding: 30px;
        border-radius: 50px 10px 50px 10px;
    }
    .pt-main {
        padding-top: 50px;
    }

    .pb-main {
        padding-bottom: 50px;
    }
    .social-nav-mobile {
        padding: 10px 10px 20px 10px;
    }
    p {
        font-size: 14px;
    }
    .contact-form-pop-up {
        width: 90%;
    }
    .header-info-title, .header-info-text {
        text-align: center;
    }
    .main-btn-blue {
        margin: auto;
    }
    .wrap {
        padding: 170px 0 20px 0;
    }
    .line-height-26 {
        line-height: 20px;
    }
    .item-view-info-text p {
        line-height: 20px;
    }
    .item-view-img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 20px;
    }
    .item-view-info-text img {
        border-radius: 10px 10px 10px 10px;
    }
    .float-r {
        float: none;
    }
    .float-l {
        float: none;
    }
    .gallery-nav-btn {
        border-radius: 20px;
        width: 40px;
        height: 40px;
    }
    .form-success-message {
        width: 88%;
        height: auto;
        padding: 20px;
    }
    .form-success-message-icon {
        width: 50px;
        height: 50px;
    }
    .docs-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 499px) {
    .main-btn-blue {
        width: 100%;
    }
    .footer-title {
        flex-direction: column;
        gap: 26px;
    }
    .footer-company {
        padding-right: 0;
        text-align: center;
    }

    footer li {
        width: 100%;
        text-align: center;
    }
    .advantages-item-title {
        width: 74%;
        text-align: center;
        font-size: 14px;
    }
    .advantages-item-title-background {
        width: 92%;
    }
    .contact-form {
        padding: 30px 10px 10px 10px;
        border-radius: 10px 10px 10px 10px;
    }
    .advantages-item-title {
        font-size: 13px;
    }
    .swiper {
        border-radius: 10px 10px 10px 10px;
    }
    .header-info-images-item img {
        border-radius: 10px 10px 10px 10px;
    }
    .view-mobile-map-btn {
        width: 100%;
    }
    .cards-photo {
        height: 280px;
    }
    .payment-btn {
        width: auto;
    }
}

@media screen and (max-width: 350px) {
    .page-btn {
        width: 40px;
        height: 40px;
        border-radius: 40px;
    }
}

