:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-color: #f0f0f0;
    --text-muted: #a3a3a3;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.4);
    
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Russo One', sans-serif;
    
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Typography */
.h1, h1, h2, h3, .section-title {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 2.5rem; }
.text-center { text-align: center; }

p { margin-bottom: 1rem; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.grid { display: grid; }
.mx-auto { margin-left: auto; margin-right: auto; display: block; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--accent);
    color: #000;
}
.btn-primary:hover {
    background-color: var(--accent-dark);
}
.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover {
    background-color: rgba(245, 158, 11, 0.1);
}
.btn-large {
    font-size: 1.2rem;
    padding: 18px 40px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.btn-full { width: 100%; }

.glow-hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.glow-hover:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}
.nav { display: flex; gap: 20px; }
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { color: var(--accent); }

@media(max-width: 768px) {
    .nav { display: none; }
    .nav-btn { display: none; }
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, rgba(15,15,15,0) 70%);
    z-index: -1;
    pointer-events: none;
}
.hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.platform-icons {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.platform-icons .icon {
    font-size: 0.9rem;
    background: var(--card-bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pulsing-shield {
    animation: pulse 4s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(245,158,11,0.2)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(245,158,11,0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(245,158,11,0.2)); }
}

@media(max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .platform-icons { justify-content: center; }
}

/* Quotes Section ("Батя говорит") */
.quotes-section { margin-bottom: 80px; }
.quote-box {
    background: var(--card-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.quote-header {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bubble-icon { font-size: 1.2rem; }
.quote-content {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-family: var(--font-heading);
    line-height: 1.4;
}
.accent-quote { color: var(--accent); }
.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-end infinite;
    color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* Advantages Block 2 */
.advantages { padding: 80px 0; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Counters Block 2.5 */
.counters {
    padding: 60px 0;
    background: linear-gradient(90deg, rgba(245,158,11,0.1) 0%, rgba(15,15,15,0) 50%, rgba(245,158,11,0.1) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.counters .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 5px;
}
.counter-label { font-weight: 500; color: var(--text-muted); }
@media(max-width: 768px) {
    .counters .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Instructions Block 3 */
.instruction { padding: 80px 0; }
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-num {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 15px rgba(245,158,11,0.2);
}
.step-text { font-weight: 500; font-size: 0.9rem; padding: 0 10px; }
.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 25px;
    position: relative;
    overflow: hidden;
}
.step-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0;
    background: var(--accent);
    transition: width 1s ease-out;
}
.step-line.is-visible::after { width: 100%; }

@media(max-width: 768px) {
    .stepper { flex-direction: column; align-items: flex-start; gap: 30px; }
    .step { display: flex; text-align: left; align-items: center; gap: 20px; }
    .step-num { margin: 0; }
    .step-line { display: none; }
}

/* Secondary CTA form-box Block 4 */
.cta-secondary { padding: 40px 0; }
.form-box {
    background: var(--card-bg);
    border: 1px dashed var(--accent);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
}
.cta-text { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; }

/* Pricing Block 5 */
.pricing { padding: 80px 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
.pricing-card.featured {
    border-color: var(--accent);
    background: rgba(26, 26, 26, 0.9);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
    transform: scale(1.05);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px); }
.plan-badge {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.plan-name { font-family: var(--font-heading); color: var(--text-muted); font-size: 1.2rem; margin-bottom: 10px; }
.plan-price { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 5px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); }
.plan-total { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.plan-discount { color: var(--accent); font-weight: 600; margin-bottom: 20px; min-height: 48px; }
.plan-discount del { color: var(--text-muted); opacity: 0.6; }
.plan-features { list-style: none; margin-bottom: 30px; flex: 1; }
.plan-features li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

@media(max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-10px); }
}

/* Calculator Block 5.5 */
.calculator-section { padding: 40px 0; }
.calc-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.05);
}
.calc-title { margin-bottom: 20px; font-family: var(--font-main); }
.calc-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.calc-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.calc-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }
.calc-row { display: flex; align-items: center; margin-bottom: 15px; }
.calc-label { width: 220px; font-size: 0.9rem; color: var(--text-muted); }
.calc-bar-wrap { flex: 1; background: rgba(0,0,0,0.5); height: 20px; border-radius: 10px; overflow: hidden; margin-right: 15px; }
.calc-bar { height: 100%; background: #333; width: 0%; transition: width 0.5s ease-out; }
.bar-accent { background: var(--accent); }
.calc-value { width: 80px; text-align: right; font-weight: 700; font-family: var(--font-heading); }
.calc-savings {
    font-size: 1.2rem; font-weight: 700; color: var(--accent);
    margin: 20px 0; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,0.1);
}
.calc-quote { font-style: italic; color: #ccc; }

@media(max-width: 600px) {
    .calc-row { flex-direction: column; align-items: flex-start; }
    .calc-bar-wrap { width: 100%; margin: 5px 0; }
    .calc-value { text-align: left; }
}

/* Platforms Block 6 */
.platforms { padding: 80px 0; }
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.platform-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}
.plat-icon { font-size: 3rem; margin-bottom: 15px; }
.platform-card h3 { font-size: 1.2rem; }
.platform-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; margin-bottom: 20px; }

@media(max-width: 900px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px) { .platform-grid { grid-template-columns: 1fr; } }

/* Batya Test Block 6.5 */
.test-section { padding: 60px 0; }
.test-box {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.test-progress-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.1);
}
.test-progress { height: 100%; background: var(--accent); width: 33.3%; transition: width 0.3s; }
.test-step { display: none; }
.test-step.active { display: block; animation: fadeIn 0.5s; }
.test-q-counter { color: var(--accent); font-weight: 700; margin-bottom: 10px; font-size: 0.9rem; }
.test-question { margin-bottom: 30px; font-size: 1.3rem; }
.test-options { display: flex; flex-direction: column; gap: 15px; }
.test-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}
.test-btn:hover { background: rgba(245, 158, 11, 0.1); border-color: var(--accent); }
.test-result { display: none; animation: fadeIn 0.5s; }
.test-quote-text { font-size: 1.1rem; margin: 20px 0; padding: 20px; background: rgba(0,0,0,0.3); border-left: 3px solid var(--accent); }
.threat-level { margin: 30px 0; }
.val-label { display: block; margin-bottom: 10px; }
.threat-bar-bg { width: 100%; height: 20px; background: #333; border-radius: 10px; overflow: hidden; display: inline-block; width: 80%; vertical-align: middle; }
.threat-bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width 1s ease-out; }
.threat-pct { font-family: var(--font-heading); margin-left: 10px; font-size: 1.2rem; }

/* Comparison Block 7 */
.comparison { padding: 80px 0; }
.table-container { max-width: 900px; margin: 0 auto; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.table-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.05); }
.table-row:last-child { border-bottom: none; }
.table-header { background: rgba(0,0,0,0.5); font-weight: 700; font-family: var(--font-heading); }
.table-col { flex: 1; padding: 15px 20px; display: flex; align-items: center; }
.free-col { color: var(--text-muted); }
.batya-col { color: var(--accent); font-weight: 600; background: rgba(245, 158, 11, 0.05); }

@media(max-width: 600px) {
    .table-col { padding: 10px; font-size: 0.85rem; }
}

/* Reviews Block 8 */
.reviews { padding: 80px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--card-bg); padding: 30px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }
.stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 10px; }
.review-author { font-weight: 700; margin-bottom: 15px; font-family: var(--font-heading); }
.review-card p { font-style: italic; color: #ddd; font-size: 0.95rem; }

/* Marquee Block 8.5 */
.marquee-section {
    padding: 30px 0;
    background: var(--accent);
    color: #000;
    overflow: hidden;
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 35s linear infinite;
}
.mq-item { margin-right: 30px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Guarantees Block 9 */
.guarantees { padding: 80px 0; }
.shield-icon-large { font-size: 4rem; margin-bottom: 20px; }
.guarantee-desc { max-width: 600px; margin: 0 auto 30px; font-size: 1.2rem; }
.guarantee-tags { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.gtag { background: rgba(245, 158, 11, 0.1); color: var(--accent); padding: 8px 16px; border-radius: 20px; font-weight: 600; border: 1px solid rgba(245, 158, 11, 0.2); }

/* FAQ Block 10 */
.faq { padding: 80px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--card-bg); padding: 25px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }
.faq-q { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; color: var(--accent); }
.faq-a { color: var(--text-color); line-height: 1.5; }

/* Final CTA Block 11 */
.final-cta { padding: 100px 0; }
.final-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.1);
}
.final-actions { margin: 40px 0 20px; }
.final-footer { color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 40px 0; color: var(--text-muted); }
.footer small { opacity: 0.4; }

/* Sticky CTA Mobile */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    z-index: 999;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}
@media(max-width: 768px) {
    .sticky-cta-mobile { display: block; }
    body { padding-bottom: 80px; } /* Space for sticky button */
}

/* Animations Triggered by JS */
.reveal { opacity: 0; transition: all 0.8s ease-out; }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }
.fade-up { transform: translateY(40px); }
.reveal-right { transform: translateX(40px); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
