:root {
    --bg: #08111a;
    --panel: rgba(10, 17, 26, 0.72);
    --panel-strong: rgba(7, 12, 19, 0.9);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f6f1e8;
    --muted: rgba(246, 241, 232, 0.72);
    --accent: #f0b35b;
    --accent-strong: #ffd28b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-xl: 32px;
    --radius-lg: 22px;
}

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

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

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 179, 91, 0.88) rgba(8, 17, 26, 0.92);
    scrollbar-gutter: stable;
}

body {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

img {
    display: block;
    max-width: 100%;
}

.landing-page {
    min-height: 100dvh;
}

.hero {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(14px, 2.2vw, 28px);
    overflow: hidden;
    isolation: isolate;
}

.hero__shell {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 7, 12, 0.35), rgba(3, 7, 12, 0.82)),
        radial-gradient(circle at top, rgba(240, 179, 91, 0.16), transparent 42%),
        url("../img/hero/hero_wiki.jpg") center center / cover no-repeat;
    transform: scale(1.04);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(20px, 3vw, 34px);
    text-align: center;
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.62), rgba(9, 14, 22, 0.82));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 30;
}

.hero__topbar-logo {
    width: min(100%, 220px);
    max-width: 58%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.lang-switcher {
    position: relative;
    z-index: 40;
    flex-shrink: 0;
}

.lang-switcher[open] .lang-switcher__button {
    border-color: rgba(240, 179, 91, 0.34);
    background: rgba(16, 25, 38, 0.94);
}

.lang-switcher[open] .lang-switcher__chevron {
    transform: rotate(225deg) translateY(1px);
}

.lang-switcher__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 96px;
    padding: 10px 14px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(10, 17, 26, 0.76);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.lang-switcher__button::-webkit-details-marker {
    display: none;
}

.lang-switcher__flag {
    width: 22px;
    height: 22px;
    object-fit: cover;
}

.lang-switcher__code {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text);
}

.lang-switcher__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(246, 241, 232, 0.8);
    border-bottom: 2px solid rgba(246, 241, 232, 0.8);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.22s ease;
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 8px;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.139);
    border-radius: 18px;
    background: rgb(7, 12, 19);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    z-index: 50;
    transform-origin: top right;
    animation: langMenuIn 0.2s ease forwards;
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible,
.lang-switcher__option.is-active {
    background: rgba(240, 179, 91, 0.12);
    color: var(--accent-strong);
}

.lang-switcher__option-code {
    min-width: 26px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.lang-switcher__option-name {
    font-size: 0.92rem;
}

.hero__eyebrow {
    margin: 0 0 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.hero__logo {
    width: min(100%, clamp(160px, 24vw, 280px));
    margin: 0 auto 14px;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.35));
}

.hero__text h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    line-height: 1;
}

.hero__text p {
    max-width: 640px;
    margin: 12px auto 0;
    font-size: clamp(0.94rem, 1.4vw, 1rem);
    line-height: 1.5;
    color: var(--muted);
}

.countdown-card {
    margin-top: 24px;
    padding: clamp(16px, 2vw, 24px);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.countdown-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    text-align: left;
}

.countdown-card__label {
    font-size: 0.92rem;
    color: var(--muted);
}

.countdown-card__date {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(240, 179, 91, 0.12);
    border: 1px solid rgba(240, 179, 91, 0.24);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 14px);
}

.countdown__item {
    padding: clamp(14px, 1.8vw, 22px) 12px;
    background: var(--panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.countdown__value {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 800;
    color: var(--text);
}

.countdown__unit {
    display: block;
    margin-top: 8px;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.countdown-card__status {
    margin: 14px 0 0;
    font-size: clamp(0.92rem, 1.2vw, 0.98rem);
    color: var(--accent-strong);
}

.site-disclaimer {
    margin-top: 16px;
    font-size: clamp(0.75rem, 0.95vw, 0.86rem);
    line-height: 1.45;
    color: rgba(246, 241, 232, 0.58);
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: rgba(8, 17, 26, 0.94);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 210, 139, 0.96), rgba(240, 179, 91, 0.82));
    border: 2px solid rgba(8, 17, 26, 0.94);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 221, 169, 0.98), rgba(240, 179, 91, 0.96));
}

@keyframes langMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 780px) {
    .hero__topbar {
        margin-bottom: 12px;
    }

    .countdown-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

@media (max-width: 460px) {
    .hero__content {
        border-radius: 24px;
    }

    .hero__topbar {
        gap: 12px;
    }

    .hero__topbar-logo {
        width: min(100%, 160px);
        max-width: 54%;
    }

    .lang-switcher__button {
        min-width: 88px;
        padding: 9px 12px;
    }

    .lang-switcher__menu {
        min-width: 180px;
    }

    .hero__text p {
        line-height: 1.45;
    }

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