:root {
    --primary: #6366F1;
    --secondary: #8B5CF6;
    --light: #FFFFFF;
    --dark: #1E1B4B;
    --gray: #F9FAFB;
    --text: #4B5563;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    text-align: center;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

.btn:hover:before {
    left: 100%;
}

.cta-btn {
    background: white;
    color: var(--primary) !important;
}

.cta-btn:hover {
    background: var(--dark);
    color: white !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gradient);
    color: white !important;
}

.header-btn {
    color: white !important;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 18px;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Мобильное меню - полностью переделано */
.mobile-menu {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.3s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

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

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-out;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
    animation: float 5s ease-in-out infinite;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    filter: blur(50px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -150px;
    animation: pulse 8s ease-in-out infinite alternate;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite alternate-reverse;
}

/* Animation */
.animated-shield {
    width: 100%;
    max-width: 400px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(99, 102, 241, 0.3));
}

.server-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.dot-1 { top: 20%; left: 20%; animation-delay: 0.2s; }
.dot-2 { top: 30%; left: 60%; animation-delay: 0.5s; }
.dot-3 { top: 60%; left: 80%; animation-delay: 0.8s; }
.dot-4 { top: 70%; left: 30%; animation-delay: 1.1s; }
.dot-5 { top: 40%; left: 50%; animation-delay: 1.4s; }
.dot-6 { top: 80%; left: 70%; animation-delay: 1.7s; }

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, var(--primary), transparent);
    height: 2px;
    animation: grow 3s infinite;
}

.line-1 { top: 22%; left: 22%; width: 38%; transform: rotate(25deg); animation-delay: 0.3s; }
.line-2 { top: 32%; left: 62%; width: 18%; transform: rotate(-15deg); animation-delay: 0.6s; }
.line-3 { top: 62%; left: 82%; width: 30%; transform: rotate(-45deg); animation-delay: 0.9s; }
.line-4 { top: 72%; left: 32%; width: 25%; transform: rotate(15deg); animation-delay: 1.2s; }
.line-5 { top: 42%; left: 52%; width: 28%; transform: rotate(35deg); animation-delay: 1.5s; }

/* Features */
.features {
    background-color: var(--gray);
    position: relative;
}

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

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Pricing */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.pricing-card.featured:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.pricing-card.featured {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient) border-box;
    transform: scale(1.05);
    z-index: 1;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.price {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
    color: var(--dark);
}

.price-currency {
    font-size: 20px;
    font-weight: 500;
    vertical-align: super;
}

.price-period {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.pricing-features {
    margin: 25px 0;
    list-style: none;
}

.pricing-features li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    text-align: left;
}

.pricing-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Testimonials */
.testimonials {
    background-color: var(--gray);
    position: relative;
    padding: 80px 0 120px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
}

.testimonial-role {
    color: var(--text);
    font-size: 14px;
}

/* Стилизация навигации слайдера */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--primary);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gradient);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--gray);
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
    opacity: 1;
}

.faq-item.active .faq-question {
    background-color: var(--primary);
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

/* CTA */
.cta {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: white;
    color: var(--primary) !important;
}

.cta-btn:hover {
    background-color: var(--dark);
    color: white !important;
}

.cta-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-circle-1 {
    top: -150px;
    left: -150px;
}

.cta-circle-2 {
    bottom: -150px;
    right: -150px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes grow {
    0% { width: 0; opacity: 0; }
    50% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
        margin: 30px 0;
    }
}

/* Важная часть для исправления мобильного меню */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .testimonial {
        padding: 30px;
    }
    
    /* Скрываем десктопное меню и показываем мобильное */
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Показываем мобильное меню когда оно активно */
    .mobile-nav.active {
        display: block;
    }
    
    .swiper-button-next, 
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next:after, 
    .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .price {
        font-size: 40px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .swiper-button-next, 
    .swiper-button-prev {
        display: none;
    }
}