:root {
    --yp-ink: #1d2b40;
    --yp-muted: #637188;
    --yp-primary: #164b78;
    --yp-accent: #f06b35;
    --yp-surface: #ffffff;
    --yp-background: #f4f7fb;
}

body {
    background: var(--yp-background);
    color: var(--yp-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.wow {
    animation: none !important;
    visibility: visible !important;
}

.b-nav {
    position: relative;
    z-index: 20;
    background: var(--yp-surface);
    border-bottom: 1px solid #e6ebf2;
    box-shadow: 0 5px 20px rgba(22, 43, 68, 0.07);
}

.b-nav__list ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
}

.b-nav__list ul li a {
    padding: 11px 15px;
    border-radius: 999px;
    color: var(--yp-ink);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.b-nav__list ul li a:hover,
.b-nav__list ul li a:focus {
    background: #edf4fa;
    color: var(--yp-primary);
}

.b-nav__list ul li.active > a {
    background: #edf4fa;
    color: var(--yp-primary);
    box-shadow: inset 0 -2px 0 var(--yp-accent);
}

@media (min-width: 768px) {
    .b-nav > .container > .row {
        display: flex;
    }

    .b-nav > .container > .row > .col-sm-9 {
        display: flex;
        align-items: center;
        float: none;
    }

    .b-nav__list {
        float: none;
        width: 100%;
    }

    .b-nav__list ul {
        margin: 0;
    }
}

.home-hero {
    overflow: hidden;
    background: #102941;
}

.home-hero .carousel-inner > .item {
    position: relative;
}

.home-hero .carousel-inner > .item:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.home-hero .carousel-inner > .item::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 42, 0.38), transparent 68%);
    content: "";
    pointer-events: none;
}

.home-hero .carousel-inner > .item picture,
.home-hero .carousel-inner > .item img {
    display: block;
    width: 100%;
}

.home-hero .carousel-inner > .item img {
    height: clamp(280px, 42vw, 560px);
    object-fit: cover;
    object-position: center;
}

.home-hero .carousel-caption {
    z-index: 2;
    right: 10%;
    bottom: auto;
    left: 10%;
    top: 50%;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    transform: translateY(-50%);
}

.home-hero .carousel-caption h2 {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 800;
}

.home-hero .carousel-caption h3 {
    font-size: clamp(16px, 2vw, 23px);
    letter-spacing: 0.08em;
}

.home-hero .carousel-caption .btn {
    border: 0;
    border-radius: 999px;
    background: var(--yp-accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 22px;
}

.home-hero .carousel-indicators {
    z-index: 3;
}

.home-search {
    margin: 0;
    padding: 22px 0 28px;
    background: linear-gradient(120deg, #123a5e, #1d6591);
}

.home-search .container {
    max-width: 1220px;
}

.home-search .b-search__main {
    max-width: 1220px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(7, 26, 46, 0.2);
}

.home-search .b-search__main .wow {
    visibility: visible !important;
}

.home-search .select2-container,
.home-search select {
    width: 100% !important;
}

.home-search .select2-container .select2-selection--single,
.home-search select.form-control {
    height: 48px !important;
    border: 1px solid #d6deea;
    border-radius: 11px;
}

.home-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    color: var(--yp-ink);
}

.home-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.home-search button.btn-primary {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: var(--yp-accent);
    font-weight: 700;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.home-search button.btn-primary:hover,
.home-search button.btn-primary:focus {
    background: #d95625;
    transform: translateY(-1px);
}

.home-category-section {
    padding: 42px 0 54px;
}

.home-category-layout {
    max-width: 1440px;
}

.home-category-section .section-title {
    margin: 0 0 28px;
}

.home-intro__eyebrow {
    margin: 0 0 8px;
    color: var(--yp-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-intro__title {
    margin: 0 0 12px;
    color: var(--yp-ink);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.home-intro__description {
    max-width: 620px;
    margin: 0 auto;
    color: var(--yp-muted);
    font-size: 16px;
    line-height: 1.65;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    gap: 16px;
}

.home-category-grid > div[class*="col-"] {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0 !important;
}

.home-category-grid > div[style*="width:100%"] {
    display: none;
}

.home-category-card {
    min-height: 100%;
    color: var(--yp-ink);
    text-decoration: none;
}

.home-category-card img {
    height: 132px;
    object-fit: contain;
    background: #fff;
}

.home-category-card .h5_hover {
    height: auto !important;
    min-height: 38px;
    margin: 8px 0 2px;
    color: var(--yp-ink);
    font-size: 14px !important;
    line-height: 1.4;
}

.home-promo {
    padding: 18px 16px;
    background: var(--yp-primary);
    color: #fff;
    text-align: center;
}

.home-promo__text {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.home-brand-strip {
    padding: 0 0 34px;
    background: var(--yp-background);
}

.home-brand-strip__content {
    max-width: 1440px;
    padding-top: 30px;
}

.home-brand-strip__title {
    margin: 0 0 18px;
    color: var(--yp-ink);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    text-align: center;
}

#basicSlider {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
}

#basicSlider .MS-content {
    height: 220px;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
}

#basicSlider .MS-content .item {
    display: inline-block;
    width: 18%;
    height: 100%;
    padding: 8px;
    position: relative;
    overflow: hidden;
    vertical-align: top;
    white-space: normal;
}

#basicSlider .home-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(27, 45, 75, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#basicSlider .home-brand-card:hover {
    transform: translateY(-3px);
    border-color: #c9d8e8;
    box-shadow: 0 14px 30px rgba(27, 45, 75, 0.12);
}

#basicSlider .home-brand-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#basicSlider .home-brand-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.home-hero .carousel-control {
    z-index: 3;
}

.b-pageHeader {
    background-image: linear-gradient(90deg, rgba(14, 33, 54, 0.76), rgba(14, 33, 54, 0.28)), url("../images/backgrounds/pageHead.jpg") !important;
    background-position: center;
    background-size: cover;
}

.b-pageHeader h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.b-pageHeader.contact-hero {
    min-height: 210px;
    padding: 38px 0;
    background:
        radial-gradient(circle at 86% 24%, rgba(84, 162, 202, 0.34), transparent 25%),
        linear-gradient(120deg, #102941, #1d6591) !important;
}

.contact-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 134px;
}

.contact-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4.5vw, 52px);
}

.contact-hero .contact-hero__cta {
    float: none;
    margin: 0;
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-hero .contact-hero__cta h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.contact-page {
    padding: 50px 0 72px;
    background: var(--yp-background);
}

.contact-page > .container {
    max-width: 1200px;
}

.contact-page .b-contacts__form {
    padding: 30px;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(27, 45, 75, 0.07);
}

.contact-page .b-contacts__form-header {
    margin-bottom: 18px;
}

.contact-page .b-contacts__form-header h2,
.contact-page .b-contacts__address h2 {
    color: var(--yp-ink);
    font-size: 20px;
    font-weight: 800;
}

.contact-page .b-contacts__form > p {
    margin-bottom: 22px;
    color: var(--yp-muted);
    font-size: 14px;
    line-height: 1.65;
}

.contact-page .s-form input,
.contact-page .s-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    background: #fff;
    color: var(--yp-ink);
    font: inherit;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-page .s-form input {
    min-height: 48px;
    margin-bottom: 12px;
}

.contact-page .s-form textarea {
    min-height: 140px;
    margin-bottom: 16px;
    resize: vertical;
}

.contact-page .s-form input:focus,
.contact-page .s-form textarea:focus {
    border-color: #4c87b1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(76, 135, 177, 0.14);
}

.contact-page .s-form .m-btn {
    border: 0;
    border-radius: 999px;
    background: var(--yp-accent);
    color: #fff;
    font-weight: 750;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.contact-page .s-form .m-btn:hover,
.contact-page .s-form .m-btn:focus {
    background: #d95625;
    transform: translateY(-1px);
}

.contact-page .b-contacts__address-hours {
    margin-bottom: 26px;
}

.contact-page .b-contacts__address-hours-main,
.contact-page .b-contacts__address-info-main {
    padding: 22px;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(27, 45, 75, 0.06);
}

.contact-page .b-contacts__address-hours-main p {
    margin: 0;
    color: var(--yp-muted);
    font-size: 14px;
    line-height: 1.8;
}

.contact-page .b-contacts__address-info-main {
    font-style: normal;
}

.contact-page .b-contacts__address-info-main-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
    color: var(--yp-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.contact-page .b-contacts__address-info-main-item:last-child {
    border-bottom: 0;
}

.contact-page .b-contacts__address-info-main-item .fa {
    width: 22px;
    color: var(--yp-accent);
    font-size: 15px;
}

.contact-page .b-contacts__address-info-main-item p,
.contact-page .b-contacts__address-info-main-item em {
    color: var(--yp-muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.contact-page .b-contacts__address-info-main-item p {
    margin: 8px 0 0 22px;
}

.contact-page #success {
    margin-bottom: 18px;
    border-radius: 10px;
    background: #e8f7ef;
    color: #17613c;
}

.b-items {
    padding: 28px 0 48px;
    background: var(--yp-background);
}

.b-items > .container-fluid {
    max-width: 1440px;
}

.b-items__cars-one {
    padding: 14px;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    margin-bottom: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(27, 45, 75, 0.06);
}

.b-items__cars-one-img {
    border-radius: 12px;
    background: #f4f7fb;
}

.b-items__cars-one-img img {
    height: 100%;
    object-fit: cover;
}

.b-items__cars-one-info-header {
    border-color: #edf0f5;
}

.b-items__cars-one-info-header h2 {
    color: var(--yp-ink) !important;
    font-weight: 750;
}

.b-blog__aside-categories {
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(27, 45, 75, 0.05);
}

.site-footer {
    background: #14283d !important;
    color: #dce5ef;
}

.site-footer h3,
.site-footer .b-info__contacts-item,
.site-footer .b-info__aside-article p {
    color: #eef4fa;
}

.site-footer .footer_h6_a {
    display: inline-block;
    padding: 3px 0;
    color: #dce5ef;
    transition: color 0.18s ease;
}

.site-footer .footer_h6_a:hover {
    color: #ff9a70;
}

.site-copyright {
    padding: 10px 0;
    background: #0e1c2b !important;
}

.site-copyright a {
    color: #dce5ef !important;
}

@media (max-width: 991px) {
    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-search .b-search__main {
        padding: 10px;
    }

    #basicSlider .MS-content .item {
        width: 25%;
    }
}

@media (max-width: 767px) {
    .b-nav__list ul {
        display: block;
        padding: 8px 0;
    }

    .b-nav__list ul li a {
        display: block;
        border-radius: 9px;
    }

    .contact-hero {
        padding: 30px 0;
    }

    .contact-hero .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
    }

    .contact-page {
        padding: 30px 0 46px;
    }

    .contact-page .b-contacts__form {
        margin-bottom: 28px;
        padding: 22px;
    }

    .home-hero .carousel-inner > .item img {
        height: auto;
        object-fit: contain;
    }

    .home-category-section {
        padding: 32px 0 40px;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #basicSlider .MS-content .item {
        width: 35%;
    }

    .b-items__cars-one-img {
        max-width: 100%;
    }

    .b-items__cars-one-info {
        margin: 18px 10px 0;
    }
}

@media (max-width: 420px) {
    .home-hero .carousel-inner > .item img {
        height: auto;
    }

    .home-search .b-search__main {
        padding: 8px;
    }

    #basicSlider {
        padding: 0 14px;
    }

    #basicSlider .MS-content {
        height: 190px;
    }

    #basicSlider .MS-content .item {
        width: 50%;
    }

    #basicSlider .home-brand-card img {
        height: 130px;
    }
}
