/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
}

/* Экраны */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

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

/* ========== ЭКРАН 1: ГЛАВНЫЙ ЭКРАН ========== */
.landing-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section {
    background: white;
    border-radius: 25px;
    padding: 80px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-hero {
    padding: 20px 60px;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.test-counter {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
}

.counter-number {
    font-size: 1.4rem;
    font-weight: 700;
}

/* ========== ЭКРАН 2: ФОРМА РЕГИСТРАЦИИ ========== */
.form-box {
    background: white;
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-box h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.form-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========== ЭКРАН 3: ПРОХОЖДЕНИЕ ТЕСТА ========== */
.progress-bar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-text {
    position: relative;
    text-align: center;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.question-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease-in-out;
}

.question-container.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.question-text {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 600;
}

/* Анимации для вопросов */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

/* Анимация для опций только при смене вопроса */
.animate-options .option {
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
}

.animate-options .option:nth-child(1) { animation-delay: 0.1s; }
.animate-options .option:nth-child(2) { animation-delay: 0.15s; }
.animate-options .option:nth-child(3) { animation-delay: 0.2s; }
.animate-options .option:nth-child(4) { animation-delay: 0.25s; }
.animate-options .option:nth-child(5) { animation-delay: 0.3s; }
.animate-options .option:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.option-letter {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.option.selected .option-letter {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.option-text {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* ========== ЭКРАН 4: ОПЛАТА ========== */
.payment-box {
    background: white;
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.payment-box h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.payment-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.result-preview {
    margin: 30px 0;
    position: relative;
}

.result-preview-blurred {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 50px;
    filter: blur(0px);
    border: 3px dashed #667eea;
}

.preview-iq {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.preview-text {
    font-size: 1.3rem;
    color: #666;
}

.payment-info {
    margin-top: 40px;
}

.price-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.price-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.benefits-list {
    text-align: left;
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.benefits-list h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #333;
    font-size: 1.1rem;
}

.check-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.payment-methods {
    margin: 25px 0;
}

.payment-methods p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-payment {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-payment:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-payment:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.payment-info .form-group {
    margin: 30px 0;
    text-align: left;
}

.secure-payment {
    color: #666;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* ========== ЭКРАН 5: РЕЗУЛЬТАТЫ ========== */
.result-box {
    background: white;
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.result-box h2 {
    color: #333;
    margin-bottom: 35px;
    font-size: 2.5rem;
}

.iq-score {
    margin: 35px 0;
}

.iq-number {
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.result-description {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
}

.result-description p {
    font-size: 1.25rem;
    color: #333;
    line-height: 1.6;
}

.result-details {
    margin: 35px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 500;
    font-size: 1.05rem;
}

.detail-value {
    color: #333;
    font-weight: 700;
    font-size: 1.05rem;
}

.interpretation {
    margin: 35px 0;
    text-align: left;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.interpretation h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.interpretation p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.age-correction {
    color: #764ba2;
    font-weight: 600;
    font-style: italic;
}

.result-explanation {
    margin-top: 25px;
}

.result-explanation h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-explanation ul {
    list-style: none;
    padding: 0;
}

.result-explanation li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.result-explanation li:last-child {
    border-bottom: none;
}

/* ========== КНОПКИ ========== */
.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #d0d0d0;
}

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

.navigation-buttons {
    display: flex;
    gap: 15px;
}

.navigation-buttons .btn {
    flex: 1;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-hero {
        padding: 18px 50px;
        font-size: 1.1rem;
    }

    .form-box,
    .question-container,
    .payment-box,
    .result-box {
        padding: 40px 25px;
    }

    .question-text {
        font-size: 1.25rem;
    }

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

    .iq-number {
        font-size: 4.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-box,
    .question-container,
    .payment-box,
    .result-box {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 1.15rem;
    }

    .iq-number {
        font-size: 3.5rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .price {
        font-size: 2.5rem;
    }
}
