/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    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, #1a1a1a 0%, #0a0a0a 100%);
}

/* Парящий хедер */
header {
    background: #1a1a1a;
    border-radius: 32px;
    padding: 16px 24px;
    margin: 2rem auto 0;
    max-width: 1200px;
    position: relative;
    z-index: 100;
    left: 0;
    right: 0;
}

.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 {
    max-width: 120px;
    height: 32px;
}

.menu {
    flex: 1;
    text-align: center;
}

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

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

.menu a:hover {
    color: #cccccc;
}

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

.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: #000000;
    border: 1.5px solid #ffffff;
    background: #ffffff;
}

.book-demo, .primary {
    background: #ffffff;
    color: #000000;
}

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

/* Увеличенная кнопка */
.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Всплывающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border-radius: 12px;
    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: #333333;
}

.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: #ffffff;
    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: #ffffff;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 999;
    padding: 80px 20px 20px;
    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: #ffffff;
    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: #000000;
    font-weight: 500;
}

/* Мобильные кнопки в меню */
.sign-in-mobile, .book-demo-mobile {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 24px;
    padding: 0.8rem 1rem;
    font-weight: 500;
    text-align: center;
    display: block;
    margin: 0.5rem 0;
}

/* Блок с 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;
    color: #ffffff;
}

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

/* Блок с заголовком h2 и статьей */
.text-section {
    padding: 4rem 0;
    text-align: center;
}

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

.text-section .text-content {
    max-width: 700px;
    margin: 0 auto;
}

.text-section p {
    color: #aaaaaa;
    margin-bottom: 1.5rem;
    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;
    color: #ffffff;
}

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

.image-content {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.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;
    color: #ffffff;
}

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

.floating-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease;
    border: 1px solid #333333;
}

.floating-card:hover {
    transform: translateY(-5px);
}

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

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

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

/* FAQ секция */
.faq {
    padding: 4rem 0;
}

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

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

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #333333;
}

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

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

.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;
    color: #ffffff;
}

.testimonials-list {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333333;
}

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

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

/* Всплывающее окно */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    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: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #333333;
}

.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: #ffffff;
    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: #333333;
}

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

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

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

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

/* Блок с мониторингом зеркал */
.mirrors-monitoring {
    padding: 4rem 0;
    text-align: center;
}

.mirrors-monitoring h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
}

.mirrors-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mirror-item {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mirror-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

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

.status-dot.offline {
    background-color: #F44336;
}

.mirror-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    word-break: break-all;
    transition: color 0.3s ease;
}

.mirror-item a:hover {
    color: #cccccc;
}

/* Футер */
.footer {
    padding: 2rem 0;
    text-align: center;
    background-color: #0c0c0c;
    border-top: 1px solid #333333;
}

.footer p {
    color: #aaaaaa;
    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-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 auto 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

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