/* ──────────────── Сброс и база ──────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

/* ──────────────── Фон ──────────────── */
.bg-image {
    position: fixed;
    inset: 0;
    background: url('bg.jpg') center / cover no-repeat;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* ──────────────── Контейнер ──────────────── */
.content {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 4vh, 40px) clamp(16px, 4vw, 32px);
    text-align: center;
}

/* ──────────────── Заголовок ──────────────── */
.top {
    margin-top: clamp(24px, 6vh, 80px);
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.headline {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: clamp(80px, 18vw, 240px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ──────────────── Форма ──────────────── */
.preorder {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: clamp(18px, 2.4vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
    margin-bottom: clamp(8px, 2vh, 24px);
}

.preorder__label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: left;
    opacity: 0.9;
}

.preorder__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.preorder__input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.preorder__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.preorder__input:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.preorder__input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preorder__btn {
    padding: 14px 22px;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.preorder__btn:hover:not(:disabled) {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.18);
}

.preorder__btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.12);
}

.preorder__btn:disabled {
    background: #4ade80;
    color: #ffffff;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ──────────────── Анимации ──────────────── */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──────────────── Адаптив ──────────────── */
@media (max-width: 540px) {
    .preorder__row {
        flex-direction: column;
    }

    .preorder__btn {
        width: 100%;
        padding: 15px;
    }

    .top {
        margin-top: clamp(8px, 3vh, 32px);
    }
}

/* Очень низкие экраны — экономим место */
@media (max-height: 620px) {
    .headline {
        font-size: clamp(64px, 14vw, 140px);
    }

    .top {
        margin-top: 8px;
    }

    .preorder {
        padding: 14px 16px;
        border-radius: 18px;
    }

    .preorder__label {
        margin-bottom: 8px;
        font-size: 13px;
    }
}

/* Уважаем пользовательские настройки */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}