/* Reset & Variables */
:root {
    --font-sans: "DM Sans", sans-serif;
    --font-serif: "Playfair Display", serif;
    
    --bg-color: #fafafa;
    --text-color: #1e293b;
    --primary-color: #1e293b; /* Navy */
    --accent-color: #b91c1c; /* Deep Red */
    --muted-color: #94a3b8;
    --border-color: #e2e8f0;
    --secondary-bg: #f1f5f9;
    
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Utilities */
.hidden { display: none !important; }
.view { display: none; opacity: 0; transition: opacity 0.5s ease; }
.view.active { display: block; opacity: 1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 2rem;
    height: 4rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

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

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.2);
}
.btn-accent:hover { opacity: 0.9; }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-outline:hover { background-color: var(--secondary-bg); }

.btn-full { width: 100%; }

/* Landing View */
#landing-view {
    position: relative;
    min-height: 100vh;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: slowZoom 20s linear infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #1e293b, rgba(30, 41, 59, 0.6), transparent);
    z-index: 1;
}
.overlay-black {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 2rem;
}

.headline {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.headline .italic {
    font-style: italic;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .headline { font-size: 5rem; }
}

.subline {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 40rem;
    margin-bottom: 3rem;
    font-weight: 300;
}
.desktop-break { display: none; }
@media (min-width: 768px) {
    .desktop-break { display: block; }
    .subline { font-size: 1.5rem; }
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.trust-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    column-gap: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 22rem;
}
.trust-indicators span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

/* Mobile tweaks: остаются горизонтально, можно лишь немного уменьшить шрифт */
@media (max-width: 480px) {
    .trust-indicators {
        font-size: 0.8rem;
        max-width: 100%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

/* Split Layout */
#split-layout {
    min-height: 100vh;
}

.split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .split-container {
        flex-direction: row;
    }
}

.panel-left {
    display: none;
}

@media (min-width: 768px) {
    .panel-left {
        display: block;
        width: 40%;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        background-color: var(--primary-color);
    }
    .panel-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
        mix-blend-mode: luminosity;
    }
    .panel-left .overlay-gradient {
        background: linear-gradient(to bottom, transparent, rgba(30,41,59, 0.8));
        z-index: 2;
    }
    .panel-text {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2.5rem;
        z-index: 10;
        color: white;
    }
    .panel-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .panel-text p {
        opacity: 0.8;
        font-weight: 300;
    }
}

.panel-right {
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .panel-right {
        width: 60%;
        padding: 4rem;
    }
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
}

/* Quiz View */
.progress-header {
    margin-bottom: 2rem;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--muted-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.progress-bar-bg {
    height: 0.5rem;
    background-color: var(--secondary-bg);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.question-text {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .question-text { font-size: 2.25rem; }
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--secondary-bg);
}

.option-marker {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.option-btn:hover .option-marker {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.option-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Lead Capture */
.lead-content {
    text-align: center;
}
.icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.lead-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.lead-content p {
    color: var(--muted-color);
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

.secure-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Result View */
.result-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 9999px;
    margin-bottom: 1rem;
}
.result-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.result-subtitle {
    font-size: 1.125rem;
    color: var(--muted-color);
}
.font-semibold { font-weight: 600; color: var(--text-color); }

.result-body {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.recommendation-box {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.recommendation-box h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}
.recommendation-box p {
    font-size: 0.875rem;
    color: #1e40af;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) {
    .result-actions { flex-direction: row; }
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--muted-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
