:root {
    --rmc-bg: #050a12;
    --rmc-panel: rgba(8, 19, 33, .82);
    --rmc-panel-strong: rgba(10, 28, 48, .94);
    --rmc-line: rgba(91, 190, 255, .28);
    --rmc-blue: #18a8ff;
    --rmc-blue-soft: #73d4ff;
    --rmc-text: #f2f8ff;
    --rmc-muted: #9fb3c8;
}

html {
    scroll-behavior: smooth;
}

body[data-page-mode="public-site"] {
    margin: 0;
    min-height: 100vh;
    padding-bottom: 78px;
    background:
        radial-gradient(circle at 22% 5%, rgba(24, 168, 255, .18), transparent 34rem),
        linear-gradient(180deg, #050a12 0%, #081321 48%, #03070d 100%);
    color: var(--rmc-text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.rmc-public {
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(5, 10, 18, .78), rgba(5, 10, 18, .9)),
        url("../img/dark-hex.webp");
    background-size: auto, 520px auto;
}

.rmc-nav {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto 48px;
    align-items: center;
    gap: 22px;
    padding: 8px clamp(18px, 4vw, 64px);
    background: rgba(2, 8, 15, .78);
    border-bottom: 1px solid rgba(115, 212, 255, .2);
    backdrop-filter: blur(18px);
}

.rmc-brand,
.rmc-nav nav a,
.rmc-login-link,
.rmc-hero-actions a {
    color: var(--rmc-text);
    text-decoration: none;
}

.rmc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.rmc-brand-mark {
    display: grid;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--rmc-line);
    background: linear-gradient(135deg, rgba(24, 168, 255, .26), rgba(115, 212, 255, .08));
    color: var(--rmc-blue-soft);
    font-size: 13px;
    border-radius: 8px;
}

.rmc-brand-mark.has-logo {
    width: 224px;
    height: 46px;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.rmc-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.rmc-brand-mark.has-logo img {
    width: 100%;
    height: 100%;
    max-height: 38px;
}

.rmc-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(115, 212, 255, .32);
    border-radius: 8px;
    background: rgba(12, 30, 52, .86);
}

.rmc-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--rmc-blue-soft);
}

.rmc-nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.rmc-nav nav a,
.rmc-nav-disabled {
    padding: 10px 12px;
    border-radius: 8px;
    color: #cdddec;
    font-weight: 700;
    font-size: 14px;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.rmc-nav-disabled {
    opacity: .45;
}

.rmc-nav nav a.is-active,
.rmc-nav nav a:hover {
    color: #fff;
    background: rgba(24, 168, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(115, 212, 255, .24);
}

.rmc-login-link {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(115, 212, 255, .32);
    border-radius: 8px;
    background: rgba(12, 30, 52, .86);
}

.rmc-login-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--rmc-blue-soft);
    stroke-width: 2;
}

.rmc-section {
    scroll-margin-top: 92px;
    padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 64px);
}

.rmc-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding-top: 120px;
}

.rmc-hero > img,
.rmc-hero-shade {
    position: absolute;
    inset: 0;
}

.rmc-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmc-hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 8, 15, .47), rgba(2, 8, 15, .25) 48%, rgba(2, 8, 15, .15)),
        linear-gradient(180deg, rgba(2, 8, 15, .09), rgba(2, 8, 15, .48));
}

.rmc-hero-content {
    position: relative;
    width: min(860px, 100%);
    padding-bottom: clamp(60px, 10vh, 120px);
}

.rmc-eyebrow {
    margin: 0 0 10px;
    color: var(--rmc-blue-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 900;
}

.rmc-hero h1,
.rmc-section-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 6vw, 88px);
    line-height: .96;
    letter-spacing: 0;
}

.rmc-hero p:not(.rmc-eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: #d7e6f5;
    font-size: clamp(18px, 2vw, 24px);
}

.rmc-hero-facts,
.rmc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.rmc-hero-facts span {
    padding: 10px 13px;
    border: 1px solid rgba(115, 212, 255, .22);
    border-radius: 8px;
    background: rgba(5, 15, 27, .72);
    color: #cbdced;
    font-weight: 700;
}

.rmc-hero-actions a {
    padding: 13px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #18a8ff, #98e7ff);
    color: #06101c;
    font-weight: 900;
}

.rmc-hero-actions a + a {
    background: rgba(8, 22, 38, .78);
    color: #e8f6ff;
    border: 1px solid rgba(115, 212, 255, .28);
}

.rmc-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.rmc-section-head h2 {
    font-size: clamp(30px, 4vw, 58px);
}

.rmc-section-head span,
.rmc-faq p {
    color: var(--rmc-muted);
    font-weight: 700;
}

.rmc-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rmc-service-grid article {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 128px;
    padding: 12px;
    background: rgba(4, 12, 21, .78);
    border: 1px solid rgba(115, 212, 255, .16);
    border-radius: 8px;
}

.rmc-service-grid img {
    width: 112px;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
}

.rmc-service-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 18px;
}

.rmc-service-grid p {
    margin: 0;
    color: #d5e3f1;
}

.rmc-filter-head {
    align-items: start;
}

.rmc-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 720px;
}

.rmc-category-filter button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(115, 212, 255, .24);
    border-radius: 8px;
    background: rgba(7, 19, 33, .8);
    color: #d9eafa;
    font-weight: 800;
}

.rmc-category-filter button.is-active {
    background: var(--rmc-blue);
    color: #06101c;
}

.rmc-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.rmc-empty {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid rgba(115, 212, 255, .2);
    border-radius: 8px;
    background: var(--rmc-panel);
    color: var(--rmc-muted);
}

.rmc-vehicle-card {
    min-width: 0;
}

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

.rmc-vehicle-card button {
    display: grid;
    width: 100%;
    min-height: 100%;
    padding: 0;
    text-align: left;
    border: 1px solid rgba(115, 212, 255, .16);
    border-radius: 8px;
    background: rgba(6, 17, 30, .86);
    color: var(--rmc-text);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rmc-vehicle-card button:hover {
    transform: translateY(-3px);
    border-color: rgba(115, 212, 255, .44);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.rmc-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.rmc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.rmc-vehicle-card button:hover img {
    transform: scale(1.04);
}

.rmc-available-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(24, 168, 255, .95);
    color: #05111c;
    font-size: 12px;
    font-weight: 900;
}

.rmc-card-body {
    display: grid;
    gap: 6px;
    padding: 13px;
}

.rmc-card-body strong {
    color: #fff;
    font-size: 18px;
}

.rmc-card-body small {
    color: var(--rmc-muted);
}

.rmc-card-body span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rmc-card-body em {
    color: var(--rmc-blue-soft);
    font-style: normal;
    font-weight: 800;
}

.rmc-card-body b {
    color: #fff;
}

.rmc-faq {
    min-height: 380px;
}

.rmc-faq-list {
    display: grid;
    gap: 14px;
}

.rmc-faq-item {
    border: 1px solid rgba(83, 190, 255, .24);
    border-radius: 10px;
    background: rgba(4, 14, 26, .72);
    overflow: hidden;
}

.rmc-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: #f7fbff;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.rmc-faq-item summary::-webkit-details-marker {
    display: none;
}

.rmc-faq-item summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(83, 190, 255, .14);
    color: var(--rmc-blue);
    font-size: 22px;
    line-height: 1;
}

.rmc-faq-item[open] summary::after {
    content: "−";
}

.rmc-faq-answer {
    padding: 0 20px 18px;
    color: var(--rmc-muted);
    line-height: 1.65;
}

.rmc-faq-answer p {
    margin: 0 0 12px;
}

.rmc-faq-answer p:last-child,
.rmc-faq-answer ul:last-child {
    margin-bottom: 0;
}

.rmc-faq-answer ul {
    margin: 0 0 12px 20px;
    padding: 0;
}

.rmc-faq-answer a {
    color: var(--rmc-blue-soft);
    font-weight: 800;
}

.rmc-footer {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px clamp(18px, 4vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .86);
    color: #f4f7fb;
    font-family: "Courier New", monospace;
    font-size: 14px;
    backdrop-filter: blur(16px);
}

.rmc-footer span:nth-child(2) {
    text-align: center;
}

.rmc-footer details {
    grid-column: 1 / -1;
    color: #cdd8e3;
}

.rmc-footer summary {
    cursor: pointer;
    color: var(--rmc-blue-soft);
}

.rmc-footer p {
    margin: 8px 0 0;
}

.rmc-modal[hidden] {
    display: none;
}

.rmc-modal {
    position: fixed;
    z-index: 80;
    inset: 0;
}

.rmc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(10px);
}

.rmc-modal-card {
    position: fixed;
    left: 50%;
    top: 50%;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, .9fr);
    width: min(1280px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    border: 1px solid rgba(115, 212, 255, .38);
    border-radius: 8px;
    background: var(--rmc-panel-strong);
    overflow: auto;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .5);
    transform: translate(-50%, -50%);
}

.rmc-modal-card > button {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(115, 212, 255, .28);
    border-radius: 8px;
    background: rgba(3, 10, 18, .74);
    color: #fff;
    font-size: 24px;
}

.rmc-modal-card > img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.rmc-modal-info {
    padding: 32px;
}

.rmc-modal-info h2 {
    margin: 0;
    color: #fff;
    font-size: 42px;
}

.rmc-modal-info > span {
    display: inline-block;
    margin-top: 10px;
    color: var(--rmc-blue-soft);
    font-size: 24px;
    font-weight: 900;
}

.rmc-modal-info dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 14px;
    margin: 24px 0;
}

.rmc-modal-info dt {
    color: var(--rmc-muted);
    font-weight: 800;
}

.rmc-modal-info dd {
    margin: 0;
    color: #fff;
    font-weight: 800;
}

.rmc-modal-info p:last-child {
    margin: 0;
    color: #d7e5f3;
    line-height: 1.55;
}

@media (max-width: 1420px) {
    .rmc-vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
    .rmc-nav { grid-template-columns: 1fr; }
    .rmc-login-link { display: none; }
    .rmc-vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rmc-service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .rmc-nav {
        position: sticky;
        grid-template-columns: auto 44px;
        padding: 8px 12px;
    }
    .rmc-brand-mark.has-logo {
        width: min(224px, 68vw);
        height: 42px;
    }
    .rmc-brand span:last-child {
        display: none;
    }
    .rmc-menu-toggle {
        display: grid;
        justify-self: end;
    }
    .rmc-nav nav {
        grid-column: 1 / -1;
        display: none;
        justify-content: stretch;
        overflow: visible;
        flex-wrap: nowrap;
        padding-top: 10px;
        border-top: 1px solid rgba(115, 212, 255, .16);
    }
    .rmc-nav.is-menu-open nav {
        display: grid;
        gap: 6px;
    }
    .rmc-nav nav a {
        padding: 12px;
        background: rgba(7, 19, 33, .66);
    }
    .rmc-section {
        scroll-margin-top: 126px;
    }
    .rmc-hero {
        min-height: 760px;
    }
    .rmc-section-head,
    .rmc-filter-head {
        display: grid;
        align-items: start;
    }
    .rmc-category-filter {
        justify-content: flex-start;
    }
    .rmc-vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rmc-modal-card {
        grid-template-columns: 1fr;
    }
    .rmc-modal-card > img {
        min-height: 260px;
        max-height: 42vh;
    }
    .rmc-footer {
        grid-template-columns: 1fr;
        position: static;
    }
    .rmc-footer span:nth-child(2) {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .rmc-vehicle-grid {
        grid-template-columns: 1fr;
    }
    .rmc-service-grid article {
        grid-template-columns: 86px 1fr;
    }
    .rmc-service-grid img {
        width: 86px;
        height: 86px;
    }
    .rmc-modal-info dl {
        grid-template-columns: 1fr;
    }
}
