/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 40px;
}

/* ===== ШАПКА ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9eef2;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.logo span {
    background: #1e293b;
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-left: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1e293b;
}

.social-header {
    display: flex;
    gap: 16px;
}

.social-header a {
    color: #94a3b8;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.social-header a:hover {
    color: #1e293b;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}

.highlight {
    background: #1e293b;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #1e293b;
    color: white;
}

.btn-primary:hover {
    background: #0f172a;
}

.btn-outline {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #1e293b;
}

.badges-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    background: #f8fafc;
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid #e9eef2;
}

.badge-item i {
    color: #1e293b;
}

/* ===== ГРАДИЕНТНАЯ КАРТИНКА ===== */
.hero-image {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #e9eef2;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.hero-icon-gradient {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #4158D0, #C850C0, #FFB347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 20px 30px -10px rgba(65, 88, 208, 0.4);
    animation: softPulse 3s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 30px -10px rgba(65, 88, 208, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 30px 40px -10px rgba(200, 80, 192, 0.5); }
}

.hero-icon-gradient i {
    font-size: 4rem;
    color: white;
}

.hero-image-text {
    font-size: 1rem;
    color: #64748b;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== УСЛУГИ ===== */
.services {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #0f172a;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e9eef2;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: #4158D0;
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(65, 88, 208, 0.15);
}

.gradient-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px -5px rgba(65, 88, 208, 0.3);
}

.gradient-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.service-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 8px 0 12px;
    color: #1e293b;
}

.service-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}

.service-desc {
    color: #475569;
    margin-bottom: 16px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-link {
    color: #4158D0;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border-top: 1px solid #e9eef2;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 12px;
    color: #C850C0;
}

/* ===== БЕСПЛАТНЫЙ РАЗБОР ===== */
.free-analysis {
    background: linear-gradient(135deg, #4158D0, #C850C0);
    color: white;
    padding: 60px;
    border-radius: 28px;
    margin-bottom: 60px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.analysis-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.analysis-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.analysis-content .btn-primary {
    background: white;
    color: #4158D0;
}

.analysis-content .btn-primary:hover {
    background: #f1f5f9;
}

.benefits-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s;
}

.benefit-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.12);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.benefit-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== ОБО МНЕ ===== */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e9eef2;
}

.about-image i {
    font-size: 5rem;
    color: #4158D0;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.about-content p {
    color: #475569;
    margin-bottom: 24px;
    font-size: 1rem;
}

.about-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.about-badge {
    background: #f8fafc;
    padding: 8px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: 1px solid #e9eef2;
}

.about-badge i {
    color: #4158D0;
}

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.contact-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e9eef2;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: #4158D0;
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.contact-card a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: #4158D0;
}

/* ===== ПОДВАЛ ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid #e9eef2;
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4158D0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #94a3b8;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: #4158D0;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ===== */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-button a {
    background: linear-gradient(135deg, #4158D0, #C850C0);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(65, 88, 208, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.floating-button a:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(65, 88, 208, 0.6);
}

/* ===== СТИЛИ ДЛЯ ОПРОСНИКА ===== */
.quiz-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-header h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.quiz-header p {
    color: #64748b;
    font-size: 1rem;
}

.quiz-progress {
    width: 100%;
    height: 8px;
    background: #e9eef2;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    width: 33%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question {
    display: block;
}

.question.hidden {
    display: none;
}

.question h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0f172a;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.option-btn {
    background: #f8fafc;
    border: 1px solid #e9eef2;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.option-btn:hover {
    background: #ffffff;
    border-color: #4158D0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(65, 88, 208, 0.3);
}

.option-btn.selected {
    background: linear-gradient(135deg, #4158D0, #C850C0);
    border-color: transparent;
    color: white;
}

.option-btn.selected i {
    color: white;
}

.option-btn i {
    width: 24px;
    color: #94a3b8;
    font-size: 1.2rem;
}

.quiz-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.quiz-nav button {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next {
    background: #1e293b;
    color: white;
}

.btn-next:hover {
    background: #0f172a;
}

.btn-prev {
    background: #f1f5f9;
    color: #475569;
}

.btn-prev:hover {
    background: #e2e8f0;
}

.contact-form {
    margin-top: 30px;
}

.contact-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0f172a;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e9eef2;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4158D0;
    box-shadow: 0 0 0 3px rgba(65, 88, 208, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(65, 88, 208, 0.4);
}

.quiz-result {
    text-align: center;
    padding: 30px 20px;
}

.quiz-result.hidden {
    display: none;
}

.quiz-result i {
    font-size: 4rem;
    color: #48bb78;
    margin-bottom: 20px;
}

.quiz-result h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.result-diagnosis {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    border-left: 4px solid #4158D0;
}

.result-diagnosis p {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-diagnosis strong {
    color: #4158D0;
    font-size: 1.1rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s;
    border: 1px solid #e9eef2;
}

.contact-option:hover {
    border-color: #4158D0;
    transform: translateX(5px);
}

.contact-option i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-option span {
    font-weight: 600;
    flex: 1;
}

.contact-option small {
    color: #64748b;
    font-size: 0.85rem;
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    margin: 10px 0;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(65, 88, 208, 0.4);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
}

.close-modal:hover {
    color: #4158D0;
}

/* ===== АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .hero-grid, .analysis-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 20px;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .free-analysis {
        padding: 40px 20px;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .benefit-number {
        font-size: 1.8rem;
    }
    
    .hero-icon-gradient {
        width: 120px;
        height: 120px;
    }
    
    .hero-icon-gradient i {
        font-size: 3rem;
    }
    
    .gradient-icon {
        width: 50px;
        height: 50px;
    }
    
    .gradient-icon i {
        font-size: 1.5rem;
    }
    
    .floating-button {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-button a {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-badges {
        flex-direction: column;
    }
    
    .badge-item, .about-badge {
        width: 100%;
        justify-content: center;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .floating-button {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .floating-button a {
        justify-content: center;
    }
}
