/* ═══════════════════════════════════════════════════════════
   index.css — стили главной страницы (index.html)
   ═══════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ────────────────────────────────── */
.hero {
    padding: 88px 0 72px;
    background: linear-gradient(160deg, #f7f8fa 0%, #ffffff 60%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-light); color: var(--primary);
    border: 1px solid #bfdbfe; border-radius: 20px;
    padding: 4px 14px; font-size: 0.78rem; font-weight: 600;
    letter-spacing: .3px; text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -1px; color: var(--text);
    max-width: 780px; margin: 0 auto 16px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 620px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Stats bar ──────────────────────────── */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 20px 0; }
.stats-bar .stats-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.stats-bar .stat-item { padding: 8px 32px; text-align: center; border-right: 1px solid var(--border); }
.stats-bar .stat-item:last-child { border-right: none; }
.stats-bar .stat-num { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.stats-bar .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── Sections ───────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.5px; margin-bottom: 10px; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ── Problems section ───────────────────── */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}
.problem-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
}
.problem-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.problem-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.problem-text strong { color: var(--text); font-weight: 600; }

/* ── Document types ─────────────────────── */
.doc-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
}
.doc-type-card {
    text-align: center; padding: 20px 12px;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s, transform .2s;
}
.doc-type-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.doc-type-emoji { font-size: 2rem; margin-bottom: 8px; display: block; }
.doc-type-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ── Feature cards (main 8) ──────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 14px;
}
.icon-blue   { background: #dbeafe; }
.icon-green  { background: #d1fae5; }
.icon-amber  { background: #fef3c7; }
.icon-purple { background: #ede9fe; }
.icon-red    { background: #fee2e2; }
.icon-slate  { background: #e2e8f0; }
.icon-teal   { background: #ccfbf1; }
.icon-rose   { background: #ffe4e6; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }

/* ── Detailed feature blocks ────────────── */
.detail-block {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    margin-bottom: 24px;
}
.detail-block-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
}
.detail-block-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.detail-block-title h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.detail-block-title p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.4; }
.detail-block-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; }
.detail-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.detail-col h4 {
    font-size: 0.82rem; font-weight: 700; color: var(--text);
    text-transform: uppercase; letter-spacing: .4px;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.detail-list li {
    display: flex; gap: 8px; align-items: baseline;
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.detail-list li::before {
    content: '\2713'; flex-shrink: 0; color: var(--success);
    font-weight: 700; font-size: 0.8rem;
}

/* ── How-it-works steps ──────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step-card {
    text-align: center; padding: 28px 20px;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}
.step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-weight: 700; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Audience cards ──────────────────────── */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.audience-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.audience-card h3 {
    font-size: 0.95rem; font-weight: 700; color: var(--text);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.audience-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

/* ── CTA section ────────────────────────── */
.cta-section { padding: 80px 0; background: var(--text); text-align: center; }
.cta-section h2 { font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-section p  { color: #94a3b8; font-size: 1rem; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; color: var(--primary); font-weight: 600; }
.cta-section .btn-primary:hover { background: #f1f5f9; }
.cta-section .btn-outline { border-color: #475569; color: #94a3b8; }
.cta-section .btn-outline:hover { background: #1e293b; color: #fff; }

/* ── Separator ──────────────────────────── */
.section-sep { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 600px) {
    .stat-item { padding: 8px 16px; }
    .hero { padding: 56px 0 48px; }
    .section { padding: 48px 0; }
    .detail-block { padding: 24px 18px; }
    .doc-types-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
