:root {
    color-scheme: dark;
    --bg-dark: #090d15;
    --bg-deep: #121a2a;
    --bg-wine: #331620;
    --ink-main: #f3ecde;
    --ink-soft: #c7bda9;
    --line: rgba(216, 185, 130, 0.28);
    --card: rgba(10, 17, 27, 0.9);
    --card-2: rgba(22, 14, 22, 0.84);
    --gold: #d5a968;
    --red: #bc4f4b;
    --shadow: 0 24px 58px rgba(0, 4, 10, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink-main);
    background:
        radial-gradient(40% 30% at 84% 6%, rgba(188, 79, 75, 0.26), transparent 72%),
        radial-gradient(44% 34% at 4% 0%, rgba(213, 169, 104, 0.18), transparent 76%),
        linear-gradient(140deg, var(--bg-dark), var(--bg-deep) 52%, #1d2435);
    font-family: "Barlow", "Segoe UI", sans-serif;
    line-height: 1.55;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.014) 0,
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px,
            transparent 6px
        ),
        radial-gradient(circle at 50% 120%, rgba(213, 169, 104, 0.08), transparent 55%);
    mix-blend-mode: soft-light;
    z-index: -1;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.bg-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(64px);
    pointer-events: none;
    z-index: -1;
}

.bg-glow--left {
    width: 380px;
    height: 380px;
    left: -100px;
    top: -150px;
    background: rgba(217, 170, 100, 0.24);
}

.bg-glow--right {
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -220px;
    background: rgba(202, 87, 83, 0.2);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 21, 0.86);
    backdrop-filter: blur(12px);
}

.header-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.04em;
}

.brand__moon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8e7 0%, #dcbb7f 35%, #8e6334 100%);
    box-shadow: 0 0 14px rgba(220, 187, 127, 0.38);
}

.brand__name {
    font-weight: 700;
}

.lang-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ink-soft);
    transition: color 180ms ease, background 180ms ease;
}

.lang-picker__icon {
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.95;
}

.lang-picker select {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 4.4rem;
    cursor: pointer;
}

.lang-picker select option {
    background: #0f1726;
    color: var(--ink-main);
}

.lang-picker select:focus {
    outline: none;
}

.lang-picker:hover,
.lang-picker:focus-within {
    color: var(--ink-main);
    background: rgba(217, 170, 100, 0.16);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-main);
    border-radius: 0.6rem;
    padding: 0.35rem 0.75rem;
    font: inherit;
}

.site-nav {
    display: inline-flex;
    gap: 0.45rem;
}

.site-nav a {
    text-decoration: none;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink-main);
    background: rgba(217, 170, 100, 0.16);
}

.content {
    width: min(1080px, calc(100% - 2rem));
    margin: 1.45rem auto 3rem;
    display: grid;
    gap: 0.95rem;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1rem, 2.6vw, 2rem);
    background: linear-gradient(145deg, var(--card), var(--card-2));
    box-shadow: var(--shadow);
    position: relative;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(213, 169, 104, 0.11);
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.03em;
    font-family: "Cinzel", Georgia, serif;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.kicker {
    margin-bottom: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
}

.lead {
    color: var(--ink-soft);
    max-width: 66ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.cta-row--hero {
    justify-content: center;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 0.62rem;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.52rem 1rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(135deg, #c87052, #a63e3d);
    color: #fff7ef;
    box-shadow: 0 10px 22px rgba(173, 63, 63, 0.34);
}

.hero .btn--primary {
    min-height: 3.3rem;
    min-width: clamp(220px, 32vw, 360px);
    padding: 0.8rem 1.8rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(245, 225, 183, 0.45);
    box-shadow:
        0 16px 32px rgba(140, 33, 37, 0.44),
        inset 0 1px 0 rgba(255, 242, 216, 0.26);
}

.btn--outline {
    border-color: rgba(217, 170, 100, 0.6);
    background: rgba(217, 170, 100, 0.1);
    color: #f8e4c0;
}

.btn--ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-main);
}

.card-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    border: 1px solid var(--line);
    border-radius: 0.84rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.card h3 {
    margin-bottom: 0.45rem;
}

.card p {
    margin: 0;
    color: var(--ink-soft);
}

.info-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
}

.info-list li + li {
    margin-top: 0.4rem;
}

.carousel {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
}

.carousel__viewport {
    min-height: clamp(220px, 42vw, 480px);
    position: relative;
    border-radius: 0.7rem;
    overflow: hidden;
    background: rgba(5, 9, 15, 0.72);
}

.carousel__slide {
    display: none;
    margin: 0;
    position: absolute;
    inset: 0;
}

.carousel__slide.is-active {
    display: block;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel__btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(213, 169, 104, 0.5);
    background: rgba(9, 14, 23, 0.78);
    color: var(--ink-main);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.carousel__btn:hover {
    background: rgba(213, 169, 104, 0.2);
}

.carousel__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.carousel__dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(213, 169, 104, 0.55);
    background: transparent;
    cursor: pointer;
}

.carousel__dot.is-active {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(213, 169, 104, 0.46);
}

.carousel__empty {
    margin-top: 0.7rem;
    color: var(--ink-soft);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.status-card {
    border: 1px solid var(--line);
    border-radius: 0.84rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.status-card h3 {
    margin-bottom: 0.45rem;
}

.status-card p {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 700;
}

.status-card.status-online p {
    color: #86dfa3;
}

.status-card.status-offline p {
    color: #ff9898;
}

.status-card.status-degraded p {
    color: #f5ce7d;
}

.status-card.status-unknown p {
    color: var(--ink-soft);
}

.site-footer {
    padding: 1.4rem 1rem 2rem;
    text-align: center;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}

.footer-links {
    margin: 0.35rem 0 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-link {
    margin-top: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(480px, calc(100% - 2rem));
    z-index: 60;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: linear-gradient(145deg, rgba(10, 17, 27, 0.96), rgba(22, 14, 22, 0.94));
    box-shadow: var(--shadow);
    padding: 0.95rem;
}

.cookie-consent h3 {
    margin: 0 0 0.45rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.05rem;
}

.cookie-consent p {
    margin: 0 0 0.65rem;
    color: var(--ink-soft);
}

.cookie-consent__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-consent__panel {
    margin-top: 0.65rem;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
}

.cookie-consent__option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    color: var(--ink-soft);
}

.legal-page {
    min-height: calc(100vh - 3rem);
}

.legal-panel h1 {
    margin-bottom: 0.6rem;
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.03em;
}

.legal-panel h2 {
    margin: 1.15rem 0 0.45rem;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.08rem;
    color: var(--gold);
}

.legal-panel p {
    margin-bottom: 0.45rem;
}

.legal-actions {
    margin-top: 1.2rem;
}

.is-rtl {
    direction: rtl;
}

.is-rtl .header-controls {
    margin-left: 0;
    margin-right: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 520ms ease forwards;
}

.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .info-grid,
    .card-grid,
    .card-grid--two,
    .status-grid {
        grid-template-columns: 1fr;
    }

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

    .carousel__btn {
        display: none;
    }
}

@media (max-width: 860px) {
    .header-controls {
        margin-left: auto;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        gap: 0.35rem;
        border: 1px solid var(--line);
        border-radius: 0.8rem;
        background: rgba(8, 14, 24, 0.97);
        padding: 0.55rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .lang-picker {
        justify-content: center;
        min-height: 2.15rem;
        padding-inline: 0.58rem;
    }

    .lang-picker select {
        min-width: 3.8rem;
        font-size: 0.78rem;
    }

    .cookie-consent {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
