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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #1d2329;
}

body.cart-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* HEADER */

.header {
    background: #111827;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 800;
}

.logo span {
    color: #ef4444;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
}

.cart-button {
    border: none;
    background: #ef4444;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: .2s;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.whatsapp-button {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 8px;

    background: transparent;
    text-decoration: none;
}

.whatsapp-button img {
    display: block;

    width: 38px !important;
    height: 38px !important;

    max-width: 38px !important;
    max-height: 38px !important;

    object-fit: contain;
}

.whatsapp-button:hover {
    transform: translateY(-1px);
}

.cart-button:hover {
    background: #dc2626;
}

#cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: white;
    color: #ef4444;
    border-radius: 999px;
    padding: 0 7px;
    margin-left: 7px;
    font-size: 13px;
}


/* HERO */

.hero {
    background: linear-gradient(135deg, #111827, #374151);
    color: white;
}

.hero-content {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 650px;
    transform: translateX(-20px);
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,.1);
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #ef4444;
}

.hero p {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.hero-car {
    font-size: 180px;
}


/* BRANDS */

.brands-section {
    background: white;
    padding: 45px 0;
}

.brands-section h2 {
    margin-bottom: 25px;
}

.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brands button {
    padding: 12px 22px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}

.brands button:hover {
    background: #111827;
    border-color: #111827;
    color: white;
}

.brands button.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}


.quick-brands-block,
.vehicle-picker-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-brands-block h2,
.vehicle-picker-block h3 {
    margin: 0;
    color: #111827;
}

.vehicle-picker-block h3 {
    font-size: 20px;
}

.vehicle-filter-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.quick-brands {
    flex: 0 0 auto;
}

.vehicle-selects {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 12px;
    width: min(440px, 100%);
}

.vehicle-select-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.vehicle-select-group label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
}

.vehicle-select-group select {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 13px;
    background: #fff;
    color: #1d2329;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.vehicle-select-group select:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.vehicle-select-group select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}


/* CATALOG */

.catalog-section {
    padding: 60px 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.catalog-header p {
    color: #6b7280;
    margin-top: 5px;
}

#search {
    width: 100%;
    height: 52px;
    padding: 0 18px;

    font-size: 16px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: white;
}

#search:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.catalog-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.pagination-summary {
    color: #6b7280;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.page-button {
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #1d2329;
    font-weight: 700;
    cursor: pointer;
}

.page-button:hover:not(:disabled):not(.active) {
    border-color: #111827;
}

.page-button.active {
    background: #111827;
    color: white;
    border-color: #111827;
}

.page-button:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.pagination-dots {
    min-width: 28px;
    text-align: center;
    color: #6b7280;
}


/* PRODUCTS */

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    transition: .2s;
}

.product:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f9fa;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    padding: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

.product-placeholder {
    font-size: 72px;
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: #ef4444;
    font-size: 14px;
    font-weight: bold;
}

.product h3 {
    margin: 8px 0;
}

.product-model {
    color: #6b7280;
    font-size: 14px;
}

.product-info > p {
    color: #4b5563;
    line-height: 1.5;
    margin-top: 12px;
}

.product-stock {
    margin-top: 14px;
    font-size: 13px;
    color: #15803d;
    font-weight: 700;
}

.product-stock.out-of-stock {
    color: #b91c1c;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.price {
    font-size: 20px;
    font-weight: bold;
}

.add-cart {
    border: none;
    background: #111827;
    color: white;
    padding: 11px 15px;
    border-radius: 7px;
    cursor: pointer;
    transition: .2s;
}

.add-cart:hover:not(:disabled) {
    background: #000;
}

.add-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.empty-products {
    grid-column: 1 / -1;
    color: #6b7280;
    padding: 20px 0;
}


/* ADVANTAGES */

.advantages {
    background: white;
    padding: 60px 0;
}

.advantages h2 {
    margin-bottom: 30px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage {
    text-align: center;
}

.advantage > div {
    font-size: 40px;
    margin-bottom: 12px;
}

.advantage p {
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.5;
}


/* FOOTER */

footer {
    background: #111827;
    color: white;
    padding-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-inner p {
    color: #9ca3af;
    margin-top: 8px;
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}


/* CART DRAWER */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    width: min(510px, 100%);
    height: 100%;
    background: #f8f9fa;
    box-shadow: -18px 0 45px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.cart-overlay.open .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    min-height: 98px;
    padding: 22px 24px;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-kicker {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cart-header h2 {
    font-size: 26px;
}

.cart-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 27px;
    cursor: pointer;
    line-height: 1;
}

.cart-close:hover {
    background: rgba(255,255,255,.16);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
}

.cart-empty {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
}

.cart-empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.cart-empty h3 {
    color: #111827;
    margin-bottom: 7px;
}

.cart-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 17px;
    margin-bottom: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .035);
}

.cart-item-main {
    padding-right: 4px;
}

.cart-item-title {
    font-weight: 800;
    font-size: 17px;
    color: #111827;
}

.cart-item-meta,
.cart-item-unit-price {
    color: #6b7280;
    font-size: 13px;
    margin-top: 5px;
}

.cart-item-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 17px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    overflow: hidden;
    background: #f9fafb;
}

.quantity-control button {
    width: 36px;
    height: 34px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 20px;
    cursor: pointer;
}

.quantity-control button:hover:not(:disabled) {
    background: #e5e7eb;
}

.quantity-control button:disabled {
    color: #c4c7cc;
    cursor: not-allowed;
}

.quantity-control span {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
}

.cart-item-subtotal {
    justify-self: end;
    color: #111827;
}

.cart-remove {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-size: 20px;
}

.cart-remove:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.cart-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 20px 22px 22px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.cart-total strong {
    font-size: 24px;
    color: #111827;
}

.checkout {
    width: 100%;
    margin-top: 17px;
    padding: 15px;
    border: none;
    border-radius: 9px;
    background: #ef4444;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.checkout:hover:not(:disabled) {
    background: #dc2626;
}

.checkout:disabled {
    background: #c4c7cc;
    cursor: not-allowed;
}

.cart-footer-note {
    margin-top: 10px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}


/* CHECKOUT */

.checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.checkout-overlay.open {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-card {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
    transform: translateY(14px) scale(.985);
    transition: transform .2s ease;
}

.checkout-overlay.open .checkout-modal-card {
    transform: translateY(0) scale(1);
}

.checkout-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 26px;
    cursor: pointer;
}

.checkout-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.checkout-heading {
    padding-right: 48px;
    margin-bottom: 24px;
}

.checkout-kicker {
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.checkout-heading h2 {
    color: #111827;
    font-size: 28px;
}

.checkout-heading p {
    margin-top: 8px;
    color: #6b7280;
    line-height: 1.5;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.checkout-field label {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.checkout-field input,
.checkout-field select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: none;
}

.checkout-field input:focus,
.checkout-field select:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
}

.checkout-field select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.checkout-order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.checkout-order-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 17px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #f9fafb;
}

.checkout-order-summary span {
    color: #6b7280;
    font-size: 13px;
}

.checkout-order-summary strong {
    color: #111827;
    font-size: 17px;
}

.checkout-note {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-error {
    min-height: 20px;
    margin-top: 12px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.checkout-back-button,
.checkout-submit-button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.checkout-back-button {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.checkout-back-button:hover {
    background: #f3f4f6;
}

.checkout-submit-button {
    border: none;
    background: #111827;
    color: #fff;
}

.checkout-submit-button:hover:not(:disabled) {
    background: #000;
}

.checkout-submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.checkout-success-view {
    padding: 28px 6px 6px;
    text-align: center;
}

.checkout-success-view[hidden] {
    display: none;
}

.checkout-success-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 34px;
    font-weight: 900;
}

.checkout-success-view h2 {
    color: #111827;
    font-size: 28px;
}

.checkout-success-view > p {
    max-width: 560px;
    margin: 9px auto 22px;
    color: #6b7280;
    line-height: 1.5;
}

.checkout-success-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    text-align: left;
}

.checkout-success-summary > div {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #f9fafb;
}

.checkout-success-summary span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}

.checkout-success-summary strong {
    color: #111827;
}

.checkout-success-button {
    min-width: 210px;
}


/* SHOP TOAST */

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 2000;
    transform: translate(-50%, 20px);
    max-width: min(430px, calc(100% - 32px));
    padding: 13px 18px;
    border-radius: 10px;
    background: #111827;
    color: white;
    box-shadow: 0 14px 35px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transition: .22s;
    text-align: center;
}

.shop-toast.error {
    background: #991b1b;
}

.shop-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}


/* MOBILE */

@media (max-width: 800px) {

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-success-summary {
        grid-template-columns: 1fr;
    }

nav {
    display: flex;
    order: 3;
    width: 100%;

    justify-content: space-between;
    align-items: center;

    gap: 6px;
    padding: 10px 12px;

    background: rgba(17, 24, 39, 0.28);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

nav a {
    color: white;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    padding: 7px 8px;
    border-radius: 7px;
}

nav a:active {
    background: rgba(255,255,255,0.12);
}

.header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.logo {
    order: 1;
}

.header-actions {
    order: 2;
    margin-left: auto;
}

    .hero-content {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-car {
        display: none;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .vehicle-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-brands {
        width: 100%;
    }

    .vehicle-selects {
        width: 100%;
    }

    .catalog-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    #search {
        width: 100%;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vehicle-selects {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: 100%;
    }
}


@media (max-width: 520px) {

    .checkout-overlay {
        padding: 0;
        align-items: stretch;
    }

    .checkout-modal-card {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 24px 18px;
    }

    .checkout-order-summary {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column-reverse;
    }

    .checkout-back-button,
    .checkout-submit-button {
        width: 100%;
    }

    .header-inner {
        height: 64px;
    }

    .logo {
        font-size: 21px;
    }

    .cart-button {
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-cart {
        width: 100%;
    }

    .cart-item-controls {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .cart-header,
    .cart-items,
    .cart-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.vehicle-alert {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(3px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vehicle-alert-box {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    animation: vehicleAlertIn 0.2s ease;
}

.vehicle-alert-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fef3c7;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.vehicle-alert-box h3 {
    margin: 0 0 10px;
    font-size: 21px;
    color: #111827;
}

.vehicle-alert-box p {
    margin: 0 0 24px;
    color: #6b7280;
    line-height: 1.5;
}

.vehicle-alert-box button {
    width: 100%;
    border: none;
    border-radius: 9px;
    padding: 13px;
    background: #111827;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.vehicle-alert-box button:hover {
    background: #272f3d;
}

@keyframes vehicleAlertIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ===== ТОВАР ПОД ЗАКАЗ ===== */
.product-stock.preorder {
    color: #a16207;
    background: #fef3c7;
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
}

.cart-preorder-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}


.hero {
    position: relative;
    min-height: 515px;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(18, 28, 44, 0.96) 0%,
            rgba(18, 28, 44, 0.90) 28%,
            rgba(18, 28, 44, 0.68) 46%,
            rgba(18, 28, 44, 0.30) 62%,
            rgba(18, 28, 44, 0.08) 78%,
            rgba(18, 28, 44, 0.00) 100%
        ),
        url("images/hero-cars.png");

    background-repeat: no-repeat;.hero-text {
    max-width: 560px;
    padding-left: 24px;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.04;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
}

.hero p {
    max-width: 520px;
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 30px;
}
    background-size: cover;
    background-position: center 38%;
}



/* ===== FINAL HERO BANNER ===== */

.hero {
    position: relative;

    background-image: url("images/hero-banner.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;

    color: white;
    overflow: hidden;
}


/* Плавный переход от шапки сверху */

.hero::before {
    content: "" !important;
    display: block !important;

    position: absolute;
    z-index: 1;

    top: 0;
    left: 0;
    right: 0;

    height: 75px;

    background: linear-gradient(
        to bottom,
        #111827 0%,
        rgba(17, 24, 39, 0.82) 22%,
        rgba(17, 24, 39, 0.45) 48%,
        rgba(17, 24, 39, 0.15) 72%,
        transparent 100%
    );

    pointer-events: none;
}


/* Плавный переход фотографии в белый блок снизу */




/* Контент */

.hero-content {
    min-height: clamp(430px, 31vw, 560px);

    display: flex;
    align-items: center;
    justify-content: flex-start;
}


.hero-text {
    width: 44% !important;
    max-width: 540px !important;
    
}


.hero h1 {
    max-width: 540px !important;

    font-size: 54px;
    line-height: 1.05;

    margin-bottom: 20px;
}


.hero h1 span {
    color: #ef4444;
}


.hero p {
    max-width: 330px !important;

    color: #d1d5db;
    font-size: 18px;
    line-height: 1.6;

    margin-bottom: 30px;
}


/* ===== HERO MOBILE ===== */

@media (max-width: 800px) {
    .hero-text {
    margin-top: 30px;
}
    .hero {
        min-height: 570px !important;

        background-color: #141d2f !important;
        background-image: url("images/hero-banner.png") !important;

        background-size:
            auto 72% !important;

        background-position:
            center bottom !important;
    }


    .hero::before {
        height: 90px;
    }


    .hero::after {
        height: 70px;
    }


    .hero-content {
        min-height: 570px !important;

        align-items: flex-start !important;

        padding-top: 55px !important;
    }


    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
    }


    .hero h1 {
        max-width: 100% !important;
        font-size: 40px;
    }


    .hero p {
        max-width: 100% !important;
    }
}


@media (max-width: 520px) {

    .hero h1 {
        font-size: 35px !important;
    }
}

/* ==================================================
   MOBILE HERO — CLEAN RESET
   ================================================== */

@media (max-width: 800px) {

    .hero {
        position: relative !important;
        min-height: 760px !important;
        height: auto !important;
        overflow: hidden !important;

        /* На самом hero больше НИКАКОЙ картинки */
        background: #141d2f !important;
        background-image: none !important;
    }


    /* =========================================
       ТЕКСТ СВЕРХУ
       ========================================= */

    .hero-content {
        position: relative !important;
        z-index: 5 !important;

        min-height: 0 !important;
        height: auto !important;

        display: block !important;

        padding-top: 44px !important;
        padding-bottom: 0 !important;
    }


    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
    }


    .hero h1 {
        max-width: 100% !important;

        font-size: 39px !important;
        line-height: 1.04 !important;

        margin-bottom: 22px !important;
    }


    .hero p {
        width: 100% !important;
        max-width: 100% !important;

        font-size: 16px !important;
        line-height: 1.5 !important;

        color: #d1d5db !important;

        margin-bottom: 24px !important;
    }


    .hero-button {
        display: inline-block !important;

        position: relative !important;
        z-index: 6 !important;

        margin: 0 !important;

        padding: 14px 22px !important;

        font-size: 15px !important;
    }


    /* =========================================
       ФОТО ТОЛЬКО СНИЗУ
       ========================================= */

    .hero::before {
        content: "" !important;
        display: block !important;

        position: absolute !important;

        /*
           ВАЖНО:
           сбрасываем старый top,
           который ломал прошлый вариант
        */
        top: auto !important;
        bottom: 0 !important;

        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        height: 430px !important;

        z-index: 1 !important;

        background-image:

            /* плавно появляется сверху
               и плавно уходит в белый снизу */
            linear-gradient(
                to bottom,

                #141d2f 0%,
                rgba(20, 29, 47, 0.92) 8%,
                rgba(20, 29, 47, 0.55) 15%,
                rgba(20, 29, 47, 0.18) 21%,
                transparent 28%,

                transparent 80%,
                rgba(255,255,255,0.10) 87%,
                rgba(255,255,255,0.45) 94%,
                #ffffff 100%
            ),

            url("images/hero-banner.png") !important;

        background-repeat:
            no-repeat,
            no-repeat !important;

        background-size:
            100% 100%,
            auto 100% !important;

        /*
           Двигаем композицию на телефоне.
           Здесь будут машины и девушки.
        */
        background-position:
            center,
            58% center !important;

        pointer-events: none !important;
    }


    /*
       Старый ::after полностью отключаем.
       Именно он тоже конфликтовал
       с предыдущими вариантами.
    */

    .hero::after {
        content: none !important;
        display: none !important;

        top: auto !important;
        bottom: auto !important;
    }
}


/* ==================================================
   УЗКИЕ ТЕЛЕФОНЫ / iPHONE
   ================================================== */

@media (max-width: 520px) {

    .hero {
        min-height: 735px !important;
    }


    .hero-content {
        padding-top: 40px !important;
    }


    .hero h1 {
        font-size: 35px !important;
        line-height: 1.04 !important;
    }


    .hero p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }


    .hero::before {
        @media (max-width: 520px) {
    .hero::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 90px;
        width: 100%;
        height: 320px;
        background-image: url("images/hero-cars.png");
        background-repeat: no-repeat;
        background-position: 52% bottom;
        background-size: contain;
        opacity: 1;
        z-index: 1;
        pointer-events: none;
    }
}
        top: auto !important;
        bottom: 0 !important;

        height: 410px !important;

        background-position:
            center,
            58% center !important;
    }
}

/* ===== DELIVERY MODAL ===== */
.delivery-overlay {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.delivery-overlay.open {
    opacity: 1;
    visibility: visible;
}

.delivery-modal-card {
    position: relative;
    width: min(520px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
    color: #111827;
}

.delivery-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 26px;
    cursor: pointer;
}

.delivery-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.delivery-kicker {
    margin-bottom: 6px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.delivery-modal-card h2 {
    margin: 0 48px 22px 0;
    font-size: 28px;
}

.delivery-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.delivery-price-card span {
    color: #374151;
    line-height: 1.4;
}

.delivery-price-card strong {
    white-space: nowrap;
    color: #ef4444;
    font-size: 22px;
}

.delivery-text {
    margin: 22px 0 8px;
    color: #6b7280;
    line-height: 1.5;
}

.delivery-phone {
    display: inline-block;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
}

.delivery-phone:hover {
    color: #ef4444;
}

@media (max-width: 520px) {
    .delivery-overlay {
        padding: 16px;
    }

    .delivery-modal-card {
        padding: 26px 20px;
    }

    .delivery-price-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.delivery-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: none;
}

.delivery-brand .brand-tmf {
    color: #ef4444;
}

.delivery-brand .brand-parts {
    color: #111111;
}

/* ===== FINAL: VEHICLE PICKER + ANNOUNCEMENTS ===== */
.final-home-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
}

.home-tool-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.home-tool-heading {
    margin-bottom: 18px;
}

.home-tool-heading h2,
.home-tool-heading h3 {
    margin: 3px 0 0;
    color: #111827;
    font-size: 22px;
}

.home-tool-heading p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.home-tool-kicker {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-tool-kicker.accent {
    color: #ef4444;
}

.final-home-tools .vehicle-picker-block {
    display: block;
}

.final-home-tools .vehicle-selects {
    width: 100%;
}

.announcements-block {
    display: flex;
    flex-direction: column;
}

.announcements-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.announcement-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.announcement-controls[hidden] {
    display: none;
}

.announcement-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid #d7dbe0;
    border-radius: 9px;
    background: white;
    color: #111827;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.announcement-controls span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.announcement-card {
    flex: 1;
    min-height: 112px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #202a3a);
    color: white;
}

.announcement-card h3 {
    margin: 0 0 9px;
    color: white;
    font-size: 19px;
}

.announcement-card p {
    margin: 0;
    white-space: pre-line;
    color: #e5e7eb;
    line-height: 1.55;
}

.announcement-card small {
    display: block;
    margin-top: 14px;
    color: #9ca3af;
}

.announcement-empty {
    color: #d1d5db;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .final-home-tools {
        grid-template-columns: 1fr;
    }

    .home-tool-card {
        padding: 20px;
    }
}

.clickable-product-image {
    cursor: zoom-in;
}

.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);

    padding: 20px;
}

.product-image-modal.active {
    display: flex;
}

.product-image-modal img {
    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    cursor: zoom-out;
}

.announcement-card {
    flex: 1;

    height: 165px;
    max-height: 165px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 6px 8px 6px 18px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #111827,
        #202a3a
    );

    color: white;

    scroll-behavior: smooth;
}

.announcement-item {
    padding: 14px 10px 16px 0;
}

.announcement-item + .announcement-item {
    border-top: 1px solid rgba(255,255,255,0.14);
}

.announcement-item h3 {
    margin: 0 0 9px;
    color: white;
    font-size: 19px;
}

.announcement-item p {
    margin: 0;

    white-space: pre-line;

    color: #e5e7eb;
    line-height: 1.55;
}

.announcement-item small {
    display: block;

    margin-top: 12px;

    color: #9ca3af;
}

.announcement-card::-webkit-scrollbar {
    width: 7px;
}

.announcement-card::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
}

.announcement-card::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 20px;
}

.announcement-card::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

.tmf-red {
    color: #ff4d4f;
}

.parts-black {
    color: #111111;
}

.vehicle-note {
    margin-top: 32px;

    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .products {
        grid-template-columns: 1fr;
    }
}

.catalog-search-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 32px;
}

.catalog-search-wrap #search {
    width: min(620px, 100%);
    height: 52px;

    padding: 0 18px;

    font-size: 16px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: white;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

.catalog-search {
    flex: 0 0 500px !important;
    width: 500px !important;
    max-width: 500px !important;
}

.catalog-search #search {
    width: 100% !important;
    height: 52px;
}