/* Отключение зума в мобильной версии */
html, body {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Дополнительная защита от зума */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение текста только в определенных элементах */
p, h1, h2, h3, h4, h5, h6, span, div {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Отключаем двойное нажатие для зума */
* {
    touch-action: manipulation;
}

/* Мобильные стили */
@media (max-width: 991.98px) {
    /* Навигация */
    .navbar {
        padding: 1rem;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(25px);
    }

    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.99);
        backdrop-filter: blur(30px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .navbar-collapse {
        background: transparent;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        padding: 1.5rem;
        border: none;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: none;
        box-shadow: none;
        border-radius: 0 0 20px 20px;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        gap: 0.75rem;
        background: rgba(15, 23, 42, 0.95);
        border-radius: 16px;
        padding: 1rem;
        border: none;
        backdrop-filter: blur(20px);
    }

    .navbar-nav::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 0%, 
            rgba(59, 130, 246, 0.05) 0%, 
            transparent 70%);
        border-radius: inherit;
        pointer-events: none;
    }

    /* Улучшенная видимость для бургер-меню */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(30px);
        border: none;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .navbar-nav {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(59, 130, 246, 0.2);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Улучшенные стили для элементов меню */
    .nav-button,
    .nav-button-primary {
        background: rgba(30, 41, 59, 0.8);
        border: none;
        backdrop-filter: blur(10px);
    }

    .nav-button:hover {
        background: rgba(30, 41, 59, 0.9);
    }

    .nav-button.active {
        background: rgba(59, 130, 246, 0.25);
    }

    /* Дополнительные улучшения для читаемости */
    .nav-button span,
    .nav-button-primary span {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .nav-button:hover span,
    .nav-button-primary:hover span {
        color: rgba(255, 255, 255, 1);
    }

    .nav-button.active span {
        color: rgba(255, 255, 255, 1);
        font-weight: 700;
    }

    /* Улучшенные иконки для лучшей видимости */
    .nav-icon {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .nav-button:hover .nav-icon {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
    }

    .nav-button.active .nav-icon {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    }

    /* Дополнительные стили для улучшения видимости */
    .navbar-collapse::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.02) 0%, 
            rgba(139, 92, 246, 0.02) 50%, 
            rgba(16, 185, 129, 0.02) 100%);
        pointer-events: none;
        border-radius: inherit;
    }

    /* Улучшенные стили для primary кнопки в мобильном меню */
    .nav-button-primary {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.9), 
            rgba(139, 92, 246, 0.9));
        border: none;
        box-shadow: 
            0 6px 20px rgba(59, 130, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .nav-button-primary:hover {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 1), 
            rgba(139, 92, 246, 1));
        box-shadow: 
            0 8px 25px rgba(59, 130, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    /* Улучшенные стили для активного состояния */
    .nav-button.active {
        background: rgba(59, 130, 246, 0.3);
        box-shadow: 
            0 4px 15px rgba(59, 130, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    /* Дополнительные эффекты для лучшей видимости */
    .navbar-nav .nav-item {
        position: relative;
    }

    .navbar-nav .nav-item::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(59, 130, 246, 0.05), 
            transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: inherit;
    }

    .navbar-nav .nav-item:hover::before {
        opacity: 1;
    }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-item:nth-child(5) { transition-delay: 0.5s; }

    .nav-button,
    .nav-button-primary {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 1.5rem;
        min-height: 56px;
        border-radius: 18px;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .nav-button {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
    }

    .nav-button:hover {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.35);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    }

    .nav-button-primary {
        margin: 0.75rem 0;
        background: linear-gradient(135deg, #3b82f6, #60a5fa, #8b5cf6);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }

    .nav-button-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    }

    /* Улучшенный логотип для мобильных */
    .brand-container {
        gap: 0.75rem;
    }

    .navbar-brand {
        padding: 0.625rem 0.875rem;
        border-radius: 14px;
        background: rgba(59, 130, 246, 0.08);
        border-color: rgba(59, 130, 246, 0.15);
    }

    .navbar-brand:hover {
        transform: translateY(-1px) scale(1.01);
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
    }

    .navbar-brand i {
        font-size: 1.5rem;
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    }

    .brand-text {
        font-size: 1.5rem;
        font-weight: 800;
    }

    /* Улучшенные иконки в навигации */
    .nav-icon {
        font-size: 1.2rem;
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    }

    .nav-button:hover .nav-icon {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
        transform: scale(1.15);
    }

    .nav-button.active .nav-icon {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
    }

    /* Бургер меню */
    .navbar-toggler {
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: rgba(30, 41, 59, 0.8);
        border-radius: 12px;
        position: relative;
        border: 1px solid rgba(124, 92, 255, 0.2);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .navbar-toggler::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .navbar-toggler:hover::before {
        opacity: 0.1;
    }

    .burger-icon {
        width: 24px;
        height: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        z-index: 1;
    }

    .burger-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .navbar-toggler.active .burger-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #ef4444;
    }

    .navbar-toggler.active .burger-icon span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .navbar-toggler.active .burger-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #ef4444;
    }

    /* Добавляем стили для ховера */
    .navbar-toggler:hover .burger-icon span {
        background-color: #7C5CFF;
    }

    /* Hero секция */
    .hero-section {
        padding: 8rem 0 4rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        justify-content: center;
        padding: 0 1rem;
    }

    /* Секции */
    .section-header {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Карточки тарифов */
    .pricing-section {
        padding: 6rem 0;
    }
    
    .pricing-section .row {
        margin: 0;
        padding: 0 1rem;
    }

    .pricing-section .col-md-4 {
        padding: 0.75rem;
        width: 100%;
    }

    .pricing-card {
        margin: 0;
        height: auto;
        position: relative;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
        backdrop-filter: blur(15px);
        border: 1px solid rgba(59, 130, 246, 0.2);
        padding: 2rem 1.5rem;
        z-index: 2;
    }

    .pricing-card.featured {
        transform: none;
        margin: 1rem 0;
        border-color: rgba(59, 130, 246, 0.5);
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.2) 0%, 
            rgba(139, 92, 246, 0.2) 50%, 
            rgba(16, 185, 129, 0.2) 100%);
        z-index: 3;
    }

    .pricing-header {
        margin-bottom: 1.5rem;
    }

    .pricing-icon {
        margin-bottom: 1rem;
    }

    .price {
        margin: 1.5rem 0;
    }

    .pricing-features {
        margin-bottom: 1.5rem;
    }

    .pricing-features li {
        margin-bottom: 0.75rem;
    }

    .pricing-card .btn {
        width: 100%;
        padding: 1rem;
        margin-top: 1rem;
    }

    /* Другие карточки */
    .feature-card,
    .support-card {
        margin-bottom: 1.5rem;
        height: auto;
    }

    /* Модальные окна */
    .modal-container {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    /* Уведомления */
    .notification {
        left: 1rem;
        right: 1rem;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Дополнительные стили для маленьких экранов */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-section {
        padding: 4rem 0;
    }

    .feature-icon,
    .pricing-icon,
    .support-icon {
        width: 50px;
        height: 50px;
    }

    /* Центрирование кнопки Telegram */
    .auth-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 1rem 0 1.5rem;
    }

    .auth-button iframe {
        margin: 0 auto;
    }

    .auth-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-links,
    .footer-contacts {
        text-align: center;
    }

    .footer-links a,
    .footer-contacts li {
        justify-content: center;
    }
}

/* Стили для состояния открытого меню */
body.menu-open {
    overflow: hidden;
}

/* Анимации для мобильного меню */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse.show .nav-item {
    animation: menuFadeIn 0.3s ease forwards;
}

/* Стили для страницы политики конфиденциальности */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .privacy-section h2 {
        font-size: 1.25rem !important;
    }
    
    .privacy-section h3 {
        font-size: 1.1rem !important;
    }
    
    .privacy-section p,
    .privacy-section li {
        font-size: 0.95rem;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .last-updated {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Мобильные стили для Cookies */
@media (max-width: 768px) {
    .cookie-modal-content {
        padding: 1.5rem 1rem;
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cookie-header h3 {
        font-size: 1.25rem;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cookie-type {
        padding: 0.75rem;
    }
    
    .cookie-type span {
        font-size: 0.85rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-accept-btn,
    .cookie-decline-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-modal-content {
        padding: 1rem 0.75rem;
    }
    
    .cookie-header h3 {
        font-size: 1.1rem;
    }
    
    .cookie-body p {
        font-size: 0.9rem;
    }
    
    .cookie-type {
        padding: 0.5rem;
    }
    
    .cookie-type span {
        font-size: 0.8rem;
    }
}

/* Мобильные стили для тарифов */
@media (max-width: 768px) {
    .pricing-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .pricing-card.featured {
        transform: none;
        overflow: visible;
    }
    
    .pricing-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .pricing-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .pricing-icon i {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .period {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.4rem;
    }
    
    .popular-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        top: -12px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }
    
    .pricing-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }
    
    .pricing-icon i {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.25rem;
    }
    
    .pricing-features li {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .period {
        font-size: 1rem;
        padding: 0.3rem 0.7rem;
        margin-top: 0.3rem;
    }
    
    .popular-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        top: -10px;
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 8rem 0;
    }
    
    .features-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .features-section .section-header p {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 2rem;
    }
    
    .feature-icon i {
        font-size: 2.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-card p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-list li {
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .feature-list li i {
        width: 26px;
        height: 26px;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 6rem 0;
    }
    
    .features-section .section-header h2 {
        font-size: 2rem;
    }
    
    .features-section .section-header p {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.75rem;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    
    .feature-list li {
        padding: 0.75rem 0.875rem;
        margin-bottom: 0.875rem;
        font-size: 0.95rem;
    }
    
    .feature-list li i {
        width: 24px;
        height: 24px;
        padding: 0.4rem;
        font-size: 1rem;
    }
}

/* Мобильные стили для секции "О нас" */
@media (max-width: 768px) {
    .about-section {
        padding: 8rem 0;
    }
    
    .about-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .about-section .section-header p {
        font-size: 1.2rem;
    }
    
    .about-description {
        font-size: 1.1rem;
        padding-left: 1.5rem;
    }
    
    .about-description::before {
        width: 3px;
    }
    
    .about-mission {
        font-size: 1rem;
    }
    
    .about-feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .about-feature-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .about-feature-icon i {
        font-size: 1.25rem;
    }
    
    .about-feature-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .about-feature-content p {
        font-size: 0.95rem;
    }
    

    
    .about-animation {
        height: 400px;
        margin-top: 2rem;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
    }
    
    .floating-icon i {
        font-size: 1.5rem;
    }
    
    .center-circle {
        width: 100px;
        height: 100px;
    }
    
    .center-circle i {
        font-size: 2.5rem;
    }
    
    .pulse-ring:nth-child(1) {
        width: 150px;
        height: 150px;
    }
    
    .pulse-ring:nth-child(2) {
        width: 220px;
        height: 220px;
    }
    
    .pulse-ring:nth-child(3) {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 6rem 0;
    }
    
    .about-section .section-header h2 {
        font-size: 2rem;
    }
    
    .about-section .section-header p {
        font-size: 1.1rem;
    }
    
    .about-description {
        font-size: 1rem;
        padding-left: 1.25rem;
    }
    
    .about-description::before {
        width: 2px;
    }
    
    .about-mission {
        font-size: 0.95rem;
    }
    
    .about-feature-item {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .about-feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .about-feature-icon i {
        font-size: 1.1rem;
    }
    
    .about-feature-content h4 {
        font-size: 1rem;
    }
    
    .about-feature-content p {
        font-size: 0.9rem;
    }
    

    
    .about-animation {
        height: 300px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon i {
        font-size: 1.25rem;
    }
    
    .center-circle {
        width: 80px;
        height: 80px;
    }
    
    .center-circle i {
        font-size: 2rem;
    }
    
    .pulse-ring:nth-child(1) {
        width: 120px;
        height: 120px;
    }
    
    .pulse-ring:nth-child(2) {
        width: 180px;
        height: 180px;
    }
    
    .pulse-ring:nth-child(3) {
        width: 240px;
        height: 240px;
    }
}
