@media(max-width:419px) {
    .phones-mobile {
        column-gap: 16px;
    }
	.text-desktop {
		display: none;
	}
}
@media(min-width:420px) {
    .phones-mobile {
        column-gap: 32px;
    }
	.text-mobile {
		display: none;
	}
}
@media(max-width:767px) {
    .phones-mobile.hidden,
    .header-desktop,
    .menu-mobile,
    .form-desktop,
    .title-desktop {
        display: none;
    }
    body.fixed {
        overflow: hidden;
    }
    main {
        margin-top: 40px;
    }
    .wrapper {
        padding: 0 24px;
    }
    .auto-img {
        margin-bottom: 20px;
    }
    .header-logo {
        padding: 0;
    }
    .header-logo__image {
        height: 40px;
    }
    header {
        position: static;
    }
    .header-top {
        padding: 16px 24px;
    }
    header.fullscreen {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
    }
    .menu-mobile.show {
        display: flex;
        flex-direction: column;
        row-gap: 24px;
        padding: 0 24px;
    }
    .menu-mobile.show:before {
        content: "";
        height: 2px;
        left: 0;
        right: 0;
        background: rgba(49, 49, 50, .05);
    }
    .burger {
        position: absolute;
        right: 32px;
        top: 28px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        row-gap: 5px;
        width: 24px;
        height: 16px;
        cursor: pointer;
    }
    .burger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #313132;
        border-radius: 2px;
        transition: .2s linear;
    }
    .burger.open span {
        transition: all 0.2s;
    }
    .burger.open span:first-of-type {
        transition-delay: 0.4s;
        transform: translate3d(6px, 0px, 0px) rotateZ(45deg);
        width: 21px;
        transform-origin: left top;
    }
    .burger.open span:nth-of-type(2) {
        opacity: 0;
    }
    .burger.open span:last-of-type {
        transition-delay: 0.4s;
        transform: translate3d(6px, 0px, 0px) rotateZ(-45deg);
        width: 21px;
        transform-origin: left bottom;
    }
    .cost-item + .cost-item {
        margin-top: 8px;
    }
    .footer-messengers {
        margin: 24px 0;
    }
    .footer-phone {
        display: block;
        margin-top: 19px;
    }
    .form-mobile {
        margin-bottom: 32px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
    h4 {
        font-size: 18px;
    }
    .notice {
        padding: 18px 24px 18px 47px;
        background: #fdf2e8 url(/wp-content/uploads/2024/12/alert.svg) no-repeat;
        background-size: 27px 30px;
        background-position: center left 10px;
        font-size: 14px;
    }
    .phones-mobile {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background: #f3f4f6;
        padding: 0 24px;
        height: 52px;
        display: flex;
        align-items: center;
    }
    .phones-mobile img {
        display: block;
        flex-shrink: 0;
        height: 32px;
        width: auto;
    }
    .phones-mobile a:first-child {
        margin-right: auto;
    }
    .auto-details {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .auto-footer {
        display: flex;
        flex-direction: column-reverse;
        row-gap: 24px;
        align-items: flex-start;
    }
	.content {
		margin-bottom: 48px;
	}
	.form-sidebar {
		margin-bottom: 32px;
	}
	.modal-show {
                opacity: 1;
                visibility: visible;
                transition: visibility 0s linear, opacity 0.25s;
            }
            .form-content {
                border-radius: 4px 4px 0 0;
                position: fixed;
                bottom: -100%;
                width: 100%;
                transition: bottom 0.3s;
            }
            .modal-show .form-content {
                bottom: 0;
                transition: bottom 0.3s;
            }
}
@media(min-width:768px) {
    .header-mobile,
    .form-mobile,
    .title-mobile,
    .phones-mobile,
	.form-sidebar h2{
        display: none;
    }
    .header-nav .wrapper {
        display: flex;
        align-items: center;
    }
    #menu-header {
        height: 70px;
        display: flex;
        align-items: center;
        column-gap: 32px;
    }
    .header-nav .button {
        margin-left: auto;
    }
    .header-nav {
        background-color: #f3f4f6;
    }
    .wrapper {
        padding: 0 32px;
    }
    .footer-top {
        display: flex;
        justify-content: space-between;
    }
    .footer-phones {
        display: flex;
        align-items: center;
        column-gap: 32px;
    }
    .copyright {
        text-align: center;
    }
    #menu-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 48px;
        row-gap: 12px;
    }
    .auto-footer {
        display: flex;
        position: relative;
        padding: 26px 24px;
    }
    .auto-footer .button {
        position: absolute;
        top: 16px;
        right: 24px;
    }
    .notice {
        padding: 24px 32px 24px 74px;
        background: #fdf2e8 url(/wp-content/uploads/2024/12/alert.svg) no-repeat 54px 60px;
        background-position: center left 10px;
    }
    .flex-container {
        display: flex;
        column-gap: 48px;
    }
    .content {
        width: calc(100% - 348px);
    }
    aside {
        width: 300px;
		flex-shrink:0;
		position: sticky;
		top: 172px;
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 32px;      
        align-self: flex-start;
    }
	.form-sidebar,
	.post-share {
		background: #f5f7f9;
		border-radius: 8px;
		padding: 24px;
	}
	.form-sidebar .text-field {background:white;}
	.form-sidebar .button{width:100%;}
	.form-modal {
                transform: scale(1.1);
                transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
            }
            .modal-show {
                opacity: 1;
                visibility: visible;
                transform: scale(1.0);
                transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
            }
            .form-content {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                max-width: 450px;
            }
}
@media(max-width:1023px) {
    h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    h2 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    h3 {
        font-size: 20px;
    }
    .tariffs-table {
        display: block;
        border: 1px solid rgba(49, 49, 50, .2);
        border-radius: 8px;
        width: 100%
    }
    .tariffs-table thead,
    .tariffs-table th {
        display: none;
    }
    .tariffs-table tbody {
        display: block;
    }
    .tariffs-table tr {
        padding: 20px 0;
        display: block;
    }
    .tariffs-table tr:not(:last-child) {
        border-bottom: 1px solid rgba(49, 49, 50, .2);
    }
    .tariffs-table tr td {
        display: flex;
        column-gap: 8px;
        padding: 4px 24px;
    }
    .tariffs-table tr td:nth-child(3):before {
        content: "1 день"
    }
    .tariffs-table tr td:nth-child(4):before {
        content: "2-5 дней"
    }
    .tariffs-table tr td:nth-child(5):before {
        content: "6-10 дней"
    }
    .tariffs-table tr td:nth-child(6):before {
        content: "11-20 дней"
    }
    .tariffs-table tr td:nth-child(7):before {
        content: "21-30 дней"
    }
    .tariffs-table tr td:nth-child(8):before {
        content: "более 30 дней"
    }
    .tariffs-table tr td:nth-child(9):before {
        content: "Залог"
    }
    .footer-middle {
        padding: 24px 0;
        font-size: 14px;
        line-height: 22px;
    }
    .footer-contacts {
        row-gap: 8px;
        margin-bottom: 20px;
    }
    .footer-middle ul li + li {
        margin-top: 8px;
    }
    .doc-link + .doc-link {
        margin-top: 24px;
    }
    .auto-details.desktop--hidden {
        margin: 16px 0;
        padding: 0;
    }
	.dotted-list__item {
		font-size: 14px;
	}
	.dotted-list__item span, .dotted-list__item b {  
    bottom: -6px;
}
}
@media(min-width:1024px) {
    #menu-footer a {
        white-space: nowrap;
        display: block;
    }
    .footer-middle {
        display: flex;
        justify-content: space-between;
    }
    .tariffs-table {
        text-align: center;
		width: 100%;
    }
    .tariffs-table th {
        background: #f3f4f6;
        padding: 18px 12px;
        font-weight: 500;
    }
    .tariffs-table td {
        padding: 16px 12px;
        border-bottom: 1px solid rgba(49, 49, 50, .2);
    }
    .docs-grid {
        display: flex;
        column-gap: 48px;
    }
}
@media(max-width:1199px) {
    .mobile--hidden,
    .header-title {
        display: none;
    }
    .auto-item + .auto-item {
        margin-top: 32px;
    }
    .auto-img img {
        width: 100%;
        height: auto;
    }
    .mobile-title {
        margin: 18px 0 8px;
    }
}
@media(min-width:1200px) {
    .header-title {
        font-size: 26px;
        margin: 0;
    }
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .auto-img img {
        width: auto;
        height: 130px;
    }
    .auto-data {
        display: flex;
        align-items: center;
        column-gap: 32px;
    }
    .desktop--hidden {
        display: none;
    }
}