:root {
    --bg-main: #faf8f6;
    --card-bg: #ffffff;
    --text-main: #2b2b2b;
    --text-muted: #6b6b6b;
    --accent: #7a3e3e;
    --border: #e5e0dc;
    --radius: 14px;
}

/* Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

/* Layout */

.onboarding-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

/* Header */

.onboarding-header {
    width: 100%;
    max-width: 760px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.logo span {
    color: var(--accent);
}

.progress {
    font-size: 14px;
    color: var(--text-muted);
}

/* Card */

.onboarding-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 760px;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.onboarding-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Form */

.question {
    margin-bottom: 35px;
}

.question label {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
}

.options label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.options input {
    margin-right: 10px;
}

select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 15px;
}

/* Actions */

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

button {
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
}

/* Note */

.note {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Steps */

.step {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Tablet & Mobile ≤ 768px
   ========================= */

@media (max-width: 768px) {
    .onboarding-wrapper {
        padding: 20px 16px;
    }

    .onboarding-header {
        margin-bottom: 24px;
    }

    .onboarding-card {
        padding: 32px 24px;
    }

    .onboarding-card h1 {
        font-size: 26px;
    }

    .subtitle {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .question {
        margin-bottom: 28px;
    }

    .question label {
        font-size: 15px;
        margin-bottom: 12px;
    }

    select {
        font-size: 16px; /* предотвращает zoom на iOS */
        padding: 14px;
    }

    button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* =========================
   Small Mobile ≤ 480px
   ========================= */

@media (max-width: 480px) {
    .onboarding-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
    }

    .progress {
        font-size: 13px;
    }

    .onboarding-card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .onboarding-card h1 {
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
        gap: 14px;
    }

    .form-actions button {
        width: 100%;
    }

    .options label {
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .options input {
        transform: scale(1.2);
        margin-right: 12px;
    }

    .note {
        font-size: 12px;
        margin-top: 24px;
    }
}
