* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #81d4fa;
}

h1, h2, h3, h4 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4fc3f7;
    display: inline-block;
    padding-bottom: .5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #4fc3f7;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    padding: .5rem 0;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4fc3f7;
    transition: width 0.3s;
}

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

.nav a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

.hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(224, 64, 251, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-20px, -20px); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7, #e040fb, #4fc3f7);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4fc3f7, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: #b0bec5;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    padding: .8rem 2rem;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 195, 247, .4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4fc3f7;
    color: #4fc3f7;
}

.btn-outline:hover {
    background: #4fc3f7;
    color: #fff;
    box-shadow: 0 8px 30px rgba(79, 195, 247, .4);
}

.section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 0.8s ease-out forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }

.about, .services, .advantages, .faq-section {
    background: #1a1a2e;
}

.card {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
    background: rgba(22, 33, 62, 0.95);
    border-color: rgba(79, 195, 247, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    transition: transform 0.3s;
}

.stat:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #4fc3f7;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.stat-label {
    color: #b0bec5;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8), rgba(26, 26, 46, 0.8));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #4fc3f7;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 32px rgba(79, 195, 247, 0.2);
}

.testimonial p {
    font-style: italic;
    color: #cfd8dc;
}

.testimonial .author {
    font-weight: 700;
    color: #4fc3f7;
    margin-top: 1rem;
}

.faq-item {
    border-bottom: 1px solid #2a2a3e;
    padding: 1rem 0;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(79, 195, 247, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #4fc3f7;
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s, opacity 0.3s;
    color: #b0bec5;
    padding: 0;
    opacity: 0;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1rem 0;
    opacity: 1;
}

.footer {
    background: #0a0a14;
    padding: 3rem 0;
    text-align: center;
    color: #78909c;
    font-size: .9rem;
}

.footer a {
    color: #4fc3f7;
}

.footer .legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    list-style: none;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.5);
}

.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(42, 42, 62, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(79, 195, 247, 0.2);
    padding: .6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    z-index: 999;
    font-size: .9rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.dark-mode-toggle:hover {
    background: rgba(42, 42, 62, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 2px solid #4fc3f7;
    }

    .nav.open {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

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

    .menu-toggle {
        display: block;
    }

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

    .stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .dark-mode-toggle {
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: .8rem;
        padding: .5rem .8rem;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0f0f1a;
        color: #e0e0e0;
    }

    .card {
        background: rgba(22, 33, 62, 0.8);
    }
}

body.dark {
    background: #f5f5f5;
    color: #333;
}

body.dark .header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

body.dark .hero {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

body.dark .hero h1 {
    -webkit-text-fill-color: #1565c0;
}

body.dark .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #333;
    border-color: rgba(21, 101, 192, 0.1);
}

body.dark .card:hover {
    background: rgba(255, 255, 255, 1);
}

body.dark .about,
body.dark .services,
body.dark .advantages,
body.dark .faq-section {
    background: #fafafa;
}

body.dark h1,
body.dark h2,
body.dark h3 {
    color: #1565c0;
}

body.dark .faq-question {
    color: #333;
}

body.dark .testimonial {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark .footer {
    background: #e0e0e0;
}

body.dark .logo {
    color: #1565c0;
    text-shadow: 0 0 20px rgba(21, 101, 192, 0.2);
}

body.dark .btn {
    background: linear-gradient(135deg, #1565c0, #1976d2);
}

body.dark .btn-outline {
    border-color: #1565c0;
    color: #1565c0;
}

body.dark .btn-outline:hover {
    background: #1565c0;
    color: #fff;
}

body.dark .stat-number {
    color: #1565c0;
    text-shadow: 0 0 20px rgba(21, 101, 192, 0.3);
}

body.dark .testimonial .author {
    color: #1565c0;
}

body.dark .back-to-top {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

body.dark .dark-mode-toggle {
    background: rgba(200, 200, 200, 0.9);
    color: #333;
    border-color: rgba(21, 101, 192, 0.2);
}

body.dark .dark-mode-toggle:hover {
    background: rgba(200, 200, 200, 1);
}

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