:root {
    --alfa-red: #EF3124;
    --alfa-red-hover: #D92015;
    --alfa-red-light: rgba(239, 49, 36, 0.1);
    --alfa-dark: #0B1F35;
    --alfa-gray: #F3F4F6;
    --alfa-gray-2: #E5E7EB;
    --alfa-text: #0B1F35;
    --alfa-text-secondary: #6E7A8A;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(11, 31, 53, 0.08);
    --shadow-sm: 0 4px 12px rgba(11, 31, 53, 0.06);
    --transition: 0.2s ease;
}

/* 1. Глобальный сброс и запрет горизонтального скролла */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--alfa-text);
    background: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.main { flex: 1; width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* TYPOGRAPHY */
h1 { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--alfa-dark); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--alfa-dark); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 600; line-height: 1.3; color: var(--alfa-dark); }
h4 { font-size: 1rem; font-weight: 600; color: var(--alfa-dark); }
p { font-size: clamp(0.95rem, 2vw, 1.05rem); color: var(--alfa-text-secondary); }
.text-red { color: var(--alfa-red); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all var(--transition); border: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--alfa-red); color: var(--white); box-shadow: 0 4px 14px rgba(239, 49, 36, 0.3); }
.btn-primary:hover { background: var(--alfa-red-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 49, 36, 0.4); }
.btn-secondary { background: var(--white); color: var(--alfa-dark); border: 2px solid var(--alfa-gray-2); }
.btn-secondary:hover { border-color: var(--alfa-dark); }
.btn-ghost { background: transparent; color: var(--alfa-dark); border: 2px solid var(--alfa-gray-2); }
.btn-ghost:hover { background: var(--alfa-gray); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* HEADER */
.header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--alfa-gray-2); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; }
.logo-mark { font-size: 1.4rem; color: var(--alfa-red); }
.logo-text { font-size: 1.4rem; color: var(--alfa-dark); }
.logo-badge { font-size: 0.95rem; font-weight: 600; background: var(--alfa-red); color: var(--white); padding: 8px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 4px; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { text-decoration: none; color: var(--alfa-text); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav a:hover { color: var(--alfa-red); }
.nav a.is-active { color: var(--alfa-red); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--alfa-dark); transition: 0.3s; border-radius: 2px; }
.nav-overlay { display: none; }

/* HERO */
.hero { padding: 60px 0 80px; background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(239, 49, 36, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; position: relative; z-index: 1; }
.hero-label { display: inline-block; padding: 6px 14px; background: var(--alfa-red-light); color: var(--alfa-red); border-radius: 20px; font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; }
.hero-text h1 { margin-bottom: 18px; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-features { display: flex; flex-direction: column; gap: 16px; }
.hero-feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon-wrap { flex-shrink: 0; width: 28px; height: 28px; background: var(--alfa-red-light); color: var(--alfa-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.hero-feature strong { display: block; color: var(--alfa-dark); font-size: 0.95rem; margin-bottom: 2px; }
.hero-feature p { font-size: 0.9rem; margin: 0; }

/* FORM CARD */
.hero-card { background: var(--white); padding: 32px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid rgba(229, 231, 235, 0.6); }
.card-header { margin-bottom: 24px; }
.card-header h3 { margin-bottom: 4px; }
.card-header p { font-size: 0.9rem; margin: 0; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--alfa-text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--alfa-gray-2); border-radius: 10px; font-size: 0.95rem; transition: all var(--transition); font-family: inherit; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--alfa-red); box-shadow: 0 0 0 4px var(--alfa-red-light); }
.form-disclaimer { font-size: 0.75rem; color: var(--alfa-text-secondary); text-align: center; margin-top: 4px; line-height: 1.4; }
.form-disclaimer a { color: var(--alfa-red); text-decoration: underline; }
.form-message { margin-top: 16px; padding: 12px; border-radius: 10px; font-size: 0.9rem; display: none; }
.form-message.success { background: #ECFDF5; color: #065F46; display: block; }
.form-message.error { background: #FEF2F2; color: #991B1B; display: block; }

/* TRUST & SECTIONS */
.trust-section { padding: 40px 0; background: var(--white); border-bottom: 1px solid var(--alfa-gray-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { text-align: center; }
.trust-number { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--alfa-red); margin-bottom: 4px; letter-spacing: -0.02em; }
.trust-label { font-size: 0.9rem; color: var(--alfa-text-secondary); font-weight: 500; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 12px; }

/* TARIFFS */
.tariffs-section { padding: 80px 0; background: var(--alfa-gray); }
.tariffs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.tariff-card { background: var(--white); padding: 32px 28px; border-radius: var(--radius); border: 2px solid transparent; transition: all var(--transition); position: relative; display: flex; flex-direction: column; }
.tariff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tariff-card--featured { border-color: var(--alfa-red); box-shadow: var(--shadow); }
.tariff-badge { position: absolute; top: -12px; right: 24px; background: var(--alfa-red); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.tariff-card h3 { margin-bottom: 16px; }
.tariff-price { margin-bottom: 16px; display: flex; align-items: baseline; gap: 4px; }
.price-value { font-size: 2.2rem; font-weight: 800; color: var(--alfa-dark); letter-spacing: -0.02em; }
.price-period { font-size: 1rem; color: var(--alfa-text-secondary); }
.tariff-desc { font-size: 0.95rem; margin-bottom: 20px; min-height: 48px; }
.tariff-features { list-style: none; margin-bottom: 24px; flex: 1; }
.tariff-features li { padding: 8px 0; font-size: 0.9rem; color: var(--alfa-text); display: flex; align-items: center; gap: 8px; }
.tariff-features li::before { content: '✓'; color: var(--alfa-red); font-weight: 700; }

/* CTA */
.cta-section { padding: 80px 0; background: var(--white); }
.cta-card { background: linear-gradient(135deg, var(--alfa-red) 0%, #c02015 100%); border-radius: 24px; padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 40px; color: var(--white); }
.cta-content h2 { color: var(--white); margin-bottom: 8px; }
.cta-content p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin: 0; }
.cta-actions .btn-primary { background: var(--white); color: var(--alfa-red); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.cta-actions .btn-primary:hover { background: var(--alfa-gray); }

/* FOOTER */
.footer { background: var(--alfa-dark); color: rgba(255, 255, 255, 0.7); padding: 60px 0 30px; margin-top: auto; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; }
.footer-col p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin: 0; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.7); padding: 4px 0; transition: color var(--transition); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; margin: 0; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--alfa-dark); color: var(--white); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; z-index: 9999; transform: translateY(100%); transition: transform 0.3s; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.9rem; }
.cookie-btn { background: var(--alfa-red); color: var(--white); border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: inherit; transition: background var(--transition); flex-shrink: 0; }
.cookie-btn:hover { background: var(--alfa-red-hover); }

/* ADMIN PANEL STYLES */
.admin-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--alfa-gray-2); scrollbar-width: thin; scrollbar-color: var(--alfa-red) var(--alfa-gray); }
.table-wrapper::-webkit-scrollbar { height: 10px; }
.table-wrapper::-webkit-scrollbar-track { background: var(--alfa-gray); border-radius: 8px; }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--alfa-red); border-radius: 8px; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: var(--alfa-red-hover); }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th, .data-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--alfa-gray-2); white-space: nowrap; }
.data-table th { background: #F9FAFB; font-weight: 600; font-size: 0.85rem; color: var(--alfa-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; display: inline-block; }
.status-sent { background: #FEF3C7; color: #92400E; }
.status-in_progress { background: #DBEAFE; color: #1E40AF; }
.status-completed { background: #D1FAE5; color: #065F46; }
.status-declined { background: #FEE2E2; color: #991B1B; }
.status-duplicate { background: #FEE2E2; color: #991B1B; }
.status-deleted, .status-closed { background: #E5E7EB; color: #374151; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.admin-form { background: var(--white); padding: 32px; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--alfa-gray-2); max-width: 500px; }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form-wide { background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: 16px; padding: 28px; max-width: 900px; }
.admin-form-wide .form-group { margin-bottom: 18px; }
.admin-form-wide textarea, .admin-form-wide select { width: 100%; padding: 12px 14px; border: 2px solid var(--alfa-gray-2); border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: #fff; }
.admin-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: start; }
.admin-detail { background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: 16px; padding: 24px; }
.admin-detail dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; }
.admin-detail dt { color: var(--alfa-text-secondary); font-size: 0.88rem; }
.admin-detail dd { font-weight: 600; overflow-wrap: anywhere; }
.admin-inline-form { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.admin-check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 18px; }
.admin-check input { width: 18px; height: 18px; }
.admin-bar { height: 10px; border-radius: 6px; overflow: hidden; background: var(--alfa-gray); }
.admin-bar span { display: block; height: 100%; background: var(--alfa-red); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat { background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: 12px; padding: 18px; }
.admin-stat__value { font-size: 1.6rem; font-weight: 800; color: var(--alfa-dark); line-height: 1.2; }
.admin-stat__label { font-size: 0.82rem; color: var(--alfa-text-secondary); margin-top: 4px; }
.admin-stat--red .admin-stat__value { color: var(--alfa-red); }
.admin-stat--green .admin-stat__value { color: #065F46; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin-filters input, .admin-filters select { padding: 11px 14px; border: 2px solid var(--alfa-gray-2); border-radius: 10px; font-family: inherit; font-size: 0.92rem; background: #fff; }
.admin-filters input[type=text] { flex: 1; min-width: 200px; }

/* Юридические страницы */
.legal-content { padding: 60px 20px; max-width: 800px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 24px; }
.legal-content h3 { margin-top: 32px; margin-bottom: 12px; }
.legal-content p { margin-bottom: 16px; line-height: 1.7; }
.legal-content ul, .legal-content ol { margin: 16px 0 16px 24px; }
.legal-content li { margin-bottom: 8px; line-height: 1.6; }

/* ==========================================================================
МОБИЛЬНАЯ АДАПТАЦИЯ
========================================================================== */
@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        align-items: flex-start;
    }
    .nav.active { transform: translateX(0); }
    .nav-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; }
    .nav-overlay.active { opacity: 1; visibility: visible; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .hero { padding: 40px 0 60px; }
    .hero-content { display: flex; flex-direction: column; gap: 40px; align-items: center; text-align: center; }
    .hero-text { width: 100%; max-width: 100%; }
    .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { flex-direction: column; align-items: center; width: 100%; }
    .hero-actions .btn { width: 100%; max-width: 400px; }
    .hero-features { gap: 12px; align-items: center; width: 100%; }
    .hero-feature { text-align: left; width: 100%; max-width: 400px; margin: 0 auto; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .cta-card { flex-direction: column; text-align: center; padding: 40px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .logo-badge { display: none; }
    .data-table td .admin-actions { flex-direction: column; align-items: stretch; }
    .data-table td .admin-actions .btn,
    .data-table td .admin-actions form,
    .data-table td .admin-actions form .btn { width: 100%; }
}

@media (max-width: 700px) {
    .admin-detail dl { grid-template-columns: 1fr; gap: 4px; }
    .admin-detail dd { margin-bottom: 10px; }
    .admin-filters input[type=text] { min-width: 100%; }
    .data-table td .admin-inline-form { display: flex; width: 100%; }
    .data-table td .admin-inline-form .btn,
    .data-table td .admin-inline-form form { width: 100%; }
    .data-table td .admin-inline-form form .btn { width: 100%; }
}

@media (max-width: 640px) {
    .article-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .article-cta .btn,
    .article-body .btn,
    .legal-content .btn { display: flex; width: 100%; margin: 0 0 10px; padding: 14px 18px; font-size: 0.95rem; }
    .article-body p > .btn:last-child,
    .article-cta .btn:last-child { margin-bottom: 0; }
    .article-body ul, .article-body ol { margin-left: 18px; }
}

@media (max-width: 500px) {
    .container { padding: 0 16px; }
    .hero-card { padding: 24px; }
    .tariffs-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-number { font-size: 1.8rem; }
}

/* ===== QUIZ STYLES ===== */
.quiz-section { padding: 60px 0 80px; background: linear-gradient(180deg, var(--alfa-gray) 0%, var(--white) 100%); }
.quiz-section h1 { text-align: center; margin-bottom: 12px; }
.quiz-subtitle { text-align: center; max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }
.quiz-container { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--alfa-gray-2); overflow: hidden; position: relative; }
.quiz-progress-wrapper { padding: 24px 32px 0; }
.quiz-progress-bar { height: 6px; background: var(--alfa-gray); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.quiz-progress-fill { height: 100%; background: var(--alfa-red); border-radius: 3px; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 0%; }
.quiz-progress-text { font-size: 0.85rem; color: var(--alfa-text-secondary); font-weight: 500; text-align: right; }
.quiz-step { padding: 32px; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.quiz-step h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 28px; line-height: 1.3; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: var(--white);
    border: 2px solid var(--alfa-gray-2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--alfa-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    min-height: 56px;
}
.option-btn:hover { border-color: var(--alfa-red); background: var(--alfa-red-light); transform: translateX(4px); }
.option-btn::after { content: '→'; font-size: 1.2rem; color: var(--alfa-text-secondary); transition: transform 0.2s, color 0.2s; }
.option-btn:hover::after { transform: translateX(4px); color: var(--alfa-red); }
.quiz-result { padding: 48px 32px; text-align: center; animation: fadeIn 0.4s ease-out; }
.quiz-result-icon { width: 64px; height: 64px; background: var(--alfa-red-light); color: var(--alfa-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.quiz-result h2 { color: var(--alfa-dark); margin-bottom: 16px; }
.quiz-result .tariff-name { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--alfa-red); margin-bottom: 16px; letter-spacing: -0.02em; }
.quiz-result .tariff-desc { font-size: 1.05rem; color: var(--alfa-text-secondary); margin-bottom: 24px; line-height: 1.5; }
.quiz-result .tariff-price { font-size: 1.25rem; font-weight: 600; color: var(--alfa-dark); margin-bottom: 32px; padding: 16px; background: var(--alfa-gray); border-radius: 12px; display: inline-block; }

@media (max-width: 600px) {
    .quiz-section { padding: 40px 0 60px; }
    .quiz-container { border-radius: 20px; margin: 0 16px; }
    .quiz-progress-wrapper, .quiz-step, .quiz-result { padding: 24px 20px; }
    .quiz-progress-wrapper { padding: 20px 16px 0; }
    .option-btn { padding: 16px; font-size: 0.95rem; min-height: 52px; }
    .quiz-result .tariff-name { font-size: 1.5rem; }
}

/* ===== QUIZ RESULT WITH FORM ===== */
.quiz-result-with-form { padding: 32px; animation: fadeIn 0.4s ease-out; }
.result-summary { text-align: center; padding: 32px 20px; background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%); border-radius: 16px; margin-bottom: 32px; border: 2px solid var(--alfa-gray-2); }
.result-summary .quiz-result-icon { width: 64px; height: 64px; background: var(--alfa-red-light); color: var(--alfa-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.result-summary h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--alfa-dark); }
.result-summary .tariff-name { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--alfa-red); margin-bottom: 12px; letter-spacing: -0.02em; }
.result-summary .tariff-desc { font-size: 1rem; color: var(--alfa-text-secondary); margin-bottom: 20px; line-height: 1.5; max-width: 500px; margin-left: auto; margin-right: auto; }
.result-summary .tariff-price { font-size: 1.25rem; font-weight: 600; color: var(--alfa-dark); padding: 12px 24px; background: var(--white); border-radius: 12px; display: inline-block; border: 2px solid var(--alfa-gray-2); }
.lead-form-container { background: var(--white); padding: 32px; border-radius: 16px; border: 2px solid var(--alfa-gray-2); }
.lead-form-container h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--alfa-dark); }
.lead-form-compact { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form-compact .form-group { margin: 0; }
.lead-form-compact .form-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; display: block; color: var(--alfa-text); }
.lead-form-compact .form-group input { width: 100%; padding: 12px 14px; border: 2px solid var(--alfa-gray-2); border-radius: 10px; font-size: 0.95rem; transition: all 0.2s; font-family: inherit; }
.lead-form-compact .form-group input:focus { outline: none; border-color: var(--alfa-red); box-shadow: 0 0 0 4px var(--alfa-red-light); }

@media (max-width: 600px) {
    .quiz-result-with-form { padding: 24px 16px; }
    .result-summary { padding: 24px 16px; }
    .lead-form-container { padding: 24px 16px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .result-summary .tariff-name { font-size: 1.5rem; }
}

/* ===== SERVICES GRID ===== */
.services-section { padding: 80px 0; background: var(--alfa-gray); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--white); padding: 32px 24px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; color: inherit; transition: all var(--transition); position: relative; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--alfa-red-light); }
.service-card--featured { border-color: var(--alfa-red); box-shadow: var(--shadow-sm); }
.service-card--featured:hover { box-shadow: var(--shadow); }
.service-badge { position: absolute; top: -12px; right: 20px; background: var(--alfa-red); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.service-icon { width: 56px; height: 56px; background: var(--alfa-red-light); color: var(--alfa-red); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all var(--transition); }
.service-card:hover .service-icon { background: var(--alfa-red); color: var(--white); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--alfa-dark); }
.service-card p { font-size: 0.95rem; color: var(--alfa-text-secondary); margin-bottom: 24px; flex: 1; line-height: 1.5; }
.service-link-text { font-size: 0.95rem; font-weight: 600; color: var(--alfa-red); display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.service-card:hover .service-link-text { gap: 8px; }

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

/* ===== PROMO SECTION (DEBIT CARD) ===== */
.promo-section { padding: 80px 0; background: var(--white); }
.promo-card {
    background: linear-gradient(135deg, var(--alfa-dark) 0%, #1a3152 100%);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(11, 31, 53, 0.2);
}
.promo-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(239, 49, 36, 0.25) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.promo-card::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(239, 49, 36, 0.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.promo-content { position: relative; z-index: 1; }
.promo-label { display: inline-block; padding: 8px 16px; background: var(--alfa-red); color: var(--white); border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(239, 49, 36, 0.3); }
.promo-card h2 { color: var(--white); margin-bottom: 20px; line-height: 1.15; letter-spacing: -0.02em; }
.promo-card > .promo-content > p { color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; font-size: 1.05rem; line-height: 1.6; }
.promo-features { list-style: none; margin-bottom: 32px; padding: 0; }
.promo-features li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.promo-features li:last-child { border-bottom: none; }
.promo-features li::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(239, 49, 36, 0.2);
    border: 2px solid var(--alfa-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
.promo-content .btn-primary { background: var(--white); color: var(--alfa-red); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); }
.promo-content .btn-primary:hover { background: var(--alfa-gray); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.promo-content .btn { white-space: normal; text-align: center; line-height: 1.35; max-width: 100%; }
.promo-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.card-mockup { width: 100%; max-width: 380px; aspect-ratio: 1.586; background: linear-gradient(135deg, var(--alfa-red) 0%, #a81810 100%); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; transform: rotate(-8deg) translateX(20px); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; justify-content: space-between; color: var(--white); position: relative; overflow: hidden; }
.card-mockup::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); pointer-events: none; }
.card-mockup:hover { transform: rotate(0deg) translateX(0) scale(1.05); }
.card-mockup-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.card-mockup-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.card-mockup-chip { width: 44px; height: 34px; background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%); border-radius: 8px; margin: 16px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); position: relative; }
.card-mockup-chip::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 60%; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 4px; }
.card-mockup-number { font-size: 1.2rem; letter-spacing: 3px; font-weight: 500; margin-top: auto; margin-bottom: 12px; font-family: 'Courier New', monospace; }
.card-mockup-cashback { font-size: 0.95rem; font-weight: 700; opacity: 0.95; letter-spacing: 0.5px; padding: 8px 14px; background: rgba(0, 0, 0, 0.2); border-radius: 20px; display: inline-block; width: fit-content; backdrop-filter: blur(4px); }

@media (max-width: 900px) {
    .promo-section { padding: 60px 0; }
    .promo-card { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; gap: 48px; }
    .promo-card::before, .promo-card::after { opacity: 0.6; }
    .promo-features li { justify-content: flex-start; text-align: left; }
    .promo-visual { order: -1; }
    .card-mockup { max-width: 320px; transform: rotate(-3deg) translateX(0); }
    .card-mockup:hover { transform: rotate(0deg) scale(1.02); }
}

@media (max-width: 500px) {
    .promo-card { padding: 32px 20px; border-radius: 20px; }
    .card-mockup { max-width: 280px; padding: 20px; }
    .card-mockup-logo { font-size: 1.1rem; }
    .card-mockup-number { font-size: 1rem; letter-spacing: 2px; }
    .promo-label { font-size: 0.7rem; padding: 6px 12px; }
    .promo-content .btn { width: 100%; }
}

/* ==========================================================================
БАЗА ЗНАНИЙ
========================================================================== */
.kb-section { padding: 56px 0 80px; background: linear-gradient(180deg, var(--alfa-gray) 0%, var(--white) 60%); }
.kb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--alfa-text-secondary); margin-bottom: 24px; overflow-wrap: anywhere; }
.kb-crumbs a { color: var(--alfa-red); }
.kb-crumbs span { opacity: 0.7; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.kb-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: var(--radius); padding: 28px 24px; transition: all var(--transition); }
.kb-card:hover { border-color: var(--alfa-red); box-shadow: var(--shadow); transform: translateY(-4px); }
.kb-card__date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--alfa-text-secondary); margin-bottom: 10px; }
.kb-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.kb-card p { font-size: 0.95rem; flex: 1; margin-bottom: 20px; }
.kb-card .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.35; }
.kb-empty { background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.kb-empty h3 { margin-bottom: 8px; }
.kb-empty p { margin-bottom: 20px; }
.kb-empty .btn { white-space: normal; max-width: 100%; }
.kb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; background: var(--alfa-dark); border-radius: 20px; padding: 32px; color: var(--white); }
.kb-bottom h3 { color: var(--white); margin-bottom: 6px; }
.kb-bottom p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.kb-bottom .btn { white-space: normal; text-align: center; line-height: 1.35; }
.kb-article { padding: 48px 0 80px; }
.kb-article .container { max-width: 860px; }
.kb-article__head { margin-bottom: 28px; }
.kb-article__head h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
.article-body { line-height: 1.75; overflow-wrap: anywhere; }
.article-body h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 34px 0 14px; }
.article-body h3 { margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--alfa-text); }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; color: var(--alfa-text); }
.article-body a { color: var(--alfa-red); text-decoration: underline; }
.article-body strong { color: var(--alfa-dark); }
.article-body img { border-radius: var(--radius-sm); }
.article-body .btn,
.legal-content .btn,
.article-cta .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
    text-decoration: none;
}
.article-body p > .btn { margin: 6px 8px 6px 0; }
.article-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.kb-related { margin-top: 48px; border-top: 1px solid var(--alfa-gray-2); padding-top: 24px; }
.kb-related h3 { margin-bottom: 14px; }
.kb-related__list { display: grid; gap: 10px; }
.kb-related__item { display: block; padding: 14px 18px; background: var(--alfa-gray); border-radius: 12px; font-weight: 500; color: var(--alfa-dark); overflow-wrap: anywhere; transition: all var(--transition); }
.kb-related__item:hover { background: var(--alfa-red-light); color: var(--alfa-red); }
.kb-back { margin-top: 32px; }
.kb-back .btn { white-space: normal; max-width: 100%; }

/* Админка: список статей */
.kb-admin-list { display: grid; gap: 12px; }
.kb-admin-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: var(--radius); padding: 20px 24px; }
.kb-admin-row__main { min-width: 0; }
.kb-admin-row__main strong { display: block; font-size: 1.05rem; color: var(--alfa-dark); overflow-wrap: anywhere; }
.kb-admin-row__meta { font-size: 0.85rem; color: var(--alfa-text-secondary); margin: 4px 0 10px; overflow-wrap: anywhere; }
.kb-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kb-badge--on { background: #D1FAE5; color: #065F46; }
.kb-badge--off { background: #FEF3C7; color: #92400E; }
.kb-admin-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-admin-row__actions .btn { padding: 10px 18px; font-size: 0.9rem; }

@media (max-width: 700px) {
    .kb-admin-row { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .kb-admin-row__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .kb-admin-row__actions form { grid-column: 1 / -1; }
    .kb-admin-row__actions .btn,
    .kb-admin-row__actions form .btn { width: 100%; padding: 12px 10px; }
}

@media (max-width: 640px) {
    .kb-section { padding: 36px 0 56px; }
    .kb-grid { grid-template-columns: 1fr; }
    .kb-card { padding: 22px 18px; }
    .kb-article { padding: 32px 0 56px; }
    .kb-bottom { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 18px; }
    .kb-bottom .btn { width: 100%; }
    .kb-back .btn { width: 100%; }
}

/* ==========================================================================
ПЛАШКА РЕГИСТРАЦИИ ИП ПОД HERO
========================================================================== */
.reg-banner-section { padding: 24px 0 0; background: var(--white); }
.reg-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(239, 49, 36, 0.07) 0%, rgba(239, 49, 36, 0.02) 100%);
    border: 2px solid var(--alfa-red);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(239, 49, 36, 0.12);
    text-decoration: none;
    color: var(--alfa-dark);
    transition: all var(--transition);
}
.reg-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(239, 49, 36, 0.2);
}
.reg-banner__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--alfa-red);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 49, 36, 0.3);
}
.reg-banner__text {
    flex: 1;
    min-width: 0;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
.reg-banner__text strong { font-weight: 800; color: var(--alfa-dark); }
.reg-banner__accent { color: var(--alfa-red); font-weight: 800; }
.reg-banner__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--alfa-red);
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(239, 49, 36, 0.3);
    transition: all var(--transition);
}
.reg-banner:hover .reg-banner__btn { background: var(--alfa-red-hover); }
.reg-banner__btn svg { flex-shrink: 0; transition: transform var(--transition); }
.reg-banner:hover .reg-banner__btn svg { transform: translateX(4px); }

@media (max-width: 700px) {
    .reg-banner-section { padding: 16px 0 0; }
    .reg-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
    }
    .reg-banner__text { font-size: 1.1rem; }
    .reg-banner__btn {
        width: 100%;
        white-space: normal;
        padding: 14px 18px;
    }
}

/* ==========================================================================
ТИПОГРАФИКА НА СМАРТФОНАХ
========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.22; letter-spacing: -0.01em; overflow-wrap: break-word; text-wrap: balance; }
    h2 { font-size: clamp(1.25rem, 4.2vw, 1.65rem); line-height: 1.26; letter-spacing: -0.005em; overflow-wrap: break-word; text-wrap: balance; }
    h3 { font-size: clamp(1.05rem, 3.4vw, 1.25rem); line-height: 1.32; }
    .hero-text h1 { font-size: clamp(1.6rem, 5.4vw, 2.1rem); margin-bottom: 14px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
    .legal-content h1,
    .kb-article__head h1,
    .quiz-section h1,
    .section-header h1 { font-size: clamp(1.45rem, 5vw, 1.9rem); }
    .legal-content h3 { margin-top: 24px; }
    .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
    h1 { font-size: clamp(1.3rem, 5.6vw, 1.6rem); line-height: 1.24; }
    h2 { font-size: clamp(1.12rem, 4.6vw, 1.4rem); line-height: 1.28; }
    h3 { font-size: clamp(1rem, 3.8vw, 1.15rem); }
    .hero-text h1 { font-size: clamp(1.4rem, 6vw, 1.75rem); margin-bottom: 12px; }
    .hero-label { font-size: 0.85rem; padding: 5px 12px; margin-bottom: 14px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; }
    .legal-content h1,
    .kb-article__head h1,
    .quiz-section h1,
    .section-header h1 { font-size: clamp(1.28rem, 5.6vw, 1.55rem); }
    .legal-content { padding: 40px 16px; }
    .legal-content h1 { margin-bottom: 16px; }
    .quiz-step h2 { font-size: clamp(1.05rem, 4.4vw, 1.3rem); margin-bottom: 20px; }
    .promo-card h2 { font-size: clamp(1.15rem, 4.8vw, 1.45rem); }
    .cta-content h2 { font-size: clamp(1.15rem, 4.8vw, 1.45rem); }
    .cta-content p { font-size: 0.95rem; }
    .tariff-card h3,
    .service-card h3 { font-size: 1.05rem; }
    .trust-number { font-size: 1.6rem; }
    .trust-label { font-size: 0.8rem; }
}

@media (max-width: 360px) {
    h1 { font-size: 1.25rem; }
    .hero-text h1 { font-size: 1.32rem; }
    h2 { font-size: 1.1rem; }
    .legal-content h1,
    .kb-article__head h1,
    .quiz-section h1,
    .section-header h1 { font-size: 1.22rem; }
    .hero-subtitle { font-size: 0.9rem; }
}

/* Мобильное меню: оверлей и морфинг бургера */
.nav.active + .nav-overlay { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
    .header-inner:has(.nav.active) .mobile-menu-btn span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .header-inner:has(.nav.active) .mobile-menu-btn span:nth-child(2) { opacity: 0; }
    .header-inner:has(.nav.active) .mobile-menu-btn span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    body:has(.nav.active) { overflow: hidden; }
}

/* ===== SEO-БЛОК И FAQ ===== */
.seo-section { padding: 80px 0; background: var(--white); }
.seo-content { max-width: 820px; margin: 0 auto; line-height: 1.75; }
.seo-content h3 { margin: 32px 0 16px; font-size: 1.35rem; }
.seo-content p { margin-bottom: 16px; color: var(--alfa-text); font-size: 1.02rem; }
.seo-content ul, .seo-content ol { margin: 16px 0 24px 24px; }
.seo-content li { margin-bottom: 10px; color: var(--alfa-text); font-size: 1rem; }
.seo-content li strong { color: var(--alfa-dark); }
.seo-content em { color: var(--alfa-text-secondary); font-size: 0.95rem; }

.faq-section { max-width: 820px; margin: 48px auto 0; }
.faq-item { background: var(--alfa-gray); border-radius: 12px; padding: 24px 28px; margin-bottom: 16px; border-left: 4px solid var(--alfa-red); }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--alfa-dark); }
.faq-item p { margin: 0; color: var(--alfa-text); font-size: 0.98rem; line-height: 1.65; }

@media (max-width: 700px) {
    .seo-section { padding: 48px 0; }
    .seo-content h3 { font-size: 1.15rem; margin-top: 28px; }
    .faq-item { padding: 20px; }
}

/* Математическая капча */
.captcha-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}
.captcha-group label {
    margin: 0;
    white-space: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--alfa-text);
}
.captcha-group input[type="number"] {
    width: 100px;
    flex-shrink: 0;
    padding: 12px;
    border: 2px solid var(--alfa-gray-2);
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
}
.captcha-group input[type="number"]:focus {
    outline: none;
    border-color: var(--alfa-red);
    box-shadow: 0 0 0 4px var(--alfa-red-light);
}
@media (max-width: 600px) {
    .captcha-group { flex-wrap: wrap; }
    .captcha-group label { white-space: normal; }
}

/* ==========================================================================
   ПРОГРАММАТИК: СТРАНИЦЫ ГОРОДОВ
   ========================================================================== */
.city-hero {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, var(--alfa-gray) 0%, var(--white) 100%);
}
.city-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--alfa-text-secondary);
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}
.city-crumbs a { color: var(--alfa-red); }
.city-crumbs .separator { opacity: 0.5; }
.city-crumbs .current { color: var(--alfa-text-secondary); }
.city-hero h1 { margin-bottom: 18px; max-width: 900px; }
.city-intro { max-width: 820px; margin-bottom: 28px; }
.city-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--alfa-text);
    margin-bottom: 14px;
}
.city-intro p:last-child { margin-bottom: 0; }
.city-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.city-section { padding: 64px 0; background: var(--white); }
.city-section--gray { background: var(--alfa-gray); }
.city-section__head { max-width: 760px; margin-bottom: 32px; }
.city-section__head h2 { margin-bottom: 10px; }
.city-section__head p { margin: 0; }

.city-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.city-benefit {
    background: var(--white);
    border: 1px solid var(--alfa-gray-2);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.city-benefit:hover { border-color: var(--alfa-red); box-shadow: var(--shadow-sm); }
.city-benefit__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--alfa-red-light);
    color: var(--alfa-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.city-benefit h3 { font-size: 1.05rem; margin-bottom: 8px; }
.city-benefit p { font-size: 0.92rem; margin: 0; line-height: 1.6; }

.city-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.city-step {
    background: var(--white);
    border: 1px solid var(--alfa-gray-2);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.city-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--alfa-red);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.city-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.city-step p { font-size: 0.92rem; margin: 0; line-height: 1.6; }

.city-faq { max-width: 900px; margin: 0; }

.city-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.city-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--alfa-gray-2);
    border-radius: 12px;
    font-weight: 500;
    color: var(--alfa-dark);
    transition: all var(--transition);
    overflow-wrap: anywhere;
}
.city-link:hover {
    border-color: var(--alfa-red);
    color: var(--alfa-red);
    background: var(--alfa-red-light);
}
.city-link svg { flex-shrink: 0; }

.city-note {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--alfa-text-secondary);
    line-height: 1.6;
}
.city-note a { color: var(--alfa-red); text-decoration: underline; }

@media (max-width: 900px) {
    .city-hero { padding: 36px 0 44px; }
    .city-section { padding: 48px 0; }
    .city-hero__actions { flex-direction: column; align-items: stretch; }
    .city-hero__actions .btn { width: 100%; white-space: normal; }
    .hero-card { width: 100%; text-align: left; }
}
@media (max-width: 640px) {
    .city-hero { padding: 28px 0 36px; }
    .city-section { padding: 40px 0; }
    .city-section__head { margin-bottom: 24px; }
    .city-intro p { font-size: 0.98rem; }
    .city-benefits, .city-steps, .city-links { grid-template-columns: 1fr; }
    .city-benefit, .city-step { padding: 20px 18px; }
}

/* ==========================================================================
   ПРОГРАММАТИК: ВИДЫ ДЕЯТЕЛЬНОСТИ
   ========================================================================== */
.niche-hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--alfa-gray) 0%, var(--white) 100%); }
.niche-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--alfa-text-secondary); margin-bottom: 20px; overflow-wrap: anywhere; }
.niche-crumbs a { color: var(--alfa-red); }
.niche-crumbs .separator { opacity: 0.5; }
.niche-hero h1 { margin-bottom: 18px; max-width: 900px; }
.niche-intro { max-width: 820px; margin-bottom: 28px; }
.niche-intro p { font-size: 1.05rem; line-height: 1.7; color: var(--alfa-text); margin-bottom: 14px; }
.niche-intro p:last-child { margin-bottom: 0; }
.niche-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.niche-section { padding: 64px 0; background: var(--white); }
.niche-section--gray { background: var(--alfa-gray); }
.niche-section__head { max-width: 760px; margin-bottom: 32px; }
.niche-section__head h2 { margin-bottom: 10px; }
.niche-section__head p { margin: 0; }

/* Калькулятор */
.calc { background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.calc__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.calc__field { display: flex; flex-direction: column; }
.calc__field label { font-size: 0.85rem; font-weight: 600; color: var(--alfa-text); margin-bottom: 6px; }
.calc__field input { width: 100%; padding: 14px 16px; border: 2px solid var(--alfa-gray-2); border-radius: 10px; font-size: 1.05rem; font-weight: 600; font-family: inherit; background: var(--white); transition: all var(--transition); }
.calc__field input:focus { outline: none; border-color: var(--alfa-red); box-shadow: 0 0 0 4px var(--alfa-red-light); }
.calc__field small { margin-top: 6px; font-size: 0.8rem; color: var(--alfa-text-secondary); line-height: 1.5; }

.calc__rows { display: grid; gap: 10px; }
.calc__row { display: grid; grid-template-columns: 1.3fr auto 1.6fr; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--alfa-gray-2); border-radius: 12px; background: var(--white); }
.calc__row--best { border-color: var(--alfa-red); background: var(--alfa-red-light); }
.calc__name strong { display: block; font-size: 1rem; color: var(--alfa-dark); }
.calc__name small { display: block; font-size: 0.8rem; color: var(--alfa-text-secondary); margin-top: 2px; }
.calc__badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 20px; background: var(--alfa-red); color: var(--white); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.calc__cost { font-size: 1.35rem; font-weight: 800; color: var(--alfa-dark); white-space: nowrap; }
.calc__cost small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--alfa-text-secondary); }
.calc__status { font-size: 0.88rem; line-height: 1.5; }
.calc__status--ok { color: #065F46; }
.calc__status--warn { color: #92400E; }
.calc__status--bad { color: #991B1B; }
.calc__note { margin-top: 20px; font-size: 0.85rem; color: var(--alfa-text-secondary); line-height: 1.6; }
.calc__note a { color: var(--alfa-red); text-decoration: underline; }
.calc__threshold { margin-top: 12px; padding: 14px 18px; background: var(--alfa-gray); border-radius: 10px; font-size: 0.9rem; color: var(--alfa-text); line-height: 1.6; }

/* Факторы стоимости */
.niche-factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.niche-factor { background: var(--white); border: 1px solid var(--alfa-gray-2); border-radius: var(--radius); padding: 24px; }
.niche-factor__num { width: 34px; height: 34px; border-radius: 50%; background: var(--alfa-red); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.niche-factor h3 { font-size: 1.05rem; margin-bottom: 8px; }
.niche-factor p { font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* Подводные камни */
.niche-pitfalls { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.niche-pitfall { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--alfa-gray-2); border-left: 4px solid var(--alfa-red); border-radius: 12px; padding: 22px; }
.niche-pitfall__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--alfa-red-light); color: var(--alfa-red); display: flex; align-items: center; justify-content: center; }
.niche-pitfall h3 { font-size: 1rem; margin-bottom: 6px; }
.niche-pitfall p { font-size: 0.92rem; line-height: 1.6; margin: 0; }

.niche-faq { max-width: 900px; margin: 0; }

@media (max-width: 900px) {
    .niche-hero { padding: 36px 0 44px; }
    .niche-section { padding: 48px 0; }
    .niche-actions { flex-direction: column; align-items: stretch; }
    .niche-actions .btn { width: 100%; white-space: normal; }
    .calc__row { grid-template-columns: 1fr auto; }
    .calc__status { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .niche-hero { padding: 28px 0 36px; }
    .niche-section { padding: 40px 0; }
    .niche-section__head { margin-bottom: 24px; }
    .niche-intro p { font-size: 0.98rem; }
    .calc { padding: 20px 16px; }
    .calc__row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
    .calc__cost { font-size: 1.2rem; }
    .calc__cost small { display: inline; margin-left: 6px; }
    .niche-factors, .niche-pitfalls { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ВИДЖЕТ ПОДДЕРЖКИ MAX
   ========================================================================== */
.max-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--alfa-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(239, 49, 36, 0.4);
    transition: all var(--transition);
    z-index: 9998;
}

.max-widget:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(239, 49, 36, 0.5);
    background: var(--alfa-red-hover);
}

.max-widget__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.max-widget__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--alfa-dark);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.max-widget__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--alfa-dark);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.max-widget__tooltip strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.max-widget__tooltip span {
    font-size: 0.78rem;
    opacity: 0.9;
}

.max-widget:hover .max-widget__tooltip {
    opacity: 1;
    visibility: visible;
    right: 72px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .max-widget {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }
    
    .max-widget__tooltip {
        display: none;
    }
}

/* Адаптивность для cookie-баннера */
.cookie-banner.show ~ .max-widget,
body:has(.cookie-banner.show) .max-widget {
    bottom: 90px;
}

@media (max-width: 768px) {
    .cookie-banner.show ~ .max-widget,
    body:has(.cookie-banner.show) .max-widget {
        bottom: 160px;
    }
}