:root {
    --primary-blue: #0039A6; /* Официальный синий цвет флага РФ */
    --accent-red: #D52B1E;   /* Официальный красный цвет флага РФ */
    --accent-red-hover: #b82216;
    --text-main: #1D1D1F;
    --text-muted: #6E6E73;
    --bg-main: #F5F7FA;
    --bg-card: #FFFFFF;
    --border-light: #E5E5EA;
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--bg-card);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 24px;
}

.mark-white { height: 6px; background: #fff; border: 1px solid var(--border-light); border-radius: 2px; }
.mark-blue { height: 6px; background: var(--primary-blue); border-radius: 2px; }
.mark-red { height: 6px; background: var(--accent-red); border-radius: 2px; }

.logo-text { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--primary-blue); 
    letter-spacing: -0.5px; 
}

.header-nav { display: flex; gap: 32px; }
.nav-link { color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--primary-blue); }

.tg-button {
    background: transparent;
    color: var(--primary-blue);
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.tg-button:hover { 
    background: var(--primary-blue); 
    color: #fff; 
}

/* Main Content */
.main-content {
    padding: 60px 0 100px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 57, 166, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-text .highlight {
    color: var(--primary-blue);
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 90%;
}

.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.benefits li::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Expert Profile */
.expert-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 90%;
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    padding: 2px;
}

.expert-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.expert-role {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 4px;
}

.expert-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Quiz Container (Card) */
.quiz-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

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

.quiz-step h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.3;
}

.quiz-step p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: #fff;
    border: 2px solid var(--border-light);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-btn::after {
    content: "→";
    color: transparent;
    transition: color 0.2s ease, transform 0.2s ease;
}

.option-btn:hover {
    background: rgba(0, 57, 166, 0.02);
    border-color: var(--primary-blue);
}

.option-btn:hover::after {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Lead Form */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-form input {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    padding: 18px 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.lead-form input:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.1);
}

.lead-form input::placeholder {
    color: #A0A0A5;
}

.submit-btn {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(213, 43, 30, 0.3);
}

.submit-btn:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 43, 30, 0.4);
}

.privacy {
    font-size: 0.85rem !important;
    text-align: center;
    margin-top: 12px;
    color: #A0A0A5 !important;
}

.success-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 24px;
}

/* Progress Bar */
.quiz-progress {
    margin-top: 40px;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.4s ease-out;
}

/* Blog / Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-blue);
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.article-read-more {
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-read-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.article-card:hover .article-read-more::after {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
    text-align: center;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 0.85rem;
    margin-top: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .main-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text { text-align: center; }
    .subtitle { margin: 0 auto 32px; }
    .benefits { display: inline-block; text-align: left; }
    .quiz-container { padding: 32px 24px; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .tg-button { padding: 8px 16px; font-size: 0.9rem; }
    .hero-text h1 { font-size: 2rem; }
}
