/* ==========================================================================
   ЭКРАН 6: СРАВНЕНИЕ ТЕХНОЛОГИЙ (Монолитная плита vs Ленточный)
   Стиль: Сергей Лыпка («1я Строительная» — Инженер Павел Белоус)
   ========================================================================== */

.screen-comparison {
    padding: 80px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.screen-comparison .section-header {
    text-align: center;
    width: 100%;
    margin: 0 auto 40px auto;
}

@media (max-width: 768px) {
    .screen-comparison {
        padding: 48px 0;
    }
}

.comp-badge {
    display: inline-block;
    background: rgba(44, 197, 78, 0.12);
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   1. Сравнительная таблица скрытых расходов
   -------------------------------------------------------------------------- */
.comp-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 50px;
}

.comp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    text-align: left;
}

.comp-table th {
    padding: 16px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.comp-th-param {
    width: 34%;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.comp-th-slab {
    width: 33%;
    background: #ecfdf5 !important;
    border-left: 1.5px solid #a7f3d0;
    border-right: 1.5px solid #a7f3d0;
}

.comp-th-slab .comp-th-title {
    color: #047857;
    font-size: 17px;
    font-weight: 800;
}

.comp-th-strip {
    width: 33%;
}

.comp-th-strip .comp-th-title {
    color: #1e293b;
    font-size: 17px;
    font-weight: 800;
}

.comp-table td {
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Колонки */
.comp-td-slab {
    background: rgba(236, 253, 245, 0.45);
    border-left: 1.5px solid #d1fae5;
    border-right: 1.5px solid #d1fae5;
}

.comp-param strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.comp-param span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Флекс-контейнер внутри ячейки таблицы */
.comp-val-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comp-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
    flex-shrink: 0;
}

.comp-val-inner strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.comp-val-inner p {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

/* Акценты текста */
.comp-val--good .comp-val-inner strong {
    color: #047857;
}

.comp-val--bad .comp-val-inner strong {
    color: #b91c1c;
}

/* Итоговая нижняя строка */
.comp-tr-total td {
    padding: 18px 22px;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
}

.comp-tr-total .comp-td-slab {
    background: #dcfce7 !important;
    border-left: 1.5px solid #86efac;
    border-right: 1.5px solid #86efac;
}

.comp-price-tag {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comp-price-tag--slab span {
    font-size: 22px;
    font-weight: 900;
    color: #15803d;
}

.comp-price-tag--slab small {
    font-size: 12px;
    color: #047857;
    font-weight: 700;
}

.comp-price-tag--strip span {
    font-size: 20px;
    font-weight: 800;
    color: #334155;
}

.comp-price-tag--strip small {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. Схема «Куда уходят деньги» — 2 карточки
   -------------------------------------------------------------------------- */
.comp-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.comp-vcard {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comp-vcard--slab {
    border: 2px solid #2cc54e;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 120px);
    box-shadow: 0 12px 30px rgba(44, 197, 78, 0.1);
}

.comp-vcard-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #2cc54e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comp-vcard-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.comp-vcard-num {
    font-size: 24px;
    font-weight: 900;
    color: #9ca3af;
    line-height: 1;
}

.comp-vcard--slab .comp-vcard-num {
    color: #2cc54e;
}

.comp-vcard-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.comp-vcard-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.comp-vstep {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #4b5563;
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
}

.comp-vstep-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comp-vstep--add {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.comp-vstep--add .comp-vstep-num {
    background: #ef4444;
    color: #ffffff;
}

.comp-vstep--good {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.comp-vstep--good .comp-vstep-num {
    background: #2cc54e;
    color: #ffffff;
}

.comp-vstep--free {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
    color: #15803d;
}

.comp-vstep--free .comp-vstep-num {
    background: #16a34a;
    color: #ffffff;
}

.comp-vcard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.comp-vcard-footer strong {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.comp-vcard-footer--slab strong {
    color: #15803d;
}

/* --------------------------------------------------------------------------
   3. Блок «Миф vs Реальность»
   -------------------------------------------------------------------------- */
.comp-myths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.comp-myth-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.comp-myth-tag {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.comp-myth-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px 0;
    line-height: 1.35;
}

.comp-myth-answer {
    background: #f0fdf4;
    border-left: 3px solid #2cc54e;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}

.comp-myth-answer strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.comp-myth-answer p {
    font-size: 13px;
    color: #374151;
    margin: 0;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   4. Баннер вызова инженера Павла Белоуса
   -------------------------------------------------------------------------- */
.comp-cta-banner {
    background: #111827;
    border-radius: 20px;
    padding: 32px 36px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.comp-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.comp-cta-author {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 680px;
}

.comp-cta-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #2cc54e;
    object-fit: cover;
    flex-shrink: 0;
}

.comp-cta-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.comp-cta-info p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

.comp-cta-btn {
    white-space: nowrap;
    padding: 16px 24px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(44, 197, 78, 0.3);
}

/* --------------------------------------------------------------------------
   Адаптивность (Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .comp-table-wrapper {
        overflow-x: auto;
    }

    .comp-table {
        min-width: 650px;
    }

    .comp-visual-grid,
    .comp-myths-grid {
        grid-template-columns: 1fr;
    }

    .comp-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .comp-cta-author {
        flex-direction: column;
        text-align: center;
    }

    .comp-cta-btn {
        width: 100%;
    }
}
