*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:'Nunito', sans-serif;
  background:#0E0C10;
  color:#fff;
  overflow-x:hidden;
}

.case-page{
  padding-top:120px;
}

.case-container{
  width:min(1480px, calc(100% - 120px));
  margin:0 auto;
}

/* ===================== */
/* HERO */
/* ===================== */

.case-hero{
  padding:40px 0 80px;
}

.case-hero-grid{
  display:grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap:48px;
  align-items:end;
}

.case-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.03);
  color:rgba(255,255,255,0.82);
  font-size:14px;
  font-weight:600;
  margin-bottom:24px;
}

.case-hero-content h1{
  font-size:88px;
  line-height:0.95;
  font-weight:800;
  margin-bottom:24px;
}

.case-subtitle{
  max-width:760px;
  font-size:24px;
  line-height:1.5;
  color:rgba(255,255,255,0.86);
  margin-bottom:34px;
}

.case-meta{
  display:grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap:18px 26px;
  margin-bottom:36px;
}

.case-meta-item{
  padding:18px 20px;
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
}

.case-meta-item span{
  display:block;
  font-size:12px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:rgba(255,255,255,0.48);
  margin-bottom:8px;
}

.case-meta-item strong{
  display:block;
  font-size:18px;
  line-height:1.45;
  font-weight:700;
  color:#fff;
}

.case-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

.case-btn,
.case-btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  height:56px;
  padding:0 24px;
  border-radius:14px;
  text-decoration:none;
  font-size:16px;
  font-weight:700;
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}

.case-btn{
  background:#6E23BA;
  color:#fff;
  box-shadow:0 12px 30px rgba(110,35,186,0.28);
}

.case-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(110,35,186,0.36);
}

.case-btn-outline{
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.02);
  color:#fff;
}

.case-btn-outline:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.22);
}

.case-hero-visual{
  position:relative;
  min-height:720px;
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(255,255,255,0.08);
  background:#17151b;
  box-shadow:0 30px 70px rgba(0,0,0,0.32);
}

.case-hero-visual img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.case-hero-card{
  position:absolute;
  right:24px;
  bottom:24px;
  max-width:290px;
  padding:18px 20px;
  border-radius:18px;
  background:rgba(14,12,16,0.82);
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter:blur(10px);
}

.case-hero-card p{
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,0.82);
}

/* ===================== */
/* SECTIONS */
/* ===================== */

.case-section{
  padding:82px 0;
  border-top:1px solid rgba(255,255,255,0.06);
}

.case-section-last{
  padding-bottom:110px;
}

.case-grid-2{
  display:grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap:56px;
  align-items:start;
}

.case-section-kicker{
  display:block;
  font-size:13px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:#a259ff;
  margin-bottom:14px;
}

.case-section-title{
  font-size:46px;
  line-height:1.04;
  font-weight:800;
}

.case-text p{
  font-size:20px;
  line-height:1.75;
  color:rgba(255,255,255,0.84);
  margin-bottom:22px;
}

.case-points{
  list-style:none;
  display:grid;
  gap:14px;
}

.case-points li{
  position:relative;
  padding-left:22px;
  font-size:18px;
  line-height:1.65;
  color:rgba(255,255,255,0.86);
}

.case-points li::before{
  content:"";
  position:absolute;
  left:0;
  top:11px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#6E23BA;
  box-shadow:0 0 14px rgba(110,35,186,0.55);
}

/* ===================== */
/* GALLERY */
/* ===================== */

.case-gallery-heading{
  margin-bottom:30px;
}

.case-gallery--auto{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
  align-items:start;
}

.case-screen{
  position:relative;
  margin:0;
  overflow:hidden;
  border-radius:26px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top, rgba(162,89,255,0.10), transparent 45%),
    #17151b;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.case-screen img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  transition: 0.7s;
}

.case-screen img:hover{
  transform:scale(1.05);
  transition: 0.7s;
}

.case-caption{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:12px;
  background:rgba(14,12,16,0.82);
  border:1px solid rgba(255,255,255,0.10);
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,0.88);
  backdrop-filter:blur(8px);
}

/* ===================== */
/* FEATURES */
/* ===================== */

.case-features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  margin-top:10px;
}

.case-feature{
  padding:26px;
  border-radius:24px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  min-height:230px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.case-feature:hover{
  transform:translateY(-4px);
  border-color:rgba(162,89,255,0.22);
  box-shadow:0 20px 50px rgba(0,0,0,0.22);
}

.case-feature h3{
  font-size:24px;
  line-height:1.15;
  font-weight:800;
  margin-bottom:16px;
}

.case-feature p{
  font-size:17px;
  line-height:1.7;
  color:rgba(255,255,255,0.82);
}

/* ===================== */
/* FINAL CTA */
/* ===================== */

.case-final-cta{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:34px;
  align-items:end;
  padding:34px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(110,35,186,0.08), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.08);
}

.case-final-cta-text p{
  margin-top:16px;
  max-width:760px;
  font-size:20px;
  line-height:1.7;
  color:rgba(255,255,255,0.84);
}

.case-final-cta-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:flex-end;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 1600px){

  .case-page{
    padding-top:112px;
  }

  .case-container{
    width:min(1400px, calc(100% - 96px));
  }

  .case-hero{
    padding:22px 0 70px;
    margin-top:0;
  }

  .case-hero-grid{
    grid-template-columns:0.98fr 1.04fr;
    gap:38px;
    align-items:end;
  }

  .case-label{
    min-height:35px;
    padding:0 14px;
    font-size:12px;
    margin-bottom:22px;
  }

  .case-hero-content h1{
    font-size:74px;
    line-height:0.96;
    margin-bottom:20px;
  }

  .case-subtitle{
    max-width:720px;
    font-size:21px;
    line-height:1.52;
    margin-bottom:30px;
  }

  .case-meta{
    grid-template-columns:repeat(2, minmax(210px,1fr));
    gap:16px 22px;
    margin-bottom:30px;
  }

  .case-meta-item{
    padding:16px 18px;
    border-radius:16px;
  }

  .case-meta-item span{
    font-size:11px;
    margin-bottom:6px;
  }

  .case-meta-item strong{
    font-size:16px;
    line-height:1.4;
  }

  .case-actions{
    gap:12px;
  }

  .case-btn,
  .case-btn-outline{
    min-width:178px;
    height:52px;
    padding:0 20px;
    font-size:15px;
    border-radius:13px;
  }

  /* HERO PHOTO — НЕ ТРОГАЕМ сильно */
  .case-hero-visual{
    min-height:610px;
    max-height:610px;
    border-radius:26px;
  }

  .case-hero-card{
    right:20px;
    bottom:20px;
    max-width:250px;
    padding:15px 16px;
    border-radius:16px;
  }

  .case-hero-card p{
    font-size:13px;
    line-height:1.48;
  }

  .case-section{
    padding:68px 0;
  }

  .case-grid-2{
    grid-template-columns:0.9fr 1.1fr;
    gap:42px;
  }

  .case-section-kicker{
    font-size:12px;
    margin-bottom:12px;
  }

  .case-section-title{
    font-size:40px;
    line-height:1.04;
  }

  .case-text p{
    font-size:18px;
    line-height:1.68;
    margin-bottom:18px;
  }

  .case-points{
    gap:12px;
  }

  .case-points li{
    font-size:16px;
    line-height:1.58;
    padding-left:18px;
  }

  .case-points li::before{
    top:10px;
    width:7px;
    height:7px;
  }

  .case-gallery-heading{
    margin-bottom:26px;
  }

  /* MAIN VISUAL MOMENTS — СДЕЛАЛ ЧУТЬ БОЛЬШЕ */

  .case-gallery{
    grid-template-columns:1fr 1fr;
    gap:22px;
  }

  .case-shot,
  .case-shot-tall{
    min-height:510px;
    max-height:510px;
    border-radius:24px;
  }

  .case-caption{
    left:16px;
    bottom:16px;
    min-height:36px;
    padding:0 12px;
    font-size:12px;
    border-radius:10px;
  }

  .case-features{
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:8px;
  }

  .case-feature{
    padding:22px;
    border-radius:22px;
    min-height:210px;
  }

  .case-feature h3{
    font-size:20px;
    margin-bottom:12px;
  }

  .case-feature p{
    font-size:15px;
    line-height:1.6;
  }

  .case-final-cta{
    grid-template-columns:1fr auto;
    gap:24px;
    padding:26px;
    border-radius:24px;
  }

  .case-final-cta-text p{
    margin-top:12px;
    font-size:16px;
    line-height:1.62;
  }

  .case-final-cta-actions{
    gap:12px;
  }

}

@media (max-width:1440px){

  .case-container{
    width:min(1320px, calc(100% - 80px));
  }

  .case-hero{
    padding:18px 0 64px;
  }

  .case-hero-grid{
    grid-template-columns:0.96fr 1.04fr;
    gap:32px;
  }

  .case-label{
    min-height:34px;
    padding:0 14px;
    font-size:12px;
    margin-bottom:20px;
  }

  .case-hero-content h1{
    font-size:66px;
    line-height:0.96;
    margin-bottom:18px;
  }

  .case-subtitle{
    max-width:660px;
    font-size:19px;
    line-height:1.5;
    margin-bottom:28px;
  }

  .case-meta{
    grid-template-columns:repeat(2, minmax(200px,1fr));
    gap:14px 20px;
    margin-bottom:26px;
  }

  .case-meta-item{
    padding:15px 16px;
    border-radius:15px;
  }

  .case-meta-item span{
    font-size:10px;
    margin-bottom:6px;
  }

  .case-meta-item strong{
    font-size:15px;
    line-height:1.4;
  }

  .case-actions{
    gap:10px;
  }

  .case-btn,
  .case-btn-outline{
    min-width:170px;
    height:50px;
    padding:0 18px;
    font-size:14px;
    border-radius:12px;
  }

  /* HERO IMAGE */

  .case-hero-visual{
    min-height:560px;
    max-height:560px;
    border-radius:24px;
  }

  .case-hero-card{
    right:18px;
    bottom:18px;
    max-width:230px;
    padding:14px 15px;
  }

  .case-hero-card p{
    font-size:12.5px;
    line-height:1.46;
  }

  .case-section{
    padding:60px 0;
  }

  .case-grid-2{
    grid-template-columns:0.9fr 1.1fr;
    gap:36px;
  }

  .case-section-title{
    font-size:36px;
  }

  .case-text p{
    font-size:17px;
    line-height:1.65;
  }

  .case-points li{
    font-size:15px;
  }

  /* MAIN VISUAL MOMENTS */

  .case-gallery{
    grid-template-columns:1fr 1fr;
    gap:20px;
  }

  .case-shot,
  .case-shot-tall{
    min-height:470px;
    max-height:470px;
    border-radius:22px;
  }

  .case-caption{
    left:14px;
    bottom:14px;
    min-height:34px;
    padding:0 11px;
    font-size:11px;
    border-radius:9px;
  }

  .case-features{
    grid-template-columns:repeat(3,1fr);
    gap:16px;
  }

  .case-feature{
    padding:20px;
    border-radius:20px;
    min-height:200px;
  }

  .case-feature h3{
    font-size:19px;
  }

  .case-feature p{
    font-size:14.5px;
    line-height:1.58;
  }

  .case-final-cta{
    grid-template-columns:1fr auto;
    gap:22px;
    padding:24px;
    border-radius:22px;
  }

  .case-final-cta-text p{
    font-size:15px;
  }

}

@media (max-width: 1280px){
  .case-container{
    width:min(1180px, calc(100% - 56px));
  }

  .case-hero{
    padding:28px 0 60px;
  }

  .case-hero-grid{
    grid-template-columns: 0.95fr 1.05fr;
    gap:26px;
    align-items:end;
  }

  .case-hero-content h1{
    font-size:58px;
    line-height:0.96;
    margin-bottom:18px;
  }

  .case-subtitle{
    max-width:680px;
    font-size:18px;
    line-height:1.55;
    margin-bottom:26px;
  }

  /* meta аккуратнее и ровнее */
  .case-meta{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap:12px 18px;
    margin-bottom:28px;
  }

  .case-meta-item{
    padding:14px 16px;
    border-radius:16px;
  }

  .case-meta-item span{
    font-size:11px;
    margin-bottom:6px;
  }

  .case-meta-item strong{
    font-size:15px;
    line-height:1.42;
  }

  .case-actions{
    gap:12px;
  }

  .case-btn,
  .case-btn-outline{
    min-width:170px;
    height:50px;
    padding:0 20px;
    font-size:15px;
    border-radius:12px;
  }

  .case-hero-visual{
    min-height:500px;
    border-radius:24px;
  }

  .case-hero-card{
    right:18px;
    bottom:18px;
    max-width:250px;
    padding:14px 16px;
    border-radius:14px;
  }

  .case-hero-card p{
    font-size:13px;
    line-height:1.45;
  }

  .case-section{
    padding:54px 0;
  }

  .case-grid-2{
    grid-template-columns: 0.92fr 1.08fr;
    gap:30px;
  }

  .case-section-title{
    font-size:30px;
  }

  .case-text p{
    font-size:16px;
    line-height:1.68;
    margin-bottom:18px;
  }

  .case-points{
    gap:12px;
  }

  .case-points li{
    font-size:15px;
    line-height:1.58;
    padding-left:18px;
  }

  .case-points li::before{
    top:10px;
    width:7px;
    height:7px;
  }

  .case-gallery-heading{
    margin-bottom:22px;
  }

  .case-gallery{
    grid-template-columns: 1fr 1fr;
    gap:18px;
  }

  .case-shot,
  .case-shot-tall{
    min-height:360px;
    border-radius:20px;
  }

  .case-caption{
    left:14px;
    bottom:14px;
    min-height:34px;
    padding:0 12px;
    font-size:12px;
    border-radius:10px;
  }

  .case-features{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:14px;
    margin-top:6px;
  }

  .case-feature{
    padding:18px;
    border-radius:18px;
    min-height:190px;
  }

  .case-feature h3{
    font-size:18px;
    margin-bottom:12px;
  }

  .case-feature p{
    font-size:14px;
    line-height:1.58;
  }

  .case-final-cta{
    grid-template-columns: 1fr auto;
    gap:22px;
    padding:24px;
    border-radius:22px;
  }

  .case-final-cta-text p{
    margin-top:12px;
    font-size:15px;
    line-height:1.6;
  }

  .case-final-cta-actions{
    gap:12px;
  }
}

@media (max-width: 1024px){
  .case-page{
    padding-top: 140px;
  }

  .case-container{
    width: calc(100% - 36px);
  }

  .case-hero{
    padding: 10px 0 40px;
  }

  /* ВЕРХНИЙ БЛОК */
  .case-hero-grid{
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 400px);
    gap: 24px;
    align-items: start;
  }

  .case-hero-content{
    min-width: 0;
    padding-top: 8px;
  }

  .case-hero-content h1{
    font-size: 38px;
    line-height: 1;
    margin-bottom: 14px;
  }

  .case-subtitle{
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .case-label{
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
    margin-bottom: 14px;
  }

  .case-meta{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .case-meta-item{
    padding: 12px;
    border-radius: 12px;
  }

  .case-meta-item span{
    font-size: 9px;
    margin-bottom: 4px;
  }

  .case-meta-item strong{
    font-size: 12px;
    line-height: 1.36;
  }

  .case-actions{
    gap: 8px;
    flex-wrap: wrap;
  }

  .case-btn,
  .case-btn-outline{
    min-width: 150px;
    height: 40px;
    font-size: 13px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .case-hero-visual{
    width: 100%;
    min-height: 400px;
    max-height: 400px;
    border-radius: 20px;
    overflow: hidden;
  }

  .case-hero-visual img,
  .case-hero-visual picture img,
  .case-hero-visual video{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .case-hero-card{
    right: 12px;
    bottom: 12px;
    max-width: 170px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .case-hero-card p{
    font-size: 10px;
    line-height: 1.34;
  }

  .case-section{
    padding: 34px 0;
  }

  .case-grid-2{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-section-kicker{
    font-size: 11px;
    margin-bottom: 8px;
  }

  .case-section-title{
    font-size: 22px;
  }

  .case-text p{
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .case-points{
    gap: 10px;
  }

  .case-points li{
    font-size: 12.5px;
    line-height: 1.45;
    padding-left: 14px;
  }

  .case-points li::before{
    top: 8px;
    width: 6px;
    height: 6px;
  }

  .case-gallery-heading{
    margin-bottom: 14px;
  }

  /* MAIN VISUAL MOMENTS — делаем выше */
  .case-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .case-shot,
  .case-shot-tall{
    width: 100%;
    min-height: 340px;
    max-height: 340px;
    border-radius: 16px;
    overflow: hidden;
  }

  .case-shot img,
  .case-shot-tall img,
  .case-shot picture img,
  .case-shot-tall picture img,
  .case-shot video,
  .case-shot-tall video{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .case-caption{
    left: 10px;
    bottom: 10px;
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
    border-radius: 8px;
  }

  .case-features{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
  }

  .case-feature{
    min-height: auto;
    padding: 14px;
    border-radius: 14px;
  }

  .case-feature h3{
    font-size: 15px;
    margin-bottom: 8px;
  }

  .case-feature p{
    font-size: 12px;
    line-height: 1.44;
  }

  .case-final-cta{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .case-final-cta-text p{
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.46;
  }

  .case-final-cta-actions{
    justify-content: flex-start;
    gap: 8px;
  }
}

@media (max-width:768px){

  .case-page{
    padding-top:65px;
  }

  .case-container{
    width:calc(100% - 32px);
  }

  .case-hero{
    padding:14px 0 36px;
  }

  /* HERO */
  .case-hero-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  /* фото первым и во всю ширину */
  .case-hero-visual{
    order:-1;
    width:calc(100% + 32px);
    margin-left:-16px;
    margin-right:-16px;
    min-height:360px;
    max-height:360px;
    border-radius:0;
    overflow:hidden;
  }

  .case-hero-visual img,
  .case-hero-visual picture img,
  .case-hero-visual video{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
  }

  /* label напротив названия */
  .case-hero-content{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 10px;
    padding-top:0;
  }

  .case-hero-content h1{
    order:1;
    flex:1 1 auto;
    font-size:34px;
    line-height:1.05;
    margin:0;
  }

  .case-label{
    order:2;
    flex:0 0 auto;
    margin:0 0 0 auto;
    min-height:26px;
    padding:0 10px;
    font-size:10px;
    white-space:nowrap;
  }

  .case-subtitle{
    order:3;
    flex:0 0 100%;
    font-size:14px;
    line-height:1.55;
    margin:4px 0 0;
  }

  .case-meta{
    order:4;
    flex:0 0 100%;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
  }

  .case-meta-item{
    padding:11px;
  }

  .case-meta-item strong{
    font-size:12px;
  }

  .case-actions{
    order:5;
    flex:0 0 100%;
    margin-top:6px;
    gap:8px;
  }

  .case-btn,
  .case-btn-outline{
    min-width:150px;
    height:38px;
    font-size:13px;
  }

  /* SECTIONS */
  .case-section{
    padding:32px 0;
  }

  .case-section-title{
    font-size:20px;
  }

  .case-text p{
    font-size:13px;
    line-height:1.55;
  }

  /* KEY VISUAL MOMENTS */
  .case-gallery{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
  }

  .case-shot,
  .case-shot-tall{
    width:calc(50% - 7px);
    min-height:300px;
    max-height:300px;
    overflow:hidden;
  }

  .case-shot img,
  .case-shot-tall img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }

  .case-caption{
    font-size:10px;
  }

  /* FEATURES */
  .case-features{
    grid-template-columns:1fr;
    gap:12px;
  }

  .case-feature{
    padding:14px;
  }
}

@media (max-width:560px){

  .case-page{
    padding-top:50px;
  }

  .case-container{
    width:calc(100% - 24px);
  }

  .case-hero{
    padding:18px 0 34px;
  }

  .case-hero-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  /* фото первым и во всю ширину */
  .case-hero-visual{
    order:-1;
    width:calc(100% + 24px);
    margin-left:-12px;
    margin-right:-12px;
    min-height:300px;
    max-height:300px;
    border-radius:0;
    overflow:hidden;
  }

  .case-hero-visual img,
  .case-hero-visual picture img,
  .case-hero-visual video{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
  }

  /* label напротив названия */
  .case-hero-content{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 10px;
  }

  .case-hero-content h1{
    order:1;
    flex:1 1 auto;
    font-size:30px;
    line-height:1.05;
    margin:0;
  }

  .case-label{
    order:2;
    flex:0 0 auto;
    margin:0 0 0 auto;
    min-height:24px;
    padding:0 9px;
    font-size:9px;
    white-space:nowrap;
  }

  .case-subtitle{
    order:3;
    flex:0 0 100%;
    font-size:13px;
    line-height:1.55;
    margin:4px 0 0;
  }

  /* META */
  .case-meta{
    order:4;
    flex:0 0 100%;
    grid-template-columns:1fr;
    gap:8px;
    margin-top:12px;
  }

  .case-meta-item{
    padding:10px 12px;
  }

  .case-meta-item span{
    font-size:9px;
  }

  .case-meta-item strong{
    font-size:12px;
  }

  /* BUTTONS */
  .case-actions{
    order:5;
    flex:0 0 100%;
    flex-direction:column;
    gap:8px;
    margin-top:6px;
  }

  .case-btn,
  .case-btn-outline{
    width:100%;
    min-width:0;
    height:40px;
    font-size:13px;
  }

  .case-hero-card{
    max-width:150px;
    padding:8px 10px;
  }

  .case-hero-card p{
    font-size:10px;
  }

  /* SECTIONS */
  .case-section{
    padding:28px 0;
  }

  .case-section-title{
    font-size:18px;
  }

  .case-text p{
    font-size:13px;
    line-height:1.55;
  }

  /* KEY MOMENTS */
  .case-gallery{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
  }

  .case-shot,
  .case-shot-tall{
    width:100%;
    min-height:260px;
    max-height:260px;
    overflow:hidden;
  }

  .case-shot img,
  .case-shot-tall img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }

  .case-caption{
    font-size:10px;
    padding:0 8px;
  }

  /* FEATURES */
  .case-features{
    grid-template-columns:1fr;
    gap:10px;
  }

  .case-feature{
    padding:12px;
  }

  .case-feature h3{
    font-size:14px;
  }

  .case-feature p{
    font-size:12px;
  }

  /* FINAL CTA */
  .case-final-cta{
    padding:14px;
    gap:10px;
  }
}

@media (max-width:390px){

  .case-page{
    padding-top:50px;
  }

  .case-container{
    width:calc(100% - 18px);
  }

  .case-hero{
    padding:16px 0 28px;
  }

  .case-hero-grid{
    gap:18px;
  }

  .case-hero-visual{
    position: relative;
    height: 720px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #17151b;
    box-shadow: 0 30px 70px rgba(0,0,0,0.32);
  }

  .case-hero-visual img,
  .case-hero-visual picture img,
  .case-hero-visual video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  /* label напротив названия */
  .case-hero-content{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px 8px;
  }

  .case-hero-content h1{
    order:1;
    flex:1 1 auto;
    font-size:26px;
    line-height:1.08;
    margin:0;
  }

  .case-label{
    order:2;
    flex:0 0 auto;
    margin:0 0 0 auto;
    min-height:22px;
    padding:0 8px;
    font-size:8px;
    white-space:nowrap;
  }

  .case-subtitle{
    order:3;
    flex:0 0 100%;
    font-size:12.5px;
    line-height:1.55;
    margin:4px 0 0;
  }

  /* META */
  .case-meta{
    order:4;
    flex:0 0 100%;
    gap:7px;
    margin-top:10px;
  }

  .case-meta-item{
    padding:9px 10px;
    border-radius:10px;
  }

  .case-meta-item span{
    font-size:8px;
  }

  .case-meta-item strong{
    font-size:11px;
  }

  /* BUTTONS */
  .case-actions{
    order:5;
    flex:0 0 100%;
    gap:7px;
    margin-top:6px;
  }

  .case-btn,
  .case-btn-outline{
    height:38px;
    font-size:12px;
    border-radius:9px;
  }

  .case-hero-card{
    right:10px;
    bottom:10px;
    max-width:130px;
    padding:7px 8px;
  }

  .case-hero-card p{
    font-size:9px;
    line-height:1.3;
  }

  /* SECTIONS */
  .case-section{
    padding:24px 0;
  }

  .case-section-title{
    font-size:17px;
  }

  .case-text p{
    font-size:12.5px;
    line-height:1.55;
  }

  /* KEY MOMENTS */
  .case-gallery{
    gap:10px;
  }

  .case-shot,
  .case-shot-tall{
    width:100%;
    min-height:220px;
    max-height:220px;
    border-radius:14px;
    overflow:hidden;
  }

  .case-caption{
    font-size:9px;
    padding:0 7px;
    height:24px;
  }

  /* FEATURES */
  .case-features{
    gap:9px;
  }

  .case-feature{
    padding:11px;
    border-radius:12px;
  }

  .case-feature h3{
    font-size:13px;
    margin-bottom:6px;
  }

  .case-feature p{
    font-size:11.5px;
    line-height:1.45;
  }

  /* CTA */
  .case-final-cta{
    padding:12px;
    gap:8px;
  }
}




/* ===== FINAL HERO IMAGE FIX ===== */
.case-hero-visual{
  position: relative !important;
  height: 720px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 30px !important;
}

.case-hero-visual > img,
.case-hero-visual picture,
.case-hero-visual picture img,
.case-hero-visual video{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.case-hero-card{
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 3 !important;
}

@media (max-width: 1600px){
  .case-hero-visual{
    height: 610px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 26px !important;
  }
}

@media (max-width: 1440px){
  .case-hero-visual{
    height: 560px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 1280px){
  .case-hero-visual{
    height: 500px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 1024px){
  .case-hero-visual{
    width: 100% !important;
    height: 400px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .case-hero-visual > img,
  .case-hero-visual picture,
  .case-hero-visual picture img,
  .case-hero-visual video{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (max-width: 768px){
  .case-hero-visual{
    order: -1 !important;
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    height: 360px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .case-hero-visual > img,
  .case-hero-visual picture,
  .case-hero-visual picture img,
  .case-hero-visual video{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (max-width: 560px){
  .case-hero-visual{
    width: calc(100% + 24px) !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    height: 300px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 390px){
  .case-hero-visual{
    width: calc(100% + 18px) !important;
    margin-left: -9px !important;
    margin-right: -9px !important;
    height: 240px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
}
