* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "HyundaiSans", sans-serif;
    font-size: 16px;
    color: #000000;
    position: relative;
    font-weight: 400;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    max-width: 1920px;
    background: #eceef3;
}

.fancybox-slide--html .fancybox-close-small {
}

.fancybox-button svg {
    transform: scale(2);
}

.compensate-for-scrollbar {
    margin-right: auto !important;
    overflow: auto !important;
}

.fancybox-content {
    overflow: hidden;
}

input[type="file"] {
    display: none;
}

sup {
    display: inline-block;
    vertical-align: top;
    top: -3px;
    position: relative;
    font-size: 80%;
}

img {
    border-style: none;
    vertical-align: middle;
    max-width: 100%;
}

select::-ms-expand {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    margin: 0px auto;
    padding: 0px 15px;
    max-width: 1380px;
    position: relative;
}

@media (min-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

.ico_wrap {
    width: 30px;
    height: 30px;
    background: #e1ebf5;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ico_wrap img {
    /*width: 20px;*/
    /*height: 20px;*/
}

.ico_wrap.lg {
    width: 48px;
    height: 48px;
}

.ico_wrap.lg img {
    width: 48px;
    height: 48px;
}

.has-danger input,
.has-danger select,
.has-danger textarea {
    border-width: 2px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 6px #eba5a3;
}

#form_popup,
#form_popup2 {
    display: none;
}

.popup_container {
    width: 500px;
    max-width: 100%;
    padding: 30px;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 5px;
}

.popup_container h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: black;
    padding: 0;
}

.popup_container .form_comment {
    text-align: center;
    font-size: 20px;
    color: #414141;
    padding-bottom: 15px;
}

.popup_container .form_comment a {
    display: block;
    color: #414141;
    text-decoration: none;
}

.popup_container .close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    transform: rotate(45deg);
    cursor: pointer;
}

.popup_container .close:before {
    content: "";
    position: absolute;
    left: 0px;
    top: 16px;
    width: 34px;
    height: 1px;
    display: block;
    background-color: #a8a8a8;
}

.popup_container .close:after {
    content: "";
    position: absolute;
    left: 16px;
    top: 0px;
    width: 1px;
    height: 34px;
    display: block;
    background-color: #a8a8a8;
}

.not_agree button {
    background-color: #cccccc !important;
    cursor: auto !important;
    color: white !important;
}

.agree_field {
    font-size: 14px;
    line-height: 140%;
    position: relative;
    display: block;
    padding-left: 20px;
    top: 0px;
    color: inherit;
}

.agree_field input {
    position: absolute;
    top: 1px;
    left: 0px;
    margin: 0px;
}

.agree_field a {
    text-decoration: underline;
}

form {
}

form .form-group {
    margin-bottom: 10px;
    position: relative;
}

form .form-group input[type="tel"],
form .form-group input[type="text"],
form .form-group input[type="number"],
form .form-group select {
    height: 48px;
    width: 100%;
    color: #333336;
    font-size: 16px;
    box-sizing: border-box;
    font-weight: 400;
    font-family: "HyundaiSans", sans-serif;
    padding: 0px 20px;
    outline: none;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #a6a8ad;
}

form .form-group input[type="tel"]::placeholder,
form .form-group input[type="text"]::placeholder,
form .form-group input[type="number"]::placeholder {
    color: #333336;
}


form .form-group select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url(../img/ico_select.svg) 95% 50% no-repeat #ffffff;
    font-family: "HyundaiSans", sans-serif;
    outline: none;
}

form .form-group button {
    width: 100%;
    cursor: pointer;
    font-family: "HyundaiSans", sans-serif;
    outline: none;
}

form .form-group button:hover {
}

.form_title {
    color: black;
    font-size: 24px;
    font-weight: 700;
    padding: 0px;
    margin: 0px;
    text-align: center;
    padding-bottom: 20px;
}

.btn {
    box-sizing: border-box;
    background: #002c5f;
    display: inline-flex;
    align-items: center;
    gap: 0 15px;
    justify-content: center;
    max-width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    outline: none;
    border: 1px solid #002c5f;
    transition: color 0.5s ease, border-color 0.5s ease;
    text-align: center;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    border-radius: 2px;
    /*padding: 0 20px;*/
    cursor: pointer;
}

/* заливка — невидима в обычном состоянии, расширяется на ховере */
.btn i {
    content: '';
    display: block;
    /*position: absolute;*/
    /*right: 40px;
    top: 50%;*/
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aacae6;
    z-index: -1;
    transform: translateY(-50%) scale(1);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 7px;
}

/* точка (обычное состояние) → стрелка (ховер), стоит inline сразу за текстом */
.btn::after {
    content: '\2192';
    font-size: 15px;
    line-height: 1;
    order: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -20px;
    margin-top: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    /*background: currentColor;*/
    color: transparent;
    transition:
        width 0.3s ease ,
        height 0.3s ease ,
        border-radius 0.3s ease ,
        background 0.3s ease ,
        color 0.3s ease;
}

.btn:hover {
    color: #002c5f;
    border-color: #aacae6;
}

.btn:hover i {
    transform: translateY(-50%) scale(100);
}

.btn:hover::after {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

/* --- варианты кнопок --- */

.btn.white {
    background: #ffffff;
    color: #002c5f;
    border-color: #ffffff;
}
.btn.white::before {
    background: #aacae6;
}
.btn.white:hover {
    color: #002c5f;
    border-color: #aacae6;
}

.btn.light_blue {
    background: #aacae6;
    color: #002c5f;
    border-color: #aacae6;
}

.btn.light_blue i {
    background: #ffffff;
}

.btn.light_blue::before {
    background: #002c5f;
}

.btn.outline {
    border: 1px solid #002c5f;
    background: transparent;
    color: #002c5f;
}
.btn.outline::before {
    background: #aacae6;
}
.btn.outline:hover {
    color: #002c5f;
    border-color: #aacae6;
}

/*
.btn.light_blue:hover {
    background: #ffffff;
    border-color: #ffffff;
}
*/

.anim {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.anim.animated {
    opacity: 1;
    transform: translateY(0);
}

/**********************
        HEADER
**********************/

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: #ffffff;
    padding: 16px 0;
    box-shadow: 0 4px 24px 0 rgba(50, 50, 50, 0.35);
    max-width: 1920px;
    margin: 0 auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 20px;
}

.logo1 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo1 img {

}

.top_addr {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
}

.top_phone {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 700;
}

header .m_btn {
    display: none;
}

header .btn {
    width: 210px;
    flex-shrink: 0;
}

.menu {
    top: 80px;
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    padding: 16px 0;
    z-index: 5;
    font-size: 18px;
    max-width: 1920px;
    margin: 0 auto;
}

.menu .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu_cars,
.menu_links {
    display: flex;
    gap: 0 30px;
}

.menu a {
    display: block;
    position: relative;
    white-space: nowrap;
    transition: all .4s ease;
}

.menu a:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #002c5f;
    transition: all .4s ease;
}

.menu a:hover {
    color: #002c5f;
}

.menu a:hover:after {
    width: 100%;
}

/**********************
        BANNER
**********************/

.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    height: 720px;
}

.banner picture {
    display: block;
    height: 100%;
}

.banner picture img {
    max-width: none;
    height: 100%;
    position: relative;
    transform: translateX(-50%);
    left: 50%;
    display: block;
}

.title_container {
    position: absolute;
    z-index: 1;
    top: 97px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 30px);
}

.title_card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 6px;
    padding: 30px 40px 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.title_container .title1 {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

.title_container .title2 {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 32px;
}

.title_container .btn {
    width: 200px;
    /*padding: 0 40px;*/
    margin-top: -30px;
}

/**********************
        OFFER
**********************/

.offer_block {
    padding: 40px 0;
    background: #ffffff;
}

.offer_block .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 40px;
}

.offer_title {
    font-size: 28px;
    margin-bottom: 10px;
}

.offer_text {
    width: 572px;
    max-width: 100%;
}

#offer_form {
    margin-top: 10px;
}

#offer_form .form-group:first-of-type,
#offer_form .form-group:nth-of-type(2) {
    display: inline-block;
    width: 49%;
    vertical-align: top;
}

#offer_form .form-group:nth-of-type(2) {
    float: right;
}

.offer_timer {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}


/**********************
         CARS
**********************/

.cars_items {
    margin-top: 50px;
}

.blocks_title {
    font-size: 36px;
    font-weight: 500;
    text-transform: uppercase;
}

.car_order_btn {
	flex-grow:1;
	margin-bottom:auto;
	margin-top: 30px;
}

.order_btn {
	background: linear-gradient(90deg, #BDD5ED 0%, #DBF3FF 50%, #BDD5ED 100%);
	border: 1px solid #E1EBF5;
	font-size:21px;
	font-weight:500;
	padding: 26px 13px;
	color: #000000;
	width: 326px;
	max-width: 100%;
	justify-content: flex-start;
	display: flex;
	height: auto;
}
.order_btn img {display: block;}


.cars_list {
    display: flex;
    flex-direction: column;
    gap: 40px 0;
}

.car_item {
    background: #ffffff;
    border: 1px solid #d8dadf;
    border-radius: 5px;
    padding: 40px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 0 40px;
}

.car_info {
    width: 420px;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.car_brand {
    font-size: 28px;
    color: #505050;
}

.car_name {
    font-size: 45px;
    font-weight: 500;
    color: #000000;
    line-height: 1.1;
    margin-top: 5px;
}

.car_props {
    display: flex;
    flex-direction: column;
    gap: 20px 0;
    margin-top: 30px;
    justify-content: flex-start;
}

.car_prop {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #000000;
    line-height: 120%;
    /* padding-left: 44px; */
    position: relative;
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.car_prop .btn {
    width:100%;
}


.car_prop .ico_wrap {
    /*margin-top: 4px;*/
    /* position: absolute; */
    top: 0;
    left: 0;
}

.car_btns {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px 0;
}

#palisade .car_btns {
    /* margin-top: 130px; */
}

.car_badge_wrap {
	flex-grow:1;
	margin-bottom:auto;
	margin-top: 30px;
}

.car_badge {
    /* margin-top: 30px; */
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, #bdd5ed 0%, #dbf3ff 50%, #bdd5ed 100%);
    border: 1px solid #e1ebf5;
    border-radius: 2px;
    padding: 12px 24px 12px 12px;
}

.badge_ico {
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.car_badge span {
    font-size: 22px;
    font-weight: 500;
    color: #000000;
}

.car_image_wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 58%;
}

.car_img_top {
    background: url("../img/car_bg.jpg") 100% 0 no-repeat #edeef0;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 326px;
    position: relative;
}

.car_main_img {
    max-height: 280px;
    position: relative;
    z-index: 1;
}

.car_gallery {
    display: flex;
    gap: 10px;
}

.car_gallery a {
    /*flex: 1;*/
    height: 135px;
    border-radius: 3px;
    overflow: hidden;
    display: block;
}

.car_gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.car_gallery a:hover img {
    transform: scale(1.1);
}

.car_gallery .swiper-scrollbar {
    display: none;
}

/**********************
        TRADEIN
**********************/

.bg_dark {
    margin-top: 150px;
    padding-top: 130px;
    background: #14151c;
    padding-bottom: 80px;
}

.tradein {
    background: #282930;
    border: 1px solid #3c3d44;
    border-radius: 5px;
    /*overflow: hidden;*/
    position: relative;
}

.tradein_top {
    display: flex;
    align-items: stretch;
    min-height: 280px;
}

.tradein_text {
    /*width: 493px;*/
    max-width: 50%;
    color: #ffffff;
    padding: 54px 0 30px 40px;
    position: relative;
    z-index: 2;
}

.tradein .blocks_title {
    text-align: left;
    color: #ffffff;
}

.tradein_comment {
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.4;
}

.tradein_img {
    flex: 1;
    position: relative;
}

.tradein_img img {
    position: absolute;
    right: 0;
    bottom: 3px;
    /*bottom: -40px;*/
    max-height: 340px;
    max-width: none;
}

#tradein_form {
    padding: 40px;
    position: relative;
    z-index: 2;
}

#tradein_form .form_row {
    display: flex;
    gap: 10px;
}

#tradein_form .form_row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#tradein_form .form-group input[type="tel"],
#tradein_form .form-group input[type="text"],
#tradein_form .form-group select {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #ffffff;
    color: #000000;
}

#tradein_form .form-group select {
    background: rgba(255, 255, 255, 0.6) url(../img/ico_select.svg) 95% 50% no-repeat;
}

#tradein_form .agree_field {
    margin-top: 10px;
    color: #ffffff;
}

#tradein_form .agree_field a {
    color: #ffffff;
}

/**********************
       CREDIT
**********************/

.credit {
    margin-top: 150px;
    display: flex;
    gap: 0;
    background: #282930;
    border: 1px solid #3c3d44;
    border-radius: 5px;
    overflow: hidden;
}

.credit_img_wrap {
    width: 53%;
    flex-shrink: 0;
    position: relative;
}

.credit_img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.credit_wrap {
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.credit_wrap .blocks_title {
    text-align: left;
    color: #ffffff;
}

.credit_props {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.credit_prop {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
}

.credit_prop .ico_wrap {
    width: 32px;
    height: 32px;
}

#credit_form {
    margin-top: 40px;
}

#credit_form .form-group input[type="tel"] {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #ffffff;
    color: #333336;
}

#credit_form .agree_field {
    color: #ffffff;
}

#credit_form .agree_field a {
    color: #ffffff;
}

/**********************
      TEST-DRIVE
**********************/

.test_drive {
    margin-top: 150px;
}

.td_layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 13px;
}

.test_drive_wrap {
    flex: 1;
    max-width: 540px;
    min-width: 0;
    text-align: center;
    color: #ffffff;
}

.test_drive .blocks_title {
    color: #ffffff;
}

.test_drive_comment {
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.4;
}

#test_drive_form {
    margin-top: 40px;
    max-width: 439px;
    margin-left: auto;
    margin-right: auto;
}

#test_drive_form .form-group input[type="tel"] {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #ffffff;
    color: #333336;
}

#test_drive_form .agree_field {
    color: #ffffff;
    text-align: left;
}

#test_drive_form .agree_field a {
    color: #ffffff;
}

.td_card {
    width: 309px;
    flex-shrink: 0;
    background: #282930;
    border: 1px solid #3c3d43;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.td_card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* outer cards (1st and 5th child) — higher position */
.td_layout > .td_card:nth-child(1),
.td_layout > .td_card:nth-child(5) {
    margin-top: 34px;
}

/* inner cards (2nd and 4th child) — lower position */
.td_layout > .td_card:nth-child(2),
.td_layout > .td_card:nth-child(4) {
    margin-top: 107px;
}

.td_card_img {
    height: 186px;
    margin: 16px 16px 0;
    border-radius: 3px;
    overflow: hidden;
}

.td_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.td_card:hover .td_card_img img {
    transform: scale(1.1);
}

.td_card_text {
    color: #ffffff;
    font-size: 19px;
    padding: 14px 16px 16px;
}

/**********************
      CONTACTS
**********************/

.contacts {
    position: relative;
}

#map1 {
    width: 100%;
    height: 574px;
    background: url("../img/map.jpg") 50% no-repeat;
    background-size: cover;
}

.contacts .container {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 2;
}

.contacts_card {
    background: #ffffff;
    border-radius: 5px;
    padding: 40px;
    width: 438px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cont_logo img {
    height: 24px;
}

.contacts_info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact_item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
}

.contact_item b {
    font-weight: 700;
}

.contacts_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts_form p {
    font-size: 18px;
}

.contacts_form .btn {
    width: 100%;
}

/**********************
        FOOTER
**********************/

footer {
    background: #14151c;
}

.foot_wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    gap: 20px;
}

.foot_wrap > a,
.foot_wrap > span {
    color: #ffffff;
    font-size: 16px;
    white-space: nowrap;
}

.foot_links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.foot_links > a {
    color: #ffffff;
    font-size: 16px;
}

.sinoby b {
    text-transform: uppercase;
}

footer .disclamer {
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    display: none;
    padding-top: 20px;
}

/*------------------------------------------------------------------------------------------------------------------------*/

@media (max-width: 1600px) {

}

/*IPAD PRO BEGIN*/
@media (min-width: 768px) and (max-width: 1199px) {


    .top_addr {
        display: none;
    }

    .logo_dealer {
        font-size: 14px;
    }

    /*******************************************************************/


    .title_container .title1 {
        font-size: 24px;
    }

    .title_container .title2 {
        font-size: 22px;
    }

    .title_card {
        padding: 20px 30px 30px;
    }

    /*******************************************************************/

    .offer_block {
        padding: 30px;
    }

    .offer_title {
        font-size: 22px;
    }

    /*******************************************************************/

    .car_item {
        padding: 25px;
        gap: 0 25px;
    }

    .car_info {
        width: 340px;
    }

    .car_name {
        font-size: 36px;
    }

    .car_prop {
        font-size: 17px;
    }

    .car_img_top {
        min-height: 250px;
    }

    .car_gallery a {
        height: 100px;
    }

    /*******************************************************************/

    .tradein_text {
        padding: 30px 0 20px 30px;
    }

    .tradein_comment {
        font-size: 16px;
    }

    #tradein_form {
        padding: 0 30px 20px;
    }

    /*******************************************************************/

    .credit_wrap {
        padding: 25px;
    }

    .credit_prop {
        font-size: 16px;
    }

    /*******************************************************************/

    .test_drive_comment {
        font-size: 16px;
    }

    .td_card {
        width: 240px;
    }

    .td_card_img {
        height: 140px;
    }

    .td_card_text {
        font-size: 16px;
    }

    /*******************************************************************/

    .contacts_card {
        width: 350px;
        padding: 25px;
        gap: 20px;
    }

    .contact_item {
        font-size: 15px;
    }

    /*******************************************************************/

    .foot_wrap {
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .foot_wrap > a,
    .foot_wrap > span {
        font-size: 14px;
    }
}

/*IPAD PRO END*/

/*IPAD BEGIN*/
@media (min-width: 768px) and (max-width: 991px) {

    .anim {
        opacity: 1 !important;
        transform: none !important;
    }

    .logo1 {
        width: 30%;
    }

    .menu a {
        font-size: 13px;
    }

    .menu_cars, .menu_links {
        gap: 15px;
    }

    .banner {
        height: 500px;
    }

    .title_container {
        top: 60px;
    }

    /*******************************************************************/

    .offer_block .container {
        flex-direction: column-reverse;
        gap: 30px 0;
    }

    .offer_text {
        width: 100%;
    }

    #offer_form .form-group:first-of-type,
    #offer_form .form-group:nth-of-type(2) {
        width: 100%;
        display: block;
        float: none;
    }

    /*******************************************************************/

    .car_item {
        flex-direction: column-reverse;
        padding-top: 100px;
        position: relative;
    }

    .car_info {
        width: 100%;
    }

    .car_name {
        font-size: 32px;
    }

    .car_image_wrap {
        margin-top: 25px;
        width: 100%;
    }

    .car_title {
        position: absolute;
        top: 20px;
    }

    #palisade .car_btns {
        margin-top: 30px;
    }

    /*******************************************************************/

    .bg_dark {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .tradein_top {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .tradein_text {
        max-width: 100%;
        width: 100%;
        padding-top: 0;
    }

    .tradein_img {
        position: relative;
        height: 250px;
    }

    .tradein_img img {
        position: relative;
        bottom: 40px;
        right: auto;
        width: 100%;
        /*max-height: 350px;*/
        object-fit: cover;
        object-position: ;
        display: block;
        /*margin: 0 auto;*/
    }

    #tradein_form .form_row {
        flex-wrap: wrap;
    }

    #tradein_form .form_row .form-group {
        flex: 1 1 45%;
        min-width: 180px;
    }

    /*******************************************************************/

    .credit {
        flex-direction: column;
    }

    .credit_img_wrap {
        width: 100%;
        /*height: 300px;*/
    }

    /*******************************************************************/

    .td_layout {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .td_layout > .test_drive_wrap {
        order: -1;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .td_card {
        width: calc(50% - 10px);
    }

    .td_layout > .td_card:nth-child(1),
    .td_layout > .td_card:nth-child(2),
    .td_layout > .td_card:nth-child(4),
    .td_layout > .td_card:nth-child(5) {
        margin-top: 0;
    }

    #test_drive_form {
        max-width: 100%;
    }

    /*******************************************************************/

    .contacts .container {
        position: relative;
        top: auto;
    }

    .contacts_card {
        width: 100%;
        margin-top: -100px;
        position: relative;
        z-index: 2;
    }

    #map1 {
        height: 400px;
    }
}

/*IPAD END*/

/*MOBILE BEGIN*/
@media (max-width: 767px) {

    .anim {
        opacity: 1 !important;
        transform: none !important;
    }

    .fancybox-type-image {
        width: 100% !important;
        margin: 0px !important;
        left: 0px !important;
    }

    .fancybox-close {
        right: 9px !important;
        top: 9px !important;
    }

    .fancybox-inner {
        width: 100% !important;
        margin: 0px !important;
        padding: 0px !important;
    }

    .fancybox-wrap {
        margin: 0px !important;
        width: 100% !important;
        left: 0px !important;
        top: 20px !important;
    }

    .fancybox-type-image .fancybox-close {
        top: -8px !important;
    }

    .popup_container {
        width: 100%;
    }

    /*******************************************************************/

    header .m_btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: absolute;
        width: 30px;
        height: 21px;
        z-index: 1;
        top: 15px;
        right: 15px;
    }

    header .m_btn span {
        position: relative;
        display: block;
        width: 30px;
        height: 3px;
        background: #002c5f;
        transition: all 0.3s linear;
    }

    header .m_btn span:nth-child(2) {
        opacity: 1;
    }

    header .m_btn.active span:nth-child(1) {
        transform-origin: top right;
        transform: rotate(-45deg);
        top: -1px;
    }

    header .m_btn.active span:nth-child(2) {
        opacity: 0;
    }

    header .m_btn.active span:nth-child(3) {
        transform-origin: bottom right;
        transform: rotate(45deg);
        bottom: -1px;
    }

    .menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        background: white;
        backdrop-filter: none;
        width: 100%;
        height: auto;
        right: -100%;
        left: unset;
        transition: all 0.3s linear;
        z-index: 5;
        padding: 20px 0;
        row-gap: 10px;
    }

    .menu.active {
        right: 0;
    }

    .menu .container {
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }

    .menu_cars,
    .menu_links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .menu a {
        padding: 0;
        font-size: 16px;
    }

    .menu a:after {
        display: none;
    }

    /*******************************************************************/

    header {
        padding: 10px 0;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .top_phone {
        margin-top: 5px;
    }

    .top_addr {
        display: none;
    }

    header .btn {
        display: none;
    }

    .logo_dealer {
        font-size: 14px;
        letter-spacing: 3px;
    }

    /*******************************************************************/

    .banner {
        margin-top: 80px;
        height: auto;
    }

    .banner picture img {
        height: auto;
        width: 100%;
    }

    .title_container {
        top: 50px;
        max-width: calc(100% - 30px);
    }

    .title_card {
        padding: 15px 15px 25px;
    }

    .title_container .title1 {
        font-size: 5.5vw;
    }

    .title_container .title2 {
        font-size: 4vw;
        gap: 10px;
    }

    .title_container .title2 .ico_wrap.lg {
        width: 32px;
        height: 32px;
    }

    .title_container .title2 .ico_wrap.lg img {
        width: 22px;
        height: 22px;
    }

    .title_container .btn {
        padding: 0 25px;
        height: 42px;
        font-size: 14px;
    }

    /*******************************************************************/

    .agree_field {
        font-size: 3vw;
    }

    .offer_block {
        padding: 20px 0;
    }

    .offer_block .container {
        flex-direction: column-reverse;
        gap: 25px 0;
    }

    .offer_timer {
        height: 80px;
        align-items: center;
        justify-content: center;
    }

    div[id^="timer"] {
        transform: scale(0.6) !important;
    }

    .offer_text {
        width: 100%;
    }


    .offer_title {
        font-size: 6vw;
    }

    #offer_form .form-group:first-of-type,
    #offer_form .form-group:nth-of-type(2) {
        width: 100%;
        display: block;
        float: none;
    }

    .offer_timer {
        gap: 8px;
    }

    .timer_num {
        font-size: 10vw;
    }

    .timer_sep {
        font-size: 8vw;
    }

    .timer_label {
        font-size: 12px;
    }

    /*******************************************************************/

    .blocks_title {
        font-size: 7vw;
    }

    .cars_items {
        margin-top: 40px;
    }

    .cars_list {
        gap: 25px 0;
    }

    .car_item {
        position: relative;
        padding: 70px 15px 15px;
        flex-direction: column-reverse;
    }

    .car_info {
        width: 100%;
    }

    .car_title {
        position: absolute;
        top: 15px;
    }

    .car_brand {
        font-size: 20px;
    }

    .car_name {
        font-size: 8vw;
    }

    .car_props {
        margin-top: 20px;
        gap: 15px 0;
    }

    .car_prop {
        font-size: 16px;
    }

	.car_badge_wrap {
		margin-top:10px;
	}

    .car_btns {
        margin-top: 20px !important;
    }

	.car_order_btn {
		margin-top:10px;
	}

    .car_badge {
    }

    .car_badge span {
        font-size: 18px;
    }

    .car_image_wrap {
        margin-top: 20px;
        width: 100%;
    }

    .car_img_top {
        min-height: 200px;
        padding: 15px;
    }

    .car_main_img {
        max-height: 200px;
    }

    .car_gallery a {
        height: 90px;
    }

    /*******************************************************************/

    .bg_dark {
        margin-top: 40px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .tradein {
        border-radius: 5px;
    }

    .tradein_top {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .tradein_text {
        max-width: 100%;
        width: 100%;
        padding: 0 20px 15px;
    }

    .tradein .blocks_title {
        font-size: 7vw;
    }

    .tradein_comment {
        font-size: 4vw;
    }

    .tradein_comment br {
        display: none;
    }

    .tradein_img {
        position: relative;
        /*height: 200px;*/
        text-align: center;
    }

    .tradein_img img {
        position: relative;
        bottom: 30px;
        right: auto;
        /*max-height: 200px;*/
        width: 100%;
    }

    #tradein_form {
        padding: 15px 20px 20px;
    }

    #tradein_form .form_row {
        flex-direction: column;
        gap: 10px;
    }

    /*******************************************************************/

    .credit {
        margin-top: 30px;
        flex-direction: column;
    }

    .credit_img_wrap {
        width: 100%;
        height: 250px;
    }

    .credit_wrap {
        padding: 20px;
    }

    .credit_wrap .blocks_title {
        font-size: 7vw;
    }

    .credit_prop {
        font-size: 4.5vw;
    }

    .credit_props {
        margin-top: 20px;
    }

    #credit_form {
        margin-top: 20px;
    }

    /*******************************************************************/

    .test_drive {
        margin-top: 40px;
    }

    .test_drive .blocks_title {
        font-size: 7vw;
    }

    .test_drive_comment {
        font-size: 4vw;
    }

    .test_drive_comment br {
        display: none;
    }

    .td_layout {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 15px;
        align-items: unset;
    }

    .td_layout > .test_drive_wrap {
        order: -1;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .td_card {
        width: calc(50% - 8px);
    }

    .td_layout > .td_card:nth-child(1),
    .td_layout > .td_card:nth-child(2),
    .td_layout > .td_card:nth-child(4),
    .td_layout > .td_card:nth-child(5) {
        margin-top: 0;
    }

    .td_card_img {
        height: 120px;
        margin: 10px 10px 0;
    }

    .td_card_text {
        font-size: 14px;
        padding: 10px;
    }

    #test_drive_form {
        margin-top: 20px;
    }

    /*******************************************************************/

    .contacts {
        display: flex;
        flex-direction: column-reverse;
        background: #ffffff;
    }

    .contacts .container {
        position: relative;
        top: auto;
        width: 100%;
    }

    .contacts_card {
        width: 100%;
        margin-top: 0;
        position: relative;
        z-index: 2;
        padding: 20px 0;
        gap: 20px;
    }

    .contact_item {
        font-size: 15px;
    }

    .contacts_form p {
        font-size: 15px;
    }

    #map1 {
        height: 350px;
    }

    /*******************************************************************/

    .foot_wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px 0;
    }

    .foot_wrap > a,
    .foot_wrap > span {
        font-size: 12px;
    }

    .foot_links {
        align-items: flex-start;
    }

    .foot_links > a {
        font-size: 12px;
    }
}

/*MOBILE END*/

/* Portrait phones and smaller */
@media (max-width: 390px) {
}

@media (max-width: 360px) {
    div[id^="timer"] {
        transform: scale(0.5) !important;
    }
}

@media (max-width: 320px) {
}





