:root {
    --moto-blue: #00368f;
    --moto-red: #de0039;
    --moto-red-dark: #b8002f;
    --moto-ink: #1c1c1c;
    --moto-muted: #55595f;
    --moto-line: #e3e5e8;
    --moto-surface: #f4f5f7;
    --moto-white: #fff;
    --moto-radius: 10px;
    --moto-space-xs: 0.5rem;
    --moto-space-s: 0.75rem;
    --moto-space-m: 1rem;
    --moto-space-l: 1.5rem;
    --moto-space-xl: 3rem;
    --moto-header-height: 64px;
    --moto-dock-height: 60px;
}

:root:has(.moto-microsite) {
    scroll-padding-top: calc(var(--moto-header-height) + 16px);
}

.moto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border: 2px solid transparent;
    border-radius: var(--moto-radius);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.moto-btn--primary {
    background: var(--moto-red);
    color: var(--moto-white);
}

.moto-btn--primary:hover {
    background: var(--moto-red-dark);
    color: var(--moto-white);
}

.moto-btn--ghost {
    background: var(--moto-white);
    border-color: var(--moto-line);
    color: var(--moto-ink);
}

.moto-btn--ghost:hover {
    border-color: var(--moto-blue);
    color: var(--moto-blue);
}

.moto-btn:focus-visible,
.moto-stock__filter:focus-visible,
.moto-header__link:focus-visible,
.moto-header__brand:focus-visible,
.moto-dock__item:focus-visible,
.moto-footer a:focus-visible {
    outline: 3px solid var(--moto-blue);
    outline-offset: 2px;
}

.moto-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--moto-white);
    border-bottom: 1px solid var(--moto-line);
}

.admin-bar .moto-header {
    top: 46px;
}

.moto-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--moto-space-m);
    max-width: 1200px;
    min-height: var(--moto-header-height);
    margin: 0 auto;
    padding: 0 var(--moto-space-m);
}

.moto-header__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--moto-ink);
    text-decoration: none;
}

.moto-header__logo {
    display: block;
    width: 120px;
    height: auto;
}

.moto-header__logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.moto-header__tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--moto-muted);
}

.moto-header__nav {
    display: none;
}

.moto-header__list {
    display: flex;
    align-items: center;
    gap: var(--moto-space-l);
    margin: 0;
    padding: 0;
    list-style: none;
}

.moto-header__list li {
    margin: 0;
}

.moto-header__link {
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--moto-ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.moto-header__link:hover {
    color: var(--moto-blue);
    border-bottom-color: var(--moto-blue);
}

.moto-header__link--back {
    color: var(--moto-muted);
    font-weight: 500;
}

.moto-header__calls {
    display: flex;
    gap: var(--moto-space-s);
}

.moto-header__call--secondary {
    display: none;
}

.moto-header__call {
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0.9rem;
}

.moto-header__call-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.moto-header__call-number {
    font-size: 0.95rem;
}

.moto-main {
    padding-bottom: var(--moto-dock-height);
}

.moto-hero {
    min-height: 460px;
}

.moto-hero h1 {
    margin-bottom: var(--moto-space-s);
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.moto-hero p {
    max-width: 52ch;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.moto-trust {
    background: var(--moto-surface);
    border-bottom: 1px solid var(--moto-line);
}

.moto-trust__list {
    display: grid;
    gap: var(--moto-space-s);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--moto-space-m);
    list-style: none;
}

.moto-trust__item {
    display: flex;
    align-items: center;
    gap: var(--moto-space-s);
    margin: 0;
    font-weight: 600;
    color: var(--moto-ink);
}

.moto-trust__item::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--moto-red);
}

.moto-stock {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--moto-space-xl) var(--moto-space-m);
}

.moto-stock__header {
    margin-bottom: var(--moto-space-l);
}

.moto-stock__title {
    margin: 0 0 var(--moto-space-xs);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--moto-ink);
}

.moto-stock__intro {
    margin: 0;
    max-width: 60ch;
    color: var(--moto-muted);
}

.moto-stock__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--moto-space-xs);
    margin-bottom: var(--moto-space-l);
}

.moto-stock__filter {
    min-height: 44px;
    margin: 0;
    padding: 0.4rem 1rem;
    border: 2px solid var(--moto-line);
    border-radius: 999px;
    background: var(--moto-white);
    color: var(--moto-ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    cursor: pointer;
}

.moto-stock__filter:hover {
    border-color: var(--moto-blue);
}

.moto-stock__filter.is-active {
    background: var(--moto-blue);
    border-color: var(--moto-blue);
    color: var(--moto-white);
}

.moto-stock__grid {
    display: grid;
    gap: var(--moto-space-l);
}

.moto-stock__empty {
    padding: var(--moto-space-l);
    border: 1px dashed var(--moto-line);
    border-radius: var(--moto-radius);
    text-align: center;
}

.moto-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--moto-line);
    border-radius: var(--moto-radius);
    background: var(--moto-white);
}

.moto-card[hidden] {
    display: none;
}

.moto-card__media {
    position: relative;
    background: var(--moto-surface);
}

.moto-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.moto-card__badge {
    position: absolute;
    top: var(--moto-space-s);
    left: var(--moto-space-s);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--moto-blue);
    color: var(--moto-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.moto-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--moto-space-s);
    padding: var(--moto-space-m);
}

.moto-card__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--moto-ink);
}

.moto-card__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--moto-muted);
}

.moto-card__specs {
    margin: 0;
    border-top: 1px solid var(--moto-line);
}

.moto-card__spec {
    display: flex;
    justify-content: space-between;
    gap: var(--moto-space-m);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--moto-surface);
    font-size: 0.875rem;
}

.moto-card__spec dt {
    color: var(--moto-muted);
}

.moto-card__spec dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: var(--moto-ink);
}

.moto-card__pricing {
    margin-top: auto;
}

.moto-card__pricing p {
    margin: 0;
}

.moto-card__pricing--ask {
    font-weight: 700;
    color: var(--moto-ink);
}

.moto-card__list-price {
    font-size: 0.9rem;
    color: var(--moto-muted);
}

.moto-card__offer-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--moto-space-xs);
}

.moto-card__offer-label {
    font-size: 0.85rem;
    color: var(--moto-muted);
}

.moto-card__offer-price strong {
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--moto-blue);
}

.moto-card__saving {
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--moto-red);
}

.moto-card__actions {
    display: grid;
    gap: var(--moto-space-xs);
}

.moto-card__calls {
    display: grid;
    gap: var(--moto-space-xs);
}

.moto-card__quick {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: var(--moto-space-xs);
}

.moto-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: var(--moto-dock-height);
    background: var(--moto-white);
    border-top: 1px solid var(--moto-line);
}

.moto-dock__item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--moto-ink);
    text-decoration: none;
}

.moto-dock__item--phone {
    font-size: 1rem;
}

.moto-dock__item--primary {
    background: var(--moto-red);
    color: var(--moto-white);
}

.moto-footer {
    padding: var(--moto-space-l) var(--moto-space-m) calc(var(--moto-dock-height) + var(--moto-space-l));
    border-top: 1px solid var(--moto-line);
    background: var(--moto-surface);
}

.moto-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.moto-footer__line {
    display: flex;
    flex-wrap: wrap;
    gap: var(--moto-space-s) var(--moto-space-l);
    margin: 0 0 var(--moto-space-m);
}

.moto-footer__link {
    color: var(--moto-ink);
    font-weight: 600;
}

.moto-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--moto-space-m);
    margin: 0;
}

.moto-footer__badge {
    width: auto;
    height: 40px;
}

.moto-offer {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--moto-space-xl) var(--moto-space-m);
}

@media (min-width: 600px) {
    .moto-trust__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .moto-stock__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 783px) {
    .admin-bar .moto-header {
        top: 32px;
    }
}

@media (min-width: 850px) {
    .moto-header__call--secondary {
        display: flex;
    }

    :root {
        --moto-header-height: 76px;
    }

    .moto-header__nav {
        display: block;
    }

    .moto-header__logo {
        width: 140px;
    }

    .moto-main {
        padding-bottom: 0;
    }

    .moto-dock {
        display: none;
    }

    .moto-footer {
        padding-bottom: var(--moto-space-l);
    }

    .moto-stock__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1100px) {
    .moto-stock__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .moto-btn {
        transition: none;
    }
}
