/* ============================================
   ШАПКА
   ============================================ */

.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.logo span {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone {
    font-weight: 600;
    font-size: 17px;
    color: var(--secondary);
    white-space: nowrap;
}

.phone:hover {
    color: var(--primary);
}

.messengers {
    display: flex;
    gap: 8px;
}

.messengers a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.messengers a:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   ГЕРОЙ
   ============================================ */

.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--secondary);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================
   ПОЛОСА ДОВЕРИЯ
   ============================================ */

.trust-bar {
    background: var(--secondary);
    color: white;
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.trust-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   ПРОБЛЕМА И РЕШЕНИЕ
   ============================================ */

.problem {
    background: var(--bg-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.problem-pain h2,
.problem-solution h2 {
    margin-bottom: 24px;
}

.pain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pain-list li {
    padding-left: 32px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.pain-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.problem-solution p {
    margin-bottom: 16px;
}

/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    color: white;
}

.benefit-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО УСПЕХА
   ============================================ */

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.success-modal h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.success-modal p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    .nav {
        gap: 20px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .trust-grid {
        gap: 30px;
    }
    
    .problem-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .header-contacts {
        display: none;
    }
    
    .success-modal {
        padding: 32px 24px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 12px 16px;
    }
    
    .logo strong {
        font-size: 20px;
    }
    
    .logo span {
        font-size: 11px;
    }
    
    .hero-text h1 {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-number {
        font-size: 2.25rem;
    }
    
    .pain-list li {
        font-size: 0.95rem;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
    }
    
    .success-modal h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .card {
        animation: fadeInUp 0.6s ease;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}