:root {
    --family-inter: 'Inter';
    --color-black: #2c2c2c;
    --color-white: #FFFFFF;
    --color-red: #ae2626;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--family-inter);
}

.btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    line-height: 14px;
    font-weight: 700;

    transition: all .4s;
}

.bg_red {
    background: var(--color-red);

    color: var(--color-white);
}

._border {
    border: 1px solid var(--color-black);

    color: var(--color-black);

    background: none;
}

._border._inversion {
    border: 1px solid var(--color-white);

    color: var(--color-white);

    background: none;
}

._border._inversion:hover {
    background: var(--color-red);

    border: none;
}

.bg_none {
    background: none;
}

.text_bg {
    background: var(--color-red);

    display: inline-block;

    padding: 0 3px;
}

.color_text {
    color: var(--color-red);
}

.input {
    width: 100%;

    border: none;
}

.banner__input {
    height: 40px;

    background: rgba(255, 255, 255, 0.1);

    padding-left: 15px;

    border: 1px solid transparent;
    border-bottom: 1px solid var(--color-white);

    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-white);
}

.banner__input::placeholder {
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-white);
}

.section__upper {
    padding: 40px 0 20px;
}

.section__title {
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-black);
    text-align: center;
}

.container {
    padding: 0 20px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 0;
}

.burger {
    width: 24px;
    height: 24px;

    position: relative;
}

.burger__line {
    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--color-white);

    display: block;

    transition: all .4s;
}

.burger__line.line_1 {
    top: 0;
}

.burger__line.line_2 {
    top: 7px;
}

.burger__line.line_3 {
    top: 14px;
}

.header-logo__img {
    max-width: 95px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 19px;
}

.header-info__text {
    display: block;

    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    color: var(--color-white);

    text-align: center;
}

.header-info__texts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-info__text-icon+span {
    display: none;
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 40px;

    text-transform: uppercase;
}

.header-button.mob_hide {
    display: none;
}

.header-menu {
    position: fixed;
    right: -100%;
    top: 57px;

    width: 100%;

    background: var(--color-black);

    padding: 30px 20px 14px;

    transition: all .4s;
}

.header-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.header-nav__link {
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;

    padding: 0 0 30px;

    border-bottom: 1px solid var(--color-white);

    width: 100%;
}

.header-nav__link:last-child {
    border: none;
}

.header.active {
    background: var(--color-black);
}

.header.active .header-menu {
    right: 0;
}

.header.active .burger__line.line_1 {
    top: 7px;

    transform: rotate(45deg);
}

.header.active .burger__line.line_2 {
    opacity: 0;
}

.header.active .burger__line.line_3 {
    top: 7px;

    transform: rotate(-45deg);
}

/**************************/


/********* $MAIN-BANNER *********/

.main-banner {
    aspect-ratio: 360/440;
}

.swiper-main-banner {
    height: 100%;
}

.main-banner__container {
    padding: 69px 0 65px;
}

.main-banner__title {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
}

.main-banner__list {
    margin-top: 42px;

    display: flex;
    flex-direction: column;
    gap: 30px;

    padding-left: 20px;

    position: relative;
}

.main-banner__list::before {
    content: "";

    display: block;

    height: 100%;
    width: 2px;

    background: var(--color-red);

    position: absolute;
    top: 0;
    left: 0;
}

.main-banner__list-item {
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-white);
}

.main-banner__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;

    object-fit: cover;
}

.main-banner .swiper-pagination-bullet {
    width: 28px;
    height: 10px;

    border-radius: 0;

    opacity: 1;

    display: inline-flex;
    align-items: flex-end;

    background: none;
}

.main-banner .swiper-pagination-bullet::before {
    content: "";

    display: block;

    width: 100%;
    height: 2px;

    background: rgba(255, 255, 255, 0.5);
}

.main-banner .swiper-pagination-bullet-active::before {
    background: var(--color-white);
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 8px;
    position: absolute;
    z-index: 1;
    width: max-content;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
}

.main-banner__button {
    display: none;
}

/**************************/

/********* $FORM-TIMER *********/

.form-timer {
    background: var(--color-black);

    padding: 15px 0 24px;
}

.form-timer .form__checkbox-check[type=checkbox]+.form-checkbox__custom {
    border: none;

    background: var(--color-red);
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.form__checkbox-check[type=checkbox] {
    position: absolute;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.form__checkbox-check[type=checkbox]+.form-checkbox__custom {
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--color-red);
    border-radius: 5px;
}

.form__checkbox-check[type=checkbox]:checked+.form-checkbox__custom {
    background-image: url(../img/check.svg);
    background-repeat: no-repeat;
    background-size: 11px;
    background-position: center;
}

.form__checkbox-text {
    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
}

.checkbox-link {
    color: var(--color-white);
}

.form-timer__timer-text {
    display: block;

    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;

    margin-bottom: 7px;
}

.timer {
    display: flex;
    justify-content: space-between;
}

.time-count__val {
    font-size: 32px;
    line-height: 34px;
    font-weight: 400;
    color: var(--color-white);

    /* width: 35px; */
}

.time-count__text {
    display: block;

    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;

    /* width: 41px; */
}

.time-count__item {
    width: 40px;
    display: flex;
    flex-flow: column;
    align-items: center;
    position: relative;
}

.timer-points {
    font-size: 32px;
    line-height: 34px;
    font-weight: 400;
    color: var(--color-white);
}

.form-timer__form {
    margin-top: 31px;

    position: relative;
}



/* 2. Активное состояние (ЗАПОЛНЕНО: телефон + галочки) — БЕЛАЯ с чёрным текстом */
.form-timer__form .form-timer__form-button.bg_red.form-timer__form-button--active,
.form-timer__form button.form-timer__form-button.bg_red.form-timer__form-button--active {
    background-color: #ffffff !important;
    color: #000000 !important;

    cursor: pointer !important;
    opacity: 1 !important;
}

/* 3. Эффект при наведении на активную кнопку */
.form-timer__form .form-timer__form-button.bg_red.form-timer__form-button--active:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
    transform: scale(1.02);
    box-shadow: 0px 4px 15px 0px rgba(255, 255, 255, 0.3);
}

.form-timer__form .agreement {
    margin-top: 12px;
}

.form-timer__form .agreement a {
    color: rgba(255, 255, 255, 0.4);
}

.form-timer__form .agreement .agreement__item p {
    color: rgba(255, 255, 255, 0.4);
}

.form-timer__form-button {
    margin-top: 20px;

    height: 40px;

    text-transform: uppercase;
}

@media (max-width: 767px) {
    .form-timer__form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .form-timer__form-flex {
        display: contents;
    }

    .form-timer__form .form-timer__form-input {
        order: 1;
        width: 100%;
        flex-basis: auto;
    }

    .form-timer__form > .agreement {
        order: 2;
        margin-top: 6px;
    }

    .form-timer__form .form-timer__form-button {
        order: 3;
        margin-top: 6px;
        width: 100%;
        flex-basis: auto;
    }

    .banner__form.credit__form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .credit__form .banner__form-container {
        display: contents;
    }

    .credit__form .banner__form-input {
        order: 1;
        width: 100%;
        flex-basis: auto;
    }

    .credit__form > .agreement {
        order: 2;
        margin-top: 12px;
    }

    .credit__form .banner__button {
        order: 3;
        margin-top: 6px;
        width: 100%;
        flex-basis: auto;
        font-size: 14px;
        font-weight: 700;
    }

    .banner__form.trade__form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .trade__form .banner__form-container {
        display: contents;
    }

    .trade__form .banner__form-input {
        order: 1;
        width: 100%;
        flex-basis: auto;
    }

    .trade__form > .agreement {
        order: 2;
        margin-top: 12px;
    }

    .trade__form .banner__button {
        order: 3;
        margin-top: 6px;
        width: 100%;
        flex-basis: auto;
        font-size: 14px;
        font-weight: 700;
    }
}

/**************************/


/********* $MODELS *********/

.models-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.model-names__button {
    display: block;

    margin: 20px auto 0;

    background: none;

    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: underline;
}

.models-list__item {
    text-align: center;

    border: 1px solid rgb(239, 239, 239);
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.15);
    /* white */
    background: rgb(255, 255, 255);

    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .4s;
}

.models-list__link {
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;

    transition: all .4s;
}

.models-card__head {
    display: block;

    margin-bottom: 15px;

    font-size: 22px;
    line-height: 24px;
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
}

.models-cards {
    margin-top: 60px;
}

.models-card {
    padding: 21px 0 15px;

    position: relative;

    border: 1px solid rgb(239, 239, 239);
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.15);
    /* white */
    background: rgb(255, 255, 255);
}

.models-card.hide {
    display: none;
}

.models-card::before {
    content: "";

    display: block;

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 50%;

    background: rgba(239, 239, 239, 1);

    z-index: -1;
}

.models-card__price-old {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: line-through;

    display: block;

    margin-bottom: 10px;
}

.models-card__prices-text._price {
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-black);

    margin-bottom: 10px;
}

.models-card__prices-text._price .color_text {
    font-weight: 700;
}

.models-card__prices-text._price-month {
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: var(--color-black);
}

.models-card__price-month-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    position: relative;
}

.models-card__price-month-row .model-card__disclaimer {
    flex-shrink: 0;
}

.models-card__prices {
    margin-bottom: 15px;
}

.models-card__prices.mob_hide {
    display: none;
}

.models-card__car {
    position: relative;

    width: 300px;
    margin: 0 auto;
}

.modesl-card__img {
    width: 100%;

    display: block;

    /* position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0; */

    transition: all .3s;
}

/* .modesl-card__img.js-active {
    position: static;

    opacity: 1;
} */

.colors .swiper {
    padding: 3px;
}

.models-card__color {
    display: block;

    width: 26px;
    height: 26px;

    position: relative;
    z-index: 1;
    cursor: pointer;

    border: 1px solid var(--color-black);
}

.swiper-slide-thumb-active .models-card__color::before {
    content: "";

    display: block;

    width: 30px;
    height: 30px;

    border: 1px solid var(--color-black);

    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;

    z-index: 0;
}

.models-card__colors-text {
    margin-top: 10px;

    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;

    display: block;
}

.models-card__colors-text b {
    font-weight: 700;
}

.models-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 30px;
}

.models-card__actions.mob_hide {
    display: none;
}

.models-card__actions-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    text-align: center;
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-black);
}

.models-card__button {
    height: 50px;

    font-size: 16px;
    line-height: 18px;
}

.models-card__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 30px;
}

.models-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.color-swiper {
    /* padding: 3px; */

    padding: 3px;

    position: static;
}

.colors {
    width: 195px;
    /* width: 85px; */
    margin: 0 auto;

    position: relative;

    /* display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; */
}

/* .models-card__image {
    width: 300px;
} */

.swiper-model-card .swiper-pagination {
    display: none;
}

.color-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.colors .swiper-button-next:after,
.colors .swiper-button-prev:after {
    content: "";
}

.colors .swiper-colors-button-next {
    background: url(../img/arrow-color-next.svg)no-repeat;

    width: 11px;
    height: 20px;

    right: -20px;
    top: 50%;
    transform: translate3d(0, -50%, 0);

    position: absolute;

    cursor: pointer;
}

.colors .swiper-colors-button-next.swiper-button-disabled,
.colors .swiper-colors-button-prev.swiper-button-disabled {
    opacity: 0.4;
}

.colors .swiper-colors-button-prev {
    background: url(../img/arrow-color-prev.svg)no-repeat;

    width: 11px;
    height: 20px;

    left: -20px;
    top: 50%;
    transform: translate3d(0, -50%, 0);

    position: absolute;

    cursor: pointer;
}

/**************************/


/********* $EQUIPS *********/

.equips-card {
    border: 1px solid rgb(239, 239, 239);
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.15);
    /* white */
    background: rgb(255, 255, 255);

    padding: 0 0 20px;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.equips-card__info {
    background: rgba(239, 239, 239, 1);

    padding: 20px 20px 24px;
}

.equips-card__model {
    display: block;

    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-black);
}

.equips-card__texts {
    position: relative;
}

.equips-card__name {
    display: block;

    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
    color: var(--color-black);
}

.equips-card__texts-number {
    width: 62px;
    height: 26px;

    text-align: center;

    border: 1px solid var(--color-black);

    font-size: 8px;
    line-height: 10px;
    font-weight: 400;
    color: var(--color-black);
}

.equips-card__texts-number.mob_hide {
    display: none;
}

.equips-card__texts-decor {
    text-decoration: underline;
}

.equips-card__texts-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.equips-card__img {
    width: 100%;
}

.equips-card__price.mob_hide {
    display: none;
}

.equips-card__prices {
    margin-top: 20px;
}

.equips-card__prices.mob_hide {
    display: none;
}

.equips-card__price-old {
    display: block;

    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: line-through;

    margin-bottom: 5px;
}

.equips-card__price {
    display: block;

    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
    color: var(--color-black);

    margin-bottom: 5px;
}

.equips-card__price-month {
    display: block;

    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-black);
}

.equips-card__price-month-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    position: relative;
}

.equips-card__price-month-row .equips-card__price-month {
    display: inline;
    margin-bottom: 0;
}

.equips-card__price-month-row .model-card__disclaimer {
    flex-shrink: 0;
}

.equips-card__actions.mob_hide {
    display: none;
}

.equips-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;

    margin-top: 20px;
}

.equips-card__actions-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-black);
}

.equips-card__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 20px;
    padding: 0 20px;
}

.equips-card__button {
    height: 50px;
}

.equips__filter {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin-bottom: 20px;
}

.select2-container--default .select2-selection--single {
    border: none;
    border-radius: 0;

    border-bottom: 1px solid var(--color-black);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-black);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none;

    width: 9px;
    height: 7px;

    background: url(../img/arrow-select.svg)no-repeat;
}

.select2-search--dropdown {
    display: none;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--color-red);
}

.equips-list {
    display: grid;
    gap: 20px;
}

/**************************/


/********* $BANNERS *********/

.banner {
    margin-top: 30px;
}

.banner__mob {
    position: relative;

    height: 223px;

    padding-bottom: 20px;
}

.banner__mob-img {
    width: 100%;
    height: 100%;

    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;

    object-fit: cover;
}

.banner__mob-img.mob_hide {
    display: none;
}

.banner__title {
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
}

.banner__title.mob_hide {
    display: none;
}

.banner__mob-container {
    display: flex;
    align-items: flex-end;

    height: 100%;
}

.banner .container {
    height: 100%;
}

.banner__bg {
    padding: 24px 0 20px;

    background: var(--color-black);
}

.banner-list {
    padding-left: 10px;
}

.credits-list {
    padding-left: 10px;

    position: relative;
}

.credits-list::before {
    content: "";

    display: block;

    width: 2px;
    height: 100%;

    background: var(--color-white);

    position: absolute;
    left: 0;
    top: 0;
}

.banner-list__item {
    display: flex;
    align-items: center;
    gap: 20px;

    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-white);
}

.credit__form {
    margin-top: 24px;

    position: relative;
}

.credit__form .agreement {
    margin-top: 6px;
}

.credit__form .agreement .agreement__text,
.credit__form .agreement a,
.credit__form .agreement .agreement__item p {
    color: rgba(255, 255, 255, 0.4);
}

.banner__button {
    margin-top: 20px;

    height: 40px;

    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
    text-transform: uppercase;
}




/* 2. Активное состояние (ЗАПОЛНЕНО: телефон + галочки) — БЕЛАЯ с чёрным текстом */
.credit__form .banner__button.bg_red.banner__button--active,
.trade__form .banner__button.bg_red.banner__button--active {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* 3. Эффект при наведении на активную кнопку */
.credit__form .banner__button.bg_red.banner__button--active:hover,
.trade__form .banner__button.bg_red.banner__button--active:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
    transform: scale(1.02);
    box-shadow: 0px 4px 15px 0px rgba(255, 255, 255, 0.3);
}

.form__checkbox-check[type=checkbox]+.form-checkbox__custom {
    background: #E8E8E8;

    border: 1px solid transparent;
}

.banner__ball {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;

    border-radius: 50%;

    background: var(--color-white);

    border: 2px solid var(--color-red);

    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--color-red);
}

.trade-list {
    padding-left: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trade-list .banner-list__item {
    flex-direction: row-reverse;

    text-align: right;
}

.trade__form {
    margin-top: 40px;

    position: relative;
}

.trade__form .agreement {
    margin-top: 6px;
}

.trade__form .agreement .agreement__text,
.trade__form .agreement a,
.trade__form .agreement .agreement__item p {
    color: rgba(255, 255, 255, 0.4);
}

/**************************/


/********* $CONTACTS *********/

.contacts {
    margin-top: 40px;
}

.contacts__img.mob_hide {
    display: none;
}

.contacts__img {
    width: 100%;
}

.contacts__bg {
    background: var(--color-black);

    padding: 15px 0 24px;
}

.contacts__title {
    margin-bottom: 20px;

    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-white);
}

.contacts__img-logo {
    display: none;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts__list-item {
    display: flex;
    align-items: center;
    gap: 20px;

    text-decoration: none;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--color-white);
}

.contacts__button {
    margin-top: 20px;

    height: 40px;

    text-transform: uppercase;
}

/**************************/


/********* $FOOTER *********/

.footer {
    background: var(--color-black);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__text {
    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    color: var(--color-white);
}

.footer__info {
    margin-top: 30px;
}

/**************************/


/********* $POPUP *********/

/* OLD */
/* .popup {
    width: 100%;

    display: none;

    padding: 0;

    border-radius: 12px;
}

#modalCredit {
    background: url(../img/modal-credit_mob.webp)no-repeat;
    background-size: cover;
}

#modalRequest {
    background: url(../img/modal-req_mob.webp)no-repeat;
    background-size: cover;
}

#modal-success {
    background: url(../img/modal-suc_mob.webp)no-repeat;
    background-size: cover;

    height: 320px;
}

#modal-already {
    background: url(../img/modal-suc2_mob.webp)no-repeat;
    background-size: cover;

    height: 320px;
}

#modal-success .popup__container,
#modal-already .popup__container {
    display: flex;
    align-items: flex-end;

    height: 100%;
}

.popup__container {
    padding: 15px 15px 21px;
}

.popup__head {
    display: block;

    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
}

.popup-list {
    margin-top: 20px;

    list-style: disc;

    padding-left: 15px;
}

.popup-list__item {
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-white);
}

.popup-list__item br {
    display: none;
}

.popup-list__item b {
    font-weight: 700;
}

.popup-form {
    margin-top: 40px;
}

.popup-form__container {
    width: 180px;
}

.popup-form__input {
    height: 40px;

    background: var(--color-white);

    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
}

.popup-form__input::placeholder {
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
}

.popup-form__button {
    margin-top: 10px;

    height: 40px;
}

.is-compact .fancybox__content>.f-button.is-close-btn {
    background: none;
} */

/* NEW */
.popup {
	padding: 14px 14px 20px;

	height: 320px;

	display: none;

	background-color: #fff;
}

#modalCredit {
	background-color: #fff;
	background-image: url(../img/modal-credit_mob.webp);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: top center;
}

#modalRequest {
	background-color: #fff;
	background-image: url(../img/modal-req_mob.webp);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: top center;
}

#modalTradeIn {
	background-color: #fff;
	background-image: url(../img/modal-req_mob.webp);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: top center;
}

.popup--form {
	width: 328px;
	height: auto;
}

@media (max-width: 1024px) {
	.popup--form .popup__cont {
		height: auto;
		min-height: 0;
	}

	.is-compact .fancybox__content:has(.popup) {
		max-height: 90vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	.popup--form {
		padding: 18px;
		padding-top: 169px;
	}

	.popup--form .popup__input {
		text-align: center;
		padding-left: 16px;
		padding-right: 16px;
	}
}

#modal-success,
#modal-error {
	background-color: #fff;
	background-image: url(../img/modal-suc_mob.webp);
	background-repeat: no-repeat;
	background-size: cover;
}

.popup__cont-wrapper {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 1fr;
}

.popup__cont {
	display: flex;
	flex-direction: column;
	justify-content: space-between;

	height: 100%;
	gap: 12px;
}

#modal-success .popup__cont,
#modal-error .popup__cont {
	align-items: flex-end;
}

#modal-success .popup__head,
#modal-error .popup__head {
	font-weight: 700;
	color: var(--color-white);
}

.popup__head {
	display: block;

	font-size: 24px;
	line-height: 1;
	font-weight: 500;
	color: #34343d;
}

.popup__head span {
	color: #AE2626;
}

.popup__list {
	list-style: disc;

	margin-top: 10px;
	padding-left: 15px;
	gap: 8px;
	display: flex;
	flex-direction: column;
}

.popup__list.mob_hide {
	display: none;
}

.popup__list-item {
	font-size: 14px;
	line-height: 1;
	font-weight: 300;
	color: #34343d;
}

.popup__list-item::marker {
	color: #AE2626;
}

.popup__input {
	height: 40px;
	border: 1px solid #6c6f78;
	border-radius: 0;
}

.popup__form-cont {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.popup__form {
	width: 100%;
	position: relative;
}

.timer__form {
	position: relative;
}

.trade-credit__mob-form {
	position: relative;
}

.popup__form-guard-banner,
.trade-credit__guard-banner {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 2;
	box-sizing: border-box;
	transform: translateY(calc(-100% - 10px));
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	background: #ea0028;
	border-radius: 4px;
	color: #fff;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0 36px 0 14px;
	pointer-events: none;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.251);
	transition:
		max-height 0.25s ease,
		opacity 0.25s ease,
		padding 0.25s ease,
		transform 0.25s ease;
}

.popup__form-guard-banner.is-visible,
.trade-credit__guard-banner.is-visible {
	max-height: 200px;
	opacity: 1;
	padding: 16px 36px 16px 16px;
	pointer-events: auto;
}

.popup__form-guard-banner-text,
.trade-credit__guard-banner-text {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.2;
	margin: 0;
	flex: 1;
	min-width: 0;
}

/* 1. Исходное состояние (НЕ заполнено) — БЕЛАЯ с чёрным текстом */
.popup__form .popup__button._border._inversion {
    background-color: #ffffff !important;
    color: #2c2c2c !important; /* var(--color-black) */
    border: 1px solid #2c2c2c !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

/* 2. Активное состояние (ЗАПОЛНЕНО: имя, телефон, галочки) — КРАСНАЯ с белым текстом */
.popup__form .popup__button._border._inversion.popup__button--active {
    background-color: var(--color-red, #ae2626) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-red, #ae2626) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* 3. Эффект при наведении на активную (красную) кнопку в попапе */
.popup__form .popup__button._border._inversion.popup__button--active:hover {
    background-color: #8a1e1e !important; /* Чуть более тёмный красный при наведении */
    transform: scale(1.02);
    box-shadow: 0px 4px 15px 0px rgba(174, 38, 38, 0.4);
}

.popup__form-guard-banner-close,
.trade-credit__guard-banner-close {
	position: absolute;
	right: 10px;
	top: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	transition: opacity 0.2s ease;
}

.popup__form-guard-banner-close:hover,
.trade-credit__guard-banner-close:hover {
	opacity: 0.85;
}

.popup__form-guard-banner-close svg,
.trade-credit__guard-banner-close svg {
	display: block;
}

.popup__input.popup__input--error {
	border-color: rgba(255, 0, 4, 1);
	color: rgba(255, 0, 4, 1);
}

.popup__input.popup__input--error::placeholder {
	color: rgba(255, 0, 4, 1);
	opacity: 1;
}

.timer__input.popup__input--error {
	border-color: rgba(255, 0, 4, 1);
	color: rgba(255, 0, 4, 1);
}

.timer__input.popup__input--error::placeholder {
	color: rgba(255, 0, 4, 1);
	opacity: 1;
}

.trade-credit__input.popup__input--error {
	border-color: rgba(255, 0, 4, 1);
	color: rgba(255, 0, 4, 1);
}

.trade-credit__input.popup__input--error::placeholder {
	color: rgba(255, 0, 4, 1);
	opacity: 1;
}

.form__checkbox-label.form__checkbox-label--error .form-checkbox__custom {
	border-color: transparent;
	background-color: rgba(255, 0, 4, 1);
}

._border._inversion.popup__button {
	background-color: #AE2626;
    border: none;
}

.popup__button {
	height: 42px;
	max-height: 42px;
	font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
}
.fancybox__content>.f-button.is-close-btn,
.is-compact .fancybox__content > .f-button.is-close-btn {
	width: 32px;
	height: 32px;
	border: none;
	background: white;
	border-radius: 50%;
	top: unset;
	bottom: -46px;
	right: 50%;
	transform: translateX(50%);
}

.f-button svg {
	width: 10px;
	height: 10px;
	opacity: 1;
	stroke: #000;
	fill: #000;
	stroke-width: 4px;
}

.filtered-show,
.showmore-show {
    display: block;
    opacity: 1;
    transition: .3s;
}

.filtered-show,
.showmore-show {
    display: block;
    opacity: 1;
    transition: .3s;
}

.filtered-hide,
.showmore-hide {
    display: none;
    opacity: 0;
}

.js--show-more {
    margin: 20px auto;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.js--show-more.hidden {
    display: none;
}

.select2-results__option {
    font-size: 14px;
    line-height: 16px;
}

/**************************/

@media screen and (min-width: 450px) {
    .main-banner {
        aspect-ratio: auto;

        height: 440px;
    }

    .form-timer__container {
        width: 400px;

        margin: 0 auto;
    }

    .models-card__cont {
        width: 400px;

        margin: 0 auto;
    }

    .equips__filter {
        width: 400px;

        margin: 0 auto 20px;
    }

    .equips-card {
        width: 400px;

        margin: 0 auto;
    }

    .banner__container {
        width: 400px;

        margin: 0 auto;
    }

    .contacts__button {
        width: 400px;

        margin: 20px auto 0;
    }

    .popup {
        width: 360px;
    }
}

#contact{
    position: relative;
}
#map{
    position: absolute;
    top: 0;left: 0;
    width: 100%;
    height: 350px;
}
.contacts__container{
    position: relative;
}
@media (max-width:768px){
    .contacts__container{
        position: unset;
    }
    #map{
        position: unset;
    }
}
