:root {
    --bg-dark: #070b14;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.4);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-dark); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

.bg-glow { position: fixed; top: -20%; left: -10%; width: 120%; height: 120%; background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05), transparent 60%); z-index: -1; pointer-events: none; }

header { text-align: center; padding: 3rem 1rem 1.5rem; }
header h1 { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #4facfe, #00f2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; margin-bottom: 0.5rem; }
header p { color: var(--text-muted); font-size: 0.95rem; }

.tabs-container { width: 100%; padding: 0 1rem; margin-bottom: 1rem; }
.tabs { display: flex; justify-content: center; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 0.8rem 1.2rem; border-radius: 100px; font-size: 0.9rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.tab-btn.active { background: var(--text-main); color: var(--bg-dark); box-shadow: 0 0 20px var(--accent-glow); border-color: var(--text-main); }

.cards-grid { flex: 1; padding: 1rem; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; width: 100%; }
.card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; backdrop-filter: blur(20px); transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.4s ease forwards; }
.card img { width: 100%; height: 160px; object-fit: cover; border-radius: 16px; }
.card h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; flex-grow: 1; }

.btn-apply { display: flex; justify-content: center; align-items: center; width: 100%; background: linear-gradient(135deg, #4facfe, #00f2fe); color: var(--bg-dark); text-decoration: none; padding: 1rem; border-radius: 16px; font-weight: 700; font-size: 1rem; transition: all 0.3s ease; }
.btn-apply:hover, .btn-apply:active { box-shadow: 0 5px 20px var(--accent-glow); transform: scale(0.98); }

footer { padding: 2rem 1rem; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 2rem; }
.disclaimer { font-size: 0.7rem; color: #505d73; max-width: 800px; margin: 0 auto; line-height: 1.6; text-align: justify; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ВАУ-эффекты: Плавающие неоновые сферы */
.glow-orb { position: fixed; border-radius: 50%; filter: blur(90px); z-index: -2; animation: float 10s infinite ease-in-out alternate; pointer-events: none; }
.orb-1 { top: 5%; left: 15%; width: 350px; height: 350px; background: rgba(0, 242, 254, 0.12); animation-delay: 0s; }
.orb-2 { bottom: 10%; right: 15%; width: 450px; height: 450px; background: rgba(79, 172, 254, 0.08); animation-delay: -5s; }

@keyframes float { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(40px, -60px) scale(1.1); } 
}

/* Фикс для 3D-карточек */
.card { transform-style: preserve-3d; will-change: transform; }
.card img { transform: translateZ(30px); }
.card h3 { transform: translateZ(40px); }
.card .btn-apply { transform: translateZ(50px); }

/* Новые элементы карточки */
.card-header { height: 160px; border-radius: 16px; margin-bottom: 1rem; position: relative; padding: 1rem; transition: transform 0.3s ease; }
.card:hover .card-header { transform: scale(1.03); }
.card-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.4); color: #fff; padding: 6px 12px; border-radius: 12px; font-weight: 700; font-size: 0.8rem; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); }
.card-stats { display: flex; justify-content: space-between; background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 1rem; margin: 1rem 0; border: 1px solid var(--glass-border); }
.stat-item { text-align: center; width: 48%; }
.stat-value { font-weight: 800; color: var(--accent); font-size: 1.2rem; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.card-features { list-style: none; margin-bottom: 1.5rem; flex-grow: 1; }
.card-features li { font-size: 0.85rem; color: #cbd5e1; margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.card-features li::before { content: '✓'; color: var(--accent); font-weight: 900; font-size: 1rem; }

/* Тикер (Бегущая строка) */
.ticker-wrap { width: 100%; background: var(--glass-bg); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); overflow: hidden; white-space: nowrap; padding: 12px 0; margin-bottom: 2rem; backdrop-filter: blur(10px); }
.ticker { display: inline-block; animation: ticker 240s linear infinite; }
.ticker-item { margin-right: 50px; font-size: 0.95rem; font-weight: 500; color: #fff; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* Блок преимуществ */
.features-block { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; max-width: 1200px; margin: 0 auto 3rem; padding: 0 1rem; }
.feature-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2rem 1.5rem; text-align: center; flex: 1; min-width: 280px; backdrop-filter: blur(20px); transition: transform 0.3s ease; }
.feature-item:hover { transform: translateY(-5px); border-color: var(--accent-glow); }
.feat-icon { font-size: 3rem; margin-bottom: 1rem; text-shadow: 0 0 20px var(--accent-glow); }
.feature-item h4 { color: #fff; font-size: 1.2rem; margin-bottom: 0.8rem; font-weight: 700; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Блок FAQ */
.faq-section { max-width: 800px; margin: 4rem auto 2rem; padding: 0 1rem; width: 100%; }
.faq-title { text-align: center; margin-bottom: 2rem; font-size: 2rem; background: linear-gradient(135deg, #fff, #8b9bb4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; margin-bottom: 1rem; overflow: hidden; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.faq-question { padding: 1.5rem; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.faq-question::after { content: '+'; color: var(--accent); font-size: 1.8rem; font-weight: 300; transition: transform 0.3s ease; }
.faq-item.active { border-color: var(--accent-glow); box-shadow: 0 0 20px rgba(0,242,254,0.05); }
.faq-item.active .faq-question::after { transform: rotate(45deg); color: #ff4757; }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 300px; }

/* Кнопка Консультация */
.consult-btn { display: inline-flex; align-items: center; background: linear-gradient(135deg, #4facfe, #00f2fe); color: var(--bg-dark); padding: 0.8rem 1.5rem; border-radius: 100px; font-size: 0.9rem; font-weight: 800; text-decoration: none; transition: all 0.3s ease; white-space: nowrap; margin-left: 0.5rem; box-shadow: 0 4px 15px rgba(0,242,254,0.2); }
.consult-btn:hover { box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-2px); }

/* Блок Как это работает */
.how-it-works { max-width: 1200px; margin: 4rem auto 2rem; padding: 0 1rem; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 3rem; background: linear-gradient(135deg, #fff, #8b9bb4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.steps-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.step { flex: 1; min-width: 280px; padding: 2.5rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.step:hover { border-color: var(--accent-glow); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,242,254,0.05); }
.step-num { width: 60px; height: 60px; background: linear-gradient(135deg, #4facfe, #00f2fe); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; font-weight: 800; color: var(--bg-dark); margin: 0 auto 1.5rem; box-shadow: 0 0 20px var(--accent-glow); }
.step h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* SEO Блок */
.seo-text-block { max-width: 1000px; margin: 2rem auto 4rem; padding: 3rem 2rem; background: var(--glass-bg); border-radius: 24px; border: 1px dashed var(--glass-border); text-align: center; backdrop-filter: blur(10px); }
.seo-text-block h2 { color: #fff; margin-bottom: 1.5rem; font-size: 1.8rem; font-weight: 700; }
.seo-text-block p { color: #8b9bb4; line-height: 1.8; font-size: 0.95rem; text-align: justify; }
@media (max-width: 768px) { .seo-text-block p { text-align: left; } }

/* Фикс обрезки табов на мобильных экранах */
@media (max-width: 768px) {
    .tabs {
        justify-content: flex-start;
    }
}

/* Подпись разработчика */
.developer-signature { text-align: center; font-size: 0.75rem; color: #505d73; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.developer-signature a { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; border-bottom: 1px dashed rgba(139, 155, 180, 0.5); padding-bottom: 2px; }
.developer-signature a:hover { color: var(--accent); border-bottom-color: var(--accent); text-shadow: 0 0 10px rgba(0, 242, 254, 0.4); }
