
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
    --bg:#0c0a1a;
    --surface:#151228;
    --surface-2:#1e1a35;
    --surface-3:#2a2545;
    --accent:#c9a0ff;
    --accent-2:#8b5cf6;
    --accent-3:#6d28d9;
    --gold:#f5c842;
    --text:#eee8ff;
    --text-2:#c9bde0;
    --text-3:#9a8cc0;
    --danger:#ff6b8a;
    --success:#4ade80;
    --radius:14px;
    --radius-sm:10px;
    --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --safe-bottom:env(safe-area-inset-bottom,0px);
}
html{
    font-size:16px;
    -webkit-text-size-adjust:100%;
    -webkit-tap-highlight-color:transparent;
    scroll-behavior:smooth;
}
body{
    font-family:var(--font);
    background:var(--bg);
    color:var(--text);
    line-height:1.5;
    min-height:100vh;
    min-height:100dvh;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}

/* ===== STARS BACKGROUND ===== */
.stars{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:hidden}
.stars span{position:absolute;border-radius:50%;background:#fff;animation:twinkle var(--d,3s) ease-in-out infinite alternate}
@keyframes twinkle{0%{opacity:.1;transform:scale(.5)}100%{opacity:var(--o,.8);transform:scale(1)}}

/* ===== LAYOUT ===== */
.container{
    position:relative;z-index:1;
    max-width:480px;
    margin:0 auto;
    padding:0 16px;
    padding-bottom:calc(16px + var(--safe-bottom));
}

/* ===== HERO / FIRST SCREEN ===== */
.hero{
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:20px 0;
    text-align:center;
}
.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(139,92,246,.15);
    border:1px solid rgba(139,92,246,.3);
    border-radius:20px;
    padding:6px 14px;
    font-size:13px;
    color:var(--accent);
    margin:0 auto 16px;
    width:fit-content;
}
.hero-badge svg{flex-shrink:0}
.hero h1{
    font-size:26px;
    font-weight:800;
    line-height:1.2;
    margin-bottom:10px;
    letter-spacing:-0.02em;
}
.hero h1 em{
    font-style:normal;
    background:linear-gradient(135deg,var(--accent),var(--gold));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}
.hero-sub{
    font-size:15px;
    color:var(--text-2);
    margin-bottom:20px;
    line-height:1.45;
}
.hero-sub strong{color:var(--text);font-weight:600}

/* ===== TRUST BAR ===== */
.trust-bar{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom:24px;
}
.trust-item{text-align:center}
.trust-num{font-size:20px;font-weight:800;color:var(--accent)}
.trust-label{font-size:11px;color:var(--text-3);margin-top:2px}

/* ===== QUIZ FORM ===== */
.quiz-card{
    background:var(--surface);
    border:1px solid rgba(139,92,246,.15);
    border-radius:var(--radius);
    padding:20px 16px;
    text-align:left;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

.select-row{
    display:flex;
    gap:10px;
    margin-bottom:16px;
}
.select-group{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.select-group label{
    font-size:12px;
    color:var(--text-2);
    font-weight:600;
}
.zodiac-select-wrap{
    position:relative;
}
.zodiac-select-wrap select{
    width:100%;
    height:52px;
    padding:0 36px 0 14px;
    background:var(--surface-2);
    border:2px solid var(--surface-3);
    border-radius:var(--radius-sm);
    font-family:var(--font);
    font-size:16px;
    color:var(--text);
    cursor:pointer;
    outline:none;
    transition:border-color .2s;
    /* НЕ убираем appearance — сохраняем нативный iOS picker */
}
.zodiac-select-wrap select:focus{
    border-color:var(--accent-2);
}
.zodiac-select-wrap select option{
    background:var(--surface);
    color:var(--text);
}
/* Кастомная стрелка поверх (не ломает нативный picker) */
.zodiac-select-wrap::after{
    content:'';
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    width:0;height:0;
    border-left:5px solid transparent;
    border-right:5px solid transparent;
    border-top:6px solid var(--text-3);
    pointer-events:none;
}
.select-divider{
    display:flex;
    align-items:flex-end;
    padding-bottom:16px;
    font-size:20px;
    color:var(--text-3);
    font-weight:300;
    line-height:52px;
}

/* ===== BUTTONS ===== */
.btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:48px;
    padding:12px 20px;
    border:none;
    border-radius:var(--radius-sm);
    font-family:var(--font);
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:transform .15s,opacity .15s;
    -webkit-appearance:none;
    appearance:none;
    gap:8px;
}
.btn:active{transform:scale(.97);opacity:.9}
.btn-primary{
    background:linear-gradient(135deg,var(--accent-2),var(--accent-3));
    color:#fff;
    box-shadow:0 4px 20px rgba(139,92,246,.35);
}
.btn-gold{
    background:linear-gradient(135deg,var(--gold),#e6a817);
    color:#1a1500;
    box-shadow:0 4px 20px rgba(245,200,66,.3);
}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}

/* ===== SECTION STYLES ===== */
.section{padding:40px 0}
.section-title{
    font-size:22px;
    font-weight:800;
    text-align:center;
    margin-bottom:8px;
    letter-spacing:-0.02em;
}
.section-sub{
    font-size:14px;
    color:var(--text-2);
    text-align:center;
    margin-bottom:24px;
}

/* ===== RESULT PREVIEW (removed - direct to phone form) ===== */

/* ===== PHONE FORM ===== */
.phone-section{
    display:none;
    height:100vh;
    height:100dvh;
    overflow:hidden;
    text-align:center;
    flex-direction:column;
    justify-content:center;
    padding:16px 0;
}
.phone-section.visible{display:flex;animation:fadeUp .4s ease}
.phone-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-bottom:10px;
}
.phone-header .ph-signs{font-size:22px}
.phone-header .ph-names{font-size:13px;font-weight:600}
.phone-ready{
    display:inline-flex;
    align-items:center;
    gap:5px;
    background:rgba(74,222,128,.1);
    border:1px solid rgba(74,222,128,.25);
    border-radius:16px;
    padding:4px 10px;
    font-size:11px;
    color:var(--success);
    margin:0 auto 12px;
    width:fit-content;
}
.phone-title{
    font-size:17px;
    font-weight:800;
    margin-bottom:4px;
}
.phone-sub{
    font-size:12px;
    color:var(--text-2);
    margin-bottom:14px;
    line-height:1.4;
}
.report-preview{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin-bottom:14px;
    text-align:left;
}
.rp-item{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    color:var(--text-2);
    background:var(--surface);
    border-radius:8px;
    padding:8px 8px;
    line-height:1.25;
}
.rp-item .rp-icon{
    font-size:15px;
    flex-shrink:0;
    width:20px;
    text-align:center;
}
.rp-item .rp-check{
    color:var(--success);
    font-size:10px;
    margin-left:auto;
    flex-shrink:0;
}
.input-group{
    position:relative;
    margin-bottom:8px;
}
.input-group input{
    width:100%;
    height:48px;
    padding:12px 16px 12px 44px;
    background:var(--surface-2);
    border:2px solid var(--surface-3);
    border-radius:var(--radius-sm);
    font-family:var(--font);
    font-size:16px;
    color:var(--text);
    outline:none;
    transition:border-color .2s;
    -webkit-appearance:none;
    appearance:none;
}
.input-group input:focus{border-color:var(--accent-2)}
.input-group input.error{border-color:var(--danger)}
.input-group input.valid{border-color:var(--success)}
.input-group .input-icon{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:var(--text-3);
    pointer-events:none;
}
.input-group input::placeholder{color:var(--text-3);opacity:1}
.error-msg{
    font-size:11px;
    color:var(--danger);
    text-align:left;
    margin-top:3px;
    display:none;
}
.error-msg.visible{display:block}

.consent{
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin:10px 0;
    text-align:left;
}
.consent input[type="checkbox"]{
    width:18px;
    height:18px;
    min-width:18px;
    margin-top:1px;
    accent-color:var(--accent-2);
    cursor:pointer;
}
.consent label{
    font-size:11px;
    color:var(--text-3);
    cursor:pointer;
    line-height:1.35;
}
.consent label a{color:var(--accent);text-decoration:none}

.privacy-note{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:10px;
    color:var(--text-3);
    margin-top:10px;
}

/* ===== REVIEWS ===== */
.reviews{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.review{
    background:var(--surface);
    border-radius:var(--radius-sm);
    padding:14px;
}
.review-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}
.review-avatar{
    width:36px;height:36px;
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:16px;
    font-weight:700;
    color:#fff;
}
.review-name{font-size:13px;font-weight:600}
.review-date{font-size:11px;color:var(--text-3)}
.review-stars{color:var(--gold);font-size:12px;letter-spacing:2px}
.review-text{font-size:13px;color:var(--text-2);line-height:1.5}

/* ===== FAQ ===== */
.faq-item{
    border-bottom:1px solid var(--surface-3);
    padding:14px 0;
}
.faq-q{
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    min-height:44px;
    gap:12px;
}
.faq-q svg{
    flex-shrink:0;
    transition:transform .2s;
    color:var(--text-3);
}
.faq-item.open .faq-q svg{transform:rotate(180deg)}
.faq-a{
    font-size:13px;
    color:var(--text-2);
    line-height:1.5;
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease,padding .3s ease;
}
.faq-item.open .faq-a{
    max-height:200px;
    padding-top:10px;
}

/* ===== FOOTER ===== */
.footer{
    text-align:center;
    padding:24px 0;
    border-top:1px solid var(--surface-3);
    margin-top:24px;
}
.footer p{font-size:11px;color:var(--text-3);line-height:1.6}

/* ===== PROCESSING ANIMATION ===== */
.processing{
    display:none;
    text-align:center;
    padding:32px 16px;
}
.processing.visible{display:block;animation:fadeUp .3s ease}
.proc-spinner{
    width:60px;height:60px;
    margin:0 auto 16px;
    border:3px solid var(--surface-3);
    border-top-color:var(--accent);
    border-radius:50%;
    animation:spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.proc-text{font-size:14px;color:var(--text-2);margin-bottom:8px}
.proc-progress{
    width:100%;
    height:4px;
    background:var(--surface-3);
    border-radius:2px;
    overflow:hidden;
    margin-top:12px;
}
.proc-progress-bar{
    height:100%;
    background:linear-gradient(90deg,var(--accent-2),var(--accent));
    border-radius:2px;
    width:0%;
    transition:width .3s ease;
}

/* ===== SCROLL CTA ===== */
.scroll-hint{
    margin-top:16px;
    animation:bounce 2s infinite;
}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
.scroll-hint svg{color:var(--text-3)}

/* ===== RESPONSIVE ===== */
@media(max-width:359px){
    .hero h1{font-size:22px}
    .trust-bar{gap:14px}
}
@media(min-width:640px){
    .container{padding:0 24px}
    .hero h1{font-size:32px}
}
@media(min-width:1024px){
    .container{max-width:600px}
    .hero{min-height:auto;padding:80px 0 40px}
}
