*{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#697386;--border:#e3e8f0;--primary:#2563eb;--primary-dark:#1d4ed8;--success:#15803d;--danger:#dc2626}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}
.page{min-height:100vh;display:flex;flex-direction:column}
.header{height:76px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px}
.logo{max-width:1050px;width:100%;margin:auto;display:flex;align-items:center;gap:12px}
.logo-icon{width:42px;height:42px;background:var(--primary);color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.logo h1{font-size:17px;line-height:1.2}.logo span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.main{flex:1;width:100%;max-width:1050px;margin:auto;padding:55px 20px 70px}
.hero{display:grid;grid-template-columns:1fr 450px;gap:65px;align-items:center}
.hero-content{max-width:550px}.badge{display:inline-flex;padding:7px 12px;border-radius:999px;background:#e8f0ff;color:var(--primary);font-size:11px;font-weight:800;letter-spacing:.8px;margin-bottom:17px}
.hero h2{font-size:clamp(34px,5vw,54px);line-height:1.05;letter-spacing:-1.5px;margin-bottom:20px}.hero p{color:var(--muted);font-size:17px;line-height:1.7}
.mini-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.mini-points span{font-size:12px;background:#fff;border:1px solid var(--border);padding:8px 10px;border-radius:999px}
.upload-card{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:22px;box-shadow:0 15px 50px rgba(31,41,55,.08)}
.drop-zone{min-height:260px;border:2px dashed #cbd5e1;border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;transition:.2s;padding:25px}
.drop-zone:hover,.drop-zone.dragging{border-color:var(--primary);background:#f7faff}.drop-zone.has-file{border-color:var(--primary);background:#f8fbff}
.upload-icon{width:58px;height:58px;background:#edf3ff;color:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;margin-bottom:16px}
.upload-title{font-weight:750;font-size:17px;margin-bottom:6px}.upload-text{color:var(--muted);font-size:14px;margin-bottom:12px}.upload-format{color:#94a3b8;font-size:12px}
.selected-file{margin-top:15px;padding:12px;background:#f8fafc;border:1px solid var(--border);border-radius:14px;align-items:center;gap:12px}
.file-preview{width:52px;height:66px;border-radius:8px;overflow:hidden;background:#e5e7eb;flex-shrink:0}.file-preview img{width:100%;height:100%;object-fit:cover}
.file-info{flex:1;min-width:0}.file-info strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.file-info span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.remove-button{width:32px;height:32px;border:0;border-radius:50%;background:#fee2e2;color:#dc2626;cursor:pointer;font-size:21px}
.generate-button{width:100%;border:0;border-radius:13px;padding:16px;margin-top:15px;background:var(--primary);color:#fff;font-size:15px;font-weight:750;cursor:pointer;transition:.2s;display:flex;align-items:center;justify-content:center;gap:9px}
.generate-button:hover{background:var(--primary-dark);transform:translateY(-1px)}.generate-button:disabled{opacity:.7;cursor:not-allowed;transform:none}
.spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.progress-area{text-align:center;padding:35px 10px 10px}.progress-icon{font-size:35px;margin-bottom:10px}.progress-area h3{font-size:18px;margin-bottom:7px}.progress-area p{color:var(--muted);font-size:13px;margin-bottom:20px}
.progress-bar{width:100%;height:8px;background:#e8edf4;border-radius:999px;overflow:hidden;margin-bottom:10px}.progress-fill{height:100%;width:0;background:var(--primary);border-radius:inherit;transition:width .4s ease}.progress-area small{color:#94a3b8;font-size:11px}
.error-box{margin-top:15px;padding:13px 15px;background:#fef2f2;border:1px solid #fecaca;color:var(--danger);border-radius:11px;font-size:13px;line-height:1.5}
.result-area{text-align:center;padding-top:20px}.success-message{background:#f0fdf4;border:1px solid #bbf7d0;color:var(--success);border-radius:10px;padding:11px;font-size:13px;margin-bottom:18px}
.result-photo{width:190px;height:244px;margin:0 auto 15px;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.15)}.result-photo img{width:100%;height:100%;object-fit:cover}
.result-info{margin-bottom:17px}.result-info strong{display:block;font-size:14px}.result-info span{color:var(--muted);font-size:12px}
.download-button{display:flex;align-items:center;justify-content:center;width:100%;padding:15px;border-radius:12px;background:var(--primary);color:#fff;text-decoration:none;font-weight:750;font-size:14px}.download-button:hover{background:var(--primary-dark)}
.new-photo-button{width:100%;margin-top:9px;border:0;background:transparent;color:var(--primary);padding:10px;cursor:pointer;font-size:13px;font-weight:650}
.features{margin-top:80px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature{background:#fff;border:1px solid var(--border);border-radius:17px;padding:22px;display:flex;gap:15px}
.feature-icon{width:44px;height:44px;flex-shrink:0;border-radius:12px;background:#eef4ff;color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800}.feature h3{font-size:14px;margin-bottom:6px}.feature p{color:var(--muted);font-size:12px;line-height:1.5}
.footer{text-align:center;color:#94a3b8;font-size:12px;padding:22px;border-top:1px solid var(--border);background:#fff}
@media(max-width:850px){.hero{grid-template-columns:1fr;gap:35px}.hero-content{max-width:650px;text-align:center;margin:auto}.features{grid-template-columns:1fr}}
@media(max-width:520px){.header{padding:0 15px}.main{padding:35px 14px 50px}.hero h2{font-size:36px}.hero p{font-size:15px}.upload-card{padding:14px;border-radius:17px}.drop-zone{min-height:230px}.features{margin-top:45px}.mini-points{justify-content:center}}
