body {
    font-family: "unitext", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[x-cloak] {
    display: none !important;
}

.inline-link,
.prose a {
    color: #d80031;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.search-big::placeholder {
    color: rgba(255, 255, 255, 0.92);
}

#powerChart,
#torqueChart {
    overflow: hidden;
}

.contact-map {
    min-height: 420px;
}

.contact-map--listing {
    min-height: 40vh;
}

.booking-shell {
    margin-top: 40px;
}

.booking-layout {
    align-items: start;
}

.booking-sidebar {
    position: sticky;
    top: 96px;
}

.booking-sidebar article p:first-child {
    margin-top: 10px;
}

.store-detail-info {
    padding-right: 40px;
}

.store-detail-info h1 {
    margin-bottom: 40px;
}

.store-detail-map .contact-map {
    min-height: 460px;
}

.store-detail-time-form {
    margin-top: 70px;
}

.store-detail-time-form > section:first-child {
    padding-right: 40px;
}

.leaflet-container {
    font-family: "unitext", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-marker {
    align-items: center;
    border: 3px solid #fff;
    border-radius: 9999px;
    box-shadow: 0 10px 24px rgba(16, 9, 40, 0.22);
    display: flex;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.contact-marker--main {
    background: #d80031;
}

.contact-marker--partner {
    background: #100928;
}

.contact-map-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
}

.catalog-filter {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.catalog-filter__items {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.catalog-filter__item {
    background: transparent;
    border: 0;
    color: #100928;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.catalog-filter__item:not(:last-child) {
    margin-right: 30px;
}

.catalog-filter__item span {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    min-height: 2.8rem;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    vertical-align: bottom;
}

.catalog-filter__item:hover span,
.catalog-filter__item.is-active span {
    color: #d80031;
}

.catalog-filter__item.is-active span {
    border-bottom: 3px solid #d80031;
    padding-bottom: 10px;
}

.catalog-brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.catalog-brand-grid__item {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 5px 22px;
    width: 20%;
}

.catalog-brand-grid__image {
    align-items: center;
    display: flex;
    height: 90px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    padding: 20px;
    width: 70%;
}

.catalog-brand-grid__image img {
    height: 50px;
    max-height: 50px;
    max-width: 100%;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.catalog-brand-grid__item:hover .catalog-brand-grid__image img {
    transform: scale(1.1);
}

.homepage-references {
    width: 100%;
}

.homepage-references__track {
    animation: homepage-reference-marquee 48s linear infinite;
    display: flex;
    gap: 0;
    width: max-content;
}

.homepage-references__item {
    flex: 0 0 12.5vw;
    height: 12.5vw;
    max-height: 220px;
    max-width: 220px;
    min-height: 120px;
    min-width: 120px;
}

.homepage-references:hover .homepage-references__track {
    animation-play-state: paused;
}

@keyframes homepage-reference-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 1023px) {
    .homepage-references__item {
        flex-basis: 24vw;
        height: 24vw;
    }
}

@media (max-width: 639px) {
    .homepage-references__item {
        flex-basis: 42vw;
        height: 42vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-references__track {
        animation: none;
    }
}

.legacy-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 74px 16px 80px;
}

.legacy-shell__grid {
    align-items: start;
    display: grid;
    gap: 32px;
}

.legacy-sidebar {
    width: 100%;
}

.legacy-sidebar__title {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.legacy-sidebar__nav a {
    color: #1f2937;
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    padding: 8px 0;
    text-decoration: none;
}

.legacy-sidebar__nav a:hover,
.legacy-sidebar__nav a.is-active {
    color: #d80031;
}

.legacy-sidebar__nav .legacy-sidebar__children {
    margin: 6px 0 10px 14px;
    padding-left: 14px;
}

.legacy-sidebar__nav .legacy-sidebar__children a {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
}

.legacy-article {
    min-width: 0;
}

.legacy-article h1 {
    color: #100928;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px;
}

.legacy-article .prose {
    max-width: none;
}

.legacy-article .prose,
.legacy-article .prose p,
.legacy-article .prose li {
    color: #334155;
    font-size: 16px;
    line-height: 1.75;
}

.legacy-article .prose p,
.legacy-article .prose ul,
.legacy-article .prose ol {
    margin: 0 0 16px;
}

.legacy-article .prose h2 {
    font-size: 30px;
    line-height: 1.15;
    margin: 28px 0 14px;
}

.legacy-article .prose h3 {
    font-size: 24px;
    line-height: 1.2;
    margin: 24px 0 12px;
}

.legacy-article .prose h4 {
    font-size: 20px;
    line-height: 1.25;
    margin: 22px 0 10px;
}

.legacy-article .prose h2,
.legacy-article .prose h3,
.legacy-article .prose h4 {
    color: #100928;
}

.legacy-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.legacy-gallery-grid a {
    background: #f5f5f5;
    display: block;
    overflow: hidden;
}

.legacy-gallery-grid img {
    display: block;
    height: 130px;
    object-fit: cover;
    width: 100%;
}

.legacy-services-list {
    margin-top: 20px;
}

.legacy-service-item {
    display: grid;
    gap: 20px;
    grid-template-columns: 96px minmax(0, 1fr) 180px;
    padding: 24px 0;
}

.legacy-service-item:first-child {
    padding-top: 12px;
}

.legacy-service-item__icon {
    align-items: flex-start;
    display: flex;
    justify-content: center;
}

.legacy-service-item__icon img {
    max-height: 70px;
    max-width: 70px;
}

.legacy-service-item__content h2 {
    color: #100928;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
}

.legacy-service-item__content p {
    color: #334155;
    font-size: 16px;
    line-height: 1.75;
    margin: 10px 0 0;
}

.catalog-model-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.catalog-model-row__head {
    width: 30%;
}

.catalog-model-row__engines {
    display: flex;
    gap: 30px;
    width: 70%;
}

.catalog-model-row__engines section {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
}

.catalog-model-row__engines ul {
    list-style: none;
    padding: 0;
}

.catalog-model-row__engines small {
    display: block;
}

@media screen and (max-width: 768px) {
    .contact-map--listing {
        min-height: 52vh;
    }

    .booking-shell {
        margin-top: 20px;
    }

    .booking-sidebar {
        position: static;
        top: auto;
    }

    .store-detail-info h1,
    .store-detail-info h5,
    .store-detail-info p,
    .store-detail-info small,
    .store-detail-time-form h5,
    .store-detail-time-form h3,
    .store-detail-time-form p {
        text-align: center;
    }

    .store-detail-info {
        margin-top: 50px;
        order: 2;
        padding-right: 0;
    }

    .store-detail-map {
        order: 1;
    }

    .store-detail-map .contact-map {
        min-height: 350px;
    }

    .store-detail-time-form {
        margin-top: 0;
    }

    .store-detail-time-form > section:first-child {
        padding-right: 28px;
    }

    .store-detail-time-form > section:first-child ul {
        margin: 10px 0 30px;
    }

    .catalog-filter {
        align-items: center;
        flex-direction: column;
    }

    .catalog-filter__items {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .catalog-filter__item {
        text-align: center;
        width: 100%;
    }

    .catalog-filter__item:not(:last-child) {
        margin-bottom: 16px;
        margin-right: 0;
    }

    .catalog-filter__item span {
        min-height: 0;
    }

    .catalog-brand-grid__item {
        width: 50%;
    }

    .catalog-brand-grid__image {
        height: 78px;
        width: 100%;
    }

    .catalog-brand-grid__image img {
        height: 42px;
        max-height: 42px;
    }

    .catalog-model-row {
        flex-direction: column;
    }

    .catalog-model-row__head,
    .catalog-model-row__engines {
        width: 100%;
    }

    .catalog-model-row__head {
        align-items: center;
        display: flex;
        flex-direction: column;
        margin-right: 0;
    }

    .catalog-model-row__label {
        margin-top: 20px;
        width: 100%;
    }

    .catalog-model-row__label h2,
    .catalog-model-row__label p {
        display: block;
        text-align: center;
        width: 100%;
    }

    .catalog-model-row__head img {
        display: none;
    }

    .catalog-model-row__engines {
        flex-direction: column;
        gap: 24px;
        margin-top: 30px;
    }

    .catalog-model-row__engines section,
    .catalog-model-row__engines h3,
    .catalog-model-row__engines ul {
        text-align: center;
    }
}

.legacy-service-item__price {
    text-align: left;
}

.legacy-service-item__price small {
    color: #6b7280;
    display: block;
    font-size: 13px;
    line-height: 1.4;
    text-transform: lowercase;
}

.legacy-service-item__price h3,
.legacy-service-item__price p {
    color: #100928;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin: 6px 0 18px;
}

.legacy-service-item__price p {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0;
}

.legacy-service-item__price span {
    font-size: 16px;
    font-weight: 400;
}

@media (min-width: 1024px) {
    .legacy-shell__grid {
        grid-template-columns: 270px minmax(0, 1fr);
    }
}

@media (max-width: 1023px) {
    .legacy-shell__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    .legacy-service-item {
        grid-template-columns: minmax(0, 1fr);
    }
}
