/* ---------- База ---------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
    overflow-x: hidden;
}

/* ---------- Шапка ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 10;
}

.brand,
.number {
    font-size: 2rem;
    letter-spacing: 0.08em;
    line-height: 1;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.8s ease;
}

/* Пока страница закрыта — шапка невидима */
body:not(.is-open) .brand,
body:not(.is-open) .number {
    opacity: 0;
}

/* ---------- Центральный экран ---------- */
.stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    user-select: none;
}

/* ---------- Поле номера ---------- */
.number-form {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.number-label {
    opacity: 0.85;
}

.number-input {
    width: 5.5ch;
    padding: 0.15em 0.3em;
    background: transparent;
    border: none;
    color: #fff;
    font: inherit;
    letter-spacing: 0.2em;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.number-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.number-input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.error {
    margin: 0;
    font-size: 1rem;
    color: #ff6b6b;
    letter-spacing: 0.05em;
}

/* ---------- Контент: фото + подпись ---------- */
.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 5rem 1.5rem 3rem; /* верхний отступ под шапку */
}

.photo {
    margin: 0;
    opacity: 0;
    transform: translateY(40px);
    animation: rise 2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.photo img {
    display: block;
    max-width: min(90vw, 700px);
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    filter: contrast(1.05); /* без grayscale — фото цветное */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.caption {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    animation: rise 2s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

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


/* ============================================================
   Заглушка для больших экранов / горизонтальной ориентации
   Сайт предназначен только для просмотра на телефоне
   в вертикальном (portrait) режиме.
   ============================================================ */

.mobile-only-notice {
    display: none;
}

/* Показываем заглушку и скрываем сайт на больших экранах */
@media (min-width: 768px), (orientation: landscape) and (max-height: 500px) {

    /* Скрываем всё, что относится к сайту */
    body > *:not(.mobile-only-notice) {
        display: none !important;
    }

    /* Показываем заглушку */
    .mobile-only-notice {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    }

    .mobile-only-notice__inner {
        max-width: 32rem;
    }

    .mobile-only-notice__title {
        margin: 0 0 1rem;
        font-size: 1.75rem;
        letter-spacing: 0.08em;
        text-transform: lowercase;
        font-weight: 400;
    }

    .mobile-only-notice__text {
        margin: 0;
        font-size: 1rem;
        line-height: 1.6;
        letter-spacing: 0.03em;
        color: rgba(255, 255, 255, 0.75);
    }

    .mobile-only-notice__hint {
        margin: 1.5rem 0 0;
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4);
    }
}