:root {
    --bg: #000000;
    --accent: #FED813; 
    --card: #111111;
    --border: #222222;
    --text: #ffffff;
    --text-dim: #a1a1a1;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero, .comparison-section, .studio-card, .studio-canvas, .auth-card, .profile-card, .pricing-section {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.grid-bg { 
    position: fixed; inset: 0; z-index: -1;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); 
    background-size: 50px 50px; animation: gridMove 4s linear infinite;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 50px 50px; } }
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 2s linear infinite; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; position: sticky; top: 0; backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 100; }
.logo { font-size: 26px; font-weight: 900; letter-spacing: -1px; cursor: pointer; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: #ffffff; text-decoration: none; font-weight: 600; font-size: 14px; margin: 0 15px; transition: 0.3s; cursor: pointer; }
.nav-links a:hover { color: var(--accent); }

.nav-btns { display: flex; align-items: center; }
.user-pill { display: flex; align-items: center; background: rgba(254, 216, 19, 0.1); padding: 6px 14px; border-radius: 50px; border: 1px solid var(--accent); cursor: pointer; transition: 0.3s; }
.user-pill:hover { background: rgba(254, 216, 19, 0.2); }
.email-pill { font-size: 13px; font-weight: 800; color: var(--accent); }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; margin-left: 8px; }

.hero { text-align: center; padding: 80px 5% 40px; position: relative; z-index: 10; }
.hero::before {
    content: ''; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 80vw; max-width: 1000px; height: 400px; background: radial-gradient(circle, rgba(254, 216, 19, 0.15) 0%, transparent 70%);
    filter: blur(60px); z-index: -1;
}
.logo-badge {
    display: inline-block; width: 180px; height: 180px; background-color: var(--accent); margin-bottom: 20px;
    -webkit-mask: url('logo.png') no-repeat center / contain; mask: url('logo.png') no-repeat center / contain;
    filter: drop-shadow(0 0 20px rgba(254, 216, 19, 0.6));
}
h1 { font-size: clamp(28px, 6vw, 60px); font-weight: 900; line-height: 1.1; margin-bottom: 15px; }
h1 span { color: var(--accent); }
.hero p { color: var(--text-dim); font-size: 16px; max-width: 600px; margin: 0 auto 30px; }

.btn-mega { background: var(--accent); color: #000; padding: 16px 40px; border-radius: 50px; font-weight: 900; font-size: 16px; border: none; cursor: pointer; text-transform: uppercase; transition: 0.3s; display: inline-flex; gap: 8px; align-items: center;}
.btn-mega:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(254, 216, 19, 0.4); }

.comparison-section { padding: 40px 5%; display: flex; justify-content: center; }
.comparison-container { width: 100%; max-width: 900px; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.before-after { width: 100%; height: 100%; position: relative; cursor: ew-resize; }
.after-img, .before-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.before-img { width: 50%; border-right: 2px solid var(--accent); z-index: 2; }
.slider-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 40px; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; z-index: 3; pointer-events: none; }
.slider-line::after { content: '< >'; background: var(--accent); color: #000; font-weight: 900; padding: 8px 4px; border-radius: 8px; font-size: 10px; }

/* ОВЕРЛЕЙ И МЕНЮ - АППАРАТНОЕ УСКОРЕНИЕ (GPU) 200+ FPS */
.overlay { 
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px); 
    z-index: 999; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
}
.overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.side-menu { 
    position: fixed; top: 0; right: 0; 
    width: 350px; height: 100vh; 
    background: rgba(10, 10, 10, 0.95); 
    border-left: 1px solid var(--border); 
    z-index: 1000; 
    padding: 25px; display: flex; flex-direction: column; 
    
    transform: translateX(100%); 
    will-change: transform; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.side-menu.active { 
    transform: translateX(0); 
}

.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.menu-title { font-size: 20px; font-weight: 900; color: #fff; }
.close-btn { background: none; border: none; color: #fff; cursor: pointer; }
.menu-item { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 12px; border-radius: 10px; margin-bottom: 8px; font-weight: 600; font-size: 14px; transition: 0.3s; }
.menu-item:hover { background: rgba(254, 216, 19, 0.1); color: var(--accent); padding-left: 20px; }
.menu-divider { height: 1px; background: var(--border); margin: 15px 0; }
.menu-footer { margin-top: auto; }
.logout-btn { width: 100%; background: transparent; border: 1px solid #ff4444; color: #ff4444; padding: 12px; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; transition: 0.3s; }
.logout-btn:hover { background: #ff4444; color: #fff; }

.full-section { display: flex; justify-content: center; align-items: center; min-height: 85vh; padding: 20px; }
.auth-card, .profile-card { background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 20px; padding: 30px; width: 100%; max-width: 360px; text-align: center; }
.auth-card h2, .profile-card h2 { margin-bottom: 20px; font-weight: 900; font-size: 22px; }
.switch-text { color: var(--text-dim); font-size: 13px; margin-top: 15px; cursor: pointer; transition: 0.3s; }
.switch-text:hover { color: var(--accent); }
.large-avatar { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; border: 2px solid var(--accent); display: inline-block;}
.info-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 14px; }
.status-badge { background: rgba(254, 216, 19, 0.1); color: var(--accent); padding: 4px 12px; border-radius: 50px; font-weight: 800; font-size: 12px; }

.studio-section { padding: 20px 5%; height: 90vh; display: flex; flex-direction: column; }
.studio-layout { display: flex; gap: 15px; height: 100%; flex: 1; }
.studio-sidebar { width: 320px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 5px;}
.studio-sidebar::-webkit-scrollbar { width: 4px; }
.studio-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.studio-card, .studio-canvas { background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.studio-canvas { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }

.step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
.step-header h3 { font-size: 16px; font-weight: 800; }
.step-num { color: var(--accent); font-weight: 900; font-size: 16px; opacity: 0.5; font-family: monospace; }

.upload-zone { border: 2px dashed var(--border); background: rgba(0,0,0,0.5); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 12px;}
.upload-zone:hover { border-color: var(--accent); background: rgba(254, 216, 19, 0.05);}
.upload-zone i { color: var(--accent); margin-bottom: 8px; width: 20px; height: 20px;}
.upload-zone p { font-size: 14px; margin-bottom: 4px; }

input, select, textarea { width: 100%; padding: 12px; background: #000; border: 1px solid var(--border); border-radius: 10px; color: #fff; margin-bottom: 10px; outline: none; font-size: 13px; transition: 0.3s;}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(254, 216, 19, 0.1); }
textarea { resize: none; min-height: 70px; }
.input-group label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

.studio-tabs { display: flex; gap: 8px; background: #000; padding: 5px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border); }
.tab-btn { flex: 1; border: none; background: transparent; color: var(--text-dim); padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; }
.tab-btn:hover { color: #fff; }
.tab-btn.active { background: var(--accent); color: #000; }

.style-options { display: flex; flex-direction: column; gap: 8px; }
.style-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #000; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: 0.3s; }
.style-item.active { border-color: var(--accent); background: rgba(254, 216, 19, 0.05); }
.style-item:hover { border-color: #444; }
.style-icon { width: 34px; height: 34px; background: rgba(255,255,255,0.05); border-radius: 8px; display: flex; justify-content: center; align-items: center; color: var(--accent); }
.style-info h4 { font-size: 14px; margin-bottom: 2px;}
.style-info p { font-size: 11px; color: var(--text-dim); }

.btn-generate { background: var(--accent); color: #000; padding: 15px; border-radius: 14px; border: none; font-weight: 900; font-size: 15px; cursor: pointer; transition: 0.3s; width: 100%; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(254, 216, 19, 0.4); }

.canvas-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0.5; text-align: center; }
.logo-badge-small { width: 50px; height: 50px; background: var(--accent); -webkit-mask: url('logo.png') no-repeat center / contain; mask: url('logo.png') no-repeat center / contain; margin-bottom: 12px; }

.btn-primary-full { width: 100%; background: var(--accent); color: #000; padding: 12px; border-radius: 12px; border: none; font-weight: 800; cursor: pointer; transition: 0.3s; font-size: 14px;}
.btn-primary-full:hover { opacity: 0.9; transform: scale(1.02); }
.btn-secondary { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 800; transition: 0.3s; font-size: 14px;}
.btn-secondary:hover { background: rgba(254,216,19,0.1); }

/* === ТАРИФЫ (ПРАЙСИНГ) === */
.pricing-section { padding: 80px 5%; text-align: center; }
.section-title { font-size: 36px; font-weight: 900; margin-bottom: 10px; }
.section-subtitle { color: var(--text-dim); font-size: 16px; margin-bottom: 40px; }
.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.pricing-card { flex: 1; min-width: 300px; max-width: 400px; background: rgba(17, 17, 17, 0.6); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 24px; padding: 40px 30px; display: flex; flex-direction: column; text-align: left; transition: transform 0.3s, box-shadow 0.3s; }
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 15px; color: #fff; }
.pricing-card .price { font-size: 46px; font-weight: 900; margin-bottom: 30px; color: #fff; }
.pricing-card .price span { font-size: 16px; color: var(--text-dim); font-weight: 600; }
.features { list-style: none; margin-bottom: 40px; }
.features li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 15px; color: #ddd; }
.features li i { color: var(--accent); width: 20px; height: 20px; }
.pro-card { border: 2px solid var(--accent); background: linear-gradient(180deg, rgba(254, 216, 19, 0.05) 0%, rgba(0,0,0,0) 100%), rgba(17,17,17,0.8); box-shadow: 0 0 40px rgba(254, 216, 19, 0.15); position: relative; transform: scale(1.05); }
.pro-card:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 0 60px rgba(254, 216, 19, 0.25); }
.pro-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #000; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 900; letter-spacing: 1px; }

/* === ПОДВАЛ И ЮРИДИЧЕСКИЕ СТРАНИЦЫ === */
.footer-legal { background: #050505; border-top: 1px solid var(--border); padding: 40px 5%; text-align: center; margin-top: 50px; position: relative; z-index: 10; }
.footer-logo { font-size: 20px; font-weight: 900; margin-bottom: 15px; }
.footer-legal p { color: var(--text-dim); font-size: 13px; margin: 10px 0; }
.legal-links { margin: 15px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.legal-links a { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s; cursor: pointer; }
.legal-links a:hover { opacity: 0.7; }
.copyright { opacity: 0.5; margin-top: 20px !important; }
.legal-section { padding: 60px 5%; min-height: 80vh; display: flex; justify-content: center; align-items: flex-start; }
.legal-container { background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 20px; padding: 40px; width: 100%; max-width: 800px; text-align: left; }
.legal-container h2 { color: var(--accent); margin-bottom: 30px; font-weight: 900; font-size: 24px; text-align: center; }
.legal-container p { color: #ccc; line-height: 1.7; margin-bottom: 20px; font-size: 15px; }

@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .logo { font-size: 24px; }
    .nav-links { display: none; }
    .hero { padding: 60px 5% 30px; }
    h1 { font-size: 36px; }
    .hero p { font-size: 15px; }
    .btn-mega { width: 100%; justify-content: center; }
    .logo-badge { width: 140px; height: 140px; }
    .studio-section { height: auto; padding: 15px 5%; }
    .studio-layout { flex-direction: column; height: auto; display: flex; }
    .studio-sidebar { width: 100%; overflow-y: visible; padding-right: 0; }
    .studio-canvas { min-height: 500px; margin-bottom: 20px; }
    .side-menu { width: 100%; padding: 20px; }
    .pricing-grid { flex-direction: column; align-items: center; }
    .pro-card { transform: scale(1); }
    .pro-card:hover { transform: translateY(-5px); }
}

