/* V18.8 — real case detail gallery */
.case-detail-page{background:#f5f9fc}
.case-detail-hero{
  padding:58px 20px 50px;
  background:linear-gradient(135deg,#edf7fc 0%,#fff 66%,#fff6e8 100%);
}
.case-detail-hero .wrap{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);
  gap:52px;
  align-items:center;
}
.case-breadcrumb{
  color:#60798e;
  font-size:14px;
  margin:0 0 18px;
}
.case-breadcrumb a{color:#0b669b;text-decoration:none}
.case-detail-hero h1{
  color:#082844;
  font-size:clamp(38px,4.7vw,60px);
  line-height:1.1;
  letter-spacing:-.03em;
  margin:14px 0 18px;
}
.case-detail-hero .tag{
  display:inline-flex;
  color:#9b5200;
  background:#fff0d8;
  border-radius:999px;
  padding:6px 11px;
  font-size:13px;
  font-weight:900;
}
.case-detail-lead{
  color:#557089;
  font-size:18px;
  line-height:1.75;
  margin:0;
}
.case-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:24px 0 0;
}
.case-meta span{
  color:#174d70;
  background:#fff;
  border:1px solid #d4e4ed;
  border-radius:999px;
  padding:7px 11px;
  font-size:13px;
  font-weight:850;
}
.case-gallery-shell{
  background:#fff;
  border:1px solid #d9e7ef;
  border-radius:25px;
  padding:12px;
  box-shadow:0 20px 55px rgba(8,40,68,.14);
}
.gallery-main-button{
  display:block;
  width:100%;
  padding:0;
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:#e7eff4;
  cursor:zoom-in;
}
.gallery-main-button img{
  display:block;
  width:100%;
  height:430px;
  object-fit:cover;
}
.gallery-thumbs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:10px;
}
.gallery-thumb{
  border:2px solid transparent;
  border-radius:12px;
  overflow:hidden;
  padding:0;
  background:#e8eef2;
  cursor:pointer;
}
.gallery-thumb.is-active{border-color:#f29921}
.gallery-thumb:focus-visible,.gallery-main-button:focus-visible{
  outline:3px solid #ffb049;
  outline-offset:3px;
}
.gallery-thumb img{
  display:block;
  width:100%;
  height:92px;
  object-fit:cover;
}
.gallery-help{
  color:#678096;
  text-align:center;
  font-size:13px;
  margin:9px 0 1px;
}
.case-detail-section{padding:64px 20px}
.case-detail-section.white{background:#fff}
.case-detail-section .wrap{max-width:1080px}
.case-detail-section h2{
  color:#082844;
  font-size:clamp(30px,3.6vw,45px);
  line-height:1.18;
  margin:0 0 16px;
}
.case-detail-section .section-intro{
  color:#5c7489;
  font-size:18px;
  max-width:790px;
  margin:0 0 32px;
}
.case-facts{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.case-fact{
  background:#fff;
  border:1px solid #dce8ef;
  border-radius:18px;
  padding:20px;
}
.case-fact small{
  display:block;
  color:#6b8295;
  margin-bottom:6px;
}
.case-fact strong{color:#123c5c}
.case-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.case-step{
  background:#f7fbfd;
  border:1px solid #dce8ef;
  border-radius:20px;
  padding:24px;
}
.case-step b{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  color:#fff;
  background:#0b669b;
  border-radius:12px;
  margin-bottom:16px;
}
.case-step h3{color:#123c5c;margin:0 0 8px}
.case-step p{color:#60788d;margin:0}
.privacy-panel{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:15px;
  align-items:start;
  margin-top:28px;
  color:#4f687e;
  background:#fff7e9;
  border:1px solid #f0d3a4;
  border-radius:17px;
  padding:20px;
}
.privacy-panel strong{color:#8e4b00}
.case-detail-cta{
  color:#fff;
  background:linear-gradient(120deg,#082844,#0c5f8c);
  border-radius:25px;
  padding:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.case-detail-cta h2{color:#fff;margin:0 0 7px}
.case-detail-cta p{color:#d7eaf5;margin:0}
.case-detail-actions{display:flex;gap:10px;flex-wrap:wrap}
.case-detail-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:49px;
  padding:0 18px;
  border-radius:13px;
  font-weight:900;
  text-decoration:none;
}
.case-detail-actions .primary{color:#10253a;background:#ff9b25}
.case-detail-actions .secondary{color:#fff;border:1px solid rgba(255,255,255,.55)}
.photo-lightbox{
  width:min(1100px,calc(100% - 28px));
  max-width:none;
  border:0;
  border-radius:20px;
  padding:14px;
  background:#071c2d;
  color:#fff;
  box-shadow:0 25px 90px rgba(0,0,0,.55);
}
.photo-lightbox::backdrop{background:rgba(0,13,24,.84)}
.lightbox-image{
  display:block;
  width:100%;
  height:min(74vh,760px);
  object-fit:contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position:absolute;
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  background:rgba(5,29,48,.82);
  cursor:pointer;
}
.lightbox-close{
  top:20px;
  right:20px;
  width:44px;
  height:44px;
  border-radius:50%;
  font-size:24px;
}
.lightbox-prev,.lightbox-next{
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:64px;
  border-radius:13px;
  font-size:26px;
}
.lightbox-prev{left:22px}.lightbox-next{right:22px}
.lightbox-caption{text-align:center;margin:10px 0 0;color:#d7e7f1}
@media(max-width:900px){
  .case-detail-hero .wrap{grid-template-columns:1fr}
  .case-facts{grid-template-columns:1fr 1fr}
  .case-steps{grid-template-columns:1fr}
  .case-detail-cta{display:block}
  .case-detail-actions{margin-top:22px}
}
@media(max-width:620px){
  .case-detail-hero{padding:38px 16px 35px}
  .case-detail-hero h1{font-size:38px}
  .gallery-main-button img{height:310px}
  .gallery-thumb img{height:72px}
  .case-facts{grid-template-columns:1fr 1fr}
  .case-fact{padding:16px}
  .case-detail-section{padding:50px 16px}
  .case-detail-cta{padding:27px 21px}
  .lightbox-prev,.lightbox-next{width:42px;height:54px}
  .lightbox-prev{left:10px}.lightbox-next{right:10px}
}
