:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --accent: #10B981; /* Зеленый */
    --accent-hover: #059669;
    --dark: #1E293B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray: #94A3B8;
    --danger-bg: #FEF2F2;
    --danger-text: #991B1B;
    --danger-border: #FECACA;
    
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05);
    --radius: 16px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: #F1F5F9; color: var(--dark); overflow-x: hidden; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
button { font-family: var(--font-head); }

/* Navigation */
.navbar { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); position: fixed; width: 100%; top:0; z-index: 999; border-bottom: 1px solid #E2E8F0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--dark); }
.logo span { color: var(--primary); }
.logo i { color: var(--accent); margin-right: 5px; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero { 
    margin-top: 70px; 
    padding: 80px 0 120px; 
    background: white; 
    text-align: center; 
    position: relative; 
    background: url('../img/hero-bg.jpg') center/cover;
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.95) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }

.badge { background: #DBEAFE; color: var(--primary); padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 20px; }
h1 { font-family: var(--font-head); font-size: 42px; line-height: 1.2; margin-bottom: 20px; color: var(--dark); }
.highlight { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray); margin-bottom: 30px; }

/* Disclaimer */
.disclaimer-box {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.disclaimer-box i { font-size: 20px; opacity: 0.8; }

/* Button */
.btn-primary { background: var(--primary); color: white; border: none; padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); display: inline-flex; align-items: center; gap: 10px; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-large { width: 100%; justify-content: center; font-size: 18px; }
.btn-glow { animation: pulse-shadow 2s infinite; }

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* About */
.section-about { padding: 60px 0; background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 30px; }
.feature-item { text-align: center; padding: 15px; background: var(--light); border-radius: 12px; }
.feature-item i { font-size: 24px; color: var(--primary); margin-bottom: 10px; display: block; }
.feature-item span { font-weight: 600; font-size: 12px; }

/* Main App Wrapper */
#app-section { padding: 40px 0 80px; min-height: 600px; }
.app-wrapper { max-width: 750px; background: white; border-radius: 24px; padding: 40px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }

/* Quiz */
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 10px; }
.quiz-title h3 { font-family: var(--font-head); font-size: 20px; display: flex; align-items: center; gap: 10px; }
#step-count { font-size: 14px; color: var(--gray); font-weight: 600; }
.progress-bar { width: 100%; height: 6px; background: #E2E8F0; border-radius: 10px; margin-top: 10px; }
.progress { height: 100%; background: var(--primary); width: 20%; transition: width 0.4s ease; border-radius: 10px; }

.quiz-container-inner { position: relative; min-height: 350px; }
.question-slide { position: absolute; width: 100%; top: 0; left: 0; opacity: 0; transform: translateX(50px); transition: all 0.4s ease-out; pointer-events: none; }
.question-slide.active { opacity: 1; transform: translateX(0); pointer-events: all; position: relative; }
.question-slide.leaving { opacity: 0; transform: translateX(-50px); }

.question-slide h4 { font-size: 22px; margin-bottom: 25px; font-weight: 700; color: var(--dark); }
.options-grid { display: grid; gap: 12px; }
.options-grid button { text-align: left; background: white; border: 2px solid #E2E8F0; padding: 18px; border-radius: 12px; font-size: 16px; color: var(--dark); font-weight: 500; transition: 0.2s; display: flex; align-items: center; gap: 12px; }
.options-grid button i { color: var(--primary); width: 24px; text-align: center; }
.options-grid button:hover { border-color: var(--primary); background: #EFF6FF; transform: translateX(5px); }

/* Loader */
#loader-block { text-align: center; padding: 40px 0; }
.loader-content { max-width: 400px; margin: 0 auto; }
.spinner-circle { width: 50px; height: 50px; border: 4px solid #E2E8F0; border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 20px; animation: spin 1s linear infinite; }
.check-list { list-style: none; margin-top: 20px; text-align: left; }
.check-list li { margin-bottom: 10px; color: var(--gray); font-size: 14px; transition: color 0.3s; }
.check-list li.checked { color: var(--accent); font-weight: 600; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Calculator (Light Theme) */
.calc-header { text-align: center; margin-bottom: 30px; }
.icon-wrapper { width: 60px; height: 60px; background: #DCFCE7; color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 15px; }
.calc-header h2 { font-family: var(--font-head); color: var(--dark); }

.calculator-ui { background: #F8FAFC; padding: 30px; border-radius: 20px; border: 1px solid #E2E8F0; }
.calc-row { display: grid; gap: 20px; margin-bottom: 30px; }
.range-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; color: var(--dark); }
.input-wrap { background: white; padding: 15px; border-radius: 12px; border: 1px solid #E2E8F0; display: flex; align-items: center; gap: 15px; }
input[type=range] { flex-grow: 1; height: 6px; background: #E2E8F0; border-radius: 5px; outline: none; -webkit-appearance: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.input-wrap span { font-weight: 700; color: var(--primary); min-width: 60px; text-align: right; }

.result-display { background: white; border: 1px solid #E2E8F0; padding: 25px; border-radius: 16px; text-align: center; box-shadow: var(--shadow-card); margin-bottom: 25px; }
.result-display .label { font-size: 14px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.amount-box { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 5px; flex-wrap: wrap; }
.amount-box h1 { font-family: var(--font-head); font-size: 42px; color: var(--dark); }
.profit-indicator { background: #DCFCE7; color: #166534; padding: 4px 10px; border-radius: 50px; font-size: 14px; font-weight: 700; }

.blink-text { color: #DC2626; font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 15px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

/* Contact Form */
.hidden-form { display: none; }
.section-contact { padding-top: 40px; border-top: 1px solid #E2E8F0; margin-top: 40px; }
.contact-wrapper { max-width: 600px; text-align: center; }
.form-header h2 { margin-bottom: 10px; font-family: var(--font-head); }
#lead-form { margin-top: 30px; display: grid; gap: 15px; }
.input-group { position: relative; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.input-group input { width: 100%; padding: 15px 15px 15px 45px; border: 2px solid #E2E8F0; border-radius: 10px; font-size: 16px; font-family: var(--font-body); transition: 0.3s; }
.input-group input:focus { border-color: var(--primary); outline: none; }
.form-check { font-size: 12px; text-align: left; display: flex; gap: 10px; align-items: center; color: var(--gray); }
.form-check a { color: var(--primary); }

#form-success { text-align: center; padding: 40px; background: #DCFCE7; border-radius: 16px; color: #166534; }
#form-success i { font-size: 50px; margin-bottom: 20px; }

/* Utilities */
.hidden { display: none !important; }
.fade-in-up { animation: fadeUp 0.8s ease; }
.fade-in-left { animation: fadeLeft 0.8s ease; }
.fade-in-right { animation: fadeRight 0.8s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* Footer */
footer { background: white; padding: 40px 0; border-top: 1px solid #E2E8F0; margin-top: 60px; text-align: center; }
.footer-col { margin-bottom: 20px; }
.footer-logo { font-weight: 800; font-family: var(--font-head); color: var(--dark); font-size: 20px; }
.footer-logo span { color: var(--primary); }
.footer-col.links a { color: var(--gray); margin: 0 10px; text-decoration: none; font-size: 13px; font-weight: 500; }
.copyright { color: #CBD5E1; font-size: 12px; }

/* Mobile Adapt */
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .calc-row { grid-template-columns: 1fr; }
    .disclaimer-box { font-size: 11px; }
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #E2E8F0;
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0; }
}

/* New Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.phone-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.phone-group:focus-within {
    border-color: var(--primary);
}

.phone-prefix {
    background: #F1F5F9;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    border-right: 1px solid #E2E8F0;
}

.phone-group input {
    border: none !important;
    border-radius: 0 !important;
    padding-left: 15px !important;
}

.phone-group input:focus {
    border: none !important;
    box-shadow: none !important;
}

.error-text {
    color: #DC2626;
    font-size: 12px;
    text-align: left;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}