:root {
    --r-bg: #050505;
    --r-bg-2: #0d0d0f;
    --r-card: rgba(255, 255, 255, .065);
    --r-card-2: rgba(255, 255, 255, .105);
    --r-border: rgba(255, 255, 255, .16);
    --r-border-2: rgba(255, 255, 255, .28);
    --r-text: #f8fafc;
    --r-muted: #a1a1aa;
    --r-soft: #d4d4d8;
    --r-silver: #e5e7eb;
    --r-black: #020202;
    --r-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    --r-radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.royal-body {
    margin: 0;
    min-height: 100vh;
    color: var(--r-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .11), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .08), transparent 30%),
        linear-gradient(135deg, #020202 0%, #101011 45%, #050505 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.royal-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    pointer-events: none;
    z-index: -1;
}

.royal-page {
    width: min(1220px, calc(100% - 26px));
    margin: 0 auto;
    padding: 18px 0 34px;
}

.royal-topbar {
    position: sticky;
    top: 12px;
    z-index: 50;
    min-height: 72px;
    padding: 8px 18px;
    border: 1px solid var(--r-border-2);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)),
        rgba(0, 0, 0, .72);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .42);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.royal-mini-brand {
    width: 74px;
    height: 74px;
    margin: -20px 0 -20px 10px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #030303;
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .65);
    overflow: hidden;
    flex: 0 0 auto;
}

.royal-mini-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.royal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.royal-nav a {
    min-height: 54px;
    padding: 0 22px;
    color: #e5e7eb;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: .22s ease;
}

.royal-nav a:hover,
.royal-nav a.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .75);
}

.royal-reserve {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .20);
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.royal-hero {
    position: relative;
    margin-top: 22px;
    min-height: 410px;
    padding: 44px;
    border: 1px solid var(--r-border);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 40%, rgba(255, 255, 255, .12), transparent 26%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .14), transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)),
        #080809;
    box-shadow: var(--r-shadow);
    display: grid;
    grid-template-columns: .78fr 1fr .75fr;
    align-items: center;
    gap: 32px;
}

.royal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 45%, rgba(0, 0, 0, .2)),
        radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, .52));
    pointer-events: none;
}

.royal-hero::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}

.royal-hero-left,
.royal-hero-center,
.royal-hero-right {
    position: relative;
    z-index: 2;
}

.royal-logo-orbit {
    width: min(270px, 100%);
    aspect-ratio: 1;
    margin: auto;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .12), transparent 28%),
        #030303;
    border: 2px solid rgba(255, 255, 255, .58);
    display: grid;
    place-items: center;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, .035),
        0 0 60px rgba(255, 255, 255, .28),
        inset 0 0 38px rgba(255, 255, 255, .08);
}

.royal-logo-orbit img {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.royal-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    letter-spacing: .45em;
    text-transform: uppercase;
    color: #d4d4d8;
    font-size: .82rem;
}

.royal-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: .82;
    letter-spacing: -.055em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 1px 0 #999,
        0 12px 34px rgba(255, 255, 255, .18);
}

.royal-hero h1 small {
    display: block;
    margin-top: 18px;
    font-size: clamp(1.35rem, 3vw, 2.6rem);
    letter-spacing: -.025em;
}

.royal-hero p {
    max-width: 460px;
    margin: 20px 0 0;
    color: #d4d4d8;
    font-size: 1.02rem;
    line-height: 1.55;
}

.royal-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.royal-btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 950;
    transition: .22s ease;
}

.royal-btn:hover {
    transform: translateY(-2px);
}

.royal-btn-main {
    color: #050505;
    background: linear-gradient(180deg, #fff, #a1a1aa);
    box-shadow: 0 16px 36px rgba(255, 255, 255, .16);
}

.royal-btn-soft {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
}

.royal-chess {
    min-height: 270px;
    position: relative;
    filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .65));
}

.royal-piece {
    position: absolute;
    font-family: Georgia, "Times New Roman", serif;
    color: rgba(255, 255, 255, .88);
    text-shadow:
        0 2px 0 rgba(255, 255, 255, .18),
        0 22px 45px rgba(255, 255, 255, .16);
    user-select: none;
}

.royal-piece-big {
    right: 0;
    top: 0;
    font-size: 10rem;
}

.royal-piece-low {
    left: 20px;
    bottom: 18px;
    font-size: 8rem;
    transform: rotate(-62deg);
    opacity: .58;
}

.royal-piece-crown {
    right: 120px;
    bottom: 0;
    font-size: 4.8rem;
    opacity: .78;
}

.royal-search-panel {
    position: relative;
    z-index: 5;
    width: min(760px, calc(100% - 24px));
    margin: -27px auto 24px;
}

.royal-search {
    min-height: 58px;
    padding: 7px 8px 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
        rgba(0, 0, 0, .78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .46);
    display: flex;
    align-items: center;
    gap: 12px;
}

.royal-search span {
    color: #fff;
    font-size: 1.3rem;
}

.royal-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

.royal-search input::placeholder {
    color: rgba(255, 255, 255, .62);
}

.royal-search button {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #050505;
    background: linear-gradient(180deg, #fff, #a1a1aa);
    font-weight: 950;
}

.royal-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.royal-content {
    min-width: 0;
}

.royal-title-row {
    margin: 8px 0 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.royal-title-row span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
}

.royal-title-row h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
}

.royal-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.royal-card,
.royal-product,
.royal-services,
.royal-banner {
    border: 1px solid var(--r-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(0, 0, 0, .52);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
}

.royal-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.royal-card-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .72);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 1.35rem;
}

.royal-card-img {
    height: 160px;
    background: #050505;
    overflow: hidden;
}

.royal-card-img img,
.royal-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.9) contrast(1.04);
    transition: .35s ease;
}

.royal-card:hover img,
.royal-product:hover img {
    transform: scale(1.05);
}

.royal-card-body {
    padding: 16px;
}

.royal-card-body span,
.royal-section-head span {
    display: inline-flex;
    color: #d4d4d8;
    text-transform: uppercase;
    letter-spacing: .10em;
    font-size: .72rem;
    font-weight: 900;
}

.royal-card-body h3,
.royal-product-body h3 {
    margin: 8px 0 8px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.1;
}

.royal-card-body p,
.royal-desc,
.royal-code {
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.45;
}

.royal-card-foot,
.royal-product-bottom {
    margin-top: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.royal-card-foot strong,
.royal-product-bottom strong {
    color: #fff;
    font-size: 1.35rem;
}

.royal-card-foot a,
.royal-product-bottom a,
.royal-banner a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #050505;
    background: linear-gradient(180deg, #fff, #a1a1aa);
    font-weight: 950;
    white-space: nowrap;
}

.royal-banner {
    margin: 22px 0;
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.royal-banner strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.royal-banner p {
    margin: 0;
    color: #cbd5e1;
}

.royal-section-head {
    margin: 10px 0 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.royal-section-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
}

.royal-section-head p {
    margin: 0;
    color: #a1a1aa;
    font-weight: 800;
}

.royal-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.royal-product {
    overflow: hidden;
    border-radius: 24px;
}

.royal-product-img {
    height: 180px;
    background: #050505;
    overflow: hidden;
}

.royal-product-body {
    padding: 16px;
}

.royal-chip {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #e5e7eb;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.royal-code {
    margin: 0 0 8px;
    color: #a1a1aa;
}

.royal-desc {
    min-height: 42px;
    margin-bottom: 0;
}

.royal-product-bottom small {
    display: block;
    margin-top: 4px;
    font-weight: 900;
}

.royal-product-bottom small.ok {
    color: #86efac;
}

.royal-product-bottom small.wait {
    color: #fca5a5;
}

.royal-services {
    position: sticky;
    top: 104px;
    border-radius: 26px;
    padding: 18px;
}

.royal-services-head {
    text-align: center;
    margin-bottom: 14px;
}

.royal-services-head span {
    display: block;
    font-size: 1.8rem;
}

.royal-services-head h2 {
    margin: 4px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.royal-service {
    min-height: 88px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .045);
    transition: .22s ease;
}

.royal-service:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .28);
}

.royal-service b {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.royal-service small {
    color: #cbd5e1;
    line-height: 1.35;
}

.royal-empty {
    padding: 28px;
    border-radius: 22px;
    border: 1px dashed rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .04);
    color: #cbd5e1;
    text-align: center;
}

.royal-footer {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--r-border);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
        rgba(0, 0, 0, .54);
    display: grid;
    grid-template-columns: 1.1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.royal-footer div {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 12px;
    align-items: center;
}

.royal-footer img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    grid-row: span 2;
}

.royal-footer strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.royal-footer small {
    color: #a1a1aa;
}

.royal-footer nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.royal-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.royal-footer p {
    margin: 0;
    color: #a1a1aa;
    text-align: right;
}

@media (max-width: 1100px) {
    .royal-nav a {
        padding: 0 12px;
    }

    .royal-hero {
        grid-template-columns: .8fr 1.2fr;
    }

    .royal-hero-right {
        display: none;
    }

    .royal-main {
        grid-template-columns: 1fr;
    }

    .royal-services {
        position: static;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .royal-services-head {
        grid-column: 1 / -1;
    }

    .royal-service {
        margin-top: 0;
    }

    .royal-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .royal-topbar {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
    }

    .royal-mini-brand {
        margin: 0;
    }

    .royal-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .royal-nav a {
        min-height: 44px;
        white-space: nowrap;
    }

    .royal-hero {
        padding: 26px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .royal-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .royal-hero-actions {
        justify-content: center;
    }

    .royal-logo-orbit {
        width: 210px;
    }

    .royal-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .royal-banner,
    .royal-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .royal-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .royal-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .royal-footer div {
        width: fit-content;
        margin: 0 auto;
        text-align: left;
    }

    .royal-footer p {
        text-align: center;
    }
}

@media (max-width: 540px) {
    .royal-page {
        width: min(100% - 16px, 1220px);
        padding-top: 8px;
    }

    .royal-topbar,
    .royal-hero,
    .royal-services,
    .royal-footer {
        border-radius: 20px;
    }

    .royal-hero h1 {
        font-size: 3.1rem;
    }

    .royal-search-panel {
        margin-top: 14px;
        width: 100%;
    }

    .royal-search {
        border-radius: 20px;
        flex-wrap: wrap;
    }

    .royal-search input {
        flex-basis: calc(100% - 38px);
    }

    .royal-search button {
        width: 100%;
    }

    .royal-feature-grid,
    .royal-products-grid,
    .royal-services {
        grid-template-columns: 1fr;
    }

    .royal-card-img,
    .royal-product-img {
        height: 210px;
    }
}