/* Main responsive styles */
@media (max-width: 1580px) {
    .section-hero {
        height: 429px;
        background-position: center right;
    }
    
    .section-hero-bottom {
        margin-top: -8px;
    }
    
    .section-hero .container {
        padding-top: 36px;
    }
    
    .stock-card__title {
        font-size: 24px;
    }
    
    .stock-card__desc {
        font-size: 18px;
    }
}

@media (max-width: 1410px) {
    .hero-content__title {
        font-size: 30px;
    }
    
    .hero-content__desc {
        font-size: 23px;
    }
    
    .catalog-item {
        grid-gap: 20px;
        -ms-grid-columns: .9fr 20px 1fr;
        grid-template-columns: .9fr 1fr;
    }
    
    .catalog-item__title {
        font-size: 26px;
    }
    
    .container-fluid {
        padding-right: var(--container-padding);
        padding-left: var(--container-padding);
    }
}

@media (max-width: 1280px) {
    .hero-bottom .container {
        gap: 30px;
    }
    
    .hero-form__title {
        font-size: 26px;
    }
    
    .hero-countdown__render span:first-child {
        font-size: 32px;
    }
    
    .section-hero {
        background-position: center right 15%;
    }
    
    .stock-card__title {
        padding: 12px;
        font-size: 18px;
    }
    
    .stock-card__desc {
        font-size: 16px;
    }
    
    .desktop-header__nav {
        gap: 20px;
    }    
}

@media only screen and (max-width: 992px) {
    :root {
        --container-width: 576px;
    }

    select,
    textarea,
    input {
        font-size: var(--body-font-size);
    }

    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 55px;
        background: rgb(255 255 255);
        z-index: 99;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #f3f3f3;
    }

    .mobile-header__logo {
        max-width: 135px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .mobile-header__btn {
        width: 45px;
        height: 45px;
        background-image: url("data:image/svg+xml,%3Csvg width='64px' height='64px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M4 12H20M4 8H20M4 16H12' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
        background-position: center;
        background-size: cover;
        background-color: transparent;
        border: none;
        -webkit-transition: all .33s ease;
        -o-transition: all .33s ease;
        transition: all .33s ease;
    }

    .mobile-header__btn.js-gl-toggle-button-active {
        -webkit-transform: scale(.9);
        -ms-transform: scale(.9);
        transform: scale(.9);
        opacity: .8;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100" height="100" viewBox="0 0 48 48"><path fill="black" d="M 38.982422 6.9707031 A 2.0002 2.0002 0 0 0 37.585938 7.5859375 L 24 21.171875 L 10.414062 7.5859375 A 2.0002 2.0002 0 0 0 8.9785156 6.9804688 A 2.0002 2.0002 0 0 0 7.5859375 10.414062 L 21.171875 24 L 7.5859375 37.585938 A 2.0002 2.0002 0 1 0 10.414062 40.414062 L 24 26.828125 L 37.585938 40.414062 A 2.0002 2.0002 0 1 0 40.414062 37.585938 L 26.828125 24 L 40.414062 10.414062 A 2.0002 2.0002 0 0 0 38.982422 6.9707031 z"></path></svg>');
        background-size: 40px;
        background-repeat: no-repeat;
    }

    .mobile-menu {
        position: fixed;
        top: 55px;
        left: -100%;
        width: 98%;
        height: calc(100% - 55px);
        background: #fff;
        z-index: 95;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 20px;
        gap: 22px;
        -webkit-transition: all .33s ease;
        -o-transition: all .33s ease;
        transition: all .33s ease;
    }

    body {
        padding-top: 55px;
    }

    .mobile-menu__nav {
        display: -ms-grid;
        display: grid;
        grid-gap: 10px;
    }

    .mobile-menu__contacts {
        display: -ms-grid;
        display: grid;
        grid-gap: 10px;
    }

    .mobile-menu__nav-item {
        text-transform: uppercase;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

    .mobile-menu.js-gl-toggle-target-active {
        left: 0;
    }

    .mobile-menu__contacts-link {
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
    }

    .mobile-header__logo-img {
        width: 100%;
    }

    .mobile-header__logo-svg {
        max-width: 42px;
    }

    .mobile-menu__contacts > *:not(:last-child) {
        border-bottom: 1px solid #f3f3f3;
        padding-bottom: 10px;
    }

    .mobile-menu__contacts-item:last-child {
        font-weight: bold;
        font-size: 14px;
    }

    .mobile-menu__contacts-item:first-child {
        font-size: 14px;
    }

    .desktop-header {
        display: none;
    }

    .mobile-header__contacts {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        text-align: center;
        font-size: 12px;
        gap: 4px;
    }

    .mobile-header__contacts-link {
        font-weight: bold;
        text-decoration: none;
        font-size: 16px;
    }

    .hero-bottom .container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    
    .catalog-nav {
        overflow: auto;
        margin: 0 -10px 50px;
        padding: 0 10px;
    }
    
    .catalog-nav-item {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 40%;
                flex: 0 0 40%;
    }
    
    .catalog-item {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .tradein-block {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    
    .quiz {
        padding: 40px 0px;
    }
    
    .quiz .section__title {
        margin-bottom: 20px;
    }
    
    .quiz__pag {
        gap: 10px;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        position: static;
        margin-bottom: 30px;
    }
    
    .quiz__item {
        margin-top: 20px !important;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    
    .quiz__item-select {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .quiz__item-select-item {
        width: 100%;
    }
    
    .quiz__item-color {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .quiz__pag {
        display: none;
    }
    
    .quiz__item-color {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 10px 1fr;
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
        width: 100%;
    }
    
    .quiz__item-color-item-inner {
        width: 100%;
        height: 60px;
    }
    
    .quiz__item-text br {
        display: none;
    }
    
    .quiz__item-des {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-countdown {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-ordinal-group: 0;
            -ms-flex-order: -1;
                order: -1;
    }
    
    .hero-countdown__render > div {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .stocks {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .quiz__item-info {
        -webkit-box-ordinal-group: 0;
            -ms-flex-order: -1;
                order: -1;
    }
    
    .quiz__item-info img {
        -o-object-fit: scale-down;
           object-fit: scale-down;
        width: 100%;
    }
    
    .swiper-pagination.quiz__pag {
        gap: 16px;
    }
    
    .tradein-block__title {
        font-size: 24px;
        text-align: center;
    }
    
    .tradein-block__desc {
        font-size: 18px;
    }
    
    .catalog-item__futures {
        -ms-grid-columns: 1fr 10px 1fr;
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
    }
    
    .section-hero {
        height: auto;
        background-position: center left 47%;
    }
    
    .section-hero .container {
        padding-top: 20px;
    }
    
    .hero-content__title {
        font-size: 16px;
    }
    
    .hero-content__desc {
        font-size: 14px;
        margin-bottom: 26px;
    }
    
    .hero-form__title {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 0;
        text-align: center;
    }
    
    .section-hero-bottom {
        height: auto;
        margin-bottom: 14px;
    }
    
    .section-hero-bottom:after {
        display: none;
    }
    
    .hero-form__row {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        width: 100%;
        padding-top: 24px;
    }
    
    .hero-countdown__title {
        text-align: center;
        width: 100%;
    }
    
    .hero-countdown__render {
        width: 100%;
        gap: 10px;
    }
    
    .hero-countdown__render span:first-child {
        font-size: 24px;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .catalog-item__heading {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 9px;
    }
    
    .catalog-item__content {
        padding: 0;
    }
    
    .catalog-item__desc {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .catalog-item__futures-item > div {
        white-space: nowrap;
        font-size: 12px;
    }
    
    .catalog-item__futures-item:before {
        width: 32px;
        height: 32px;
        background-size: 16px;
    }
    
    .car-card-gallery {
        height: 250px;
    }
    
    .tradein-block__content {
        margin: auto;
        text-align: center;
    }
    
    .tradein-block__form {
        padding: 24px;
        margin-top: 20px;
    }
    
    .tradein-block__form-title {
        font-size: 14px;
    }
    
    .stock-card {
        height: 480px;
    }
    
    .section__title {
        font-size: 22px;
    }
    
    .section-heading {
        font-size: 22px;
    }
    
    .footer__inner {
        width: 100%;
        padding: 24px;
    }
    
    .footer {
        width: 100%;
    }
    
    .hero-content {
        padding-bottom: 40px;
    }
    
    .contacts {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .modal-finance__inner {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .modal-finance__photo {
        height: 190px;
    }
    
    .modal-finance__content {
        padding: 24px;
    }

    .swiper-pagination.quiz__pag {
        display: none;
    }
    
    .quiz__item-color-item-inner {
        color: transparent;
    }

    .catalog-item__buttons .btn {
        font-size: 14px;
        padding: 0;
    }
    
    .catalog-item__desc {
        font-size: 14px;
    }

    .mobile-header__contacts-phone {
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        margin-bottom: -2px;
    }
}

@media print {
    * {
        background: none !important;
        color: #000 !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-filter: grayscale(1) !important;
        filter: grayscale(1) !important;
    }
    a {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    a[href="#"],
    a[href="javascript:"] {
        content: "";
    }
}