/* ========================================
   Service Content Enhanced Blocks
   Стили для улучшенных блоков контента услуг
   ======================================== */

/* --- Преимущества: Grid-карточки с иконками (legacy) --- */
.service-content .advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.service-content .advantage-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-content .advantage-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-content .advantage-card .adv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(46, 139, 87, 0.1);
    color: #2E8B57;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.service-content .advantage-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.service-content .advantage-card p {
    font-size: 0.92rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- Тех. характеристики: Зелёный акцент, белый фон --- */
.service-content .tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 1.5rem 0 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.service-content .tech-spec-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    border-left: 3px solid #2E8B57;
    transition: background 0.2s ease;
}

.service-content .tech-spec-card:hover {
    background: #f8fdf9;
}

.service-content .tech-spec-card .ts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(46, 139, 87, 0.08);
    color: #2E8B57;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-content .tech-spec-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.service-content .tech-spec-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- Преимущества/Недостатки/Характеристики трубы: 3 колонки --- */
.service-content .pipe-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 1.5rem 0 2rem;
}

.service-content .pipe-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.service-content .pipe-info-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px;
}

.service-content .pipe-info-card--pros {
    border-top: 4px solid #2E8B57;
}

.service-content .pipe-info-card--cons {
    border-top: 4px solid #f97316;
}

.service-content .pipe-info-card--specs {
    border-top: 4px solid #8B7355;
}

.service-content .pipe-info-card__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.service-content .pipe-info-card--pros .pipe-info-card__icon {
    color: #2E8B57;
}

.service-content .pipe-info-card--cons .pipe-info-card__icon {
    color: #f97316;
}

.service-content .pipe-info-card--specs .pipe-info-card__icon {
    color: #8B7355;
}

.service-content .pipe-info-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.service-content .pipe-info-card__list {
    list-style: disc;
    padding: 0 20px 20px 38px;
    margin: 0;
}

.service-content .pipe-info-card__list li {
    font-size: 0.925rem;
    color: #374151;
    line-height: 1.65;
    padding: 2px 0;
}

/* --- Преимущества v2: Оранжевый акцент снизу --- */
.service-content .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 1.5rem 0 2rem;
}

.service-content .benefit-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #f3f4f6;
    border-bottom: 3px solid #f97316;
    transition: all 0.25s ease;
}

.service-content .benefit-card:hover {
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
    transform: translateY(-2px);
}

.service-content .benefit-card .ben-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.service-content .benefit-card .benefit-card__icon {
    flex-shrink: 0;
    margin: 0;
}

.service-content .benefit-card h4,
.service-content .benefit-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.service-content .benefit-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.45;
}

/* --- «Для кого подходит» карточки v2: Коричневый акцент слева --- */
.service-content .audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 1.5rem 0 2rem;
}

.service-content .audience-card {
    display: flex;
    gap: 14px;
    background: linear-gradient(135deg, #faf8f5 0%, #fff 100%);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-left: 3px solid #8B7355;
    transition: all 0.25s ease;
}

.service-content .audience-card:hover {
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.12);
    transform: translateX(3px);
}

.service-content .audience-card .aud-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B7355 0%, #a08968 100%);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-content .audience-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.service-content .audience-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.45;
}

/* --- Улучшенные таблицы --- */
.service-content .table-enhanced {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.service-content .table-enhanced th {
    background: #2E8B57;
    color: #fff;
    font-weight: 600;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
    text-align: center;
    vertical-align: middle;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.service-content .table-enhanced td {
    padding: 8px 14px;
    border: none;
    border-top: 1px solid #e8efe8;
    border-right: 1px solid #e8efe8;
    font-size: 0.95rem;
    color: #334155;
}

.service-content .table-enhanced td:last-child {
    border-right: none;
}

.service-content .table-enhanced tbody tr:first-child td {
    border-top: none;
}

.service-content .table-enhanced tbody tr:nth-child(even) td {
    background: #f0f7f2;
}

.service-content .table-enhanced tbody tr:nth-child(odd) td {
    background: #fff;
}

.service-content .table-enhanced tbody tr:hover td {
    background: #e6f2ea;
}

/* Строка-заголовок секции внутри таблицы */
.service-content .table-enhanced td[colspan] {
    background: #f0f4f0;
    font-weight: 600;
    color: #374151;
    text-align: left;
    font-size: 0.95rem;
}

/* --- Таблица сравнения --- */
.service-content .table-compare th:first-child {
    background: #374151;
}

.service-content .table-compare td:first-child {
    font-weight: 600;
    color: #374151;
}

.service-content .table-compare .highlight-col {
    background: rgba(46, 139, 87, 0.06);
}

/* --- Info-блок --- */
.service-content .info-block {
    display: flex;
    gap: 1rem;
    background: #f0fdf4;
    border-left: 4px solid #2E8B57;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.service-content .info-block i {
    font-size: 1.5rem;
    color: #2E8B57;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-content .info-block p {
    margin-bottom: 0;
}

/* --- Warning-блок --- */
/* --- Warning list block (Когда лучше выбрать другой вариант) --- */
.service-content .warning-list-block {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.service-content .warning-list-block ul,
.service-content .warning-list-block > ul {
    list-style: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 0.5rem;
}
.service-content .warning-list-block ul > li,
.service-content .warning-list-block > ul > li {
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    padding: 5px 0 5px 28px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    background: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}
.service-content .warning-list-block ul > li:last-child,
.service-content .warning-list-block > ul > li:last-child {
    border-bottom: none;
}
.service-content .warning-list-block ul > li::before,
.service-content .warning-list-block > ul > li::before {
    content: "\F135";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 6px;
    color: #d4a574;
    font-size: 0.9rem;
}
.service-content .warning-list-block .info-block {
    background: rgba(255, 255, 255, 0.6);
    margin: 0.75rem 0 0;
    border-left-color: #2E8B57;
}

.service-content .warning-block {
    display: flex;
    gap: 1rem;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.service-content .warning-block i {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-content .warning-block p {
    margin-bottom: 0;
}

/* --- Пронумерованные этапы --- */
.service-content .steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-content .steps-list li {
    counter-increment: step-counter;
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.service-content .steps-list li::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2E8B57;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-content .steps-list li:last-child {
    border-bottom: none;
}

/* --- Список «Что входит» с галочками --- */
.service-content .checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.service-content .checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-content .checklist li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    color: #2E8B57;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Советы/рекомендации: карточки с номерами --- */
.service-content .tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.service-content .tip-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-content .tip-card:hover {
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.1);
    transform: translateY(-2px);
}

.service-content .tip-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E8B57 0%, #3da76a 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.service-content .tip-card__content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.service-content .tip-card__content p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .service-content .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* --- «Почему мы» карточки --- */
.service-content .why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.service-content .why-us-card {
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border: 1px solid #e5e7eb;
}

.service-content .why-us-card i {
    font-size: 2rem;
    color: #2E8B57;
    margin-bottom: 0.75rem;
    display: block;
}

.service-content .why-us-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.service-content .why-us-card p {
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* --- Option/Variant Cards (покрытия, трубы, типы) --- */
.service-content .option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.5rem 0 2rem;
}

.service-content .option-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.service-content .option-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    border-top: 3px solid #2E8B57;
    transition: all 0.25s ease;
}

.service-content .option-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-content .option-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.service-content .option-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(46, 139, 87, 0.08);
    color: #2E8B57;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.service-content .option-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.service-content .option-card__desc {
    font-size: 0.925rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-content .option-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.service-content .spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f0fdf4;
    border: 1px solid rgba(46, 139, 87, 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2E8B57;
}

.service-content .spec-tag i {
    font-size: 0.85rem;
}

/* Tube variant */
.service-content .option-card--tube {
    border-top-color: #8B7355;
}

.service-content .option-card--tube .option-card__icon {
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
}

.service-content .option-card--tube .spec-tag {
    background: #faf8f5;
    border-color: rgba(139, 115, 85, 0.2);
    color: #8B7355;
}

.service-content .option-card__pros,
.service-content .option-card__cons {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.service-content .option-card__pros li,
.service-content .option-card__cons li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 2px 0;
    color: #374151;
}

.service-content .option-card__pros li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    color: #2E8B57;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-content .option-card__cons li::before {
    content: "\F33B";
    font-family: "bootstrap-icons";
    color: #f97316;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .service-content .advantages-grid,
    .service-content .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-content .option-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-content .pipe-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .service-content .advantages-grid,
    .service-content .why-us-grid,
    .service-content .tech-specs-grid,
    .service-content .benefits-grid,
    .service-content .audience-grid,
    .service-content .option-grid {
        grid-template-columns: 1fr;
    }

    .service-content .option-card:hover {
        transform: none;
    }

    .service-content .checklist {
        grid-template-columns: 1fr;
    }

    .service-content .table-enhanced {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-content .benefit-card:hover,
    .service-content .audience-card:hover {
        transform: none;
    }

    .service-content .tech-spec-card {
        border-right: none;
    }
}

/* ========================================
   Text + Photo blocks & Enhanced Lists
   Стилизация контентных блоков с фото
   ======================================== */

/* --- Фото в text+photo блоках --- */
.service-content .row img.img-fluid {
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-content .row img.img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Стилизация обычных списков ul в service-content --- */
.service-content > ul,
.service-content .row ul {
    list-style: none;
    padding: 12px 16px;
    margin: 0.5rem 0 1rem;
    border: 1px solid rgba(139, 115, 85, 0.25);
    border-radius: 10px;
}

.service-content > ul > li,
.service-content .row ul > li {
    position: relative;
    padding: 5px 0 5px 28px;
    font-size: 0.93rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}
.service-content > ul > li:last-child,
.service-content .row ul > li:last-child {
    border-bottom: none;
}

/* Иконка-галочка перед каждым li */
.service-content > ul > li::before,
.service-content .row ul > li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 6px;
    color: #2E8B57;
    font-size: 0.9rem;
}

/* Strong внутри li */
.service-content > ul > li > strong,
.service-content .row ul > li > strong {
    color: #111827;
}

/* --- Нумерованные списки (ol) --- */
.service-content > ol,
.service-content .row ol {
    list-style: none;
    counter-reset: sc-counter;
    padding: 12px 16px;
    margin: 0.5rem 0 1rem;
    border: 1px solid rgba(139, 115, 85, 0.25);
    border-radius: 10px;
}
.service-content > ol > li,
.service-content .row ol > li {
    counter-increment: sc-counter;
    position: relative;
    padding: 5px 0 5px 34px;
    font-size: 0.93rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}
.service-content > ol > li:last-child,
.service-content .row ol > li:last-child {
    border-bottom: none;
}

.service-content > ol > li::before,
.service-content .row ol > li::before {
    content: counter(sc-counter);
    position: absolute;
    left: 0;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #2E8B57;
    color: #2E8B57;
    font-weight: 700;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- h2 в service-content — зелёная полоска слева --- */
.service-content > h2 {
    padding-left: 16px;
    border-left: 4px solid #2E8B57;
    margin: 2rem 0 1rem;
}

/* --- h3 в service-content --- */
.service-content > h3 {
    color: #1e293b;
    margin: 1.5rem 0 0.75rem;
}

/* --- Все параграфы в контенте — justify --- */
.service-content p {
    text-align: justify;
}

/* --- Параграфы между заголовком и списком --- */
.service-content > h3 + p,
.service-content > h3 + div > p:first-child {
    color: #475569;
    line-height: 1.65;
}

/* --- Списки внутри таблиц — зелёные маркеры, без рамки --- */
.service-content table ul,
.service-content table ol {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
}
.service-content table ul > li {
    position: relative;
    padding: 3px 0 3px 18px;
    font-size: inherit;
    line-height: 1.45;
    border-bottom: none;
}
.service-content table ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #2E8B57;
    font-family: inherit;
}
.service-content table ol > li {
    padding: 3px 0 3px 0;
    font-size: inherit;
    line-height: 1.45;
    border-bottom: none;
}
.service-content table ol > li::before {
    display: none;
}
.service-content table ol {
    list-style: decimal;
    padding-left: 18px;
}

/* --- Увеличенный шрифт в таблицах --- */
.service-content .table-enhanced td,
.service-content .content-table td,
.service-content table td {
    font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .service-content > ul,
    .service-content .row ul,
    .service-content > ol,
    .service-content .row ol {
        padding: 10px 12px;
    }
    .service-content > ul > li,
    .service-content .row ul > li {
        padding: 4px 0 4px 24px;
        font-size: 0.88rem;
    }
    .service-content > ul > li::before,
    .service-content .row ul > li::before {
        top: 5px;
        font-size: 0.82rem;
    }
    .service-content > ol > li,
    .service-content .row ol > li {
        padding: 4px 0 4px 30px;
        font-size: 0.88rem;
    }
    .service-content > ol > li::before,
    .service-content .row ol > li::before {
        width: 20px;
        height: 20px;
        font-size: 0.68rem;
    }
}

