/* «Кейсы» — свой вид: антиква Cormorant Garamond в заголовках, широкие фото, список дел как оглавление */
.dg .case-ask{position:relative;background:#FFFFFF;border:1px solid var(--line);border-radius:24px;padding:30px;overflow:hidden;isolation:isolate}
.dg .case-ask::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/assets/img/topo-light.svg) center/cover no-repeat;opacity:.7}
.dg .case-ask h2{font-family:var(--disp,"Unbounded",system-ui,sans-serif);font-weight:500;font-size:20px;line-height:1.3}
.dg .case-ask p{margin-top:10px;color:var(--muted);font-size:15px}
.dg .case-ask .btn{margin-top:20px}
.dg .cs-hero{padding:34px 0 0}
.dg .cs-hero-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;align-items:end;margin-top:26px}
.dg .cs-h1{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:600;font-size:clamp(52px,7.2vw,104px);line-height:.95;letter-spacing:-.015em;color:var(--navy)}
.dg .cs-hero-r .lead{font-size:18px;color:var(--muted)}
.dg .cs-hero-r .btn{margin-top:24px}
.dg .cs-hero-ph{margin:44px 0 0;border-radius:32px;overflow:hidden;aspect-ratio:21/8;background:var(--navy)}
.dg .cs-hero-ph img{display:block;width:100%;height:100%;object-fit:cover}
.dg .cs-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dg .cs-meta span{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:#FFFFFF;border:1px solid var(--line);font-size:13.5px;font-weight:600;color:var(--muted);line-height:1.2}
.dg .cs-meta .cs-cat{background:var(--navy);border-color:var(--navy);color:var(--amber-l)}
.dg .cs-meta svg{width:17px;height:17px}
.dg .cs-stat{display:flex;align-items:flex-end;gap:16px}
.dg .cs-stat b{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:700;font-size:clamp(64px,7vw,96px);line-height:.8;color:var(--gold-tx);letter-spacing:-.02em}
.dg .cs-stat span{max-width:230px;padding-bottom:4px;color:var(--muted);font-size:15px;line-height:1.4}
.dg .cs-who{color:var(--muted);font-size:15.5px}
/* список дел на /keysy/ */
.dg .csr{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:52px;align-items:center;padding:44px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.dg .csr-list .csr:first-child{border-top:0}
.dg .csr:hover{color:var(--ink)}
.dg .csr-ph{display:block;border-radius:24px;overflow:hidden;aspect-ratio:4/3;background:var(--navy)}
.dg .csr-ph img{display:block;width:100%;height:100%;object-fit:cover}
.dg .csr-b{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.dg .csr-t{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:600;font-size:clamp(30px,3vw,42px);line-height:1.05;letter-spacing:-.01em;color:var(--navy);transition:color .3s ease}
.dg .csr:hover .csr-t{color:var(--blue)}
.dg .csr-x{max-width:660px;color:var(--muted);font-size:16px;line-height:1.6}
.dg .csr-more{display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding:11px 20px;border-radius:999px;border:1.5px solid var(--navy);color:var(--navy);font-size:15px;font-weight:600;line-height:1.2;transition:background-color .3s ease,color .3s ease}
.dg .csr-more svg{width:16px;height:16px;transition:transform .3s ease}
.dg .csr:hover .csr-more{background:var(--navy);color:#FFFFFF}
.dg .csr:hover .csr-more svg{transform:translateX(3px)}
/* страница дела /keysy/<slug>/ */
.dg .csd-head{margin-top:26px;max-width:1000px}
.dg .csd-head .cs-stat{margin-top:26px}
.dg .csd-h1{margin-top:22px;font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:600;font-size:clamp(40px,5.4vw,76px);line-height:1;letter-spacing:-.015em;color:var(--navy)}
.dg .csd-head .cs-who{margin-top:14px;font-size:16px}
.dg .csd-ph{margin:40px 0 0;border-radius:32px;overflow:hidden;aspect-ratio:2/1;background:var(--navy)}
.dg .csd-ph img{display:block;width:100%;height:100%;object-fit:cover}
.dg .csd{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:64px;align-items:start}
.dg .csd-main h2{margin-top:36px;font-size:15px;font-weight:700;color:var(--gold-tx);line-height:1.3}
.dg .csd-main h2:first-child{margin-top:0}
.dg .csd-main > p{margin-top:8px;max-width:720px;font-size:17.5px;line-height:1.7}
.dg .cs-v{position:relative;margin:40px 0 0;padding:28px 32px 28px 96px;background:#FFFFFF;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:4px 22px 22px 4px}
.dg .cs-seal{position:absolute;left:26px;top:28px;width:48px;height:48px;border-radius:50%;border:2px solid var(--gold);box-shadow:inset 0 0 0 4px #FFFFFF,inset 0 0 0 5px var(--gold);color:var(--gold-tx);display:flex;align-items:center;justify-content:center}
.dg .cs-seal svg{width:20px;height:20px}
.dg .cs-vl{display:block;font-size:14px;font-weight:700;color:var(--gold-tx)}
.dg .cs-v p{margin-top:8px;font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:600;font-size:clamp(22px,1.9vw,27px);line-height:1.32;color:var(--ink)}
.dg .case-links{margin-top:30px;display:flex;flex-wrap:wrap;gap:10px}
.dg .case-links a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;border:1px solid var(--line);background:#FFFFFF;color:var(--navy);font-size:14.5px;font-weight:600;line-height:1.2;text-decoration:none;transition:border-color .3s ease,background-color .3s ease}
.dg .case-links a:hover{border-color:var(--navy);background:var(--sky)}
.dg .case-links svg{width:16px;height:16px}
.dg .case-note{max-width:820px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line);color:var(--muted);font-size:14px;line-height:1.6}
.dg .csd-side{position:sticky;top:110px}
.dg .csd-all{display:inline-flex;align-items:center;gap:8px;margin-top:18px;color:var(--navy);font-size:15px;font-weight:600;text-decoration:none}
.dg .csd-all svg{width:16px;height:16px}
.dg .csd-more-t{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:600;font-size:clamp(34px,3.4vw,48px);line-height:1.05;color:var(--navy)}
@media (prefers-reduced-motion:reduce){
  .dg .case-links a,.dg .csr-t,.dg .csr-more,.dg .csr-more svg{transition:none}
}
@media (max-width:1000px){
  .dg .cs-hero-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  .dg .csr{grid-template-columns:minmax(0,1fr);gap:24px;padding:36px 0}
  .dg .csr-ph{aspect-ratio:16/10}
  .dg .csd{grid-template-columns:minmax(0,1fr);gap:40px}
  .dg .csd-side{position:static}
}
@media (max-width:720px){
  .dg .cs-hero-ph,.dg .csd-ph{margin-top:28px;border-radius:22px;aspect-ratio:16/10}
  .dg .csr-ph{border-radius:20px}
  .dg .csr-more{width:100%;justify-content:center}
  .dg .cs-v{padding:22px 20px}
  .dg .cs-seal{position:static;margin-bottom:12px}
  .dg .csd-main > p{font-size:16.5px}
  .dg .case-ask{padding:24px 20px}
}
