:root {
    --warning-yellow: #ffc928;
    --warning-yellow-deep: #f2b900;
    --warning-dark: #15181a;
    --warning-charcoal: #2a2d30;
    --page-bg: #f2f3f4;
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-main: #17191b;
    --text-muted: #60666b;
    --shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at 14% 18%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
        linear-gradient(135deg, #f9f9f9 0%, var(--page-bg) 58%, #e9ebed 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.maintenance-page {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
}

.hazard-tape {
    background-color: var(--warning-yellow);
    background-image: repeating-linear-gradient(
        -45deg,
        var(--warning-dark) 0,
        var(--warning-dark) 32px,
        transparent 32px,
        transparent 66px
    );
}

.hazard-top {
    height: 24px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.site-header {
    position: relative;
    z-index: 4;
    min-height: 92px;
    background: linear-gradient(90deg, #151719 0%, #202326 50%, #151719 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block,
.availability-block {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
}

.brand-block {
    font-size: clamp(0.92rem, 1.5vw, 1.15rem);
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.availability-block {
    justify-content: flex-end;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.header-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
}

.page-stage {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 116px);
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.page-stage::before,
.page-stage::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(52vw, 760px);
    height: 155px;
    opacity: 0.92;
    background: repeating-linear-gradient(
        -45deg,
        var(--warning-yellow) 0,
        var(--warning-yellow) 78px,
        rgba(255,255,255,0.95) 78px,
        rgba(255,255,255,0.95) 108px,
        #323538 108px,
        #323538 186px,
        rgba(255,255,255,0.95) 186px,
        rgba(255,255,255,0.95) 216px
    );
    filter: saturate(0.92);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.08);
}

.page-stage::before {
    right: -8%;
    top: 13%;
    transform: rotate(-42deg);
}

.page-stage::after {
    left: -10%;
    bottom: 3%;
    transform: rotate(-42deg);
}

.maintenance-card {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 5rem) clamp(2rem, 4.5vw, 3.75rem);
    text-align: center;
    border: 1px solid rgba(17, 20, 22, 0.06);
    border-radius: 1.65rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(3px);
}

.warning-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(8.5rem, 18vw, 12rem);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0.5rem 0.65rem rgba(0,0,0,0.12));
}

.micro-stripes {
    width: 11rem;
    max-width: 48%;
    height: 12px;
    margin: 0 auto 1.2rem;
    background: repeating-linear-gradient(
        -45deg,
        var(--warning-yellow) 0,
        var(--warning-yellow) 14px,
        transparent 14px,
        transparent 24px
    );
}

.maintenance-title {
    margin: 0;
    font-size: clamp(2.35rem, 6vw, 4.4rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.title-divider {
    width: min(14rem, 52%);
    height: 18px;
    margin: clamp(1.4rem, 3vw, 2rem) auto clamp(1.35rem, 3vw, 2rem);
    position: relative;
}

.title-divider::before,
.title-divider::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warning-yellow-deep));
}

.title-divider::before {
    left: 0;
}

.title-divider::after {
    right: 0;
    transform: scaleX(-1);
}

.title-divider span {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--warning-yellow);
}

.maintenance-text {
    max-width: 710px;
    margin: 0 auto;
    color: #282c30;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.6;
    text-wrap: balance;
}

.thanks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 2px solid rgba(242, 185, 0, 0.55);
    color: #3a3e42;
    font-size: clamp(0.98rem, 1.7vw, 1.15rem);
    font-weight: 500;
}

.tools-icon {
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
}

.visually-hidden-focusable:focus:not(:focus-visible) {
    outline: none;
}

@media (max-width: 767.98px) {
    .hazard-top {
        height: 18px;
    }

    .site-header,
    .brand-block,
    .availability-block {
        min-height: auto;
    }

    .site-header {
        padding: 1.15rem 0;
    }

    .availability-block {
        justify-content: flex-start;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .page-stage {
        min-height: calc(100vh - 138px);
        padding: 2.15rem 0;
    }

    .page-stage::before,
    .page-stage::after {
        width: 82vw;
        height: 112px;
        opacity: 0.66;
    }

    .page-stage::before {
        right: -34%;
        top: 12%;
    }

    .page-stage::after {
        left: -35%;
        bottom: 6%;
    }

    .maintenance-card {
        border-radius: 1.2rem;
    }

    .thanks {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
