/* Страница обработки: блоки «Было → стало» и «Вопросы и ответы» (engines/show.blade.php, App\Support\EnginePageExtras).
   Свои классы с приставкой ep-: public.css собран статически, новых классов Tailwind в нём нет. */

.ep-label {
    margin: 0 0 12px;
    font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6c8294;
}

/* ───────── Было → стало ───────── */
.ep-wn { margin: 4px 0 36px; }
.ep-wn-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr);
    align-items: stretch;
    gap: 0;
}
.ep-wn-col { padding: 18px 20px 16px; border-radius: 12px; min-width: 0; }
.ep-wn-col h3 {
    margin: 0 0 12px;
    font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ep-wn-col ul { margin: 0; padding: 0; list-style: none; }
.ep-wn-col li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.ep-wn-col li:last-child { margin-bottom: 0; }
.ep-wn-col li::before { content: ''; position: absolute; left: 2px; }

/* «вручную» — приглушённо: пунктирная рамка, как линия «под снос» на чертеже */
.ep-wn-was { border: 1px dashed rgba(148, 180, 210, .22); }
.ep-wn-was h3 { color: #6c8294; }
.ep-wn-was li { color: #8a9bab; }
.ep-wn-was li::before { top: .72em; width: 10px; height: 1.5px; background: #55697a; }

/* «в GISFlow» — сплошная рамка и цвет бренда */
.ep-wn-now { border: 1px solid rgba(31, 158, 150, .5); background: rgba(31, 158, 150, .07); }
.ep-wn-now h3 { color: #23C8BD; }
.ep-wn-now li { color: #e3eaf0; }
.ep-wn-now li::before {
    top: .34em; left: 3px; width: 6px; height: 11px;
    border: solid #23C8BD; border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}
.ep-wn-col code { font: 500 .88em 'JetBrains Mono', ui-monospace, monospace; }
.ep-wn-col strong { font-weight: 600; color: inherit; }
.ep-wn-col a { color: #23C8BD; text-decoration: underline; text-underline-offset: 3px; }

.ep-wn-arrow { display: grid; place-items: center; width: 44px; color: #23C8BD; }

@media (max-width: 720px) {
    .ep-wn-grid { grid-template-columns: minmax(0, 1fr); }
    .ep-wn-arrow { width: auto; height: 34px; }
    .ep-wn-arrow svg { transform: rotate(90deg); }
    .ep-wn-col { padding: 16px 16px 14px; }
}

/* ───────── Вопросы и ответы ───────── */
.ep-faq { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ep-faq > h2 {
    margin: 0 0 10px;
    font-size: 1.4rem; font-weight: 700; letter-spacing: -.012em; color: #e9eef3;
}
.ep-faq details { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ep-faq summary {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 15px 2px;
    cursor: pointer; list-style: none;
    font-size: 16.5px; font-weight: 600; line-height: 1.4; color: #e3eaf0;
    transition: color .18s ease;
}
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq summary:hover { color: #23C8BD; }
.ep-faq summary:focus-visible { outline: none; border-radius: 8px; box-shadow: 0 0 0 3px rgba(31, 158, 150, .4); }
/* плюс, который превращается в минус */
.ep-faq summary::after {
    content: ''; flex: none; width: 14px; height: 14px; margin-top: 5px;
    background:
        linear-gradient(#6c8294, #6c8294) center / 14px 1.5px no-repeat,
        linear-gradient(#6c8294, #6c8294) center / 1.5px 14px no-repeat;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
.ep-faq details[open] summary::after {
    background: linear-gradient(#23C8BD, #23C8BD) center / 14px 1.5px no-repeat;
    transform: rotate(180deg);
}
.ep-faq details > .post-body { padding: 0 34px 16px 2px; font-size: 15.5px; line-height: 1.7; }
.ep-faq details > .post-body > :last-child { margin-bottom: 0; }

.ep-faq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.ep-faq-cta span { font-size: 13.5px; color: #8a9bab; }
.ep-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px;
    background: #1F9E96; color: #fff; font-size: 14px; font-weight: 600;
    transition: background .18s ease;
}
.ep-btn:hover { background: #1A8A82; }

@media (max-width: 720px) {
    .ep-faq summary { font-size: 15.5px; }
    .ep-faq details > .post-body { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .ep-faq summary, .ep-faq summary::after, .ep-btn { transition: none; }
}
