/* ===== RESET & ROOT ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #DBEAFE;
    --dark: #0F1A2E;
    --dark-2: #1A2740;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
    --green: #10B981;
    --green-light: #D1FAE5;
    --orange-light: #FEF3C7;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow { max-width: 800px; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}
.logo-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
}

.nav { display: flex; gap: 28px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--white); }

.header-phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--dark) 0%, #162240 40%, #1a3155 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content { flex: 1; }
.hero-visual { flex: 1; position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero-title br { display: none; }

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat { text-align: center; }
.hero-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Hero visual — animated orb + waveform */
.hero-orb {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, rgba(59,130,246,0.05) 60%, transparent 70%);
    position: absolute;
    animation: orbPulse 4s ease-in-out infinite;
}

.hero-waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 120px;
    position: relative;
    z-index: 1;
}
.hero-waveform span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, #60A5FA 100%);
    animation: waveAnim 1.2s ease-in-out infinite;
}
.hero-waveform span:nth-child(odd) { animation-delay: 0s; }
.hero-waveform span:nth-child(even) { animation-delay: 0.6s; }
.hero-waveform span:nth-child(3n) { animation-delay: 0.3s; }

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}
@keyframes waveAnim {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.5);
}

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 48px; font-size: 17px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-bg { background: var(--gray-100); }

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 12px;
}
.section-title.light { color: var(--white); }
.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}
.section-subtitle.light { color: rgba(255,255,255,0.5); }

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card-text {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-card-features li {
    font-size: 13px;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
}
.service-card-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-item { text-align: center; padding: 24px; }
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.benefit-text {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 24px; }

.step {
    display: flex;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.step:hover { transform: translateX(8px); }

.step-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    flex-shrink: 0;
    width: 60px;
}

.step-content { flex: 1; }
.step-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.step-text { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===== CASE STUDY ===== */
.case-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.case-tag {
    display: inline-block;
    background: var(--green-light);
    color: #065F46;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.case-before, .case-after { padding: 24px; border-radius: 10px; }
.case-before { background: #FEF2F2; }
.case-after { background: var(--green-light); }
.case-before h4 { font-size: 14px; font-weight: 600; color: #DC2626; margin-bottom: 12px; }
.case-after h4 { font-size: 14px; font-weight: 600; color: #065F46; margin-bottom: 12px; }
.case-before ul, .case-after ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.case-before li, .case-after li { font-size: 14px; color: var(--gray-700); padding-left: 16px; position: relative; line-height: 1.5; }
.case-before li::before { content: '—'; position: absolute; left: 0; color: #FCA5A5; }
.case-after li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.case-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.case-stat { text-align: center; }
.case-stat-value { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.case-stat-label { font-size: 14px; color: var(--gray-500); }

/* ===== PRICING ===== */
.pricing-simple {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.pricing-simple-item {
    text-align: center;
    padding: 16px;
}

.pricing-simple-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pricing-simple-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.pricing-simple-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.pricing-simple-text {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.pricing-simple-divider {
    width: 1px;
    height: 100%;
    min-height: 160px;
    background: var(--gray-300);
}

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 20px auto 0;
}

/* ===== QUESTIONNAIRE ===== */
.q-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.q-section { margin-bottom: 32px; }
.q-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.q-section-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.q-section-title { font-size: 20px; font-weight: 700; color: var(--dark); }
.q-section-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; padding-left: 48px; }

.q-field { margin-bottom: 18px; padding-left: 48px; }
.q-label { display: block; font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; }
.q-hint { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; font-style: italic; }

.q-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}
.q-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.q-input-sm { margin-top: 8px; }
.q-textarea { resize: vertical; min-height: 60px; }

.q-options { display: flex; flex-wrap: wrap; gap: 8px; }

.q-opt {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    background: var(--white);
    color: var(--gray-700);
}
.q-opt:hover { border-color: var(--primary); background: var(--primary-light); }
.q-opt.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }

.q-note {
    background: var(--orange-light);
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 16px 20px;
    margin-left: 48px;
    margin-bottom: 16px;
}
.q-note-title { font-size: 14px; font-weight: 600; color: #92400E; margin-bottom: 4px; }
.q-note-text { font-size: 13px; color: #78350F; line-height: 1.5; }

.q-note-success { background: var(--green-light); border-color: #A7F3D0; }
.q-note-success .q-note-title { color: #065F46; }
.q-note-success .q-note-text { color: #064E3B; }

.q-submit { text-align: center; padding-top: 8px; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--white);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-icon { font-size: 64px; margin-bottom: 16px; color: var(--green); }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.modal-text { font-size: 15px; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    user-select: none;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-100); }

.faq-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}
.faq-arrow::before, .faq-arrow::after {
    content: '';
    position: absolute;
    background: var(--gray-500);
    border-radius: 1px;
    transition: transform 0.3s;
}
.faq-arrow::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq-arrow::after { width: 2px; height: 12px; top: 4px; left: 9px; }

.faq-item.open .faq-arrow::after { transform: rotate(90deg); }

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.contact-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.contact-value { font-size: 17px; font-weight: 600; color: var(--white); }
.contact-label { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ===== FOOTER ===== */
.footer {
    background: #0B1420;
    color: var(--white);
    padding-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-link:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .nav { display: none; }
    .header-phone { display: none; }
    .burger { display: flex; }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: rgba(15, 26, 46, 0.98);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-subtitle { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }

    .services-grid,
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; }

    .pricing-simple {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 0;
    }
    .pricing-simple-divider {
        width: 100%;
        height: 1px;
        min-height: 1px;
    }

    .case-grid { grid-template-columns: 1fr; }
    .case-stats { flex-direction: column; gap: 20px; align-items: center; }
    .case-card { padding: 24px; }

    .q-form { padding: 24px; }
    .q-field { padding-left: 0; }
    .q-section-desc { padding-left: 0; }
    .q-note { margin-left: 0; }

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

    .step { padding: 20px 24px; }
    .step-number { font-size: 24px; width: 40px; }

    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { gap: 20px; }
    .hero-stat-value { font-size: 22px; }
}
