/* ============================================
   VOXORRA - Полные стили v3.1
   ============================================ */

/* Переменные */
:root {
    --bg: #f5f3ff;
    --accent: #7c3aed;
    --accent2: #8b5cf6;
    --accent3: #a78bfa;
    --accent4: #c4b5fd;
    --text: #1a1a2e;
    --text2: #4a4a6a;
    --text3: #8a8aaa;
    --border: rgba(139, 92, 246, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-bg-strong: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
    --glass-blur: 20px;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 20px;
    --radius-sm: 12px;
}

[data-theme="dark"] {
    --bg: #0a0a12;
    --text: #e8e8f0;
    --text2: #a0a0c0;
    --text3: #6b6b8a;
    --border: rgba(139, 92, 246, 0.15);
    --glass-bg: rgba(18, 18, 31, 0.4);
    --glass-bg-strong: rgba(26, 26, 46, 0.6);
    --glass-border: rgba(139, 92, 246, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 25%, #e0e7ff 50%, #f3e8ff 75%, #fce7f3 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;
    min-height: 100vh;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f0a1a 0%, #1a0a2e 25%, #0a0a20 50%, #1a0a2e 75%, #0f0a1a 100%);
}

/* Фон */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; animation: floatShape 25s infinite ease-in-out; }
.shape-1 { width: 500px; height: 500px; background: var(--accent2); top: -150px; left: -100px; }
.shape-2 { width: 400px; height: 400px; background: var(--accent3); bottom: -100px; right: -80px; animation-delay: -7s; }
.shape-3 { width: 350px; height: 350px; background: var(--accent4); top: 50%; left: 55%; animation-delay: -14s; }
.shape-4 { width: 280px; height: 280px; background: var(--accent); bottom: 25%; left: 15%; animation-delay: -20s; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.08); }
    50% { transform: translate(-30px, 50px) scale(0.94); }
    75% { transform: translate(-50px, -30px) scale(1.04); }
}

/* Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
}

/* Текст */
.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Кнопки */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-glass:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* Переключатель темы */
.theme-toggle { cursor: pointer; padding: 2px; display: inline-block; }
.theme-toggle-track {
    width: 60px;
    height: 30px;
    background: var(--glass-bg);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    border: 1px solid var(--border);
}
.theme-icon { font-size: 14px; z-index: 1; transition: all 0.3s; }
[data-theme="dark"] .sun { opacity: 0.3; transform: scale(0.8); }
[data-theme="dark"] .moon { opacity: 1; }
.sun { opacity: 1; }
.moon { opacity: 0.3; }
.theme-toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 50%;
    left: 3px;
    transition: transform 0.4s;
    z-index: 2;
}
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(30px); }

.theme-toggle-wrapper { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.theme-toggle-wrapper .theme-toggle-track { width: 64px; height: 32px; }
.theme-toggle-wrapper .theme-toggle-thumb { width: 26px; height: 26px; }
[data-theme="dark"] .theme-toggle-wrapper .theme-toggle-thumb { transform: translateX(32px); }

/* Хедер */
.header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    border-radius: var(--radius);
    z-index: 100;
    transition: all 0.4s;
}

.header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0 0 20px 20px;
    background: var(--glass-bg-strong);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-image { width: 38px; height: 38px; border-radius: 10px; transition: transform 0.3s; }
.logo:hover .logo-image { transform: rotate(-5deg) scale(1.08); }
.logo-text { font-size: 1.35rem; font-weight: 700; color: var(--text); }

.nav-menu { display: flex; gap: 28px; }
.nav-menu a { color: var(--text2); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.auth-buttons { display: flex; gap: 10px; }

/* Анимированный переход в Voxorra AI */
.ai-nav-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 58px;
    height: 40px;
    padding: 0 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(167, 139, 250, 0.24));
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(124, 58, 237, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-nav-button::before {
    content: '';
    position: absolute;
    inset: -70% -30%;
    z-index: -1;
    background: conic-gradient(from 90deg, transparent 0 35%, rgba(255,255,255,0.75) 43%, transparent 51% 100%);
    animation: aiNavSweep 3.6s linear infinite;
}

.ai-nav-button::after {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: var(--glass-bg-strong);
}

.ai-nav-button:hover {
    transform: translateY(-2px) scale(1.03);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 9px 24px rgba(124, 58, 237, 0.34);
}

.ai-nav-button:hover::after {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.ai-nav-orb {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.55);
    animation: aiNavPulse 2s ease-out infinite;
}

.ai-nav-button:hover .ai-nav-orb { background: #fff; }

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

@keyframes aiNavPulse {
    70% { box-shadow: 0 0 0 7px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 24px 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-content { flex: 1; }

/* Исправленный hero-badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    width: auto;
    margin-bottom: 24px;
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.hero-badge span {
    display: inline-block;
}

.hero-title { font-size: 3.8rem; font-weight: 800; line-height: 1.12; margin-bottom: 24px; color: var(--text); }
.hero-description { font-size: 1.12rem; color: var(--text2); margin-bottom: 36px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.stat-card {
    padding: 22px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-number { font-size: 2.3rem; font-weight: 800; color: var(--accent); }
.stat-plus { font-size: 1.4rem; font-weight: 700; color: var(--accent2); }
.stat-label { display: block; font-size: 0.88rem; color: var(--text2); margin-top: 6px; }

.hero-image { flex: 1; display: flex; justify-content: center; }
.app-preview { border-radius: 28px; padding: 28px; max-width: 420px; }
.preview-screen { background: rgba(0,0,0,0.05); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
[data-theme="dark"] .preview-screen { background: rgba(255,255,255,0.03); }
.preview-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.preview-logo-small { width: 26px; height: 26px; border-radius: 7px; }
.preview-messages { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.preview-msg { padding: 12px 18px; border-radius: 18px; font-size: 0.9rem; max-width: 80%; }
.preview-msg.received { align-self: flex-start; border-bottom-left-radius: 6px; }
.preview-msg.sent { background: var(--accent); color: white; align-self: flex-end; border-bottom-right-radius: 6px; }
.preview-typing { align-self: flex-start; color: var(--text3); font-size: 0.82rem; padding: 8px 14px; animation: typingDots 1.5s infinite; }
@keyframes typingDots { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Секции */
.features, .about, .faq, .ai-showcase { max-width: 1200px; margin: 0 auto; padding: 100px 24px; position: relative; z-index: 1; }
.section-title { text-align: center; font-size: 2.6rem; font-weight: 800; margin-bottom: 60px; color: var(--text); }

/* Карточки */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { padding: 38px 30px; border-radius: var(--radius); transition: all 0.4s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; min-height: 64px; }
.feature-icon-img { width: 100px; height: 100px; object-fit: contain; transition: transform 0.3s; }
.feature-card:hover .feature-icon-img { transform: scale(1.15); }
.feature-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text2); font-size: 0.95rem; }

/* Блок Voxorra AI */
.ai-showcase { padding-top: 40px; padding-bottom: 40px; }

.ai-showcase-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 64px;
    min-height: 500px;
    padding: 64px;
    overflow: hidden;
    border-radius: 36px;
}

.ai-showcase-card::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -210px;
    right: -90px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.24);
    filter: blur(70px);
    pointer-events: none;
}

.ai-showcase-copy { position: relative; z-index: 2; }

.ai-showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ai-showcase-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
    animation: aiShowcasePulse 2s ease-out infinite;
}

.ai-showcase-copy h2 {
    max-width: 570px;
    margin-bottom: 20px;
    color: var(--text);
    font-size: clamp(2.3rem, 4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ai-showcase-copy > p {
    max-width: 590px;
    margin-bottom: 26px;
    color: var(--text2);
    font-size: 1.04rem;
}

.ai-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.ai-showcase-tags span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: var(--text2);
    font-size: 0.83rem;
    font-weight: 600;
}

.ai-showcase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-showcase-button span {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.ai-showcase-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(124, 58, 237, 0.42);
}

.ai-showcase-button:hover span { transform: translateX(4px); }

.ai-showcase-visual {
    position: relative;
    z-index: 1;
    min-height: 360px;
    border: 1px solid rgba(139, 92, 246, 0.17);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.09), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0 70px rgba(124, 58, 237, 0.08);
    overflow: hidden;
}

[data-theme="dark"] .ai-showcase-visual {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(3, 3, 12, 0.28));
}

.ai-visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.27;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 75%);
    mask-image: radial-gradient(circle, #000 10%, transparent 75%);
}

.ai-visual-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(139, 92, 246, 0.27);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ai-visual-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 16px var(--accent2);
}

.ai-visual-ring-one {
    width: 260px;
    height: 260px;
    animation: aiRingSpin 11s linear infinite;
}

.ai-visual-ring-two {
    width: 195px;
    height: 195px;
    animation: aiRingSpinReverse 8s linear infinite;
}

.ai-visual-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent2));
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 14px rgba(124, 58, 237, 0.08), 0 24px 60px rgba(124, 58, 237, 0.36);
    animation: aiCoreFloat 4s ease-in-out infinite;
}

.ai-visual-core span {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.ai-visual-core small {
    margin-top: 6px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.ai-visual-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text2);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: var(--glass-shadow);
    animation: aiChipFloat 5s ease-in-out infinite;
}

.ai-visual-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 10px var(--accent2);
}

.ai-visual-chip-one { top: 20%; left: 7%; }
.ai-visual-chip-two { top: 15%; right: 5%; animation-delay: -1.5s; }
.ai-visual-chip-three { right: 10%; bottom: 16%; animation-delay: -3s; }

@keyframes aiShowcasePulse {
    70% { box-shadow: 0 0 0 9px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

@keyframes aiRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes aiRingSpinReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes aiCoreFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

@keyframes aiChipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* О нас */
.about-content { display: flex; align-items: center; gap: 80px; }
.about-text { flex: 1; }
.about-text h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 24px; }
.about-text p { color: var(--text2); font-size: 1.1rem; margin-bottom: 18px; }
.about-features { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.about-features span { padding: 10px 20px; border-radius: 25px; font-weight: 500; font-size: 0.9rem; color: var(--accent); }
.about-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.about-frame { max-width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(124, 58, 237, 0.15)); transition: transform 0.3s; }
.about-frame:hover { transform: translateY(-5px); }

/* FAQ */
.faq-grid { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin: 0 auto; }
.faq-item { border-radius: var(--radius); overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; cursor: pointer; font-weight: 600; font-size: 1.05rem; user-select: none; }
.faq-arrow { transition: transform 0.3s; color: var(--accent); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s, padding 0.5s; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 26px 22px; }
.faq-answer p { color: var(--text2); }

/* CTA */
.cta { max-width: 800px; margin: 0 auto; padding: 40px 24px 100px; position: relative; z-index: 1; }
.cta-content { text-align: center; padding: 60px 48px; border-radius: 32px; }
.cta-content h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 18px; }
.cta-content p { color: var(--text2); margin-bottom: 36px; font-size: 1.1rem; }

/* Футер */
.footer { border-top: 1px solid var(--border); padding: 44px 24px; text-align: center; position: relative; z-index: 1; }
.footer-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; }
.footer-logo-image { width: 30px; height: 30px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text3); font-size: 0.85rem; }

/* Мобильное меню */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 16px 24px; border-top: 1px solid var(--border); }
.mobile-menu a { color: var(--text2); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.hidden { display: none !important; }

/* ========== СТРАНИЦЫ АВТОРИЗАЦИИ ========== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-container { width: 100%; max-width: 470px; position: relative; z-index: 1; }
.auth-card { padding: 44px 38px; border-radius: 28px; }
.auth-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 36px; justify-content: center; }
.auth-logo-image { width: 48px; height: 48px; border-radius: 14px; }
.auth-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.auth-header { text-align: center; margin-bottom: 34px; }
.auth-header h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 10px; }
.auth-header p { color: var(--text2); }

/* Шаги */
.auth-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-number {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--glass-bg); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: var(--text3); transition: all 0.3s;
}
.step.active .step-number { background: var(--accent); border-color: var(--accent); color: white; }
.step.done .step-number { background: var(--success); border-color: var(--success); color: white; }
.step-label { font-size: 0.8rem; color: var(--text3); }
.step-divider { width: 40px; height: 2px; background: var(--border); margin: 0 12px 20px; }

/* Формы */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text2); margin-bottom: 8px; }
.form-hint { display: block; font-size: 0.78rem; color: var(--text3); margin-top: 6px; }
.form-input-wrapper {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 16px; border-radius: var(--radius-sm); transition: all 0.3s;
}
.form-input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-icon { font-size: 1.1rem; flex-shrink: 0; }
.form-input {
    flex: 1; background: none; border: none;
    padding: 12px 0; font-size: 0.95rem; color: var(--text);
    outline: none; font-family: inherit;
}
.form-input::placeholder { color: var(--text3); }
.password-toggle { background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: 0.6; }
.password-toggle:hover { opacity: 1; }

.password-strength { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.strength-bar { flex: 1; height: 4px; background: var(--glass-bg); border-radius: 2px; overflow: hidden; }
.strength-bar::before { content: ''; display: block; height: 100%; width: 0; transition: width 0.3s; border-radius: 2px; }
.strength-bar.weak::before { width: 33%; background: var(--error); }
.strength-bar.medium::before { width: 66%; background: var(--warning); }
.strength-bar.strong::before { width: 100%; background: var(--success); }
.strength-text { font-size: 0.8rem; color: var(--text3); }

.form-error, .form-success { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 12px; text-align: center; }
.form-error { background: rgba(239,68,68,0.1); color: var(--error); }
.form-success { background: rgba(16,185,129,0.1); color: var(--success); }

.auth-footer { text-align: center; margin-top: 28px; color: var(--text2); font-size: 0.9rem; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* Адаптивность */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding: 140px 24px 80px; }
    .hero-title { font-size: 3rem; }
    .hero-description { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-content { flex-direction: column; }
    .about-image { order: -1; }
    .about-frame { max-width: 300px; }
    .about-features { justify-content: center; }
    .ai-showcase-card { grid-template-columns: 1fr; gap: 45px; padding: 54px; }
    .ai-showcase-copy { text-align: center; }
    .ai-showcase-copy h2, .ai-showcase-copy > p { margin-left: auto; margin-right: auto; }
    .ai-showcase-tags { justify-content: center; }
    .ai-showcase-visual { width: 100%; max-width: 540px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .header { width: 95%; top: 10px; }
    .nav-menu, .header-actions .auth-buttons { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu { display: flex; }
    .hero { padding: 120px 18px 60px; }
    .hero-title { font-size: 2.3rem; }
    .features, .about, .faq, .ai-showcase { padding: 60px 18px; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 22px; }
    .ai-showcase { padding-top: 28px; padding-bottom: 28px; }
    .ai-showcase-card { min-height: 0; padding: 42px 26px 30px; border-radius: 28px; }
    .ai-showcase-copy h2 { font-size: 2.25rem; }
    .ai-showcase-visual { min-height: 320px; }
}

@media (max-width: 520px) {
    .header-container { padding: 12px 15px; }
    .header-actions { gap: 9px; }
    .ai-nav-button { min-width: 47px; height: 36px; padding: 0 11px; font-size: 0.78rem; }
    .ai-nav-orb { width: 6px; height: 6px; }
    .theme-toggle-track { width: 52px; }
    [data-theme="dark"] .theme-toggle-thumb { transform: translateX(22px); }
    .logo { gap: 7px; }
    .logo-image { width: 34px; height: 34px; }
    .logo-text { font-size: 1.12rem; }
    .ai-showcase-copy h2 { font-size: 2rem; }
    .ai-showcase-copy > p { font-size: 0.95rem; }
    .ai-showcase-button { width: 100%; }
    .ai-showcase-visual { min-height: 275px; border-radius: 24px; }
    .ai-visual-ring-one { width: 210px; height: 210px; }
    .ai-visual-ring-two { width: 160px; height: 160px; }
    .ai-visual-core { width: 108px; height: 108px; }
    .ai-visual-core span { font-size: 1.8rem; }
    .ai-visual-chip { font-size: 0.55rem; padding: 7px 9px; }
    .ai-visual-chip-one { top: 16%; left: 3%; }
    .ai-visual-chip-two { top: 12%; right: 2%; }
    .ai-visual-chip-three { right: 4%; bottom: 12%; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-nav-button::before,
    .ai-nav-orb,
    .ai-showcase-pulse,
    .ai-visual-ring-one,
    .ai-visual-ring-two,
    .ai-visual-core,
    .ai-visual-chip { animation: none !important; }
}
/* Дополнительные стили для страницы входа */
.last-login-info {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 8px;
}

.remember-device {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    justify-content: center;
}

.remember-device input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.remember-device label {
    color: var(--text2);
    font-size: 0.85rem;
    cursor: pointer;
}

.remember-device label:hover {
    color: var(--accent);
}

/* ===== FIX v25: крупнее иконка на экране входа/регистрации ===== */
.auth-logo { gap: 18px; margin-bottom: 42px; }
.auth-logo-image { width: 68px !important; height: 68px !important; border-radius: 18px; filter: drop-shadow(0 10px 22px rgba(124, 58, 237, .24)); }
.auth-logo-text { font-size: 1.7rem; }
@media (max-width: 520px) {
    .auth-logo-image { width: 58px !important; height: 58px !important; }
}
