* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 80px;
    --header-padding-y: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--header-padding-y) 0;
    min-height: var(--header-height);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.logo {
    font-size: 26px;
    font-weight: 400;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.logo span {
    font-weight: 800;
    color: #1e3a8a;
}
.logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: #5b6e8c;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Навигация */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-item > a:hover {
    color: #1e3a8a;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.dropdown-menu li a:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

/* --- Широкий дропдаун для диагностики (кластерная группировка) --- */
.dropdown-menu--wide {
    min-width: 480px;
    padding: 16px 0;
}
@media (max-width: 560px) {
    .dropdown-menu--wide {
        min-width: auto;
    }
}

/* --- Выделенная ссылка-хаб (Каталог сбоев, Мониторинг) --- */
.dropdown-hub-link {
    font-weight: 700 !important;
    color: #1e3a8a !important;
    font-size: 0.92rem !important;
}

/* --- Разделитель --- */
.dropdown-separator {
    border-top: 1px solid #f1f5f9;
    margin: 4px 20px;
    padding: 0 !important;
    height: 0;
    pointer-events: none;
}

/* --- Группа кластера --- */
.dropdown-cluster-group {
    padding: 0 !important;
}

/* --- Заголовок кластера (не кликабельный, декоративный) --- */
.dropdown-cluster-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
}
.dropdown-cluster-header i {
    font-size: 0.72rem;
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

/* --- Страницы внутри кластера --- */
.dropdown-cluster-pages {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown-cluster-pages li a {
    padding-left: 44px !important;
    font-size: 0.88rem;
}

/* --- Мобильная адаптация кластерного дропдауна --- */
@media (max-width: 860px) {
    .dropdown-menu--wide {
        min-width: auto;
        padding: 8px 0;
    }
    .dropdown-separator {
        margin: 4px 0;
    }
    .dropdown-cluster-header {
        padding: 6px 20px;
    }
    .dropdown-cluster-pages li a {
        padding-left: 44px !important;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #1e3a8a;
    cursor: pointer;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
}
.phone-link {
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.phone-link i {
    font-size: 1.2rem;
}
.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #24A1DE;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.telegram-link:hover {
    background: #1C8ADB;
    transform: scale(1.08);
}
.cta-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.cta-btn:hover {
    background: #2c4cae;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,138,0.2);
}

/* 🚨 Кнопка срочной помощи в шапке */
.emergency-btn {
    background: #dc2626;
    color: white !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
    animation: emergency-pulse 2s infinite;
    white-space: nowrap;
}
.emergency-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
    animation: none;
    box-shadow: 0 4px 16px rgba(220,38,38,0.5);
}
@keyframes emergency-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(220,38,38,0.3); }
    50% { box-shadow: 0 2px 18px rgba(220,38,38,0.6); }
}

/* 🚨 Emergency Hero секция */
.emergency-hero h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Сброс анимации для CTA внутри emergency-hero */
.emergency-hero .cta-btn {
    animation: none;
}

/* hero section */
.hero {
    padding: 70px 0 60px;
    background: linear-gradient(120deg, #f8fafc 0%, #eff6ff 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}
.hero-sub {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 20px;
}
.hero-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.segment-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 8px 20px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.segment-pill:hover {
    border-color: #1e3a8a;
    background: #e0e7ff;
    transform: translateY(-2px);
}
.segment-pill i {
    color: #1e3a8a;
    font-size: 0.85rem;
}
.hero-hint {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 16px;
    text-align: center;
}
.hero-trust {
    margin-top: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #475569;
}
.hero-trust div {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-trust i {
    color: #10b981;
}
.integration-schema {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.integration-schema:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.15);
}
.schema-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}
.schema-header i {
    margin-right: 8px;
    color: #2563eb;
}
.schema-icons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 24px;
    gap: 12px;
}
.icon-item {
    text-align: center;
}
.icon-circle {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 8px;
    transition: all 0.2s;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30,58,138,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(30,58,138,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,58,138,0); }
}
.icon-item span {
    font-weight: 500;
    font-size: 0.85rem;
    color: #334155;
}
.arrow-icon {
    font-size: 1.4rem;
    color: #94a3b8;
}
.schema-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.schema-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 60px;
}
.schema-line i {
    color: #10b981;
    font-size: 1rem;
    min-width: 20px;
    animation: pulse 2s infinite;
}
.schema-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 0.9rem;
}
.schema-footer i {
    margin-right: 6px;
}

/* Мини-схема dataflow в hero */
.dataflow-mini {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.df-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 500;
}
.df-src {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 12px;
    color: #1e3a8a;
    font-weight: 700;
    white-space: nowrap;
}
.df-arr {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 400;
}
.df-node {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 12px;
    color: #334155;
    white-space: nowrap;
}
.df-node em {
    display: block;
    font-style: normal;
    font-size: 0.68rem;
    margin-top: 2px;
}
.df-node.df-fail {
    background: #fff5f5;
    border-color: #fca5a5;
    color: #991b1b;
}
.df-node.df-fail em {
    color: #dc2626;
}
.df-node.df-ok {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* карта решений */
.solutions-map-section {
    padding: 60px 0;
    background: #fff;
}
.solutions-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.map-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.map-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}
.map-card.highlight {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30,58,138,0.1);
}
.map-card.highlight:hover {
    background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
}
.map-card h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.map-card h3 i {
    color: inherit;
}
.map-card p {
    margin: 0 0 16px;
    color: #475569;
    flex-grow: 1;
}
.map-result {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.95rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.map-result::before {
    content: "→";
    color: #1e3a8a;
}
.map-hint {
    text-align: center;
    color: #64748b;
    margin-bottom: 20px;
}
.map-cta {
    text-align: center;
    margin-top: 40px;
    background: #f1f5f9;
    padding: 30px;
    border-radius: 24px;
}
.map-cta p {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #1e293b;
}
.map-cta .cta-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}

/* секция проблем и решений */
.solutions {
    padding: 70px 0;
    background: #fff;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.section-sub {
    text-align: center;
    color: #475569;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.problem-card {
    background: #f8fafc;
    border-radius: 28px;
    padding: 28px 24px;
    transition: all 0.25s;
    border: 1px solid #e2e8f0;
}
.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.problem-icon {
    background: #e0e7ff;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 20px;
}
.problem-icon i {
    font-size: 28px;
    color: #1e3a8a;
}
.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.problem-card p {
    color: #475569;
    margin-bottom: 16px;
}
.solution-text {
    font-weight: 600;
    color: #2563eb;
}

/* услуги */
.services {
    background: #f1f5f9;
    padding: 70px 0;
}

/* блоки доверия */
.trust-signals {
    background: #fff;
    padding: 50px 0;
}
.trust-item {
    border-radius: 16px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.95rem;
}
.human-block { background: #f0fdf4; }
.guarantee { background: #f8fafc; }
.experience { background: #f1f5f9; text-align: center; }
.no-pressure { background: #f8fafc; text-align: center; }
.social-proof { background: #f8fafc; text-align: center; }
.quick-entry { background: #f8fafc; text-align: center; }

/* преимущества */
.benefits {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 70px 0;
}
.benefits .section-title, .benefits .section-sub {
    color: white;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.benefit-item {
    text-align: center;
}
.benefit-item i {
    font-size: 3rem;
    background: #3b82f6;
    padding: 18px;
    border-radius: 60px;
    color: white;
    margin-bottom: 20px;
}
.benefit-item h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* кейсы */
.cases {
    padding: 70px 0;
    background: #ffffff;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.case-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.case-item.highlight {
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30,58,138,0.1);
}
.case-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.case-item h3 {
    font-size: 1.3rem;
    margin: 0 0 16px;
    color: #1e293b;
}
.case-item p {
    margin: 8px 0;
    color: #475569;
}
.case-before {
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    padding: 8px 12px;
    border-radius: 12px;
}
.case-after {
    background: #f0fff4;
    border-left: 4px solid #68d391;
    padding: 8px 12px;
    border-radius: 12px;
}
.case-result {
    background: #1e3a8a;
    color: white;
    padding: 16px;
    border-radius: 16px;
    margin-top: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.case-result i {
    font-size: 1.2rem;
    color: #fbbf24;
}
.case-link {
    display: inline-block;
    margin-top: 16px;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}
.case-link:hover {
    text-decoration: underline;
}
.cases-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: #f1f5f9;
    border-radius: 24px;
}
.cases-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1e293b;
}
.cases-cta p {
    color: #475569;
    margin-bottom: 20px;
}

/* форма */
.form-section {
    padding: 70px 0;
    background: #eff6ff;
}
#contactFormSection {
    background: #f8fafc;
}
.form-wb {
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 60px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
}
.form-group textarea {
    border-radius: 28px;
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.2);
}
.submit-btn {
    background: #1e3a8a;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}
.submit-btn:hover {
    background: #0f2c6b;
    transform: scale(0.98);
}
.no-spam {
    font-size: 0.8rem;
    margin: 12px 0;
    color: #5b6e8c;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.no-spam i {
    color: #10b981;
}
.form-note {
    font-size: 0.8rem;
    margin-top: 16px;
    color: #5b6e8c;
}

/* footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
}
.footer .social-links a {
    color: #cbd5e1;
    margin: 0 12px;
    font-size: 1.4rem;
    transition: 0.2s;
    display: inline-block;
}
.footer .social-links a:hover {
    color: white;
}

/* адаптивность */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .header {
        padding-bottom: 20px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .integration-schema {
        max-width: 480px;
        margin: 0 auto;
    }
}
@media (max-width: 860px) {
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }
    .main-nav {
        order: 3;
        width: 100%;
        display: none;
    }
    .main-nav.mobile-open {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.98);
        padding: 0 20px;
        overflow-y: auto;
    }
    .nav-list {
        flex-direction: column;
        gap: 12px;
        background: white;
        padding: 20px;
        border-radius: 24px;
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
        margin-top: 16px;
    }
    .main-nav.mobile-open .nav-list {
        margin-top: 0;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 8px;
        display: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .mobile-menu-toggle {
        display: block;
    }
    #site-search-container {
        display: none;
    }
    .contact-info {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
        order: 2;
    }
    .contact-info .phone-link {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .contact-info .cta-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        white-space: nowrap;
    }
    .contact-info .emergency-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-segments {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .cases-grid,
    .solutions-map {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .cta-btn, .phone-link {
        font-size: 0.85rem;
    }
    .emergency-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    .hero-cta {
        width: 100%;
    }
}

/* ────────────────────────────────────────────────
   АДАПТИВНЫЕ ФИКСЫ ДЛЯ ПРЕДОТВРАЩЕНИЯ НАЛОЖЕНИЙ
   ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* Все грид-сетки с auto-fit схлопываются в 1 колонку */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Блоки с flex-обёрткой, где элементы наезжают */
  .dataflow-row,
  .break-card,
  .need-card,
  .case-study-wb {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .dataflow-row .df-node {
    max-width: 100% !important;
  }
  .dataflow-row .df-arrow {
    transform: rotate(90deg);
    margin: 6px 0;
  }
}

@media (max-width: 480px) {
  [style*="display: flex"][style*="gap"] {
    gap: 16px !important;
  }
}

/* Word-wrap защита для карточек */
.break-card,
.need-card,
.case-study-wb,
.problem-card,
.map-card {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* анимации */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Как я работаю */
.how-i-work {
    padding: 70px 0;
    background: white;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.step-card {
    background: #f8fafc;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    transition: 0.2s;
    border: 1px solid #eef2f6;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.1);
}
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
    margin-bottom: 16px;
}
.step-card i {
    font-size: 2.2rem;
    color: #1e3a8a;
    margin-bottom: 16px;
}
.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.step-card p {
    color: #475569;
}

/* FAQ */
.faq {
    padding: 70px 0;
    background: #f1f5f9;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.faq-item {
    background: white;
    border-radius: 24px;
    padding: 24px 28px;
    border: 1px solid #e2e8f0;
}
.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.faq-question i {
    font-size: 1.8rem;
    color: #1e3a8a;
}
.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
}
.faq-answer p {
    color: #334155;
    margin-left: 44px;
}
@media (max-width: 680px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-answer p {
        margin-left: 0;
    }
}

/* Теги */
.tags-cloud {
    padding: 30px 0;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}
.tags-cloud__title {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #5b6e8c;
    margin-bottom: 20px;
}
.tags-cloud__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.tag {
    background: #f8fafc;
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e3a8a;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.tag:hover {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* Блок сравнения VS */
.vs-section {
    padding: 70px 0;
    background: #f8fafc;
}
.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.vs-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid #e2e8f0;
}
.vs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
}
.vs-header i {
    font-size: 2rem;
}
.vs-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}
.vs-bad .vs-header i {
    color: #94a3b8;
}
.vs-bad .vs-header h3 {
    color: #475569;
}
.vs-bad .vs-list li i {
    color: #cbd5e1;
}
.vs-good {
    border: 2px solid #1e3a8a;
    box-shadow: 0 15px 30px -10px rgba(30,58,138,0.15);
    transform: scale(1.02);
}
.vs-good .vs-header i {
    color: #1e3a8a;
}
.vs-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: #1e3a8a;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
}
.vs-good .vs-list li i {
    color: #10b981;
}
.vs-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vs-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}
.vs-list li i {
    margin-top: 4px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
@media (max-width: 768px) {
    .vs-good {
        transform: scale(1);
    }
}

/* Блок технологий */
.tech-strip {
    background: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}
.tech-strip__title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 30px;
}
.tech-strip__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.tech-item {
    background: #f8fafc;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}
.tech-item i {
    color: #1e3a8a;
}
.tech-strip__note {
    text-align: center;
    font-size: 0.8rem;
    color: #5b6e8c;
    margin-top: 20px;
}

/* Кластеры услуг */
.services-clusters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-cluster-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-cluster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.08);
}
.service-cluster-card.flagship {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #bfdbfe;
}
.cluster-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.cluster-icon {
    width: 48px;
    height: 48px;
    background: #e0e7ff;
    color: #1e3a8a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.service-cluster-card.flagship .cluster-icon {
    background: #1e3a8a;
    color: white;
}
.cluster-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}
.cluster-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}
.cluster-list {
    list-style: none;
    margin: auto 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cluster-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
}
.cluster-list li i {
    color: #10b981;
    font-size: 0.9rem;
    margin-top: 3px;
}
@media (max-width: 768px) {
    .service-cluster-card {
        padding: 24px;
    }
}

/* Дополнительные блоки формы */
.form-footer-note {
    margin-top: 20px;
    text-align: center;
}
.form-result-promise {
    background: #e6f7e6;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #166534;
    margin-bottom: 12px;
}
.form-result-promise i {
    color: #22c55e;
}
.form-agreement {
    font-size: 0.75rem;
    color: #5b6e8c;
    margin-bottom: 8px;
}
.form-agreement a {
    color: #1e3a8a;
    text-decoration: none;
}
.form-spam-note {
    font-size: 0.75rem;
    color: #5b6e8c;
}

/* Чекбокс согласия на обработку ПДн (152-ФЗ) */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    text-align: left;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}
.form-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1e3a8a;
    cursor: pointer;
}
.form-checkbox label {
    cursor: pointer;
    user-select: none;
}
.form-checkbox a {
    color: #1e3a8a;
    text-decoration: underline;
    font-weight: 500;
}
.form-checkbox a:hover {
    color: #2563eb;
}

/* Микроноты */
.micro-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    text-align: center;
}

/* Hero микро */
.hero-micro {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 20px;
}
/* Улучшенная форма */
.form-card-enhanced {
    background: white;
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.form-card-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3a8a, #38bdf8);
}
.form-card-enhanced__badge {
    display: inline-block;
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.form-card-enhanced__badge i {
    margin-right: 6px;
}
.form-card-enhanced h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.form-card-enhanced__sub {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.form-card-enhanced__sub i {
    color: #1e3a8a;
}
.form-card-enhanced__problems {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.problem-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    transition: 0.2s;
}
.problem-tag:hover {
    border-color: #1e3a8a;
    background: #eef2ff;
}
.form-group-enhanced {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}
.form-group-enhanced i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.form-group-enhanced:focus-within i {
    color: #1e3a8a;
}
.form-group-enhanced input,
.form-group-enhanced textarea {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: 0.2s;
    outline: none;
}
.form-group-enhanced textarea {
    padding: 14px 20px 14px 48px;
    resize: vertical;
    min-height: 100px;
}
.form-group-enhanced input:focus,
.form-group-enhanced textarea:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    background: white;
}
.form-hint-enhanced {
    font-size: 0.85rem;
    color: #64748b;
    margin: 8px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-hint-enhanced i {
    color: #f59e0b;
}
.form-trust-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 24px;
    font-size: 0.8rem;
    color: #475569;
}
.form-trust-line div {
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-trust-line i {
    color: #10b981;
    font-size: 0.9rem;
}
.cta-btn-enhanced {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.cta-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(30, 58, 138, 0.4);
}
.cta-btn-enhanced:active {
    transform: scale(0.98);
}
.cta-btn-enhanced i {
    font-size: 1.1rem;
}
.form-after-note {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}
.form-success-enhanced {
    padding: 40px;
    text-align: center;
}
.form-success-enhanced h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
/* Облегчённая форма */
.form-card-light {
    background: white;
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.3s ease;
}
.form-card-light:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.form-card-light__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.form-card-light__subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.form-card-light__perks {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}
.perk-icon {
    font-size: 1.1rem;
}
.form-group-light {
    margin-bottom: 18px;
    text-align: left;
}
.form-group-light input,
.form-group-light textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: 0.2s ease;
    outline: none;
}
.form-group-light input:focus,
.form-group-light textarea:focus {
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
}
.form-card-light__hint {
    font-size: 0.85rem;
    color: #64748b;
    margin: 8px 0 24px;
    text-align: left;
}
.cta-btn-light {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(30,58,138,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.cta-btn-light:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(30,58,138,0.25);
}
.cta-btn-light__arrow {
    transition: transform 0.2s;
}
.cta-btn-light:hover .cta-btn-light__arrow {
    transform: translateX(4px);
}
.form-card-light__trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    flex-wrap: wrap;
}
.trust-sep {
    color: #cbd5e1;
}
.form-success-light {
    padding: 40px 20px;
    animation: fadeInUp 0.3s ease;
}
.form-success-light .success-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 16px;
}
.form-success-light h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #0f172a;
}
.form-success-light p {
    color: #475569;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 480px) {
    .form-card-light {
        padding: 32px 20px;
    }
    .form-card-light__perks {
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================================================
   ИНЖЕНЕРНЫЙ ВИЗУАЛЬНЫЙ СТИЛЬ — диаграммы, диагностика, аварии
   ================================================================ */

/* --- Диаграмма потоков данных (архитектурная) --- */
.dataflow-diagram {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}
.dataflow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.df-node {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    min-width: 100px;
    text-align: center;
    transition: all 0.2s;
}
.df-node i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: #1e3a8a;
}
.df-node.df-warn {
    border-color: #fca5a5;
    background: #fff5f5;
}
.df-node.df-warn i { color: #dc2626; }
.df-node.df-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.df-node.df-ok i { color: #16a34a; }
.df-arrow {
    font-size: 1.6rem;
    color: #94a3b8;
}

/* --- Диагностическая цепочка --- */
.diag-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.diag-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 4px solid #1e3a8a;
    transition: transform 0.2s, box-shadow 0.2s;
}
.diag-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.diag-step .step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.diag-step .step-body h4 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1rem;
}
.diag-step .step-body p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Карточка точки разрыва (break-card) --- */
.break-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.break-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.break-card .break-icon {
    font-size: 1.8rem;
    color: #dc2626;
    margin-bottom: 10px;
}
.break-card .break-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 8px;
}
.break-card .break-cause {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    line-height: 1.5;
}
.break-card .break-fix {
    font-size: 0.85rem;
    color: #166534;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #22c55e;
    line-height: 1.5;
}

/* --- Инженерная заметка --- */
.engineering-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
}
.engineering-note strong {
    color: #92400e;
}
.engineering-note i {
    color: #f59e0b;
    margin-right: 8px;
}

/* --- Карточка аварии --- */
.crash-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}
.crash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.crash-code {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.crash-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}
.crash-detail {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}
.crash-fix {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #166534;
    border-left: 3px solid #22c55e;
}
.crash-fix strong {
    color: #15803d;
}

/* --- Таблица симптом/причина/цена --- */
.symptom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.symptom-table thead {
    background: #1e3a8a;
    color: white;
}
.symptom-table thead th {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}
.symptom-table tbody td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
}
.symptom-table tbody tr:hover {
    background: #f8fafc;
}
.symptom-table .cost-cell {
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
}

/* --- Карточка хаос-статистики --- */
.chaos-stat {
    background: #fff5f5;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid #fecaca;
    transition: transform 0.2s;
}
.chaos-stat:hover {
    transform: translateY(-2px);
}
.chaos-stat .chaos-number {
    font-size: 2rem;
    font-weight: 800;
    color: #dc2626;
    display: block;
    line-height: 1.1;
}
.chaos-stat .chaos-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
}

/* --- Карточка «почему» --- */
.why-card {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 4px solid #e2e8f0;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.why-card:hover {
    border-left-color: #1e3a8a;
}
.why-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #0f172a;
}
.why-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

/* --- Бейдж стоимости --- */
.cost-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* --- Карточка последствия --- */
.consequence-card {
    background: #fff5f5;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #fecaca;
    transition: transform 0.2s;
}
.consequence-card:hover {
    transform: translateY(-2px);
}
.consequence-card i {
    font-size: 1.8rem;
    color: #dc2626;
    margin-bottom: 8px;
}
.consequence-card h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #0f172a;
}
.consequence-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Элемент инженерного чек-листа --- */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 20px;
    transition: background 0.2s;
}
.check-item:hover {
    background: #f1f5f9;
}
.check-item .check-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.check-item .check-body h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #0f172a;
}
.check-item .check-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- Таблица сравнения «типовой подход vs инженерная диагностика» --- */
.symptom-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.symptom-compare > div {
    background: white;
    padding: 20px 24px;
    font-size: 0.95rem;
}
.symptom-compare .sc-header {
    background: #1e3a8a;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.symptom-compare .sc-label {
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
}

/* --- ROI-баннер --- */
.roi-banner {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 24px;
    padding: 36px 32px;
    color: white;
    text-align: center;
}
.roi-banner h3 {
    font-size: 1.5rem;
    margin: 0 0 24px;
    font-weight: 700;
}
.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}
.roi-item {
    text-align: center;
}
.roi-item .roi-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fbbf24;
    display: block;
}
.roi-item .roi-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* --- Бюджетная карточка --- */
.budget-card {
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.budget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.budget-card h3 {
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: #0f172a;
}
.budget-card .budget-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* --- Forensic-кейс (тёмная тема) --- */
.forensic-case {
    background: #0f172a;
    color: white;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.forensic-case .big-number {
    font-size: 4rem;
    font-weight: 800;
    color: #38bdf8;
}
.forensic-case p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Адаптивность для инженерных блоков --- */
@media (max-width: 768px) {
    .dataflow-row {
        flex-direction: column;
        gap: 10px;
    }
    .df-arrow {
        transform: rotate(90deg);
    }
    .symptom-compare {
        grid-template-columns: 1fr;
    }
    .forensic-case {
        padding: 24px;
        gap: 20px;
    }
    .forensic-case .big-number {
        font-size: 3rem;
    }
    .roi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .break-card,
    .crash-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .budget-card {
        padding: 24px 20px;
    }
    .budget-card .budget-price {
        font-size: 1.6rem;
    }
    .roi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .roi-item .roi-number {
        font-size: 1.5rem;
    }
}

/* ================================================================
   ФИРМЕННЫЙ ИНЖЕНЕРНЫЙ ПАТТЕРН — стек-диаграмма + маркеры ошибок
   ================================================================ */

/* --- Контейнер стек-диаграммы --- */
.stack-diagram {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.stack-diagram:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
.stack-diagram__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}
.stack-diagram__title i {
    color: #1e3a8a;
    margin-right: 6px;
}

/* --- Слой стека --- */
.stack-layer {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    position: relative;
}
.stack-layer i {
    font-size: 1.2rem;
    color: #1e3a8a;
    flex-shrink: 0;
}
.stack-layer .layer-label {
    flex: 1;
    text-align: left;
}
.stack-layer .layer-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 10px;
    background: #e0e7ff;
    color: #1e3a8a;
    flex-shrink: 0;
}

/* --- Состояния слоёв --- */
.stack-layer.layer-warn {
    background: #fff5f5;
    border-color: #fca5a5;
}
.stack-layer.layer-warn i {
    color: #dc2626;
}
.stack-layer.layer-warn .layer-badge {
    background: #fee2e2;
    color: #b91c1c;
}
.stack-layer.layer-ok {
    background: #f0fdf4;
    border-color: #86efac;
}
.stack-layer.layer-ok i {
    color: #16a34a;
}
.stack-layer.layer-ok .layer-badge {
    background: #dcfce7;
    color: #166534;
}
.stack-layer.layer-active {
    background: #e0e7ff;
    border-color: #1e3a8a;
}
.stack-layer.layer-active i {
    color: #1e3a8a;
}
.stack-layer.layer-active .layer-badge {
    background: #1e3a8a;
    color: #ffffff;
}

/* --- Стрелка между слоями --- */
.stack-arrow {
    text-align: center;
    padding: 4px 0;
    font-size: 1.4rem;
    color: #94a3b8;
    line-height: 1;
}
.stack-arrow.warn {
    color: #fca5a5;
}

/* --- Маркеры ошибок (под стеком) --- */
.error-markers {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.error-marker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b91c1c;
    font-family: 'Courier New', 'Consolas', monospace;
    transition: all 0.2s;
    white-space: nowrap;
}
.error-marker:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}
.error-marker .marker-symbol {
    font-size: 1rem;
    font-weight: 700;
    color: #dc2626;
}

/* --- Адаптивность стек-диаграммы --- */
@media (max-width: 480px) {
    .stack-diagram {
        padding: 20px 16px;
        max-width: 100%;
    }
    .stack-layer {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .error-markers {
        gap: 8px;
    }
    .error-marker {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
}

/* ============================================================
   Stage 3: Sidebar layout — двухколоночная сетка (pageMap-страницы)
   ============================================================ */

/* --- Обёртка двухколоночного layout --- */
.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

/* --- Sidebar — левая колонка --- */
.sidebar {
    position: sticky;
    top: var(--header-height);
    max-height: calc(100vh - var(--header-height) - 20px);
    overflow-y: auto;
    padding: 24px 20px;
    background: #ffffff;
    border-right: 1px solid #eef2f6;
    font-size: 0.9rem;
    line-height: 1.5;
    /* Тонкий скроллбар */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* --- Заголовок sidebar --- */
.sidebar__header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
}
.sidebar__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.sidebar__title:hover {
    color: #3b82f6;
}
.sidebar__title i {
    font-size: 0.9rem;
    color: #64748b;
    width: 18px;
    text-align: center;
}

/* --- Список кластеров --- */
.sidebar__clusters {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* --- Кластер (группа) --- */
.sidebar__cluster {
    border-radius: 10px;
    overflow: hidden;
}

/* --- Заголовок кластера (ссылка-якорь) --- */
.sidebar__cluster-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.sidebar__cluster-link:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}
.sidebar__cluster-link i {
    font-size: 0.8rem;
    color: #94a3b8;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* --- Страницы внутри кластера (скрыты по умолчанию, анимированы) --- */
.sidebar__pages {
    list-style: none;
    padding: 0 0 0 30px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
/* Показываем страницы только для открытого кластера */
.sidebar__cluster--open > .sidebar__pages {
    max-height: 300px;
    padding: 4px 0 8px 30px;
}

/* --- Ссылка на страницу --- */
.sidebar__page-link {
    display: block;
    padding: 7px 12px;
    font-size: 0.84rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    border-left: 2px solid transparent;
}
.sidebar__page-link:hover {
    background: #f8fafc;
    color: #334155;
    border-left-color: #cbd5e1;
}

/* --- Активная страница (подсвечивается через JS) --- */
.sidebar__page-link--active,
.sidebar__page-link--active:hover {
    color: #1e3a8a;
    font-weight: 700;
    background: #eef2ff;
    border-left-color: #3b82f6;
}

/* --- Футер sidebar (ссылка на мониторинг) --- */
.sidebar__footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}
.sidebar__monitoring-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.sidebar__monitoring-link:hover {
    background: #fef3c7;
    color: #92400e;
}
.sidebar__monitoring-link i {
    font-size: 0.85rem;
    color: #f59e0b;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================================
   Адаптивность sidebar
   ============================================================ */

@media (max-width: 1023px) {
    .page-layout {
        display: block;
        padding-top: 12px;
    }
    #site-sidebar {
        display: none;
    }
    .breadcrumbs {
        margin-top: 8px;
    }
}

/* === MIGRATED INLINE STYLES (auto-generated) === */
/* Cleaned & deduplicated */

.diag-step h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.diag-step p {
    font-size: 0.9rem;
    color: #475569;
}

.consequence-card .cons-icon {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 8px;
}

.check-item i {
    color: #1e3a8a;
    margin-top: 3px;
    font-size: 1rem;
}

.check-item .check-q {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.check-item .check-a {
    color: #475569;
    font-size: 0.85rem;
    margin-top: 4px;
}

.breadcrumbs { font-size: 0.85rem; color: #5b6e8c; margin: 16px auto 0; padding-bottom: 8px; border-bottom: 1px solid #eef2f6; max-width: 1280px; margin-left: auto; margin-right: auto; }

.breadcrumbs a { color: #1e3a8a; text-decoration: none; }

.hero-wb { background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%); padding: 60px 0 40px; text-align: center; }

.trust-strip { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 800px; margin: -20px auto 40px; background: white; border-radius: 20px; padding: 16px 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.04); }

.trust-strip span { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #334155; }

.case-study-ozon { background: #0f172a; color: white; border-radius: 32px; padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-top: 20px; }

.case-study-ozon .big-number { font-size: 4rem; font-weight: 800; color: #38bdf8; }

.case-study-ozon p { font-size: 1.1rem; line-height: 1.6; }

.need-cards { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 24px; }

.need-card { flex: 1; min-width: 200px; text-align: center; background: #f8fafc; border-radius: 20px; padding: 24px; }

.need-card i { font-size: 2.5rem; color: #1e3a8a; }

.outcome-list { list-style: none; display: grid; gap: 16px; max-width: 600px; margin: 30px auto 0; }

.outcome-list li i { color: #10b981; margin-right: 12px; }

.price-card { background: white; border-radius: 24px; padding: 28px; min-width: 220px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; transition: 0.2s; text-align: center; }

.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }

.price-value { font-size: 1.5rem; font-weight: 800; color: #1e3a8a; margin-top: 12px; }

.case-study-wb {
    background: #0f172a;
    color: white;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.case-study-wb .big-number {
    font-size: 4rem;
    font-weight: 800;
    color: #38bdf8;
}

.case-study-wb p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.price-card--featured {
    border-color: #1e3a8a;
    background: #f8faff;
    box-shadow: 0 10px 25px rgba(30,58,138,0.1);
    transform: scale(1.03);
}

.df-node.site { background: #2563eb; }

.df-node.crm { background: #7c3aed; }

.df-node.delivery { background: #059669; }

.df-node.warehouse { background: #d97706; }

.df-break {
    background: #fef2f2;
    border: 2px dashed #dc2626;
    border-radius: 12px;
    padding: 8px 16px;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
}

.break-point {
    background: #fff5f5;
    border-left: 4px solid #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.break-point h4 {
    color: #dc2626;
    margin-bottom: 4px;
    font-size: 1rem;
}

.break-point p {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

.break-card h4 {
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.break-card p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.crash-card .crash-code {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.crash-card .crash-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.crash-card .crash-detail {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.crash-card .crash-fix {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.crash-card .crash-fix strong {
    color: #15803d;
}

.diag-chain {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.diag-chain .chain-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 4px solid #1e3a8a;
}

.chain-step .step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.chain-step .step-body h4 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1rem;
}

.chain-step .step-body p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.need-card:hover { transform: translateY(-2px); }

.need-card h4 {
    margin: 12px 0 8px;
    color: #0f172a;
}

.need-card p {
    color: #475569;
    font-size: 0.9rem;
}

.privacy-policy {
    padding: 60px 0 80px;
    background: white;
}

.privacy-policy h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e3a8a;
}

.privacy-policy h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0f172a;
}

.privacy-policy p, .privacy-policy li {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 12px;
}

.privacy-policy ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.privacy-policy a {
    color: #1e3a8a;
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

.chaos-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.chaos-stat .stat-label {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 8px;
}

.symptom-table th {
    background: #1e3a8a;
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.symptom-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.9rem;
    color: #334155;
    vertical-align: top;
}

.symptom-table tr:nth-child(even) td {
    background: #f8fafc;
}

.symptom-table tr:last-child td {
    border-bottom: none;
}

.symptom-table .sym-col {
    font-weight: 600;
    color: #dc2626;
    min-width: 200px;
}

.symptom-table .cause-col {
    color: #475569;
}

.symptom-table .fix-col {
    color: #16a34a;
    font-weight: 500;
    min-width: 160px;
}

@media (max-width: 600px) {
    .symptom-compare {
    grid-template-columns: 1fr;
}
    .case-study-ozon {
    padding: 24px;
    gap: 20px;
}
    .case-study-ozon .big-number {
    font-size: 3rem;
}
}

@media (max-width: 768px) {
    .privacy-policy {
    padding: 40px 0 60px;
}
    .privacy-policy h1 {
    font-size: 1.8rem;
}
    .privacy-policy h2 {
    font-size: 1.3rem;
}
}

@media (max-width: 768px) {
    .symptom-table {
    display: block;
    overflow-x: auto;
}
}

/* ============================================================
   ЭКСТРЕННЫЙ ЧЕКАП (P0) — все стили через классы (без inline)
   ============================================================ */
.emergency-checkup {
    background: #fff5f5;
    border-left: 4px solid #dc2626;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 0 auto 40px;
    max-width: 850px;
    box-shadow: 0 8px 20px rgba(220,38,38,0.15);
    position: relative;
}
.emergency-checkup::before {
    content: "🚨";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #dc2626;
    color: white;
    font-size: 1.2rem;
    padding: 4px 12px;
    border-radius: 40px;
    font-weight: bold;
}

/* Заголовок чекапа */
.emergency-checkup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.emergency-checkup__header .emergency-checkup__icon {
    font-size: 1.8rem;
}
.emergency-checkup__header h3 {
    color: #991b1b;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Список пунктов */
.emergency-checkup__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.emergency-checkup__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #7f1d1d;
    font-size: 0.95rem;
    line-height: 1.5;
}
.emergency-checkup__item .emergency-checkup__marker {
    flex-shrink: 0;
    margin-top: 2px;
}
.emergency-checkup__item .emergency-checkup__hint {
    margin: 3px 0 0;
    color: #b91c1c;
    font-size: 0.85rem;
}

/* CTA блок */
.emergency-checkup__cta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #fecaca;
}
.emergency-checkup__cta-text {
    margin: 0 0 12px;
    color: #7f1d1d;
    font-size: 0.95rem;
    font-weight: 600;
}
.emergency-checkup__cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.emergency-checkup__email-btn {
    background: #dc2626;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
}
.emergency-checkup__email-btn:hover {
    background: #b91c1c;
}
.emergency-checkup__phone-btn {
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
}
.emergency-checkup__phone-btn:hover {
    background: #152c6b;
}

/* ============================================================
   МОБИЛЬНЫЙ АККОРДЕОН САЙДБАРА (P0)
   ============================================================ */
@media (max-width: 767px) {
    .mobile-sidebar-clone {
        margin-top: 40px;
        border-top: 1px solid #e2e8f0;
        padding-top: 20px;
    }
    .mobile-sidebar-clone .sidebar__cluster-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    .mobile-sidebar-clone .sidebar__cluster-link::after {
        content: "▼";
        font-size: 0.7rem;
        transition: transform 0.2s;
    }
    .mobile-sidebar-clone .sidebar__cluster--open .sidebar__cluster-link::after {
        transform: rotate(180deg);
    }
    .mobile-sidebar-clone .sidebar__pages {
        max-height: 0;
        overflow: hidden;
        padding-left: 20px;
        transition: max-height 0.35s ease;
    }
    .mobile-sidebar-clone .sidebar__cluster--open .sidebar__pages {
        max-height: 400px;
        padding-bottom: 6px;
    }
}

/* ============================================================
   SEO-ОПТИМИЗАЦИЯ: Классы взамен inline-стилей
   ============================================================ */

/* --- Главная: карточки бизнес-боли (блок «Что у вас происходит?») --- */
.business-pain-section {
    padding: 60px 0 40px;
    background: #ffffff;
}
.pain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.pain-card {
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.pain-card--money {
    background: #fff5f5;
    border: 1px solid #fecaca;
}
.pain-card--chaos {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.pain-card--tech {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.pain-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.pain-card__icon {
    font-size: 1.8rem;
}
.pain-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.pain-card--money .pain-card__title { color: #991b1b; }
.pain-card--chaos .pain-card__title { color: #9a3412; }
.pain-card--tech .pain-card__title { color: #1e40af; }
.pain-card__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pain-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
}
.pain-card--money .pain-card__link { color: #b91c1c; background: #fef2f2; }
.pain-card--chaos .pain-card__link { color: #c2410c; background: #fff7ed; }
.pain-card--tech .pain-card__link { color: #1e40af; background: #eff6ff; }
.pain-card__link i {
    width: 20px;
    text-align: center;
}
.pain-cta {
    text-align: center;
    margin-top: 28px;
}
.pain-cta__text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* --- Главная: продуктовая линейка --- */
.product-lineup-section {
    padding: 60px 0;
    background: #f8fafc;
}
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.product-card {
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.product-card--featured {
    border: 2px solid #1e3a8a;
    box-shadow: 0 2px 12px rgba(30,58,138,0.1);
}
.product-card--featured:hover {
    box-shadow: 0 8px 24px rgba(30,58,138,0.15);
}
.product-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.product-card__title {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: #1e293b;
}
.product-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.product-card__price--emergency { color: #dc2626; }
.product-card__price--checkup { color: #1e3a8a; }
.product-card__price--monitoring { color: #10b981; }
.product-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    width: fit-content;
}
.product-card__badge--emergency { background: #fef2f2; color: #dc2626; }
.product-card__badge--checkup { background: #eff6ff; color: #1e3a8a; }
.product-card__badge--monitoring { background: #ecfdf5; color: #059669; }
.product-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
}
.product-card__cta {
    margin-top: auto;
    text-align: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}
.product-card__cta--emergency {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}
.product-card__cta--checkup {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
}
.product-card__cta--monitoring {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}
.product-lineup__footer {
    text-align: center;
    margin-top: 28px;
}
.product-lineup__footer-text {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* --- Главная: hero CTA-кнопки ряд --- */
.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.hero-cta-catalog {
    background: #1e3a8a;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.hero-cta-catalog:hover {
    background: #2c4cae;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,138,0.2);
}
.hero-cta-diagnostic {
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hero-cta-diagnostic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,138,0.2);
}

/* --- Главная: симптомные пилли (hero-segments — уже в CSS) --- */

/* --- Диагностические: hero-wb inline-стили --- */
.hero-wb__container {
    text-align: center;
}
.hero-wb__title {
    font-size: 2.4rem;
}
.hero-wb__subtitle {
    font-size: 1.3rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 28px;
}
.hero-wb__tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-wb__tag {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 0.85rem;
}
.hero-wb__tag--critical {
    background: #fef2f2;
    color: #dc2626;
}
.hero-wb__cta-btn {
    padding: 14px 36px;
    font-size: 1.05rem;
}
.hero-wb__cta-note {
    margin-top: 12px;
}

/* --- Диагностические: trust-strip --- */
.trust-strip__inner {
    text-align: center;
    padding: 20px 0;
}
.trust-strip__text {
    color: #64748b;
    font-size: 0.9rem;
}
.trust-strip__links {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* --- Диагностические: симптомная сетка (4 карточки) --- */
.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 24px;
    margin: 40px 0;
}
.symptom-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 20px;
    border-left: 4px solid #dc2626;
}
.symptom-card__title {
    color: #dc2626;
}
.symptom-card__text {
    color: #475569;
}

/* --- Диагностические: причина + чек-лист сетки --- */
.cause-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 24px;
    margin: 40px 0;
}
.cause-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border-left: 4px solid #1e3a8a;
}
.cause-card__text {
    color: #475569;
    font-size: 0.9rem;
}

/* --- Диагностические: блок последствий --- */
.consequence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
    margin-top: 30px;
}

/* --- Диагностические: кейс --- */
.case-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0;
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.case-box__left {
    flex: 1;
    min-width: 200px;
}
.case-box__right {
    flex: 2;
    min-width: 250px;
}
.case-box__symptom-label {
    color: #dc2626;
    font-weight: 600;
}
.case-box__cause-label {
    color: #1e3a8a;
    font-weight: 600;
}
.case-box__fix-label {
    color: #16a34a;
    font-weight: 600;
    margin-top: 12px;
}
.case-box__text {
    color: #475569;
}

/* --- Хелперы: ссылки и muted-текст --- */
.product-lineup__footer-link {
    color: #1e3a8a;
    font-weight: 600;
}
.product-lineup__footer-link:hover {
    color: #2563eb;
}
.muted {
    color: #475569;
}

/* --- Контекстные ссылки (в тексте) --- */
.context-link {
    color: #1e3a8a;
    text-decoration: underline;
}
.context-link:hover {
    color: #2563eb;
}

/* --- Секции с фоном --- */
.section-white {
    padding: 60px 0;
    background: #ffffff;
}
.section-light {
    padding: 60px 0;
    background: #f8fafc;
}
.section-form {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

/* --- Форма диагностики: бедж --- */
.form-diag-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* --- 404 страница --- */
.not-found-page {
    padding: 100px 0;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.not-found-page__code {
    font-size: 8rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 16px;
}
.not-found-page__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.not-found-page__text {
    font-size: 1.1rem;
    color: #475569;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.not-found-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.not-found-page__link {
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.not-found-page__link:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,138,0.2);
}
.not-found-page__link--secondary {
    background: #f1f5f9;
    color: #1e3a8a;
    border: 1px solid #e2e8f0;
}
.not-found-page__link--secondary:hover {
    background: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.not-found-page__hint {
    margin-top: 28px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Модификаторы секций --- */
.how-i-work--light {
    background: #f8fafc;
}
.how-i-work--white {
    background: #ffffff;
}

/* --- Dataflow diagram --- */
.dataflow-diagram {
    margin-top: 40px;
}
.df-warn small {
    color: #dc2626;
}
.df-ok small {
    color: #16a34a;
}

/* --- Dataflow: легенда --- */
.dataflow-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.dataflow-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}
.dataflow-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}
.dataflow-legend__swatch--warn {
    background: #fff5f5;
    border: 2px solid #fca5a5;
}
.dataflow-legend__swatch--ok {
    background: #f0fdf4;
    border: 2px solid #86efac;
}
.dataflow-legend__swatch--normal {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

/* --- Forensic grid (точки разрыва) --- */
.forensic-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}
.forensic-card {
    background: #fff5f5;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #fecaca;
}
.forensic-card__title {
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}
.forensic-card__text {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* --- Dataflow conclusion --- */
.dataflow-conclusion {
    text-align: center;
    margin-top: 28px;
    font-weight: 500;
    color: #1e3a8a;
    font-size: 1.05rem;
}

/* --- Trust block note («Мы честно скажем») --- */
.trust-block-note {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    margin: 30px 0;
}
.trust-block-note__title {
    color: #0f172a;
    margin: 0 0 8px;
}
.trust-block-note__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.trust-block-note__list li {
    color: #475569;
    padding: 2px 0;
}
.trust-block-note__list li i {
    color: #dc2626;
}

/* --- Emergency strip (аварийная полоса на главной) --- */
.emergency-strip {
    padding: 50px 0;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
}
.emergency-strip__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.emergency-strip__icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}
.emergency-strip__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #991b1b;
    margin: 0 0 8px;
}
.emergency-strip__text {
    color: #7f1d1d;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 24px;
}
.emergency-strip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.emergency-strip__tag {
    background: #fff;
    color: #991b1b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #fecaca;
}
.emergency-strip__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.emergency-strip__phone-btn {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
}
.emergency-strip__phone-btn:hover {
    background: #b91c1c;
    color: #fff;
}
.emergency-strip__form-btn {
    display: inline-block;
    background: #fff;
    color: #dc2626;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #dc2626;
}
.emergency-strip__form-btn:hover {
    background: #fef2f2;
}

/* Адаптивность emergency-checkup */
@media (max-width: 600px) {
    .emergency-checkup {
        padding: 24px 20px;
        margin: 0 10px 30px;
    }
    .emergency-checkup__header h3 {
        font-size: 1.1rem;
    }
    .emergency-checkup__cta-buttons {
        flex-direction: column;
    }
    .emergency-checkup__email-btn,
    .emergency-checkup__phone-btn {
        text-align: center;
        width: 100%;
    }
}

/* ============================================================
   Epic 3: Типизированные связи между инцидентами (relationTypes)
   ============================================================ */

.related-group {
    margin-bottom: 20px;
}
.related-group__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}
.related-item--typed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 6px;
    transition: background 0.15s;
}
.related-item--typed:hover {
    background: #f1f5f9;
}
.related-link--auto {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.92rem;
    flex: 1;
}
.related-link--auto:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Бейдж типа связи */
.relation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.relation-badge.rel-causes {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.relation-badge.rel-leads-to {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.relation-badge.rel-related {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.relation-badge.rel-aggravates {
    background: #fdf2f8;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

/* ============================================================
   Epic 5: Экспертная навигация в каталоге сбоев
   ============================================================ */

.expert-nav {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin: 0 auto;
}
.expert-nav__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.expert-nav__subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.expert-nav__modes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}
.expert-nav__mode-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.expert-nav__mode-btn:hover {
    color: #1e3a8a;
}
.expert-nav__mode-btn.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}
.expert-nav__panel {
    display: none;
    animation: fadeInUp 0.3s ease;
}
.expert-nav__panel.active {
    display: block;
}
.expert-nav__symptom-group {
    margin-bottom: 18px;
}
.expert-nav__symptom-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    display: inline-block;
}
.expert-nav__paths {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.expert-nav__path {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.expert-nav__path:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.expert-nav__path-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.expert-nav__path-info {
    flex: 1;
    min-width: 0;
}
.expert-nav__path-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.92rem;
}
.expert-nav__path-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}
.expert-nav__path-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.expert-nav__severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
}
.expert-nav__severity.high {
    background: #fef2f2;
    color: #991b1b;
}
.expert-nav__severity.medium {
    background: #fffbeb;
    color: #92400e;
}
.expert-nav__severity.low {
    background: #f0fdf4;
    color: #166534;
}

/* ============================================================
   Epic 4: Мониторинг как продукт — живые сценарии и карта проблем
   ============================================================ */

.monitor-product-section {
    padding: 60px 0;
    background: #ffffff;
}
.monitor-product-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 8px;
}
.monitor-product-section__sub {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* Карточка живого сценария */
.monitor-alert-scenario {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.monitor-alert-scenario:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.monitor-alert-scenario__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.monitor-alert-scenario__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.monitor-alert-scenario__status-dot.critical {
    background: #dc2626;
    box-shadow: 0 0 8px rgba(220,38,38,0.4);
}
.monitor-alert-scenario__status-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245,158,11,0.4);
}
.monitor-alert-scenario__status-dot.ok {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.4);
}
.monitor-alert-scenario__status-text {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.monitor-alert-scenario__status-text.critical { color: #dc2626; }
.monitor-alert-scenario__status-text.warning { color: #d97706; }
.monitor-alert-scenario__status-text.ok { color: #059669; }

.monitor-alert-scenario__title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 6px;
}
.monitor-alert-scenario__desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
}
.monitor-alert-scenario__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: #eff6ff;
    transition: background 0.15s;
}
.monitor-alert-scenario__link:hover {
    background: #dbeafe;
}

/* Карта проблем */
.monitor-problem-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.monitor-problem-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.monitor-problem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: #bfdbfe;
}
.monitor-problem-card__icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.monitor-problem-card__title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.monitor-problem-card__desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
}
.monitor-problem-card__tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #eff6ff;
    color: #1e40af;
}
.monitor-problem-card__tag.critical {
    background: #fef2f2;
    color: #991b1b;
}
.monitor-problem-card__tag.warning {
    background: #fffbeb;
    color: #92400e;
}

/* Эмуляция алерта */
.monitor-alert-emulation {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 32px;
    color: #e2e8f0;
    max-width: 800px;
    margin: 0 auto 36px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.monitor-alert-emulation__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}
.monitor-alert-emulation__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.5s infinite;
}
.monitor-alert-emulation__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.02em;
}
.monitor-alert-emulation__time {
    margin-left: auto;
    font-size: 0.75rem;
    color: #94a3b8;
}
.monitor-alert-emulation__body {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #cbd5e1;
}
.monitor-alert-emulation__body .highlight {
    color: #fca5a5;
    font-weight: 700;
}
.monitor-alert-emulation__body .dim {
    color: #64748b;
}

/* ================================================================
   Визуализация цикла мониторинга (monitor-cycle)
   ================================================================ */
.monitor-cycle {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 0;
}

.monitor-cycle__stage {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.monitor-cycle__stage:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.monitor-cycle__stage--terminal {
    border: 2px solid #1e3a8a;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.monitor-cycle__stage-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.monitor-cycle__stage-content {
    flex: 1;
    min-width: 0;
}

.monitor-cycle__stage-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.monitor-cycle__stage-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.monitor-cycle__stage-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 10px;
}

.monitor-cycle__stage-source {
    font-size: 0.78rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

.monitor-cycle__stage-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.monitor-cycle__metric-tag {
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.monitor-cycle__stage-thresholds {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monitor-cycle__threshold {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.monitor-cycle__threshold-label {
    font-weight: 700;
    color: #0f172a;
    min-width: 80px;
}

.monitor-cycle__threshold-value {
    color: #475569;
}

.monitor-cycle__threshold-value.warn {
    color: #d97706;
    font-weight: 600;
}

.monitor-cycle__threshold-value.crit {
    color: #dc2626;
    font-weight: 600;
}

.monitor-cycle__stage-classifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.monitor-cycle__class-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.monitor-cycle__class-badge.critical {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.monitor-cycle__class-badge.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.monitor-cycle__class-badge.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.monitor-cycle__stage-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.monitor-cycle__stage-channels span {
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #fecaca;
}

.monitor-cycle__catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    background: #1e3a8a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.2s;
}

.monitor-cycle__catalog-link:hover {
    background: #1e40af;
}

.monitor-cycle__arrow {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

/* ================================================================
   Таймлайн мониторинга (monitor-timeline)
   ================================================================ */
.monitor-timeline {
    display: flex;
    flex-direction: column;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    padding-left: 80px;
}

/* Вертикальная линия */
.monitor-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #1e3a8a, #e2e8f0 60%, #e2e8f0);
}

.monitor-timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
}

.monitor-timeline__item:last-child {
    margin-bottom: 0;
}

.monitor-timeline__time {
    position: absolute;
    left: -80px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 64px;
}

.monitor-timeline__time-badge {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.monitor-timeline__time-msk {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.monitor-timeline__dot {
    position: absolute;
    left: -44px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px;
    z-index: 2;
}

.monitor-timeline__dot.critical {
    background: #dc2626;
    box-shadow: 0 0 0 3px #fecaca;
}

.monitor-timeline__dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 0 3px #fde68a;
}

.monitor-timeline__card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s, transform 0.2s;
}

.monitor-timeline__card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.monitor-timeline__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.monitor-timeline__card-level {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.monitor-timeline__card-level.critical {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.monitor-timeline__card-level.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.monitor-timeline__card-duration {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.monitor-timeline__card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.monitor-timeline__card-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px;
}

.monitor-timeline__card-steps {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.monitor-timeline__step {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.monitor-timeline__step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.monitor-timeline__step-time {
    font-weight: 700;
    color: #0f172a;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    margin-right: 8px;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 4px;
}

.monitor-timeline__card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1e40af;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #bfdbfe;
    transition: background 0.2s;
}

.monitor-timeline__card-link:hover {
    background: #dbeafe;
}

/* Адаптивность для таймлайна */
@media (max-width: 640px) {
    .monitor-timeline {
        padding-left: 56px;
    }

    .monitor-timeline::before {
        left: 24px;
    }

    .monitor-timeline__time {
        left: -56px;
        width: 44px;
    }

    .monitor-timeline__time-badge {
        font-size: 0.9rem;
    }

    .monitor-timeline__dot {
        left: -36px;
    }

    .monitor-timeline__card {
        padding: 16px;
    }
}

/* ============================================================
   ACSync v3.5 — Agent Dashboard (живой мониторинг)
   ============================================================ */

.agent-dashboard-section {
    border-bottom: 1px solid rgba(148,163,184,0.15);
}

.agent-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.agent-dashboard-title {
    color: #f1f5f9;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-dashboard-status {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.agent-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.agent-metric-card {
    padding: 16px;
    border-radius: 10px;
    min-height: 100px;
}

.agent-metric-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.agent-metric-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-metric-card__label {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-metric-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.agent-metric-card__unit {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

.agent-metric-card__api-detail {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Алерты */
.agent-alerts-container {
    margin-top: 12px;
}

.agent-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.agent-alert--critical {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.agent-alert--warning {
    background: rgba(234,179,8,0.12);
    border: 1px solid rgba(234,179,8,0.3);
    color: #fde047;
}

.agent-alert--info {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: #93c5fd;
}

.agent-alert__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.agent-alert__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-alert__code {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.agent-alert__message {
    font-size: 0.8rem;
}

/* Пустое состояние */
.agent-empty {
    text-align: center;
    padding: 40px 20px;
}

.agent-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.agent-empty__title {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.agent-empty__desc {
    color: #94a3b8;
    font-size: 0.85rem;
    max-width: 500px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.agent-empty__desc a {
    color: #60a5fa;
    text-decoration: underline;
}

.agent-empty__desc a:hover {
    color: #93c5fd;
}

.agent-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 32px;
    font-size: 0.9rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .agent-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .agent-metric-card {
        padding: 12px;
        min-height: auto;
    }

    .agent-metric-card__value {
        font-size: 1.2rem;
    }

    .agent-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .agent-dashboard-status {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .agent-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   БЛОК БИЗНЕС-ВЫГОДЫ (после стабилизации)
   ================================================================ */
.business-result-section {
    padding: 40px 0 0;
    background: #f8fafc;
}
.business-result {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 10px 30px rgba(30,58,138,0.2);
}
.business-result h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #ffffff;
}
.business-result ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.business-result ul li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.business-result ul li::before {
    content: "✓";
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.1rem;
}
.business-result ul li strong {
    color: #fbbf24;
}

/* ================================================================
   SELECT-ПОЛЯ В УЛУЧШЕННОЙ ФОРМЕ
   ================================================================ */
.form-group-enhanced select {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    cursor: pointer;
    color: #1e293b;
}
.form-group-enhanced select:invalid,
.form-group-enhanced select option[value=""] {
    color: #94a3b8;
}
.form-group-enhanced select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    background: white;
}
.form-group-enhanced select option {
    color: #1e293b;
    background: #ffffff;
}
@media (max-width: 480px) {
    .business-result {
        padding: 24px 20px;
    }
    .business-result ul {
        gap: 8px;
    }
    .business-result ul li {
        font-size: 0.88rem;
    }
}
/* Анимация пульсации для критического статуса в MySQL-дашборде */
@keyframes status-pulse-red-anim {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.status-pulse-red {
    animation: status-pulse-red-anim 1.5s infinite ease-in-out;
}

/* stabilizaciya страницы — hero marketplace */
.hero-mp {
    padding: 60px 0 40px;
    background: linear-gradient(120deg, #f8fafc 0%, #eff6ff 100%);
}
.hero-mp__inner {
    text-align: center;
}
.hero-mp__title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #0f172a;
}
.hero-mp__subtitle {
    font-size: 1.3rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.5;
}
.hero-mp__tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-mp__cta {
    padding: 14px 36px;
    font-size: 1.05rem;
}
.hero-mp__note {
    margin-top: 12px;
}

/* pill-теги */
.pill {
    display: inline-block;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.pill--primary {
    background: #eef2ff;
    color: #1e3a8a;
}
.pill--default {
    background: #f1f5f9;
    color: #334155;
}

/* trust-strip */
.trust-strip__inner {
    text-align: center;
    padding: 20px 0;
}
.trust-strip__text {
    color: #64748b;
    font-size: 0.9rem;
}

/* section helpers */
.section--gray {
    padding: 60px 0;
    background: #f8fafc;
}
.section--white {
    padding: 60px 0;
    background: #ffffff;
}

/* cards-grid (4 карточки) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 24px;
    margin-top: 40px;
}
.card {
    background: white;
    padding: 24px;
    border-radius: 20px;
}
.card--danger {
    border-left: 4px solid #dc2626;
}
.card__title {
    color: #dc2626;
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.card__text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* highlight-box */
.highlight-box {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    border-radius: 16px;
}
.highlight-box--info {
    background: #e0f2fe;
}
.highlight-box__text {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.95rem;
}

/* steps compact */
.steps--compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 30px auto;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
}
.step__num {
    background: #1e3a8a;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.step__body {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}
.step__body strong {
    color: #1e293b;
}

/* need-cards */
.need-cards--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 24px;
    margin-top: 40px;
}
.need-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}
.need-card__icon {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 12px;
}
.need-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}
.need-card__text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* faq */
.faq-item {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}
.faq-item summary {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary i {
    color: #94a3b8;
    transition: transform 0.2s;
}
.faq-item[open] summary i {
    transform: rotate(180deg);
}
.faq-item p {
    margin-top: 16px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* forensic links */
.forensic-links {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* author block */
.author-block {
    max-width: 750px;
    margin: 0 auto;
}

/* inline link */
.inline-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.inline-link:hover {
    color: #2c4cae;
    text-decoration: underline;
}

/* === Catalog page: How it works section === */
.how-catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 860px) {
    .how-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .how-catalog {
        grid-template-columns: 1fr;
    }
}

.how-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}
.how-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.how-num {
    width: 44px;
    height: 44px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 16px;
}

.how-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.how-item p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* === Catalog page: Section headings === */
.section-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.section-sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 36px;
}

/* === Catalog page: Cluster grid === */
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 860px) {
    .cluster-grid {
        grid-template-columns: 1fr;
    }
}

.cluster-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.cluster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.04);
    border-color: #cbd5e1;
}

.cluster-card .cluster-icon {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    background: #eef2ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.cluster-card > p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cluster-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cluster-card ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.cluster-card ul li i {
    color: #94a3b8;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cluster-card ul li a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.cluster-card ul li a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* === Catalog page: CTA === */
.catalog-cta {
    text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 32px;
    padding: 48px 32px;
    max-width: 700px;
    margin: 0 auto;
}
.catalog-cta h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.catalog-cta p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 24px;
}

/* === Catalog page: Hero === */
.hero-catalog {
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    padding: 60px 0 40px;
    text-align: center;
}
.hero-catalog h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    max-width: 850px;
    margin: 0 auto 16px;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .hero-catalog h1 {
        font-size: 1.8rem;
    }
}
.hero-catalog .hero-sub {
    font-size: 1.25rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 28px;
}
@media (max-width: 640px) {
    .hero-catalog .hero-sub {
        font-size: 1rem;
    }
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-tags .tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-tags .tag--wb { background: #fee2e2; color: #dc2626; }
.hero-tags .tag--ozon { background: #e0f2fe; color: #0369a1; }
.hero-tags .tag--site { background: #f0fdf4; color: #166534; }
.hero-tags .tag--warehouse { background: #fffbeb; color: #b45309; }
.hero-tags .tag--cdek { background: #f1f5f9; color: #475569; }

/* === Catalog page: Sections === */
.section-pad {
    padding: 60px 0;
}
.section-pad--sm {
    padding: 30px 0;
}
.section-bg-white {
    background: #ffffff;
}
.section-bg-light {
    background: #f8fafc;
}

/* === Catalog page: Fix suggestion line === */
.fix-suggestion {
    text-align: center;
}
.fix-suggestion p {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1e3a8a;
    max-width: 650px;
    margin: 0 auto;
}
.fix-suggestion a {
    color: #1e3a8a;
    text-decoration: underline;
}
.fix-suggestion a:hover {
    color: #3b82f6;
}
