/* Общие стили */
        :root {
            --black: #000000;
            --dark-gray: #111111;
            --gold: #d4af37;
            --white: #ffffff;
            --transition: all 0.3s ease;
        }
        
        body {
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif;
            background: #000;
            color: #fff;
            padding-top: 140px; /* Отступ для фиксированной шапки */
        }
        
        /* Стили навбара */
        .navbar-black {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
        }
        
        .top-nav {
            background-color: var(--black);
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .top-nav-contacts {
            display: flex;
            gap: 20px;
        }
        
        .contact-link {
            display: flex;
            align-items: center;
            color: var(--white);
            font-size: 14px;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .contact-link:hover {
            color: var(--gold);
        }
        
        .contact-icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
            margin-right: 8px;
        }
        
        /* Основной уровень навбара */
        .main-nav {
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 15px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--white);
            font-size: 20px;
            font-weight: 600;
            transition: var(--transition);
        }
        
        .logo:hover {
            color: var(--gold);
        }
        
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 25px;
        }
        
        .menu-link {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--white);
            font-size: 16px;
            font-weight: 500;
            padding: 10px 0;
            transition: var(--transition);
        }
        
        .menu-link:hover, .menu-link.active {
            color: var(--gold);
        }
        
        .phone-btn {
            display: none;
            align-items: center;
            color: var(--white);
            text-decoration: none;
            padding: 8px 12px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 4px;
            transition: var(--transition);
        }
        
        .phone-btn:hover {
            color: var(--gold);
            border-color: var(--gold);
        }
        
        .phone-icon {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }
        
        .menu-line {
            display: block;
            width: 24px;
            height: 2px;
            background-color: var(--white);
            margin: 4px 0;
            transition: var(--transition);
        }
        
        /* Адаптация для мобильных */
        @media (max-width: 992px) {
            body {
                padding-top: 80px; /* Меньший отступ для мобильной шапки */
            }
            
            .top-nav {
                display: none;
            }
            
            .nav-menu {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                background-color: var(--black);
                flex-direction: column;
                align-items: flex-start;
                padding: 20px;
                gap: 15px;
                transform: translateY(-150%);
                transition: var(--transition);
                z-index: 999;
                opacity: 0;
                visibility: hidden;
            }
            
            .nav-menu.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            .menu-link {
                width: 100%;
                padding: 10px 0;
            }
            
            .phone-btn.mobile-only {
                display: flex;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .mobile-menu-btn.active .menu-line:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }
            
            .mobile-menu-btn.active .menu-line:nth-child(2) {
                opacity: 0;
            }
            
            .mobile-menu-btn.active .menu-line:nth-child(3) {
                transform: rotate(-45deg) translate(5px, -5px);
            }
        }

        /* Стили контента */
        .content-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

/* Изолированные стили футера */
        .footer {
            --footer-primary: #6C4DFF;
            --footer-primary-hover: #5a3fe6;
            --footer-bg: #0a0a0a;
            --footer-text: rgba(255, 255, 255, 0.95);
            --footer-text-light: rgba(255, 255, 255, 0.7);
            --footer-border: rgba(255, 255, 255, 0.1);
            --footer-input-bg: rgba(255, 255, 255, 0.05);
            --footer-radius: 12px;
            --footer-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

            font-family: 'Manrope', system-ui, -apple-system, sans-serif;
            background: var(--footer-bg);
            color: var(--footer-text);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, var(--footer-primary) 0%, transparent 70%);
            opacity: 0.1;
            z-index: 1;
        }

        .footer__container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            position: relative;
            z-index: 2;
        }

        .footer__contacts {
            display: flex;
            flex-direction: column;
        }

        .footer__title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 24px;
            background: linear-gradient(90deg, #fff 0%, var(--footer-primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .footer__subtitle {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--footer-text-light);
            margin-bottom: 40px;
            max-width: 400px;
        }

        .footer__contact-item {
            margin-bottom: 28px;
            position: relative;
            padding-left: 40px;
        }

        .footer__contact-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            width: 24px;
            height: 24px;
            background-color: var(--footer-primary);
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
            mask-repeat: no-repeat;
            mask-position: center;
        }

        .footer__contact-item--location::before {
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
        }

        .footer__contact-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--footer-text);
        }

        .footer__contact-value {
            font-size: 1rem;
            color: var(--footer-text-light);
            transition: color 0.3s ease;
        }

        .footer__contact-link {
            color: inherit;
            text-decoration: none;
            display: inline-block;
        }

        .footer__contact-link:hover {
            color: var(--footer-primary);
        }

        .footer__form-wrapper {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--footer-border);
            border-radius: var(--footer-radius);
            padding: 48px;
            backdrop-filter: blur(10px);
            box-shadow: var(--footer-shadow);
        }

        .footer__form-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 32px;
            color: var(--footer-text);
        }

        .footer__form-group {
            margin-bottom: 24px;
        }

        .footer__form-label {
            display: block;
            font-size: 0.9rem;
            margin-bottom: 10px;
            color: var(--footer-text-light);
        }

        .footer__form-input {
            width: 100%;
            padding: 16px 20px;
            border-radius: 8px;
            border: 1px solid var(--footer-border);
            background: var(--footer-input-bg);
            color: var(--footer-text);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .footer__form-input:focus {
            outline: none;
            border-color: var(--footer-primary);
            box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.2);
        }

        .footer__phone-input {
            display: flex;
        }

        .footer__phone-prefix {
            padding: 16px 12px;
            background: var(--footer-input-bg);
            border: 1px solid var(--footer-border);
            border-right: none;
            border-radius: 8px 0 0 8px;
            color: var(--footer-text-light);
            font-size: 1rem;
            display: flex;
            align-items: center;
        }

        .footer__phone-number {
            border-radius: 0 8px 8px 0;
            flex: 1;
        }

        .footer__submit-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 18px 36px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-primary-hover) 100%);
            color: white;
            border: none;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
            box-shadow: 0 4px 15px rgba(108, 77, 255, 0.3);
        }

        .footer__submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 77, 255, 0.4);
        }

        .footer__submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .footer__privacy {
            font-size: 0.8rem;
            color: var(--footer-text-light);
            margin-top: 24px;
            line-height: 1.6;
        }

        .footer__privacy-link {
            color: var(--footer-text);
            text-decoration: underline;
            transition: color 0.3s ease;
        }

        .footer__privacy-link:hover {
            color: var(--footer-primary);
        }

        /* Сообщения формы */
        .footer__form-message {
            display: none;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: 500;
        }

        .footer__form-message--success {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            border: 1px solid rgba(46, 204, 113, 0.3);
        }

        .footer__form-message--error {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.3);
        }

        /* Спиннер */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Анимации */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .footer__contact-item,
        .footer__form-wrapper {
            animation: fadeIn 0.6s ease-out forwards;
        }

        .footer__contact-item:nth-child(1) {
            animation-delay: 0.1s;
        }

        .footer__contact-item:nth-child(2) {
            animation-delay: 0.2s;
        }

        .footer__contact-item:nth-child(3) {
            animation-delay: 0.3s;
        }

        .footer__form-wrapper {
            animation-delay: 0.4s;
        }

        /* Адаптивность */
        @media (max-width: 1024px) {
            .footer__container {
                gap: 40px;
                padding: 0 32px;
            }
            .footer__form-wrapper {
                padding: 40px;
            }
        }

        @media (max-width: 768px) {
            .footer {
                padding: 60px 0;
            }
            .footer__container {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            .footer__title {
                font-size: 1.8rem;
            }
            .footer__form-wrapper {
                padding: 36px;
            }
        }

        @media (max-width: 480px) {
            .footer {
                padding: 50px 0;
            }
            .footer__container {
                padding: 0 24px;
                gap: 40px;
            }
            .footer__title {
                font-size: 1.6rem;
                margin-bottom: 20px;
            }
            .footer__subtitle {
                font-size: 1rem;
                margin-bottom: 30px;
            }
            .footer__form-wrapper {
                padding: 30px 24px;
            }
            .footer__form-title {
                font-size: 1.3rem;
                margin-bottom: 24px;
            }
            .footer__form-input {
                padding: 14px 16px;
            }
        }

.back-to-top.left {
        left: 20px;
        right: auto;
        border-radius: 50%;
      }

      .back-to-top:hover {
        background-color: #0b5ed7;
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .back-to-top i {
        font-size: 1.5rem;
      }
