* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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


#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}


header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 32px;
    padding: 16px 24px;
    margin: 2rem auto 0;
    max-width: 1200px;
    position: relative;
    z-index: 100;
}

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

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
  width: 120px;
  height: 50px;
}
.menu {
    flex: 1;
    text-align: center;
}

.menu ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 2.5rem;
    padding: 0;
}

.menu a {
    color: #2D2D2D;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.menu a:hover {
    color: #1A1A1A;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.auth-container {
    position: relative;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    z-index: 20;
}

.sign-in {
    color: #2D2D2D;
    border: 1.5px solid #2D2D2D;
    background: white;
}

.book-demo, .primary {
    background: #2D2D2D;
    color: white;
}

.book-demo:hover, .primary:hover {
    background: #1A1A1A;
    transform: translateY(-2px);
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 0.5rem;
}

.auth-container:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f8f8f8;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.online {
    background-color: #4CAF50;
}

.idle {
    background-color: #FFC107;
}

.offline {
    background-color: #F44336;
}

.dropdown-item a {
    color: #2D2D2D;
    text-decoration: none;
    font-weight: 500;
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: #000;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 999;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    color: #2D2D2D;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav .btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    margin-top: 1rem;
    color: #fff;
}

/* Блок с h1 */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}


.text-section {
    padding: 4rem 0;
    text-align: center;
}

.text-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.text-section p {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    color: #555;
    font-size: 1.125rem;
    line-height: 1.7;
}


.text-image-section {
    padding: 4rem 0;
}

.text-image-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.text-content p {
    margin-bottom: 1.25rem;
    color: #555;
    font-size: 1.125rem;
    line-height: 1.7;
}

.image-content {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
}


.features {
    padding: 4rem 0;
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.floating-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

.feature-card p {
    color: #555;
    line-height: 1.7;
}

.features .centered {
    display: block;
    margin: 3rem auto 0;
    width: fit-content;
}


.faq {
    padding: 4rem 0;
}

.faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px -10px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    background: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

/* Отзывы */
.testimonials {
    padding: 4rem 0;
}

.testimonials h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.testimonials-container {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.testimonial-card {
    min-width: 350px;
    margin-right: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 500;
    color: #2D2D2D;
}


@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.popup-close:hover {
    background-color: #f0f0f0;
}

.popup-content {
    padding: 2rem;
    text-align: center;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.popup-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-content .btn {
    width: 100%;
    text-align: center;
}

.footer {
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}



@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: flex;
    }

    .header-left {
        gap: 1rem;
    }

    .menu,
    .auth-container,
    .book-demo {
        display: none;
    }

    .header-right {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }


    .mobile-menu {
        right: -100%;
    }

    .mobile-menu.active {
        right: 0;
        text-align: center;
    }


    .text-image-container {
        flex-direction: column;
    }

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

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

    .menu ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    header {
        padding: 1rem;
        border-radius: 24px;
        margin: 1rem 1rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .text-section,
    .features,
    .faq,
    .testimonials {
        padding: 3rem 0;
    }
}
