/* =============================================
   SERVICE EXTRAS — общие секции канона (Фаза 4):
   .case-strip — полоса ссылок на кейсы
   .final-cta-service — финальный CTA услуги
   ============================================= */

.case-strip {
    padding: 56px 0;
}
.case-strip__head {
    max-width: 720px;
    margin-bottom: 28px;
}
.case-strip__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.case-strip__title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111827;
    margin: 0 0 10px;
}
.case-strip__subtitle {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
.case-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.case-strip__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-strip__card:hover {
    transform: translateY(-4px);
    border-color: #a7f3d0;
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.12);
}
.case-strip__card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0;
}
.case-strip__card-metrics {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}
.case-strip__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #047857;
    font-size: 14px;
    font-weight: 700;
}
.case-strip__card:hover .case-strip__card-link svg {
    transform: translateX(4px);
}
.case-strip__card-link svg {
    transition: transform 0.25s ease;
}
.case-strip__all {
    margin-top: 20px;
}
.case-strip__all a {
    color: #047857;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.case-strip__all a:hover {
    text-decoration: underline;
}

.final-cta-service {
    padding: 40px 0 72px;
}
.final-cta-service__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 48px;
    border-radius: 24px;
    background:
        radial-gradient(600px 260px at 90% -20%, rgba(16, 185, 129, 0.22), transparent 60%),
        linear-gradient(160deg, #0f172a 0%, #0d1f1a 45%, #065f46 100%);
}
.final-cta-service__title {
    color: #ffffff;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
}
.final-cta-service__text {
    color: rgba(236, 253, 245, 0.78);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 52ch;
}
.final-cta-service__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .case-strip__grid {
        grid-template-columns: 1fr;
    }
    .final-cta-service__box {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
}
@media (max-width: 768px) {
    .final-cta-service__actions {
        width: 100%;
    }
    .final-cta-service__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Блок-ответ (answer-first) на сервисных шаблонах.
   inc/service-answer.php. Аудит 2026-08.
   Грузится безусловно вместе с service-extras.css (inc/assets.php:146),
   поэтому доступен на всех шаблонах услуг без отдельного enqueue.
   ============================================================ */
.svc-answer {
    margin: 0 0 clamp(40px, 3vw, 72px);
}
.svc-answer__box {
    max-width: 900px;
    padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2.4vw, 34px);
    background: linear-gradient(135deg, rgba(5, 150, 105, .07), rgba(5, 150, 105, .015));
    border: 1px solid rgba(5, 150, 105, .18);
    border-left: 4px solid #059669;
    border-radius: 14px;
}
.svc-answer__label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #059669;
}
.svc-answer__heading {
    margin: 0 0 12px;
    font-size: clamp(21px, 1.6vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}
.svc-answer__text {
    margin: 0;
    font-size: clamp(16px, 1.05vw, 17.5px);
    line-height: 1.62;
    font-weight: 500;
    color: #1f2937;
}
.svc-answer__dl {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    gap: 10px 24px;
    margin: 20px 0 0;
}
.svc-answer__dl dt {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #065f46;
}
.svc-answer__dl dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}
.svc-answer__inline-link {
    color: #059669;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.svc-answer__inline-link:hover,
.svc-answer__inline-link:focus-visible {
    color: #047857;
}
.svc-answer__list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.svc-answer__list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}
.svc-answer__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #059669;
    font-weight: 800;
}
.svc-answer__note {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(5, 150, 105, .28);
    font-size: 14px;
    line-height: 1.55;
    color: #55606e;
}
.svc-answer__links {
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 15px;
}
.svc-answer__links a {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(5, 150, 105, .4);
    transition: color .15s ease, border-color .15s ease;
}
.svc-answer__links a:hover,
.svc-answer__links a:focus-visible {
    color: #047857;
    border-bottom-color: #047857;
}
@media (max-width: 720px) {
    .svc-answer__dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .svc-answer__dl dd {
        margin-bottom: 12px;
    }
}

/*
 * QA 12.08.2026. Блок «Коротко» на мятных страницах услуг.
 * Панель залита полупрозрачным зелёным rgba(5,150,105,.07), и это работало, пока
 * страница была белой. Но .seo-lp сам затонирован зелёными радиальными градиентами
 * до rgba(5,150,105,.12), поэтому 7% поверх 12% давали фон практически неотличимый
 * от подложки: замер показал rgb(204,238,224) вокруг и rgb(191,232,217) внутри.
 * Здесь нужна непрозрачная заливка — тогда блок отделяется от страницы независимо
 * от того, какой градиент под ним оказался. Правило намеренно ограничено .seo-lp:
 * на белых страницах прежний полупрозрачный вариант выглядит корректно.
 */
.seo-lp .svc-answer__box {
    background: linear-gradient(135deg, #ffffff 0%, #f5fdf9 100%);
    /*
     * Одной непрозрачной заливки мало: белое на мятном даёт всего 1,24:1, глаз
     * такую разницу поверхностей почти не ловит. Границу берём #059669 — это
     * единственный из перебранных оттенков, который даёт 3,05:1 против фона
     * страницы и проходит требование к контрасту нетекстовых элементов.
     * Вместе с левой акцентной полосой и тенью блок читается как отдельная
     * карточка, а не как чуть иначе подкрашенный кусок страницы.
     */
    border-color: #059669;
    box-shadow: 0 10px 30px rgba(15, 42, 33, 0.06);
}
