* {
    box-sizing: border-box;
}

:root {
    --blue: #1769e0;
    --blue-dark: #0e55bd;
    --blue-light: #eaf2ff;
    --dark: #101828;
    --gray: #667085;
    --border: #e4e7ec;
    --background: #f7f9fc;
    --white: #ffffff;
    --green: #12a150;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--dark);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.header {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 180px;
}

.logo-main {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-main span {
    color: var(--blue);
}

.logo-sub {
    margin-top: 5px;
    font-size: 10px;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.navigation a {
    font-size: 14px;
    color: #475467;
    transition: .2s;
}

.navigation a:hover {
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    border: 0;
    background: transparent;
    color: #475467;
    padding: 10px 12px;
}

.cart-button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
}

.cart-button:hover {
    border-color: #b8c7dd;
}

.cart-icon {
    font-size: 16px;
}

.cart-count {
    min-width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(23, 105, 224, .14), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid #e3ebf7;
}

.hero-inner {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    width: 680px;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 30px;
    background: #e5efff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 600px;
    margin: 22px 0 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #667085;
}


/* SEARCH */

.search-box {
    background: white;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 35px rgba(25, 60, 100, .08);
}

.search-tabs {
    display: flex;
    gap: 4px;
    padding: 3px 5px 8px;
}

.search-tab {
    border: 0;
    background: transparent;
    color: #667085;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.search-tab.active {
    background: #edf4ff;
    color: var(--blue);
}

.search-row {
    display: flex;
    gap: 8px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    color: #98a2b3;
    line-height: 1;
}

.search-input-wrapper input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    padding: 0 18px 0 48px;
    font-size: 16px;
    color: var(--dark);
}

.search-input-wrapper input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .10);
}

.search-button {
    height: 54px;
    padding: 0 27px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: white;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s;
}

.search-button:hover {
    background: var(--blue-dark);
}

.search-button:disabled {
    opacity: .6;
    cursor: wait;
}

.search-hint {
    color: #98a2b3;
    font-size: 11px;
    padding: 9px 7px 3px;
}


/* HERO VISUAL */

.hero-visual {
    width: 330px;
    min-width: 300px;
}

.car-card {
    background: white;
    border: 1px solid #dce5f1;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(36, 75, 120, .10);
}

.car-circle {
    width: 155px;
    height: 155px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #edf4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 68px;
}

.car-card-title {
    font-size: 21px;
    font-weight: 750;
}

.car-card-text {
    margin-top: 7px;
    color: #98a2b3;
    font-size: 14px;
}

.car-card-button {
    width: 100%;
    margin-top: 25px;
    padding: 13px;
    border-radius: 9px;
    border: 1px solid #cddcf2;
    color: var(--blue);
    background: white;
    font-weight: 600;
}

.car-card-button:hover {
    background: #f4f8ff;
}


/* ADVANTAGES */

.advantages {
    background: white;
    border-bottom: 1px solid var(--border);
}

.advantages-grid {
    min-height: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 14px;
}

.advantage-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
}

.advantage strong,
.advantage span {
    display: block;
}

.advantage strong {
    font-size: 14px;
}

.advantage span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 12px;
}


/* CATALOG */

.catalog-section {
    padding: 75px 0;
    background: white;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-label {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

h2 {
    margin: 8px 0 0;
    font-size: 31px;
    letter-spacing: -.8px;
}

.all-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category {
    min-height: 112px;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: .2s;
}

.category:hover {
    border-color: #b9cef0;
    box-shadow: 0 8px 25px rgba(23, 105, 224, .07);
    transform: translateY(-2px);
}

.category-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 11px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 20px;
}

.category strong,
.category small {
    display: block;
}

.category strong {
    font-size: 14px;
}

.category small {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.35;
}


/* RESULTS */

.results-section {
    padding: 55px 0;
}

.results-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.results-header p {
    margin: 8px 0 0;
    color: #98a2b3;
    font-size: 14px;
}

.results-count {
    color: #667085;
    font-size: 13px;
}

.offer-block {
    margin-top: 30px;
}

.offer-block-title {
    font-size: 18px;
    font-weight: 750;
    margin-bottom: 13px;
}

.offer {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 170px 130px 125px;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
    margin-bottom: 10px;
    background: white;
    transition: .15s;
}

.offer:hover {
    border-color: #c3d5ef;
    box-shadow: 0 5px 20px rgba(16, 24, 40, .05);
}

.offer.best {
    border-color: #a9d8be;
    background: #fbfffc;
}

.offer-main {
    min-width: 0;
}

.offer-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.offer-meta {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #667085;
    font-size: 12px;
}

.offer-meta span {
    display: inline-block;
}

.provider {
    font-size: 13px;
    font-weight: 650;
}

.price {
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.price-label {
    margin-bottom: 3px;
    color: #98a2b3;
    font-size: 10px;
}

.stock {
    color: var(--green);
    font-size: 13px;
    font-weight: 650;
}

.delivery {
    color: #475467;
    font-size: 13px;
    margin-top: 4px;
}

.buy-button {
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.buy-button:hover {
    background: var(--blue-dark);
}

.best-label {
    display: inline-block;
    margin-bottom: 5px;
    padding: 4px 7px;
    border-radius: 5px;
    background: #e6f7ed;
    color: #08763a;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.empty {
    padding: 25px;
    border-radius: 10px;
    background: #f8fafc;
    color: #667085;
    text-align: center;
}


/* MANUFACTURERS */

.manufacturer-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.manufacturer-button {
    text-align: left;
    border: 1px solid var(--border);
    background: white;
    border-radius: 11px;
    padding: 17px;
    transition: .2s;
}

.manufacturer-button:hover {
    border-color: var(--blue);
    background: #f8fbff;
}

.manufacturer-brand {
    font-weight: 700;
}

.manufacturer-count {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 12px;
}


/* HOW IT WORKS */

.how-section {
    padding: 80px 0;
    background: #f7f9fc;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.step {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 27px;
}

.step-number {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.step h3 {
    margin: 17px 0 8px;
    font-size: 17px;
}

.step p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}


/* STATUS */

.status {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    background: #101828;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    font-size: 13px;
    z-index: 100;
}

.status.error {
    background: #b42318;
}

.hidden {
    display: none !important;
}


/* FOOTER */

.footer {
    background: #101828;
    color: white;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
}

.footer-logo span {
    color: #5d9df3;
}

.footer p {
    margin: 8px 0 0;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 25px;
    color: #d0d5dd;
    font-size: 13px;
}

.footer-copy {
    color: #667085;
    font-size: 12px;
}


/* TABLET */

@media (max-width: 1000px) {

    .navigation {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        width: 100%;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer {
        grid-template-columns: 1fr 130px 110px;
    }

    .offer .delivery {
        display: none;
    }

    .offer .buy-button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        padding: 25px 0;
        gap: 18px;
    }
}


/* MOBILE */

@media (max-width: 650px) {

    .container {
        width: min(100% - 24px, 1180px);
    }

    .header {
        height: 65px;
    }

    .logo-main {
        font-size: 21px;
    }

    .header-link {
        display: none;
    }

    .cart-button span:nth-child(2) {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        padding: 55px 0 60px;
    }

    .hero h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 15px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    h2 {
        font-size: 26px;
    }

    .results-card {
        padding: 18px;
    }

    .results-header {
        flex-direction: column;
        gap: 12px;
    }

    .offer {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .offer .buy-button {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .price {
        font-size: 20px;
    }

    .manufacturer-list {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

/* Checkout extends the existing palette and spacing without changing the storefront. */
.cart-panel { max-width:1200px; margin:40px auto; padding:32px; background:white; border:1px solid #e2e8f0; border-radius:22px; }
.cart-heading,.cart-totals { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
.cart-panel button { padding:10px 16px; border-radius:10px; border:1px solid #cbd5e1; background:#f8fafc; color:#0f172a; cursor:pointer; }
.cart-panel button:disabled { opacity:.5; cursor:default; }
.cart-line { display:grid; grid-template-columns:minmax(180px,1fr) 120px 150px 120px 100px; gap:16px; align-items:center; padding:20px 0; border-bottom:1px solid #e2e8f0; }
.cart-line p { color:#64748b; margin:6px 0; font-size:14px; }
.cart-quantity { display:flex; gap:4px; align-items:center; }
.cart-quantity button { padding:8px 12px; }
.cart-quantity input { width:58px; padding:8px; border:1px solid #cbd5e1; border-radius:8px; }
.cart-totals { margin-top:24px; }
.buyer-fields { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0; }
.buyer-fields label { display:grid; gap:8px; color:#334155; }
.buyer-fields input { width:100%; padding:14px; border-radius:10px; border:1px solid #cbd5e1; box-sizing:border-box; font:inherit; }
.cart-panel .checkout-submit { background:#ef4444; color:white; border:none; padding:16px 26px; font-weight:700; }
.checkout-note { color:#64748b; margin:18px 0; }
#checkoutMessage { margin-top:20px; color:#0f172a; font-weight:600; }
@media(max-width:800px) { .cart-panel { margin:20px 12px; padding:20px; } .cart-line { grid-template-columns:1fr 1fr; } .cart-line>div:first-child { grid-column:1/-1; } .buyer-fields { grid-template-columns:1fr; } .cart-heading,.cart-totals { flex-wrap:wrap; } }

@media(max-width:650px) {
    .header-inner { flex-wrap:wrap; gap:12px; }
    .header-actions { width:100%; justify-content:space-between; gap:12px; }
    #accountButton { display:inline-flex; padding:8px 0; }
}

/* CATALOG FILTER SIDEBAR */

.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Shared quantity selector and Ozon Delivery checkout. */
.offer-quantity{display:flex;align-items:center;justify-content:center;gap:6px}
.offer-quantity button{width:34px;height:38px;border:1px solid var(--line,#d9dee7);background:#fff;border-radius:8px;cursor:pointer;font-size:18px;line-height:1}
.offer-quantity button:hover{border-color:var(--primary,#2563eb);color:var(--primary,#2563eb)}
.offer-quantity-input{width:52px;height:38px;padding:0 4px;text-align:center;border:1px solid var(--line,#d9dee7);border-radius:8px;background:#fff;font-weight:700;-moz-appearance:textfield}
.offer-quantity-input::-webkit-outer-spin-button,.offer-quantity-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.offer{grid-template-columns:minmax(0,1.8fr) 150px 170px 130px 120px}
.delivery-choice{margin:20px 0}.delivery-choice h3{margin:0 0 12px}
.delivery-options{display:grid;grid-template-columns:1fr;gap:10px}
.delivery-option{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid rgba(0,0,0,.12);border-radius:12px;cursor:pointer;background:#fff}
.delivery-option input{margin-top:4px}.delivery-option span{display:flex;flex-direction:column;gap:3px}.delivery-option strong{display:block}.delivery-option small{display:block;color:#6b7280;line-height:1.35}
.field-attention{border-color:#ff8a00!important;box-shadow:0 0 0 3px rgba(255,138,0,.18);outline:none}
.ozon-delivery{margin-top:14px;padding:16px;border:1px solid rgba(0,0,0,.12);border-radius:14px;background:rgba(255,255,255,.65)}
.ozon-delivery>p:first-child{margin-top:0}.ozon-delivery label{display:block;font-weight:600;margin-top:12px}
.ozon-delivery input[type="text"]{width:100%;box-sizing:border-box;margin-top:7px;padding:12px 14px;border:1px solid rgba(0,0,0,.18);border-radius:10px;background:#fff;font:inherit}
.ozon-delivery input[type="text"]:focus{outline:2px solid rgba(0,0,0,.15);outline-offset:1px}
#ozonLocalityResults,#ozonPointResults{display:grid;gap:8px;margin-top:10px}
.ozon-choice{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:12px 14px;border:1px solid rgba(0,0,0,.12);border-radius:10px;background:#fff;text-align:left;cursor:pointer;font:inherit}
.ozon-choice:hover{border-color:rgba(0,0,0,.28);background:rgba(0,0,0,.025)}.ozon-choice strong{display:block;font-weight:650}.ozon-choice small{display:block;margin-top:4px;opacity:.65}
#ozonSelectedLocality{margin:14px 0 4px;font-weight:600}#ozonSelectedPoint{margin-top:14px;padding:14px;border:1px solid rgba(0,0,0,.16);border-radius:12px;background:#fff}#ozonSelectedPoint strong{display:block}#ozonSelectedPoint p{margin:6px 0 10px}#ozonSelectedPoint button{padding:8px 12px;border:1px solid rgba(0,0,0,.16);border-radius:8px;background:transparent;cursor:pointer}
#ozonPointStep.hidden,#ozonLocalityStep.hidden,#ozonSelectedPoint.hidden{display:none}
@media(max-width:980px){.offer{grid-template-columns:1fr 130px 150px 120px}.offer .offer-quantity{grid-column:1/4;justify-content:flex-end}.offer .buy-button{grid-column:4}}
@media(max-width:640px){.offer{grid-template-columns:1fr}.offer .offer-quantity,.offer .buy-button{grid-column:1}.offer .offer-quantity{justify-content:flex-start}.offer .buy-button{width:100%}.ozon-delivery{padding:12px}.ozon-choice{padding:11px 12px}}

.catalog-results {
    min-width: 0;
}

.catalog-filters {
    position: sticky;
    top: 90px;
    border: 1px solid var(--border, var(--line, #dfe3e8));
    border-radius: 12px;
    background: #fff;
    padding: 18px;
}

.catalog-filters-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border, var(--line, #dfe3e8));
}

.catalog-filters-heading strong {
    font-size: 18px;
}

#filtersReset {
    border: 0;
    background: transparent;
    color: var(--blue, var(--orange, #1769e0));
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.filter-group {
    padding: 17px 0;
    border-bottom: 1px solid var(--border, var(--line, #dfe3e8));
}

.filter-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
}

#filterBrands {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.filter-brand input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--blue, var(--orange, #1769e0));
}

.filter-brand-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-brand-count {
    color: #98a2b3;
    font-size: 11px;
}

.filter-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

#filterPriceMin,
#filterPriceMax,
#filterDelivery {
    width: 100%;
    height: 40px;
    min-width: 0;
    border: 1px solid var(--border, var(--line, #d9dde1));
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

#filterPriceMin:focus,
#filterPriceMax:focus,
#filterDelivery:focus {
    border-color: var(--blue, var(--orange, #1769e0));
}

#filterSummary {
    margin-top: 14px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 900px) {

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-filters {
        position: static;
    }

    #filterBrands {
        max-height: 190px;
    }
}

/* BRAND TEXT SEARCH V1 */

#filterBrandSearch {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    margin-bottom: 12px;
    border: 1px solid var(--border, var(--line, #d9dde1));
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

#filterBrandSearch:focus {
    border-color: var(--blue, var(--orange, #1769e0));
}

/* DELIVERY EMPHASIS V1 */

.offer .delivery {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

/* AI ASSISTANT V2 */

.ai-section {
    padding: 34px 0;
    background: #f8fafc;
}

.ai-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(25, 60, 100, .06);
}

.ai-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.ai-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #101828;
}

.ai-heading p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.ai-badge {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.ai-form {
    display: flex;
    gap: 10px;
}

#aiInput {
    flex: 1;
    min-height: 82px;
    resize: vertical;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    color: var(--dark);
}

#aiInput:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .10);
}

#aiButton {
    min-width: 145px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    padding: 0 22px;
    font-weight: 700;
}

#aiButton:hover {
    background: var(--blue-dark);
}

#aiButton:disabled {
    opacity: .6;
    cursor: wait;
}

.ai-status {
    margin-top: 16px;
    color: #667085;
    font-size: 14px;
}

.ai-answer {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fbff;
    color: #1d2939;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ai-disclaimer {
    margin-top: 12px;
    color: #98a2b3;
    font-size: 11px;
}

@media (max-width: 650px) {
    .ai-card {
        padding: 20px;
    }

    .ai-form {
        flex-direction: column;
    }

    #aiButton {
        width: 100%;
        min-height: 50px;
    }
}

/* VIN AI V1 */

.vin-part-row {
    margin-bottom: 8px;
}

#vinPartInput {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    padding: 0 16px;
    font: inherit;
    font-size: 15px;
    color: var(--dark);
}

#vinPartInput:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .10);
}

.vin-ai-result {
    margin: 10px 4px 2px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f4f8ff;
    border: 1px solid #d7e5f8;
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

/* VIN CONFIRM V2 */

.vin-confirm-panel {
    margin: 12px 0 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.vin-confirm-title {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.vin-confirm-text {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

.vin-confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vin-confirm-grid input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    color: var(--dark);
}

.vin-confirm-grid input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .10);
}

.vin-confirm-button {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    background: var(--blue);
    color: #fff;
}

.vin-confirm-button:disabled {
    opacity: .65;
    cursor: default;
}

@media (max-width: 650px) {
    .vin-confirm-grid {
        grid-template-columns: 1fr;
    }
}

/* VIN CATALOG SITE STYLE V2 */

.vin-catalog-section {
    background: #fff;
    padding: 70px 0;
}

.vin-catalog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.vin-catalog-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.vin-catalog-heading h2 {
    margin-top: 8px;
    font-size: 31px;
    letter-spacing: -.8px;
}

.vin-catalog-close {
    border: 1px solid var(--border);
    background: #fff;
    color: #475467;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

.vin-catalog-close:hover {
    border-color: #b9cef0;
    background: #f4f8ff;
    color: var(--blue);
}

.vin-catalog-status {
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #edf4ff;
    border: 1px solid #d7e5f8;
    color: #344054;
    font-size: 13px;
}

.vin-vehicle-button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 17px 18px;
    transition: .2s;
}

.vin-vehicle-button:hover {
    border-color: #b9cef0;
    box-shadow: 0 8px 25px rgba(23, 105, 224, .07);
    transform: translateY(-1px);
}

.vin-vehicle-button strong {
    font-size: 15px;
    color: var(--dark);
}

.vin-vehicle-button span {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 12px;
}

.vin-vehicle-info {
    margin: 22px 0;
    padding: 17px 18px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #dbe3ef;
    color: #344054;
    font-size: 14px;
}

.vin-groups-panel {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    padding: 16px;
}

.vin-panel-title {
    padding-bottom: 13px;
    margin-bottom: 9px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 750;
}

.vin-group-button {
    border: 0;
    background: transparent;
    color: #475467;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    transition: .15s;
}

.vin-group-button:hover {
    background: #f4f8ff;
    color: var(--blue);
}

.vin-group-button.active {
    background: #edf4ff;
    color: var(--blue);
    font-weight: 700;
}

.vin-unit-button {
    border: 1px solid var(--border);
    background: #fff;
    color: #475467;
    border-radius: 9px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 600;
    transition: .15s;
}

.vin-unit-button:hover {
    border-color: #b9cef0;
    background: #f8fbff;
    color: var(--blue);
}

.vin-unit-button.active {
    border-color: var(--blue);
    background: #edf4ff;
    color: var(--blue);
}

.vin-scheme-block {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(16, 24, 40, .03);
}

.vin-scheme-empty {
    border: 1px dashed #cfd7e3;
    border-radius: 13px;
    background: #f8fafc;
    color: #98a2b3;
}

.vin-part {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 15px 16px;
    transition: .15s;
}

.vin-part:hover {
    border-color: #c3d5ef;
    box-shadow: 0 5px 20px rgba(16, 24, 40, .05);
}

.vin-part.selected {
    border-color: #9fc1ef;
    background: #f4f8ff;
    box-shadow: 0 0 0 2px rgba(23, 105, 224, .06);
}

.vin-part-position {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 600;
}

.vin-part-oem {
    color: #344054;
    font-size: 14px;
    font-weight: 750;
}

.vin-part-name {
    color: #344054;
    font-size: 14px;
    line-height: 1.4;
}

.vin-part-search {
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
}

.vin-part-search:hover {
    background: var(--blue-dark);
}

.vin-map-area {
    border: 1px solid rgba(23, 105, 224, .6);
    background: rgba(23, 105, 224, .05);
    border-radius: 3px;
}

.vin-map-area:hover {
    border-color: var(--blue);
    background: rgba(23, 105, 224, .18);
}

/* VIN CATALOG LAYOUT V3 */

.vin-catalog-card {
    max-width: 1180px;
    margin: 0 auto;
}

.vin-vehicle-info {
    position: relative;
    margin: 22px 0 26px;
    padding: 20px 22px 20px 64px;
    min-height: 62px;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        #f8fbff 0%,
        #eef5ff 100%
    );
    border: 1px solid #dbe8f8;
    font-size: 15px;
    font-weight: 700;
}

.vin-vehicle-info::before {
    content: "🚗";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
}

.vin-catalog-layout {
    grid-template-columns:
        275px
        minmax(0, 1fr);

    gap: 28px;
}

.vin-groups-panel {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.vin-scheme-panel {
    min-width: 0;
}

.vin-units {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
}

.vin-scheme-block {
    width: 100%;
    min-height: 420px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
}

.vin-scheme-stage {
    position: relative !important;
    display: inline-block !important;
    width: auto;
    max-width: 100%;
    line-height: 0;
}

#vinSchemeImage {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

#vinSchemeMap {
    position: absolute !important;
    z-index: 2;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.vin-map-area {
    position: absolute !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(23,105,224,.65) !important;
    border-radius: 3px;
    background: rgba(23,105,224,.06) !important;
    min-width: 6px;
    min-height: 6px;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
}

.vin-map-area:hover {
    background: rgba(23,105,224,.22) !important;
    border-color: var(--blue) !important;
}

.vin-catalog-parts {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.vin-part {
    grid-template-columns:
        60px
        145px
        minmax(220px, 1fr)
        150px;
}

.vin-part-position {
    text-align: center;
    padding: 6px 8px;
    border-radius: 7px;
    background: #f2f4f7;
    color: #667085;
    font-weight: 700;
}

.vin-part.selected .vin-part-position {
    background: #dceaff;
    color: var(--blue);
}

@media (max-width: 900px) {

    .vin-catalog-layout {
        grid-template-columns: 1fr;
    }

    .vin-groups-panel {
        position: static;
        max-height: 340px;
    }

    .vin-scheme-block {
        min-height: 300px;
        padding: 12px;
    }
}

/* VIN CATALOG LAYOUT FIX V4 */

.vin-catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Левое дерево больше не висит поверх остального каталога */
.vin-groups-panel {
    position: static !important;
    top: auto !important;
    align-self: start;
    max-height: 650px;
    overflow-y: auto;
}

/* Правая область */
.vin-scheme-panel {
    min-width: 0;
    width: 100%;
}

/* Выбор схем */
.vin-units {
    width: 100%;
    margin-bottom: 16px;
}

/* Никакой внутренней вертикальной прокрутки схемы */
.vin-scheme-block {
    width: 100%;
    min-height: 0 !important;
    height: auto !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

    display: block !important;

    padding: 20px;
    text-align: center;
}

/* Сам рисунок строго по центру */
.vin-scheme-stage {
    position: relative !important;
    display: inline-block !important;

    width: auto !important;
    max-width: 100%;

    margin-left: auto !important;
    margin-right: auto !important;

    line-height: 0;
    vertical-align: top;
}

#vinSchemeImage {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;

    margin: 0 auto !important;
}

/* Слой областей строго поверх картинки */
#vinSchemeMap {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 5;
}

/*
    Детали теперь находятся под всем каталогом,
    а не только под правой колонкой.
*/
.vin-catalog-parts {
    width: 100%;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--border);

    clear: both;
}

.vin-catalog-parts:not(:empty)::before {
    content: "Детали схемы";

    display: block;

    margin-bottom: 14px;

    font-size: 18px;
    font-weight: 750;

    color: var(--dark);
}

.vin-part {
    width: 100%;

    grid-template-columns:
        70px
        150px
        minmax(220px, 1fr)
        160px;
}

/* На небольших экранах */
@media (max-width: 900px) {

    .vin-catalog-layout {
        grid-template-columns: 1fr;
    }

    .vin-groups-panel {
        max-height: 330px;
    }

    .vin-scheme-block {
        padding: 12px;
        overflow-x: auto !important;
    }
}

/* VIN SCHEME HIDDEN FIX V5 */

#vinSchemeBlock.hidden {
    display: none !important;
}

#vinSchemeImage:not([src]),
#vinSchemeImage[src=""] {
    display: none !important;
}
