@media (max-width: 1024px) {
    body.page-home .page-wrapper {
        zoom: 1;
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    body.page-home {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

    body.page-home.menu-open {
        overflow: hidden;
    }

    body.page-home .dealer-info-bar-simple {
        height: 44px;
        min-height: 44px;
        font-size: 13px;
    }

    body.page-home .dealer-info-bar-simple__inner {
        height: 44px;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 16px;
    }

    body.page-home .dealer-info-bar-simple__group {
        flex: 0 0 auto;
        gap: 6px;
    }

    body.page-home .dealer-info-bar-simple__group--right {
        margin-left: auto;
    }

    body.page-home .dealer-info-bar-simple__tagline,
    body.page-home .dealer-info-bar-simple__tagline-divider,
    body.page-home .dealer-info-bar-simple__location-name,
    body.page-home .dealer-info-bar-simple__location-divider,
    body.page-home .dealer-info-bar-simple__group--right > .dealer-info-bar-simple__location:nth-of-type(2) {
        display: none;
    }

    body.page-home .dealer-info-bar-simple__link {
        min-height: 44px;
        gap: 5px;
        font-size: 12px;
    }

    body.page-home .site-header {
        top: 0;
        margin-bottom: 12px;
    }

    body.page-home .site-header__inner {
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo toggle"
            "search search";
        padding: 8px 12px;
    }

    body.page-home .site-header__logo {
        min-height: 48px;
        padding: 2px 4px;
    }

    body.page-home .site-header__toggle {
        width: 48px;
        height: 48px;
        margin-right: 0;
    }

    body.page-home .site-header .site-header__search {
        min-height: 44px;
        margin-top: 6px;
    }

    body.page-home .site-header__search .navbar-search__input {
        height: 44px;
    }

    body.page-home .site-header__search .navbar-search__submit {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    body.page-home .site-nav {
        top: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - 130px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 0 0 12px 12px;
    }

    body.page-home .site-nav__link {
        min-height: 48px;
    }

    body.page-home .site-nav__submenu a {
        display: flex;
        min-height: 44px;
        align-items: center;
    }

    body.page-home .ride-fest-wrap {
        margin: 0 12px;
        padding-bottom: 8px;
    }

    body.page-home .ride-fest {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
        border-width: 4px;
        border-radius: 18px;
    }

    body.page-home .ride-fest__backdrops img {
        object-position: 55% center;
    }

    body.page-home .category-browser {
        padding-block: clamp(40px, 8vw, 96px);
    }

    body.page-home .category-product-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.page-home .category-product-card__know-more,
    body.page-home .category-product-card__test-ride {
        min-height: 44px;
        padding: 8px 10px;
    }

    body.page-home .category-browser__arrow {
        width: 44px;
        height: 44px;
    }

    body.page-home .category-browser__circle {
        width: 48px;
    }

    body.page-home .category-browser__carousel {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
    }

    body.page-home .section-about > .uk-section-large {
        padding-block: 0 !important;
    }

    body.page-home .section-about > .uk-section-large > .uk-container {
        width: 100%;
        max-width: 100%;
        padding-inline: 16px;
        box-sizing: border-box;
    }

    body.page-home .section-about .uk-grid-collapse {
        margin-left: 0;
    }

    body.page-home .section-about .uk-grid-collapse > * {
        padding-left: 0;
    }

    body.page-home .section-about__img {
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: none;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center;
    }

    body.page-home .section-about__content {
        margin-top: 20px;
        padding: 0;
    }

    body.page-home .section-about .section-title .uk-h2 {
        font-size: clamp(30px, 8vw, 44px);
        line-height: 1.08;
    }

    body.page-home .section-about .section-title .uk-h2 br {
        display: none;
    }

    body.page-home .section-about .section-content > p {
        font-size: 15px;
        line-height: 1.6;
    }

    body.page-home .section-about__gallery {
        position: static;
        top: auto;
        left: auto;
        margin-top: 20px;
        padding: 0;
    }

    body.page-home .section-about__gallery .uk-grid {
        margin-left: -8px;
    }

    body.page-home .section-about__gallery .uk-grid > * {
        width: 50%;
        padding-left: 8px;
    }

    body.page-home .section-about__gallery img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    body.page-home .ride-process {
        padding-block: clamp(40px, 8vw, 96px);
    }

    body.page-home .ride-process__copy p {
        font-size: 15px;
    }

    body.page-home .showrooms {
        padding: clamp(40px, 8vw, 96px) 16px 40px;
    }

    body.page-home .showrooms__details {
        font-size: 15px;
    }

    body.page-home .showrooms__actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body.page-home .showrooms__button {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    body.page-home .showrooms__phone {
        min-height: 44px;
    }

    body.page-home .showrooms__map {
        height: 320px;
        min-height: 0;
        box-sizing: border-box;
    }

    body.page-home .showrooms__map iframe {
        height: 100%;
        min-height: 0;
    }

    body.page-home .section-brands {
        padding-block: clamp(40px, 8vw, 96px);
    }

    body.page-home:has(.ride-fest-actions) .section-brands {
        padding-bottom: clamp(40px, 8vw, 96px);
    }

    body.page-home .section-brands .uk-container-large {
        padding-inline: 16px;
    }

    body.page-home .popular-models__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.page-home .popular-model-card {
        height: 100%;
        padding: 14px;
    }

    body.page-home .popular-model-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    body.page-home .popular-model-card__logo {
        width: min(100%, 180px);
    }

    body.page-home .customer-reviews {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.page-home .customer-reviews__heading h2 {
        font-size: clamp(30px, 8vw, 44px);
    }

    body.page-home .customer-reviews__summary {
        flex-wrap: wrap;
        row-gap: 8px;
        padding-inline: 14px;
    }

    body.page-home .customer-reviews__arrow {
        width: 44px;
        height: 44px;
    }

    body.page-home .customer-reviews__dots {
        gap: 0;
    }

    body.page-home .customer-reviews__dot {
        position: relative;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        background: transparent;
    }

    body.page-home .customer-reviews__dot::before {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #c9cdd3;
        content: "";
        transition: background .2s ease, transform .2s ease;
    }

    body.page-home .customer-reviews__dot[aria-current="true"]::before {
        transform: scale(1.2);
        background: var(--reviews-red);
    }

    body.page-home .page-footer .footer-address-item span > a[href^="tel:"] {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    body.page-home .home-faq {
        padding: clamp(40px, 8vw, 96px) 16px;
    }

    body.page-home .home-faq__item summary {
        min-height: 68px;
        padding: 14px 16px;
        line-height: 1.5;
    }

    body.page-home .home-faq__item summary::after {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    body.page-home .expert-help {
        padding: clamp(40px, 8vw, 96px) 16px;
    }

    body.page-home .expert-help__illustration img {
        width: 60%;
        max-width: 300px;
        height: auto;
        max-height: 230px;
        object-fit: contain;
    }

    body.page-home .expert-help__button {
        width: 100%;
        min-height: 54px;
        box-sizing: border-box;
    }

    body.page-home .page-footer__top {
        padding: 40px 0 28px !important;
    }

    body.page-home .page-footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    body.page-home .page-footer__top > .uk-container {
        width: 100%;
        padding-inline: 16px;
        box-sizing: border-box;
    }

    body.page-home .page-footer__top .uk-grid {
        margin-left: 0;
    }

    body.page-home .footer-address-item > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.page-home .footer-address-link {
        display: block;
        color: inherit;
        text-decoration: none;
    }

    body.page-home .footer-address-link:hover,
    body.page-home .footer-address-link:focus-visible {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    body.page-home .page-footer .support__link {
        width: 100%;
        min-height: 56px;
        box-sizing: border-box;
    }

    body.page-home .page-footer .social-list__link {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
    }

    body.page-home .customer-reviews__controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px 44px minmax(0, 1fr);
        gap: 8px 0;
    }

    body.page-home .customer-reviews__dots {
        grid-row: 1;
        grid-column: 1 / -1;
        flex-wrap: wrap;
        gap: 8px;
    }

    body.page-home .customer-reviews__arrow--previous {
        grid-row: 2;
        grid-column: 2;
    }

    body.page-home .customer-reviews__arrow--next {
        grid-row: 2;
        grid-column: 3;
    }

    body.page-home .ride-fest-actions {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        min-height: calc(60px + env(safe-area-inset-bottom));
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid #e5e7eb;
        border-radius: 0;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
        transform: none;
    }

    body.page-home .ride-fest-actions a {
        min-height: 52px;
        padding: 4px 2px;
        border-left: 1px solid rgba(17, 17, 17, .12);
        border-radius: 10px;
        font-size: 12px;
    }

    body.page-home .ride-fest-actions a:first-child {
        border-left: 0;
    }

    body.page-home :is(a, button, summary, input, select, textarea):focus-visible {
        outline: 3px solid #8a1116;
        outline-offset: 3px;
    }
}

@media (max-width: 600px) {
    body.page-home .category-browser__cards {
        gap: 14px;
    }

    body.page-home .category-product-card {
        width: 87%;
        flex-basis: 87%;
        min-height: 390px;
        padding: 12px;
        border-radius: 12px;
    }

    body.page-home .category-product-card__media {
        height: 170px;
    }

    body.page-home .category-product-card__name {
        margin: 14px 0;
        font-size: 18px;
    }

    body.page-home .category-product-card__actions {
        gap: 6px;
    }

    body.page-home .category-product-card__know-more,
    body.page-home .category-product-card__test-ride {
        min-height: 44px;
        padding: 7px 5px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    body.page-home .page-footer__top .uk-grid {
        row-gap: 24px;
    }

    body.page-home .page-footer__top .uk-grid > * {
        width: 100%;
        padding-left: 0;
    }

    body.page-home .page-footer__top .uk-grid > div:first-child {
        text-align: center;
    }

    body.page-home .page-footer__top .uk-grid > div:first-child .logo {
        display: flex;
        justify-content: center;
    }

    body.page-home .page-footer__top .uk-grid > div:first-child .footer-about p {
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    body.page-home .dealer-info-bar-simple__showroom {
        font-size: 12px;
    }

    body.page-home .dealer-info-bar-simple__inner {
        padding-inline: 12px;
    }

    body.page-home .dealer-info-bar-simple__link {
        gap: 4px;
        font-size: 11px;
    }

    body.page-home .site-header__logo img {
        width: clamp(120px, 40vw, 150px);
    }

    body.page-home .category-browser__arrow svg {
        width: 19px;
        height: 19px;
    }

    body.page-home .customer-reviews__summary {
        gap: 6px;
        padding-inline: 10px;
    }

    body.page-home .customer-reviews__summary-copy {
        white-space: normal;
        text-align: center;
    }

    body.page-home .ride-fest-actions {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .ride-fest__backdrops img {
        animation: none;
    }

    body.page-home .category-browser__viewport,
    body.page-home .customer-reviews__viewport {
        scroll-behavior: auto;
    }
}

body.page-home {
    --home-section-space: clamp(40px, 6vw, 80px);
}

body.page-home .category-browser,
body.page-home .section-about,
body.page-home .ride-process,
body.page-home .showrooms,
body.page-home .section-brands,
body.page-home .customer-reviews,
body.page-home .home-faq,
body.page-home .expert-help {
    padding-top: var(--home-section-space) !important;
    padding-bottom: var(--home-section-space) !important;
}

body.page-home .section-about > .uk-section-large {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    body.page-home .customer-reviews {
        padding-bottom: calc(var(--home-section-space) + 100px) !important;
    }
}
