
* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(94, 158, 255, 0.14), transparent 32%), radial-gradient(circle at 80% 0%, rgba(255, 99, 146, 0.14), transparent 30%), #161b26;
    color: #f5f7fb;
}

.page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30vh 16px 48px;
    min-height: 100vh;
}

.page__grid {
    max-width: 760px;
}

.page__header {
    text-align: center;
    margin-bottom: 32px;
}

.page__header .badge {
    background: rgba(255, 255, 255, 0.08);
    color: #c7d2fe;
    letter-spacing: 0.1em;
}

.page__header h1 {
    margin: 12px 0;
    font-weight: 700;
}

.page__header .lead {
    margin: 0 auto;
    max-width: 520px;
    color: #c7ccd9;
}

.timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 36px;
}

.timer__item {
    position: relative;
    padding: 22px 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timer__item:hover,
.timer__item:focus-within {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.timer__value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.timer__label {
    display: block;
    color: #9aa4b5;
    font-size: 14px;
    margin-top: 4px;
}

.subscribe {
    display: grid;
    gap: 12px;
}

.subscribe__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.subscribe__input {
    height: 52px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
}

.subscribe__input:focus {
    border-color: #7aa2ff;
    box-shadow: 0 0 0 2px rgba(122, 162, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.subscribe__button {
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6f8cff, #8a7bff);
    border: none;
    font-weight: 600;
}

.subscribe__button:focus {
    box-shadow: 0 0 0 2px rgba(122, 162, 255, 0.25);
}

.success-message,
.error-message {
    min-height: 22px;
    color: #c7d2fe;
}

.error-message {
    color: #fda4af;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .page {
        padding: 20vh 16px 36px;
    }

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

    .subscribe__form {
        grid-template-columns: 1fr;
    }

    .subscribe__button {
        width: 100%;
    }
}
