// Главное меню
//

.menu-header-menu-container {
    padding: 0 20px;
}

ol.breadcrumb {
    margin: 15px 0;
}

@media only screen and (max-width: 580px) {
    .spb-item .ssoc {
        margin: 20px 0 0;
    }
}

@media only screen and (max-width: 1249px) {
    .logo {
        position: relative;
        z-index: 10;
    }
    .img-logo img {
        max-height: 45px;
    }
    header {
        height: 60px;
    }
    .mobil-mnu {
        top: 20px;
    }
    .header .navigation {
        top: 60px;
        width: 240px;
    }
    .menu-header-menu-container {
        padding: 0;
    }
}

// Опыт
//
.info {
    h2 {
        padding-bottom: 20px;
    }
    .num {
        padding-top: 20px;
    }
}

// YouTube
.video-block .block {
    padding: 22px 5px 0px 25px;
}

// Каталог
//
.tm-catalog-filter {
    .form-label {
        font-size: 13px;
    }
    .dropdown-menu .dropdown-item {
        font-size: 13px;
    }
    .form-select option {
        font-size: 13px;
    }
    .bs-searchbox {
        padding: 10px 15px !important;
    }
    select, input, textarea {
        height: 36px;
    }

    // Панель фильтров
    > .bg-light {
        margin-bottom: 8px !important;
        background: #fff !important;
        border: 1px solid #E8E6F2;
        border-radius: 16px !important;
        box-shadow: 0 2px 10px rgba(30, 31, 75, .05);
    }
    .form-label {
        margin-bottom: 4px;
        font-weight: 600;
        color: #5B5C80;
    }
    .form-select,
    .form-control,
    .bootstrap-select > .dropdown-toggle {
        height: 40px !important;
        border: 1px solid #E1DFEE !important;
        border-radius: 10px !important;
        background-color: #fff !important;
        color: #1E1F4B;
        box-shadow: none;
        transition: border-color .15s, box-shadow .15s;
        &:hover { border-color: #C9C6DD !important; }
        &:focus {
            border-color: #FF620A !important;
            box-shadow: 0 0 0 3px rgba(255, 98, 10, .15) !important;
            outline: 0;
        }
    }
    .bootstrap-select.show > .dropdown-toggle {
        border-color: #FF620A !important;
        box-shadow: 0 0 0 3px rgba(255, 98, 10, .15) !important;
    }
    .dropdown-menu {
        border: 1px solid #E8E6F2;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(30, 31, 75, .12);
        .dropdown-item.active,
        .dropdown-item:active {
            background: #FFE9DC;
            color: #FF620A;
        }
    }
    // Поля «от — до»
    .input-group {
        > .form-control,
        > .form-select {
            border-radius: 0 !important;
        }
        > :first-child { border-radius: 10px 0 0 10px !important; }
        > :last-child { border-radius: 0 10px 10px 0 !important; }
        > :not(:first-child) { margin-left: -1px; }
        > .form-control:focus,
        > .form-select:focus { z-index: 3; }
    }
    .input-group-text {
        height: 40px;
        padding: 0 10px;
        border: 1px solid #E1DFEE;
        background: #F7F6FC;
        color: #8A8BA8;
        font-size: 12px;
    }
    #search_form {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    #searchButton {
        margin-top: 16px !important;
        min-width: 240px;
        padding: 10px 28px;
        border: 0;
        border-radius: 10px;
        background: #FF620A;
        font-weight: 600;
        box-shadow: 0 6px 16px rgba(255, 98, 10, .25);
        &:hover { background: #E55500; }
    }
    // Быстрые ссылки под фильтром
    > .my-3 { margin: 8px 0 !important; }
    .link_btn {
        padding: 5px 12px;
        border: 1px solid #E1DFEE;
        border-radius: 20px;
        background: #fff;
        color: #1E1F4B;
        &:hover {
            border-color: #FF620A;
            background: #FFF4EE;
            color: #FF620A;
        }
    }
}
.tm-catalog-items {
    .row {
        margin: 0;
    }
    .table {
        td {
            padding-right: 10px;
            padding-left: 0;
        }
    }
}
.tm-catalog-items__complect {
    padding: 7px 0;
    font-size: 13px;
}
.tm-catalog-items__param {
    font-weight: 600;
}

.tm-catalog-items__param__btn--send a {
    width: 45%;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .tm-catalog-items__param__btn--send {
        display: block;
        margin: 10px 0;
        a {
            width: 100%;
            margin-right: 0;
        }
    }
    .tm-catalog-items__param__btn--other {
        a {
            width: 49%;
        }
    }
    .s-question .wrap-ban {
        padding: 10px 20px;
    }
}

// Карточка авто в списке каталога
.car-card {
    border: 1px solid #E8E6F2 !important;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30, 31, 75, .05);
    transition: box-shadow .2s, transform .2s;
    &:hover {
        box-shadow: 0 10px 30px rgba(30, 31, 75, .12);
        transform: translateY(-2px);
    }
    > .col-md-3 img {
        width: 100%;
        height: 100%;
        transition: transform .3s;
    }
    &:hover > .col-md-3 img {
        transform: translate(-50%, -50%) scale(1.04) !important;
    }
    .tm-catalog-items__name {
        font-size: 20px;
        font-weight: 700;
        a {
            color: #1E1F4B;
            text-decoration: none;
            &:hover { color: #FF620A; }
        }
    }
    .tm-catalog-items__complect {
        display: inline-block;
        margin: 8px 0 12px;
        padding: 3px 10px;
        border-radius: 20px;
        background: #F2F1FD;
        color: #5B5C80 !important;
        font-size: 12px;
    }
    .table { margin-bottom: 0; }
    .table td {
        padding: 5px 12px 5px 0;
        font-size: 13px;
        font-weight: 600;
        color: #1E1F4B;
        vertical-align: top;
    }
    // Характеристики в три столбца
    > .col-md-5 .table tbody {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 12px;
    }
    > .col-md-5 .table tr { display: contents; }
    > .col-md-5 .table td {
        display: block;
        padding-right: 0;
        overflow-wrap: anywhere;
    }
    @media (max-width: 420px) {
        > .col-md-5 .table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .tm-catalog-items__param {
        display: block;
        font-size: 11px;
        font-weight: 400;
        color: #8A8BA8;
        i {
            width: 16px;
            margin-right: 5px;
            color: #FF620A;
            text-align: center;
        }
    }
    .tm-catalog-items__price {
        background: #F7F6FC !important;
        display: flex;
        flex-direction: column;
        .h5 { font-weight: 700; }
        .table td { font-size: 14px; font-weight: 400; vertical-align: middle; }
        .table td.text-end {
            font-size: 18px;
            font-weight: 700;
            white-space: nowrap;
        }
        .price-key {
            display: inline-block;
            margin-top: 4px;
            padding: 1px 8px;
            border-radius: 20px;
            background: #FFE9DC;
            color: #FF620A;
            font-size: 11px;
            font-weight: 600;
        }
    }
    .btn {
        border-radius: 10px;
        padding: 8px 14px;
        font-weight: 600;
        border: 0;
        margin-top: 6px;
    }
    .tm-catalog-items__param__btn--send {
        margin-top: auto;
    }
    .tm-catalog-items__param__btn--send a {
        width: 100%;
        margin-right: 0;
        background: #FF620A;
        &:hover { background: #E55500; }
    }
    .tm-catalog-items__param__btn--other {
        display: flex;
        gap: 6px;
        a { flex: 1; }
        .btn-danger {
            background: #fff;
            color: #1E1F4B;
            border: 1px solid #D9D7E8;
            &:hover { border-color: #FF620A; color: #FF620A; }
        }
        .btn-dark {
            background: #ECEBF5;
            color: #1E1F4B;
            &:hover { background: #E0DEEE; }
        }
    }
}

// Каталог марки
//
.tm-catalog-marka {
    h1 {
        color: #030018;
        font-size: 25px;
    }
}

// Листинг карточек
.price-key{
    display: block;
    font-size: 11px;
    font-weight: 600;
}

// Карточка машины
//
.tm-table-letter {
    padding-right: 10px;
    display: inline-block;
    width: 40px;
}
.items-start {
    padding-bottom: 5px;
}

.tm-catalog-item {
    .tm-catalog-item__param {
        font-weight: 600;
    }
    .tm-catalog-item__link {
        height: 25px;
        padding: 3px 10px;
        font-size: 12px;
        margin: 0 10px;
    }
    .show-prices{
        color: #ed1a14;
        font-size: 14px;
        text-decoration: underline;
    }
    .prices {
        .row{
            padding: 0 3px;
        }
        p {
            margin-bottom: 5px;
            font-size: 14px;
        }
        .prices-kurs{
            font-size: 12px;
        }
    }
    .text-privacy{
        font-size: 12px;
    }
}

@media only screen and (max-width: 580px) {
    .fotorama {
        margin-bottom: 15px;
    }
}

// Форма заявки
//
.tingle-modal {
    .btn {
        height: 100%;
    }
}
.tingle-modal-box__footer {
    display: none;
}

// Убираем логотип каптчи
.grecaptcha-badge {
    visibility: hidden !important;
}

.wrap-ul-mobile {
    display: none;
    position: absolute;
    top: 130%;
    background: rgb(255, 255, 255);
    width: 200px;
    border-radius: 20px;
}

.wrap-ul-mobile li {
    margin: 10px 0;
}

// Формы в каталоге
//
input,
textarea,
select {
    text-indent: 5px;
}
.form-select,
.form-control,
.filter-option-inner-inner {
    font-size: 12px;
    color: #585c5e;
    padding: 0 0.4rem;
}
.bootstrap-select > .dropdown-toggle {
    padding-top: 10px;
    color: #585c5e;
}
.bootstrap-select .btn {
    --bs-btn-padding-x: 1.2rem !important;
}
.bootstrap-select button {
    height: 35px !important;
}
.bootstrap-select .btn{
    padding-left: 5px;
}

// Баг с выпадающим списком фильтра
.dropdown-menu {
    max-height: 300px !important;
    margin-bottom: 10px;
    .inner {
        max-height: 230px !important;
    }
}

.dropdown-menu {
    max-width: 300px !important;
    overflow-x: auto !important;
}

ul.dropdown-menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

// Футер
footer {
    margin-top: 30px;
    padding: 30px 0 20px;
    .item {
        padding-top: 20px;
    }
}

// Виджет
.messenger-widget {
        position: fixed;
        right: 30px;
        bottom: 30px;
        z-index: 9999;
}
/* Главная кнопка */
.main-button {
        width: 55px;
        height: 55px;
        background: #64c03a;
    /* новый цвет */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
}
.main-button svg {
        width: 26px;
        height: 26px;
}
/* Волны */
.main-button::before, .main-button::after {
        content: "";
        position: absolute;
        border: 1px solid #64c03a;
    /* новый цвет */
        border-radius: 50%;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        animation: pulse 2.5s infinite;
        opacity: 0;
}
.main-button::after {
        animation-delay: 1.3s;
}
    @keyframes pulse {
        0% {
            transform: scale(0.5);
            opacity: 0;
    }
        50% {
            opacity: 1;
    }
        100% {
            transform: scale(1.3);
            opacity: 0;
    }
}
/* Кнопки мессенджеров */
.messenger-btn {
        position: absolute;
        right: 5px;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
}
.messenger-btn svg {
        width: 26px;
        height: 26px;
        fill: #fff;
}
/* WhatsApp */
.whatsapp {
        background: #25D366;
        bottom: 125px;
}
/* Telegram */
.telegram {
        background: #2aabee;
        bottom: 180px;
}
.telegram svg{
    width: 40px;
    height: 40px;
}
/* Активное состояние */
.messenger-widget.active .messenger-btn {
        opacity: 1;
        pointer-events: auto;
}
.max svg {
    width: 45px;
    height: 45px;
}
/* MAX */
.max {
    background: transparent;
    bottom: 70px;
    width: 45px;
    height: 45px;
    padding: 0;
}

//
// Новые преимущества
.b-advantages .block{
    p{
        margin-top: 0;
        margin-bottom: 1rem;
    }
    strong {
        font-size: 22px !important;
        line-height: 28px !important;
    }
    span{
        font-size: 14px;
    }   
}

//
// Старые стили с картинками
.offer.btns-style {
    background: url('/static/uploads/2023/11/bg-new-1.jpg') no-repeat;
    background-size: cover;
    background-position: top;
    position: relative;
    padding-top: 60px;
    padding-bottom: 75px;
}
.offer.btns-style:before,
.offer.btns-style:after {
    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.offer.btns-style:after {
    background-image: url('/static/img/bg/circles-2.png');
    bottom: 0;
    right: 0;
    width: 38%;
    height: 38%;
    background-position: bottom;
}
@media only screen and (max-width: 580px) {
    .offer.btns-style {
        background: url('/static/uploads/2023/11/bg-new-1.jpg') no-repeat center;
        background-size: cover;
    }
}

.korea:before {
    background-image: url('/static/img/bg/korea-optimized.webp') !important;
    background-size: 100%;
    background-position: top right;
    padding-top: 0;
    padding-bottom: 0;
    width: 60%;
    max-width: 960px;
    height: 75%;
    display: block;
    position: absolute;
    z-index: -1;
    right: 0;
    top: 10%;
}
.japan:before {
    background-image: url('/static/img/bg/japan-optimized.png') !important;
    background-size: 100%;
    background-position: top right;
    padding-top: 0;
    padding-bottom: 0;
    width: 60%;
    max-width: 960px;
    height: 75%;
    display: block;
    position: absolute;
    z-index: -1;
    right: 0;
    top: 10%;
}
.china:before {
    background-image: url('/static/img/bg/china-optimized.webp') !important;
    background-size: 100%;
    background-position: top right;
    padding-top: 0;
    padding-bottom: 0;
    width: 60%;
    max-width: 960px;
    height: 75%;
    display: block;
    position: absolute;
    z-index: -1;
    right: 0;
    top: 10%;
}
.korea:after {
    display: none;
}
.japan:after {
    display: none;
}
.china:after {
    display: none;
}

@media only screen and (max-width: 580px) {
    .korea:before{
        display: none;   
    }
    .japan:before{
        display: none;   
    }
    .china:before{
        display: none;   
    }
}

//
// Персональные данные
.privacy{
    .page-content p{
        font-size: 13px;
        text-align: left;
    }
}

//
// Форма заявки
.form-popup {
    max-width: 600px;
    padding: 40px 60px;
    .alert-warning{
        color: #ffa217;
    }
    .form-popup .des {
        margin-bottom: 20px;
    }
}

//
// Марки
.marki{
	margin: 20px 0 40px;
    background: #F7F6FC !important;
    h2 {
        font-weight: 700;
        color: #1E1F4B;
    }
	.text-body{
		padding: 12px 10px;
		border: 1px solid #E8E6F2;
		border-radius: 12px;
        background: #fff;
        font-size: 14px;
        font-weight: 600;
        color: #1E1F4B !important;
        transition: color .15s, border-color .15s, box-shadow .15s, transform .15s;
        &:hover{
            border-color: #FF620A;
            color: #FF620A !important;
            box-shadow: 0 6px 16px rgba(30, 31, 75, .08);
            transform: translateY(-2px);
        }
    }
}

// SEO-текст под каталогом
.seo-text {
    .container > .row > div {
        max-width: 960px;
        font-size: 15px;
        line-height: 1.65;
        color: #3B3C5E;
    }
    h1, h2, h3 {
        margin: 32px 0 12px;
        font-weight: 700;
        line-height: 1.25;
        color: #1E1F4B;
    }
    h1, h2 { font-size: 24px; }
    h3 { font-size: 19px; }
    p { margin: 0 0 14px; }
    ul, ol { margin: 0 0 16px; padding-left: 22px; }
    li { margin-bottom: 6px; }
    ul li::marker { color: #FF620A; }
    a {
        color: #FF620A;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    table {
        width: 100%;
        margin: 0 0 16px;
        border-collapse: collapse;
        font-size: 14px;
        td, th {
            padding: 8px 12px;
            border: 1px solid #E8E6F2;
        }
        th { background: #F7F6FC; }
    }
}

// Форма заявки в модальном окне каталога
.tingle-modal.custom-class-1 {
    .tingle-modal-box {
        width: min(640px, calc(100% - 32px));
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    }
    .tingle-modal-box__content { padding: 32px 36px 28px; }
    h3 {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 0 6px !important;
        font-size: 22px;
        line-height: 1.25;
        color: #1E1F4B;
        i {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #FFE9DC;
            color: #FF620A;
            font-size: 18px;
        }
    }
    #contact_form { margin-bottom: 0 !important; }
    .form-control {
        height: 48px;
        padding: 0 16px;
        border: 1px solid #E1DFEE;
        border-radius: 12px;
        font-size: 15px;
        color: #1E1F4B;
        &:focus {
            border-color: #FF620A;
            box-shadow: 0 0 0 3px rgba(255, 98, 10, .15);
        }
    }
    #submit_button {
        height: 48px;
        border: 0;
        border-radius: 12px;
        background: #FF620A;
        font-weight: 600;
        box-shadow: 0 6px 16px rgba(255, 98, 10, .25);
        &:hover { background: #E55500; }
    }
    label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.4;
        color: #8A8BA8;
        cursor: pointer;
        input[type="checkbox"] {
            float: none !important;
            flex: 0 0 auto;
            width: 16px;
            height: 16px;
            margin: 1px 0 0 !important;
            accent-color: #FF620A;
        }
    }
}

// Перелинковка
.link_btn{
    margin-right: 10px;
}

// Карточка авто
ul.timeline-3 {
    list-style-type: none;
    position: relative;
}
ul.timeline-3:before {
    content: " ";
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}
ul.timeline-3 > li {
    margin: 20px 0;
    padding-left: 50px;
}
ul.timeline-3 > li:before {
    content: " ";
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #22c0e8;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}

ul.timeline-3 .number {
    border: 2px black solid;
    background-color: white;
    padding: 3px 10px;
    font-size: 18px;
    border-radius: 5px;
}

.list-checked-green {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-checked-green--cols-2 {
    column-count: 2;
    column-gap: 1.5rem;
    padding-bottom: 30px;
    padding-top: 10px;
}

@media (max-width: 575px) {
    .list-checked-green--cols-2 {
        column-count: 1;
    }
}

.list-checked-green li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    break-inside: avoid;
    font-size: 12px;
}

.list-checked-green li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: 700;
}

.control .section-wrap .item {
    height: 200px;
}

.header-lu:before {
    top: 68%;
}

// Счётчик найденных авто в каталоге
.tm-found {
    font-size: 15px;
    color: #5B5C80;
    b {
        font-weight: 700;
        color: #1E1F4B;
    }
}

// Согласие на обработку ПД в формах заявки
:not(.check-block) > label:has(> input[type="checkbox"][value="Согласен"]) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #8A8BA8;
    cursor: pointer;
    > input[type="checkbox"] {
        float: none !important;
        flex: 0 0 auto;
        width: 15px;
        height: 15px;
        margin: 1px 0 0 !important;
        accent-color: #FF620A;
    }
    a { color: #FF620A !important; }
}
