:root {
            --bg-dark: #050b14;
            --card-bg: #0d141f;
            --accent-blue: #00e5ff;
            --accent-green: #00ffcc;
            --accent-yellow: #ffea00;
            --accent-hover: #00b3cc;
            --text-gray: #8b949e;
            --border-color: #1f2937;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-dark);
            color: white;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            scroll-behavior: smooth;
        }

        /* Навигация */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 10%;
            background: rgba(5, 11, 20, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
        .logo span { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }

        .menu a {
            color: white;
            text-decoration: none;
            margin-left: 25px;
            font-size: 14px;
            font-weight: 500;
            transition: 0.3s;
        }

        .menu a:hover { color: var(--accent-green); text-shadow: 0 0 8px rgba(0, 255, 204, 0.5); }

        /* Кнопки навигации */
        .btn-login, .btn-register {
            padding: 8px 18px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: bold;
            text-decoration: none;
            transition: all 0.3s ease;
            margin-left: 15px;
            display: inline-block;
        }

        .btn-login {
            border: 1px solid var(--accent-blue);
            color: var(--accent-blue) !important;
            background: rgba(0, 229, 255, 0.05);
        }

        .btn-login:hover {
            background: var(--accent-blue);
            color: #000 !important;
            box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
        }

        .btn-register {
            background: var(--accent-green);
            color: #000 !important;
            border: 1px solid var(--accent-green);
        }

        .btn-register:hover {
            background: transparent;
            color: var(--accent-green) !important;
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
        }

        .lang-toggle {
            color: var(--text-gray) !important;
            font-weight: bold;
        }
        .lang-toggle:hover {
            color: white !important;
        }

        /* Hero Section */
        .hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 100px 10%;
            min-height: 60vh;
            position: relative;
            overflow: hidden;
        }

        /* Фоновый декоративный щит */
        .hero-bg-shield {
            position: absolute;
            right: 5%;
            top: 50%;
            transform: translateY(-50%);
            width: 600px;
            height: 600px;
            opacity: 0.03;
            pointer-events: none;
            z-index: 0;
        }

        .hero-content { 
            max-width: 620px; 
            text-align: left; 
            position: relative; 
            z-index: 2; 
        }

        h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 25px; text-shadow: 0 0 30px rgba(255,255,255,0.1); }
        h1 span { 
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: none;
        }

        .hero-content p { color: var(--text-gray); font-size: 1.15rem; margin-bottom: 35px; line-height: 1.6; }

        /* Главная кнопка */
        .btn-primary {
            background: var(--accent-green);
            color: #000;
            padding: 15px 35px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 800;
            font-size: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: inline-flex;
            border: 1px solid var(--accent-green);
            box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
            cursor: pointer;
        }

        .btn-primary:hover { 
            background: transparent; 
            color: var(--accent-green);
            box-shadow: 0 0 30px rgba(0, 255, 204, 0.5); 
            transform: translateY(-3px);
        }

        /* Кнопка Google (Новые стили) */
        .btn-google {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #ffffff;
            color: #000000 !important;
            text-decoration: none !important;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 14px;
            width: 100%;
            box-sizing: border-box;
            transition: all 0.3s ease;
            border: none;
            margin-top: 15px;
        }

        .btn-google:hover {
            background-color: #f1f1f1;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .btn-google img {
            width: 20px;
            height: 20px;
            margin-right: 12px;
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: flex-end;
            position: relative;
            z-index: 2;
        }

        .mockup {
            position: relative;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(0, 229, 255, 0.15);
            overflow: hidden;
            transition: transform 0.5s ease, box-shadow 0.5s ease;
        }

        .mockup:hover {
            transform: scale(1.03) rotate(-1deg);
            box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px rgba(0, 255, 204, 0.3);
        }

        .mockup img { max-width: 550px; display: block; height: auto; }

        /* Секция возможностей */
        .features { padding: 100px 10%; text-align: center; background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(13, 20, 31, 0.5) 100%); }
        .features h2 { font-size: 2.5rem; margin-bottom: 20px; }
        .features h2 span { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }

        .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; align-items: stretch; }

        .f-card {
            background: var(--card-bg);
            padding: 40px 30px;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            text-align: left;
        }

        /* Неоновые линии сверху карточек */
        .f-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left;
        }
        .f-card:nth-child(3n+1)::before { background: var(--accent-blue); }
        .f-card:nth-child(3n+2)::before { background: var(--accent-green); }
        .f-card:nth-child(3n+3)::before { background: var(--accent-yellow); }

        .f-card:hover { transform: translateY(-8px); }
        .f-card:hover::before { transform: scaleX(1); }
        
        .f-card:nth-child(3n+1):hover { box-shadow: 0 15px 30px rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.3); }
        .f-card:nth-child(3n+2):hover { box-shadow: 0 15px 30px rgba(0, 255, 204, 0.1); border-color: rgba(0, 255, 204, 0.3); }
        .f-card:nth-child(3n+3):hover { box-shadow: 0 15px 30px rgba(255, 234, 0, 0.1); border-color: rgba(255, 234, 0, 0.3); }

        .f-card .icon { font-size: 35px; margin-bottom: 20px; display: inline-block; padding: 15px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
        .f-card h3 { font-size: 1.3rem; margin-top: 0; margin-bottom: 15px; }
        .f-card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; margin: 0; }

        /* Pricing Section */
        .pricing { padding: 100px 10%; text-align: center; }
        .pricing h2 { font-size: 2.5rem; margin-bottom: 60px; }
        .pricing h2 span { color: var(--accent-yellow); text-shadow: 0 0 10px rgba(255, 234, 0, 0.4); }

        .pricing-grid { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }

        .p-card {
            background: var(--card-bg);
            padding: 40px 30px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            width: 280px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .p-card:nth-child(1):hover { border-color: var(--accent-blue); box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15); transform: translateY(-10px); }
        .p-card:nth-child(2):hover { border-color: var(--accent-green); box-shadow: 0 15px 40px rgba(0, 255, 204, 0.15); transform: translateY(-10px); }
        .p-card:nth-child(3):hover { border-color: var(--accent-yellow); box-shadow: 0 15px 40px rgba(255, 234, 0, 0.15); transform: translateY(-10px); }

        .p-card.featured {
            border: 2px solid var(--accent-green);
            transform: scale(1.05);
            background: linear-gradient(180deg, rgba(13, 20, 31, 1) 0%, rgba(0, 255, 204, 0.05) 100%);
            box-shadow: 0 10px 30px rgba(0, 255, 204, 0.1);
        }
        .p-card.featured:hover { transform: scale(1.05) translateY(-10px); }

        .badge {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-green);
            color: #000;
            padding: 6px 18px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 1px;
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
        }

        .p-card h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--text-gray); letter-spacing: 2px; }
        .price { font-size: 3rem; font-weight: 800; margin-bottom: 30px; }
        .price span { font-size: 1.2rem; color: var(--text-gray); font-weight: normal; }

        .p-card ul { list-style: none; padding: 0; margin-bottom: 40px; text-align: left; }
        .p-card ul li { margin-bottom: 15px; font-size: 0.95rem; display: flex; gap: 10px; align-items: center;}
        
        .btn-secondary {
            display: inline-block;
            width: 100%;
            border: 2px solid var(--border-color);
            color: white;
            padding: 12px 0;
            border-radius: 8px;
            font-weight: bold;
            text-decoration: none;
            transition: 0.3s;
            box-sizing: border-box;
            text-transform: uppercase;
        }

        .p-card:nth-child(1) .btn-secondary:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
        .p-card:nth-child(3) .btn-secondary:hover { background: var(--accent-yellow); border-color: var(--accent-yellow); color: #000; box-shadow: 0 0 15px rgba(255, 234, 0, 0.4); }
        .p-card.featured .btn-primary { width: 100%; padding: 12px 0; display: block;}

        /* Как это работает */
        .how-it-works { padding: 100px 10%; background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(13, 20, 31, 0.5) 100%); text-align: center; }
        .how-it-works h2 { font-size: 2.5rem; margin-bottom: 10px; }
        .how-it-works h2 span { color: var(--accent-green); text-shadow: 0 0 10px rgba(0, 255, 204, 0.4); }

        .section-subtitle { color: var(--text-gray); margin-bottom: 60px; font-size: 1.1rem; }

        .steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }

        .step-card {
            background: var(--card-bg);
            padding: 40px 30px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            text-align: left;
            position: relative;
            transition: 0.3s;
            overflow: hidden;
        }

        .step-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 229, 255, 0.1); }

        .step-num {
            font-size: 4.5rem;
            font-weight: 900;
            color: rgba(0, 229, 255, 0.05);
            position: absolute;
            top: -10px;
            right: 10px;
            transition: 0.3s;
        }
        .step-card:hover .step-num { color: rgba(0, 229, 255, 0.15); }

        .step-card h3 { color: var(--accent-blue); margin-bottom: 15px; font-size: 1.4rem; position: relative; z-index: 1;}
        .step-card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; position: relative; z-index: 1;}

        /* Описание программы */
        .about-software { padding: 100px 10%; background: var(--bg-dark); text-align: center; }
        .about-software h2 { font-size: 2.5rem; }
        .about-software h2 span { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }

        .about-content {
            max-width: 900px; margin: 40px auto 0; text-align: left; line-height: 1.8; color: var(--text-gray); font-size: 1.1rem;
            background: rgba(13, 20, 31, 0.4); padding: 40px; border-radius: 16px; border: 1px solid var(--border-color);
        }
        .about-content b { color: white; }

        /* Поддержка */
        .support-section { padding: 80px 10%; background: linear-gradient(180deg, var(--bg-dark) 0%, #08101a 100%); border-top: 1px solid var(--border-color); }
        .support-container { max-width: 700px; margin: 0 auto; text-align: center; }
        
        .support-container .btn-primary { width: auto; min-width: 260px; max-width: 320px; padding: 12px 25px; margin: 0 auto; display: inline-flex; font-size: 15px; background: var(--accent-blue); border-color: var(--accent-blue); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); align-items: center; justify-content: center;}
        .support-container .btn-primary:hover { background: transparent; color: var(--accent-blue); box-shadow: 0 0 30px rgba(0, 229, 255, 0.4); }
        .support-container .btn-primary img { width: 24px; height: 24px; margin-right: 12px; filter: brightness(0); }
        .support-container .btn-primary:hover img { filter: brightness(1) sepia(1) hue-rotate(180deg) saturate(500%) brightness(1.5); }

        .support-icon { font-size: 60px; margin-bottom: 20px; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
        .support-section h2 { font-size: 2.2rem; margin-bottom: 20px; }
        .support-section h2 span { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
        .support-section p { color: var(--text-gray); margin-bottom: 35px; font-size: 1.1rem; }

        /* Модалки */
        .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(5, 11, 20, 0.9); backdrop-filter: blur(8px); justify-content: center; align-items: center; }
        .modal-content { background-color: var(--card-bg); margin: auto; padding: 25px 30px; border: 1px solid var(--accent-blue); box-shadow: 0 0 40px rgba(0, 229, 255, 0.15); width: 90%; max-width: 400px; border-radius: 16px; position: relative; animation: fadeIn 0.3s ease-out; max-height: 95vh; overflow-y: auto; box-sizing: border-box; }
		
        .modal-content::-webkit-scrollbar { width: 0px; background: transparent; }
        
        @keyframes fadeIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

        .close-btn { position: absolute; top: 10px; right: 15px; color: var(--text-gray); font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 10; }
        .close-btn:hover { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
        
        .modal-content h2 { margin-top: 0; margin-bottom: 15px; font-size: 1.6rem; color: white; text-align: center; }

        /* Уплотняем элементы формы */
        .auth-form .form-group { margin-bottom: 12px; text-align: left; }
        .auth-form label { display: block; margin-bottom: 5px; font-size: 11px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px;}
        .auth-form input { width: 100%; padding: 10px 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: 8px; color: white; font-size: 14px; box-sizing: border-box; transition: 0.3s; }
        .auth-form input:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
        
        /* Ужимаем разделитель OR */
        .modal-content > div[style*="margin: 20px 0"] { margin: 10px 0 !important; }

        /* Кнопки внутри модалки */
        .modal-content form .btn-primary, .modal-content .btn-primary {
            display: flex !important; margin: 15px auto 0 !important; width: 100% !important; max-width: 100% !important; justify-content: center !important; align-items: center !important; padding: 12px 20px !important; font-size: 14px !important; background: var(--accent-blue); border-color: var(--accent-blue); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); border-radius: 8px; text-transform: uppercase; font-weight: bold; cursor: pointer; box-sizing: border-box;
        }
        .modal-content form .btn-primary:hover, .modal-content .btn-primary:hover { background: transparent; color: var(--accent-blue); box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); transform: translateY(-2px); }

        /* Кнопка Google внутри модалки */
        .modal-content a[href="/login/google"] {
            display: flex !important;
            margin: 15px auto 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            justify-content: center !important;
            align-items: center !important;
            padding: 12px 20px !important;
            font-size: 14px !important;
            background-color: transparent !important;
            border: 1px solid var(--border-color) !important;
            color: #ffffff !important; 
            transition: all 0.3s ease !important;
            border-radius: 8px !important;
            text-decoration: none !important;
            box-sizing: border-box !important;
            font-weight: bold !important;
        }

        .modal-content a[href="/login/google"]:hover {
            background-color: #ffffff !important; 
            color: #000000 !important; 
            transform: translateY(-2px) !important;
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2) !important;
        }

        .modal-content a[href="/login/google"] img {
            width: 20px !important;
            height: 20px !important;
            margin-right: 12px !important;
        }
        /* Кастомный скроллбар */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb { background: #30363d; border-radius: 10px; border: 2px solid var(--bg-dark); }
        ::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
        * { scrollbar-width: thin; scrollbar-color: #30363d var(--bg-dark); }

        /* Фиксы телефона */
        .iti { width: 100% !important; display: block !important; }
        #regPhone { width: 100% !important; padding-left: 90px !important; background: rgba(0,0,0,0.3) !important; border: 1px solid var(--border-color) !important; border-radius: 8px !important; height: 45px !important; color: white !important; transition: 0.3s; }
        #regPhone:focus { border-color: var(--accent-blue) !important; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2) !important; }
        .iti__selected-dial-code { color: white !important; margin-left: 5px; font-size: 14px; }
        .iti__country-name { font-size: 13px !important; color: white !important; }
        .iti__dial-code { font-size: 12px !important; color: var(--text-gray) !important; }
        .iti__country { padding: 8px 10px !important; line-height: 1.2 !important; display: flex !important; align-items: center !important;}
        .iti--container { z-index: 10000 !important; }
        .iti__country-list { background-color: var(--card-bg) !important; border: 1px solid var(--border-color) !important; width: 340px !important; max-height: 270px !important; font-size: 7px; padding: 5px; box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important; border-radius: 8px; overflow-x: hidden !important; }
        .iti--separate-dial-code .iti__country-list { margin-left: -52px; }
        .iti__country:hover { background-color: #1f2937 !important; }
        .iti__selected-flag { background-color: transparent !important; padding: 0 10px 0 12px !important; }
        .iti__search-input { background: rgba(0,0,0,0.3) !important; color: white !important; border: 1px solid var(--border-color) !important; border-radius: 4px; }

        /* Адаптация для мобильных устройств */
        @media (max-width: 768px) {
            nav { flex-direction: column; padding: 15px 10px; gap: 15px; }
            .logo { font-size: 20px; }
            .menu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: 100%; margin: 0; }
            .menu a { margin: 0; font-size: 12px; padding: 6px 8px; }
            .btn-login, .btn-register { padding: 6px 12px; font-size: 12px; }

            .hero { flex-direction: column; padding: 40px 20px; text-align: center; }
            .hero-bg-shield { right: 50%; transform: translate(50%, -50%); opacity: 0.05; }
            h1 { font-size: 2.2rem; line-height: 1.2; }
            .hero-content { margin-bottom: 40px; }
            
            .btn-primary { width: fit-content; min-width: 200px; max-width: 280px; padding: 12px 25px; margin: 0 auto; display: flex; justify-content: center; align-items: center;}
            
            .features, .pricing, .how-it-works, .about-software, .support-section { padding: 50px 5% !important; }
            
            .feature-grid { grid-template-columns: 1fr !important; gap: 20px; margin-top: 30px !important; }
            .f-card { padding: 30px 20px; }
            
            .pricing h2 { margin-top: 0; margin-bottom: 30px; font-size: 2rem;}
            .pricing-grid { flex-direction: column; gap: 30px; }
            .p-card { width: 100%; max-width: 320px; padding: 30px 20px !important; box-sizing: border-box;}
            .p-card.featured { transform: scale(1); margin: 10px 0; }
            
            .steps-container { grid-template-columns: 1fr; gap: 20px; }
            .how-it-works h2, .about-software h2, .support-section h2 { font-size: 1.8rem; }
            .about-content { font-size: 1rem; padding: 25px 20px; }
            
            .mockup img { max-width: 100%; border-width: 4px; }
            .iti__country-list { background-color: var(--card-bg) !important; border: 1px solid var(--border-color) !important; width: 340px !important; max-height: 270px !important; font-size: 7px; padding: 5px; box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important; border-radius: 8px; overflow-x: hidden !important; }
            body .iti .iti__country-list {
                position: fixed !important; top: 50% !important; left: 50% !important;
                transform: translate(-50%, -50%) !important; width: 90% !important; max-width: 320px !important;
                margin: 0 !important;
            }
        }