* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    padding: 16px;
    color: #333;
}
#app {
    max-width: 480px;
    margin: 0 auto;
}
.page {
    display: none;
    flex-direction: column;
    gap: 16px;
}
.page.active {
    display: flex;
}
h1, h2 {
    text-align: center;
    margin-bottom: 8px;
}
.btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.btn.primary {
    background: #007aff;
    color: white;
}
.btn.primary:hover {
    background: #005bb5;
}
.btn.secondary {
    background: #c0c0c0;
    color: #333;
}
.btn.secondary:hover {
    background: #a0a0a0;
}
input, select, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}
label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    justify-content: flex-start;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
#creditResult, #rassResult, #lizResult, #questionResult {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f0f0f0;
    text-align: center;
}

/* Управление отступами внутри форм */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;  /* ← единый отступ между всеми элементами формы (поля, чекбокс, кнопки) */
}