/* ФОРПОСТ, новый шаблон — расширенный шаблон кейса (12.11.2026, FP_CASE_EXT_1211, разметка — include/fp_case_ext.php).
   Подключается только на странице кейса с флажком «Расширенный шаблон» вместе с css/partners.css (.ahero, .prt-card, .prt-steps, .prt-formbox). */
.cx #cx-form{scroll-margin-top:calc(var(--hdr) + 8px)}
.cx .bc{margin-bottom:0}
.cx-hero .ahero__in{padding-top:10px}
.cx-meta{margin-bottom:14px}
.cx-sub{margin:0 0 12px;font-size:20px;font-weight:600;line-height:1.35;color:var(--text);max-width:640px}
.cx-lead{margin-bottom:24px}
.cx-hero__img img{object-position:60% 50%}
.cx-hero .hero__btns{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- текст разделов ---------- */
.cx-sec .shead{margin-bottom:22px}
.cx-text{max-width:900px}
.cx-text p,.cx-card p,.cx-steps p{margin:0 0 12px;font-size:16px;line-height:1.6}
.cx-text p:last-child,.cx-card p:last-child,.cx-steps p:last-child{margin-bottom:0}
.cx-intro{margin-bottom:24px}
.cx-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px;align-items:start}
.cx-box{padding:24px 26px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.section--soft .cx-box{background:#fff}

/* ---------- списки с отметкой ---------- */
.cx-list{list-style:none;margin:0 0 12px;padding:0}
.cx-list:last-child{margin-bottom:0}
.cx-list li{position:relative;padding:7px 0 7px 22px;font-size:15.5px;line-height:1.5;border-bottom:1px solid var(--line)}
.cx-list li:last-child{border-bottom:0}
.cx-list li::before{content:"";position:absolute;left:2px;top:13px;border-left:8px solid var(--red);border-top:5px solid transparent;border-bottom:5px solid transparent}
.cx-card .cx-list li{font-size:15px;padding-top:6px;padding-bottom:6px}

/* ---------- карточки и шаги ---------- */
.cx-cards{display:grid;gap:16px}
.cx-cards--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cx-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cx-cards--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cx-card{align-items:stretch}
.cx-card h3{font-size:18px;margin-bottom:10px}
.cx-card p{color:var(--muted);font-size:15px}
.cx-steps--5{grid-template-columns:repeat(5,minmax(0,1fr))}
.cx-steps--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cx-steps p{color:var(--muted);font-size:15px}

/* ---------- кнопка и синий баннер ---------- */
.cx-ctarow{margin:24px 0 0}
.cx-ben{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:28px;padding:28px 36px;border-radius:16px;background:var(--navy);color:#fff}
.cx-ben::after{content:"";position:absolute;right:-60px;bottom:-80px;width:200px;height:200px;border:2px solid rgba(255,255,255,.16);transform:rotate(45deg);pointer-events:none}
.cx-ben p{margin:0;font-size:18px;font-weight:600;line-height:1.45;max-width:820px;position:relative}
.cx-ben p b{font-weight:600}
.cx-ben .btn{position:relative;z-index:1;white-space:nowrap;flex:none}

/* ---------- фото-баннеры между разделами ---------- */
.cx-bnrin{margin-top:40px}
.cx-box--seq{max-width:900px;margin:4px 0 14px}
.cx-box--seq:last-child{margin-bottom:0}
.cx-bnr{position:relative;margin:0;border-radius:16px;overflow:hidden;background:var(--bg-soft)}
.cx-bnr img{display:block;width:100%;height:360px;object-fit:cover}
.cx-bnr__cap{position:absolute;left:0;right:0;bottom:0;padding:60px 36px 26px;background:linear-gradient(180deg,rgba(15,38,92,0) 0%,rgba(15,38,92,.82) 100%)}
.cx-bnr__cap span{display:inline-flex;align-items:center;gap:10px;color:#fff;font-size:20px;font-weight:600;line-height:1.35}
.cx-bnr__cap span::before{content:"";flex:none;border-left:9px solid var(--accent);border-top:6px solid transparent;border-bottom:6px solid transparent}

.cx-form-lead{margin:12px 0 0;font-size:16px;line-height:1.55;opacity:.9;position:relative}
.cx-tail{padding-bottom:20px}

@media (max-width:1100px){
  .cx-cards--3,.cx-cards--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cx-steps--5,.cx-steps--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cx-split{grid-template-columns:minmax(0,1fr);gap:20px}
  .cx-bnr img{height:300px}
}
@media (max-width:900px){
  .cx-ben{flex-direction:column;align-items:flex-start;padding:24px}
}
@media (max-width:600px){
  .cx-sub{font-size:17px}
  .cx-cards--2,.cx-cards--3,.cx-cards--4,.cx-steps--5,.cx-steps--3{grid-template-columns:minmax(0,1fr)}
  .cx-box{padding:18px}
  .cx-bnrin{margin-top:28px}
  .cx-ben{padding:20px 18px;border-radius:var(--r)}
  .cx-ben::after{display:none}
  .cx-ben p{font-size:16px}
  .cx-ben .btn{width:100%}
  .cx-bnr{border-radius:var(--r)}
  .cx-bnr img{height:200px}
  .cx-bnr__cap{padding:40px 18px 16px}
  .cx-bnr__cap span{font-size:16px}
  .cx-hero .hero__btns .btn{flex:1 1 180px}
}
