* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #fff;
    overflow: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.25));
    z-index: -1;
}

@media (max-width: 768px) and (orientation: portrait) {
    .bg { background-image: var(--bg-image-mobile); }
}

.content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 45vh 1rem 0;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.title-ru {
    font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}


.subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(50px, 8vw, 90px);
}

.value {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.label {
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    opacity: 0.85;
}

.title-en {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-style: italic;
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

.tg-link {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: clamp(0.9rem, 2.5vw, 2rem);
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: opacity 0.2s, border-color 0.2s;
}

.tg-link:hover {
    opacity: 0.85;
    border-color: #fff;
}