:root {
    --motorium-navy: #07152c;
    --motorium-blue: #0567e8;
    --motorium-cyan: #2ec5ff;
    --motorium-ink: #10213a;
    --motorium-muted: #63738a;
    --motorium-line: #dce5f0;
    --motorium-surface: #f4f7fb;
    --motorium-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--motorium-surface);
    color: var(--motorium-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.motorium-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid rgba(220, 229, 240, .85);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 30px rgba(7, 21, 44, .05);
    backdrop-filter: blur(16px);
}

.motorium-header .container {
    min-height: 54px;
}

.motorium-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--motorium-ink);
    text-decoration: none;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--motorium-blue), #034baa);
    box-shadow: 0 10px 24px rgba(5, 103, 232, .28);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.logo-copy {
    display: grid;
    line-height: 1;
}

.logo-copy strong {
    font-size: 20px;
    letter-spacing: -.03em;
}

.logo-copy small {
    margin-top: 5px;
    color: #728198;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.motorium-header .navigation {
    gap: 6px;
}

.motorium-header .navigation a {
    padding: 10px 13px;
    border-radius: 9px;
    color: #34445b;
    font-size: 14px;
    transition: color .2s ease, background .2s ease;
}

.motorium-header .navigation a:hover {
    color: var(--motorium-blue);
    background: #edf5ff;
}

.motorium-header .language-switcher {
    gap: 4px;
    padding-left: 16px;
}

.motorium-header .language-switcher a {
    min-width: 34px;
    padding: 7px 8px;
    text-align: center;
}

.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--motorium-ink);
    background: #edf5ff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.header-cart-icon {
    position: relative;
    width: 19px;
    height: 15px;
    border: 2px solid var(--motorium-blue);
    border-top: 0;
    border-radius: 3px 3px 5px 5px;
}

.header-cart-icon::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 2px;
    width: 10px;
    height: 7px;
    border: 2px solid var(--motorium-blue);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.header-cart strong {
    display: grid;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--motorium-blue);
    font-size: 11px;
}

.header-login {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 12px;
    align-items: center;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    color: var(--motorium-blue);
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 7px;
}

.header-account > a {
    display: grid;
    gap: 1px;
    max-width: 145px;
    color: var(--motorium-ink);
    text-decoration: none;
}

.header-account > a span {
    color: #718198;
    font-size: 10px;
}

.header-account > a strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account form {
    margin: 0;
}

.header-account button {
    padding: 7px;
    border: 0;
    color: #718198;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.site-footer {
    padding: 70px 0 24px;
    color: #b7c5d9;
    background: var(--motorium-navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 52px;
}

.motorium-logo-footer {
    color: #fff;
}

.footer-brand p,
.footer-grid > div > p {
    max-width: 360px;
    margin-top: 20px;
    color: #91a4bd;
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 5px 0 20px;
    color: #fff;
    font-size: 14px;
}

.footer-grid > div > a:not(.motorium-logo) {
    display: block;
    margin: 12px 0;
    color: #b7c5d9;
    text-decoration: none;
}

.footer-grid > div > a:hover {
    color: var(--motorium-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #71849e;
    font-size: 13px;
}

@media (max-width: 900px) {
    .motorium-header .container,
    .motorium-header .header-actions {
        flex-direction: column;
    }

    .motorium-header .header-actions {
        gap: 10px;
    }

    .motorium-header .language-switcher {
        padding-left: 0;
        border-left: 0;
    }

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

@media (max-width: 620px) {
    .motorium-header {
        position: static;
    }

    .motorium-header .navigation {
        justify-content: center;
        gap: 2px;
    }

    .motorium-header .navigation a {
        padding: 8px;
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Motorium Front v3 — compact premium shell */
.motorium-header {
    padding: 8px 0;
}

.motorium-header .container {
    min-height: 50px;
}

.logo-mark-image {
    overflow: hidden;
    border: 1px solid #d9e5f2;
    background: #07152c;
}

.logo-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.motorium-header .header-actions {
    gap: 10px;
}

.motorium-header .navigation {
    gap: 2px;
}

.motorium-header .navigation a {
    padding: 9px 10px;
}

.motorium-header a:focus-visible,
.motorium-header button:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgba(46, 197, 255, .45);
    outline-offset: 3px;
}

.footer-company {
    display: block;
    color: #fff;
    font-size: 14px;
}

.footer-address {
    margin: 10px 0 8px !important;
    font-size: 14px;
}

.footer-phone {
    color: #5ed6ff !important;
    font-size: 16px;
    font-weight: 900;
}

.footer-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.footer-grid > div > .footer-social-buttons .footer-social-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-grid > div > .footer-social-buttons a.footer-social-button:hover {
    border-color: rgba(94, 214, 255, .48);
    color: #fff;
    background: rgba(5, 103, 232, .34);
    transform: translateY(-1px);
}

.footer-social-button > span:first-child {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    color: #07152c;
    background: #5ed6ff;
    font-size: 13px;
    font-weight: 950;
}

.footer-social-button-disabled {
    cursor: not-allowed;
    opacity: .52;
}

@media (max-width: 980px) {
    .motorium-header .container {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .motorium-header .header-actions {
        display: flex;
        flex: 1 1 540px;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .motorium-header .navigation {
        order: 4;
        width: 100%;
        justify-content: flex-end;
    }

    .motorium-header .language-switcher {
        order: 1;
        padding-left: 0;
        border-left: 0;
    }

    .header-login,
    .header-account {
        order: 2;
    }

    .header-cart {
        order: 3;
    }
}

@media (max-width: 680px) {
    .motorium-header .container {
        width: 94%;
    }

    .motorium-header .header-actions {
        flex-basis: 100%;
        justify-content: space-between;
    }

    .motorium-header .navigation {
        justify-content: flex-start;
        overflow-x: auto;
        padding-top: 4px;
        scrollbar-width: none;
    }

    .motorium-header .navigation::-webkit-scrollbar {
        display: none;
    }

    .motorium-header .navigation a {
        flex: 0 0 auto;
    }

    .logo-copy small {
        display: none;
    }

    .header-account > a {
        max-width: 118px;
    }

    .site-footer {
        padding-top: 52px;
    }
}

/* Motorium Footer v3 — balanced three-part layout */
.site-footer {
    padding: 50px 0 22px;
}

.footer-grid {
    grid-template-columns: minmax(250px, 1fr) minmax(360px, 1.25fr) minmax(320px, 1fr);
    gap: clamp(36px, 5vw, 74px);
    align-items: start;
}

.footer-brand p {
    max-width: 330px;
}

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
}

.footer-link-group > a {
    display: block;
    margin: 12px 0;
    color: #b7c5d9;
    text-decoration: none;
}

.footer-link-group > a:hover {
    color: var(--motorium-cyan);
}

.footer-contact-column {
    min-width: 0;
}

.footer-contact-column > a:not(.footer-phone) {
    overflow-wrap: anywhere;
}

.footer-social-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 350px;
}

.footer-grid > div > .footer-social-buttons .footer-social-button {
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 7px;
    white-space: nowrap;
}

.footer-bottom {
    margin-top: 40px;
}

@media (max-width: 1050px) {
    .footer-grid {
        grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.1fr) minmax(280px, 1fr);
        gap: 28px;
    }

    .footer-navigation {
        gap: 24px;
    }

    .footer-grid > div > .footer-social-buttons .footer-social-button {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-brand p {
        max-width: 520px;
    }

    .footer-navigation {
        max-width: 560px;
    }

    .footer-social-buttons {
        max-width: 380px;
    }
}

@media (max-width: 520px) {
    .site-footer {
        padding-top: 42px;
    }

    .footer-navigation {
        gap: 18px;
    }

    .footer-social-buttons {
        grid-template-columns: 1fr;
        max-width: 220px;
    }

    .footer-grid > div > .footer-social-buttons .footer-social-button {
        justify-content: flex-start;
        padding-inline: 11px;
    }
}

/* Motorium Footer v4 — centered social actions below copyright */
.footer-social-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.footer-social-bottom .footer-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 112px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-social-bottom a.footer-social-button:hover {
    border-color: rgba(94, 214, 255, .48);
    color: #fff;
    background: rgba(5, 103, 232, .34);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .footer-social-bottom {
        align-items: stretch;
        flex-direction: column;
        max-width: 240px;
    }
}
