/* ===== внутренняя страница кейса (детальная, по макету DOM CLUB) ===== */

:root{
  --cs-blue:#73B5D7;
  --gutter:24px;   /* единый горизонтальный отступ */
  --sec:120px;     /* вертикальный шаг между секциями */
  --measure:640px; /* ширина текстовой колонки */
}

/* проявление контента при скролле (reveal.js) */
.reveal{
  opacity:0;transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.25,.5,.25,1),
             transform .7s cubic-bezier(.25,.5,.25,1);
  will-change:opacity,transform;
}
.reveal.in{opacity:1;transform:none}

.cs-topbar .who{display:flex;align-items:center;gap:18px}
.cs-topbar .who img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.cs-topbar .who img.cs-brand-logo{
  width:auto;height:20px;border-radius:0;object-fit:contain;
}

.cs{padding-top:calc(var(--topbar) + 56px)}
.cs h2{font-size:clamp(24px,2.6vw,40px);font-weight:500;line-height:1.15}
.cs p{font-weight:400}

/* ---- заголовок кейса ---- */
.cs-head{
  display:flex;align-items:flex-end;gap:48px;flex-wrap:wrap;
  padding:0 var(--gutter) 40px;
}
.cs-head h1{
  font-size:clamp(64px,9.5vw,170px);font-weight:500;line-height:.9;
  letter-spacing:-.02em;white-space:nowrap;
}
.cs-head-meta{
  display:flex;gap:44px;padding-bottom:14px;
  font-size:16px;color:rgba(255,255,255,.85);white-space:nowrap;
}
.cs-collab{
  margin-left:auto;padding-bottom:12px;
  font-size:15px;line-height:1.5;color:var(--muted);
}
.cs-collab a{color:var(--cs-blue)}
.cs-collab a:hover{text-decoration:underline}

/* ---- обложка ---- */
.cs-cover img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}

/* ---- о проекте ---- */
.cs-intro{
  display:flex;align-items:flex-start;gap:40px;
  padding:var(--sec) var(--gutter);
}
.cs-intro h2{margin-bottom:36px}
.cs-intro p{max-width:var(--measure);font-size:17px;line-height:1.55}
.cs-web{
  margin-left:auto;font-size:22px;font-weight:500;color:var(--cs-blue);
  white-space:nowrap;transition:opacity .3s;
}
.cs-web:hover{opacity:.7}

/* ---- триптих 9:16 ---- */
.cs-triptych{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
  padding:0 var(--gutter);
}
.cs-triptych img,.cs-triptych video{
  width:100%;aspect-ratio:9/16;object-fit:cover;display:block;
}

/* ---- что реализовано ---- */
.cs-report{padding:var(--sec) var(--gutter) 0}
.cs-report .cs-sub{
  max-width:var(--measure);margin:24px 0 48px;
  font-size:16px;line-height:1.55;color:rgba(255,255,255,.85);
}
.cs-pills{display:flex;flex-wrap:wrap;gap:14px}
.cs-pills span{
  padding:16px 26px;border:1px solid rgba(255,255,255,.6);
  border-radius:16px;font-size:16px;line-height:1.3;
}

/* ---- моя роль ---- */
.cs-role{
  position:relative;display:flex;justify-content:flex-end;
  padding:var(--sec) var(--gutter) 0;
}
.cs-role-inner{width:min(560px,100%)}
.cs-role-inner h2{margin-bottom:32px}
.cs-role-inner ul{list-style:none}
.cs-role-inner li{
  padding:10px 0;font-size:17px;line-height:1.4;
  color:rgba(255,255,255,.9);
}
.cs-role-icons{
  position:absolute;left:var(--gutter);bottom:0;height:30px;width:auto;
}

/* ---- боль ---- */
.cs-pain{padding:var(--sec) var(--gutter) 0}
.cs-pain h2{margin-bottom:24px}
.cs-pain p{max-width:var(--measure);font-size:17px;line-height:1.55}

/* ---- лого / цвет / стиль ---- */
.cs-brand{
  display:grid;grid-template-columns:1fr minmax(320px,440px);
  gap:64px;align-items:center;padding:var(--sec) var(--gutter);
}
.cs-brand figure{display:flex;justify-content:center}
.cs-brand figure img{width:min(440px,100%);display:block}
.cs-brand-text h3{
  font-size:clamp(22px,2.2vw,32px);font-weight:500;margin:44px 0 18px;
}
.cs-brand-text h3:first-child{margin-top:0}
.cs-brand-text p{font-size:15px;line-height:1.55;color:rgba(255,255,255,.85)}

/* ---- видео во весь экран ---- */
.cs-video video{width:100%;display:block}

/* ---- статус (после пилюль) ---- */
.cs-status{margin-top:64px}
.cs-status h3{font-size:clamp(20px,2vw,28px);font-weight:500;margin-bottom:16px}
.cs-status p{font-size:16px;line-height:1.55;color:rgba(255,255,255,.85);max-width:var(--measure)}
.cs-status a{color:var(--cs-blue)}
.cs-status a:hover{text-decoration:underline}

/* ---- логотип: 3 картинки слева, текст справа ---- */
.cs-logo{
  display:grid;grid-template-columns:minmax(280px,420px) minmax(0,620px);
  justify-content:space-between;gap:64px;
  padding:var(--sec) var(--gutter);
}
.cs-logo-imgs{display:flex;flex-direction:column;gap:20px}
.cs-logo-imgs img{width:100%;display:block}
.cs-logo-text h2{margin-bottom:32px}
.cs-logo-text p{font-size:16px;line-height:1.6;color:rgba(255,255,255,.85)}
.cs-logo-text p + p{margin-top:16px}

/* ---- анализ референсов ---- */
.cs-analysis{
  display:grid;grid-template-columns:minmax(0,var(--measure)) minmax(280px,460px);
  justify-content:space-between;gap:64px;align-items:start;
  padding:0 var(--gutter) var(--sec);
}
.cs-analysis h2{margin-bottom:40px}
.cs-analysis h3{font-size:19px;font-weight:700;margin:32px 0 12px}
.cs-analysis p{font-size:16px;line-height:1.6;color:rgba(255,255,255,.85)}
.cs-analysis figure{position:sticky;top:calc(var(--topbar) + 24px)}
.cs-analysis figure img{width:100%;display:block}

/* ---- две концепции ---- */
.cs-concepts{padding:0 var(--gutter) var(--sec)}
.cs-concepts h2{margin-bottom:40px}
.cs-concepts-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,560px));
  justify-content:space-between;gap:64px;
}
.cs-concepts h3{font-size:19px;font-weight:700;margin:0 0 12px}
.cs-concepts h3 + p{margin-bottom:32px}
.cs-concepts p{font-size:16px;line-height:1.6;color:rgba(255,255,255,.85)}
.cs-concepts .cs-accent{margin-top:24px;color:var(--fg)}

/* ---- прототип ---- */
.cs-proto{padding:0 var(--gutter) var(--sec)}
.cs-proto h2{margin-bottom:24px}
.cs-proto .cs-sub{max-width:var(--measure);margin-bottom:48px;
  font-size:16px;line-height:1.55;color:rgba(255,255,255,.85)}
.cs-proto-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cs-proto-grid img{width:100%;display:block}
.cs-proto-grid figcaption{
  margin-top:18px;font-size:14px;line-height:1.55;color:rgba(255,255,255,.75);
  max-width:560px;
}

/* ---- ui: сетка подзаголовков ---- */
.cs-ui{padding:0 var(--gutter) var(--sec)}
.cs-ui h2{margin-bottom:24px}
.cs-ui .cs-sub{max-width:var(--measure);margin-bottom:56px;
  font-size:16px;line-height:1.55;color:rgba(255,255,255,.85)}
.cs-ui-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,560px));
  justify-content:space-between;gap:48px 64px;
}
.cs-ui-grid h3{font-size:19px;font-weight:700;margin-bottom:12px}
.cs-ui-grid p{font-size:16px;line-height:1.6;color:rgba(255,255,255,.85)}

@media(max-width:900px){
  .cs-logo,.cs-analysis{grid-template-columns:1fr}
  .cs-analysis figure{position:static;order:-1}
  .cs-concepts-grid,.cs-ui-grid,.cs-proto-grid{grid-template-columns:1fr}
}

/* ---- пара вертикальных видео с полями вокруг ---- */
.cs-vert-videos{
  display:grid;grid-template-columns:repeat(2,minmax(0,420px));
  justify-content:center;gap:32px;
  padding:var(--sec) var(--gutter);
}
.cs-vert-videos video{width:100%;aspect-ratio:9/16;object-fit:cover;display:block}

/* ---- две текстовые колонки с заголовками ---- */
.cs-cols{
  display:grid;grid-template-columns:repeat(2,minmax(0,560px));
  justify-content:space-between;gap:64px;
  padding:0 var(--gutter) var(--sec);
}
.cs-cols h2{margin-bottom:40px}
.cs-cols h3{font-size:19px;font-weight:700;margin:32px 0 12px}
.cs-cols p{font-size:16px;line-height:1.6;color:rgba(255,255,255,.85)}

/* ---- подзаголовки внутри интро (ниша / задача) ---- */
.cs-intro h3{font-size:clamp(20px,2vw,28px);font-weight:500;margin:56px 0 20px}
.cs-intro .cs-body{font-size:16px}

/* ---- вертикальное видео по центру с полями ---- */
.cs-mobile-video{display:flex;justify-content:center;padding:var(--sec) var(--gutter)}
.cs-mobile-video video{width:min(420px,100%);display:block}

/* ---- стек широких экранов ---- */
.cs-stack{display:grid;gap:24px}
.cs-stack img{width:100%;display:block}

/* ---- три вертикальных фото ---- */
.cs-triple{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:var(--sec) 0}
.cs-triple img{width:100%;display:block}

@media(max-width:900px){
  .cs-cols{grid-template-columns:1fr}
  .cs-vert-videos{grid-template-columns:1fr;justify-items:center}
  .cs-triple{grid-template-columns:1fr}
}

/* ---- галерея ---- */
.cs-gallery{background:#1E1E1E}
.cs-gallery img{width:100%;display:block}

/* ---- страница POSTERS: блоки с подписями и линиями ---- */
.ps-block{
  position:relative;display:flex;flex-direction:column;align-items:center;
  padding:70px 24px;
}
.ps-block .media{position:relative;z-index:1}
.ps-caption{
  position:relative;z-index:1;margin-top:28px;
  font-size:13px;color:var(--muted);text-align:center;
}

/* декоративные линии за изображениями */
.stripe{position:absolute;z-index:0;pointer-events:none}
.stripe.v{width:26px}
.stripe.v.thin{width:10px}
.stripe.h{height:26px;left:0;right:0}
.stripe.h.thin{height:10px}
.c-light{background:#7ABFDE}
.c-dark{background:#3F626F}

.ps-cover img{width:min(1240px,100%);display:block}

.ps-pair{
  display:grid;grid-template-columns:repeat(2,minmax(0,430px));
  gap:24px;justify-content:center;width:100%;
}
.ps-pair video,.ps-pair img{width:100%;display:block}

.ps-single img,.ps-single video{width:min(660px,92vw);display:block}
.ps-narrow video{width:min(560px,88vw)}

.ps-vinyl{
  display:flex;gap:28px;justify-content:center;align-items:center;width:100%;
}
.ps-vinyl img{width:min(340px,28vw);display:block}
.ps-vinyl .t-mid{width:min(430px,34vw)}

.ps-fullwrap{padding-left:0;padding-right:0}
.ps-full img{width:100%;display:block}

.ps-tilt-pair{
  display:flex;gap:56px;justify-content:center;align-items:center;
  padding:40px 0;width:100%;
}
.ps-tilt-pair img{width:min(400px,38vw);display:block}

.ps-ceramic{
  display:grid;grid-template-columns:repeat(3,1fr);width:100%;
}
.ps-ceramic img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:3/3.9}

@media(max-width:900px){
  .ps-pair{grid-template-columns:1fr;gap:40px}
  .ps-vinyl{flex-direction:column}
  .ps-vinyl img,.ps-vinyl .t-mid{width:min(420px,86vw)}
  .ps-tilt-pair{flex-direction:column;gap:48px}
  .ps-tilt-pair img{width:min(360px,80vw)}
  .ps-ceramic{grid-template-columns:1fr}
}

/* ---- футер кейса ---- */
.cs-footer{padding:var(--sec) var(--gutter) 32px}
.cs-next{display:block;margin-bottom:120px}
.cs-next .lbl{
  display:block;font-size:16px;color:var(--cs-blue);margin-bottom:20px;
}
.cs-next .nm{
  font-size:clamp(56px,8.5vw,150px);font-weight:500;line-height:.95;
  letter-spacing:-.02em;transition:color .35s;
}
.cs-next:hover .nm{color:var(--cs-blue)}
.cs-footer .who{display:flex;align-items:center;gap:16px;margin-bottom:56px;font-size:16px}
.cs-footer .who img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.cs-footer .who .nm{font-weight:500}
.cs-footer .who .role{color:var(--muted)}
.cs-footer .mail-row{display:flex;gap:64px;font-size:16px;margin-bottom:40px}
.cs-footer .mail-row .lbl{color:var(--muted)}
.cs-footer .mail-row a:hover{color:var(--cs-blue)}
.cs-footer-bottom{
  display:flex;justify-content:space-between;align-items:flex-end;
  flex-wrap:wrap;gap:24px;font-size:16px;
}
.cs-footer-bottom nav{display:flex;gap:44px}
.cs-footer-bottom nav a{color:var(--muted);transition:color .3s}
.cs-footer-bottom nav a:hover{color:var(--fg)}
.cs-footer-bottom .rights{color:var(--muted)}

@media(max-width:900px){
  .cs-head{gap:20px}
  .cs-collab{margin-left:0}
  .cs-intro{flex-direction:column}
  .cs-web{margin-left:0}
  .cs-triptych{grid-template-columns:1fr;gap:12px}
  .cs-brand{grid-template-columns:1fr}
  .cs-role{justify-content:flex-start}
}

/* ===== внутренняя страница кейса (старый шаблон, кейсы 2–5) ===== */

.case-page{padding:calc(var(--topbar) + 60px) 20px 0}

.case-hero-head{
  display:grid;grid-template-columns:auto 1fr auto;gap:24px;
  align-items:end;padding-bottom:26px;
}
.case-hero-head .num{font-size:13px;color:var(--accent);padding-bottom:14px}
.case-hero-head h1{
  font-size:clamp(52px,11vw,170px);line-height:.85;letter-spacing:-.01em;
}
.case-hero-head .meta{
  text-align:right;font-size:13px;color:var(--muted);
  line-height:1.7;padding-bottom:10px;white-space:nowrap;
}

.case-hero-img{
  width:100%;aspect-ratio:16/9;object-fit:cover;display:block;
  border-radius:4px;
}

.case-body{max-width:1200px;margin:90px auto 0}

.case-row{
  display:grid;grid-template-columns:220px 1fr;gap:40px;
  padding:44px 0;border-top:1px solid var(--line);
}
.case-row h3{font-size:24px;color:var(--accent)}
.case-row p{font-size:16px;line-height:1.6;max-width:760px}
.case-row p + p{margin-top:16px}
.case-row .placeholder{color:var(--muted)}

.case-gallery{display:grid;gap:16px;margin:70px 0 0}
.case-gallery img{
  width:100%;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:4px;
}
.case-gallery .wide{grid-column:1/-1}
@media(min-width:900px){
  .case-gallery{grid-template-columns:1fr 1fr}
}

.next-case{
  display:block;margin-top:120px;padding:70px 20px;
  border-top:1px solid var(--line);text-align:center;
}
.next-case .lbl{
  display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:18px;
}
.next-case .nm{
  font-family:var(--sans);
  font-size:clamp(40px,7vw,110px);line-height:.9;
  transition:color .35s;
}
.next-case:hover .nm{color:var(--accent)}

.case-footer{padding:50px 20px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.case-footer a:hover{color:var(--accent)}

/* ===== адаптив внутренних страниц: телефоны ===== */
@media(max-width:700px){
  .cs{--gutter:16px;--sec:72px;padding-top:calc(var(--topbar) + 28px)}
  .cs h2{font-size:clamp(22px,6vw,30px)}
  .cs h2 br{display:none}

  .cs-head{gap:16px;padding-bottom:28px}
  .cs-head h1{white-space:normal;font-size:clamp(42px,12.5vw,64px);
    overflow-wrap:break-word;min-width:0}
  .cs-head-meta{white-space:normal;flex-wrap:wrap;gap:8px 24px;padding-bottom:2px}
  .cs-collab{padding-bottom:0}
  .cs-collab br{display:none}

  .cs-intro p,.cs-pain p,.cs-role-inner li{font-size:16px}
  .cs-pills{gap:10px}
  .cs-pills span{padding:12px 18px;font-size:14px;border-radius:12px}
  .cs-status{margin-top:48px}

  .cs-brand-text h3{margin:36px 0 14px}
  .cs-vert-videos{gap:24px}
  .cs-proto-grid{gap:40px}

  .ps-block{padding:44px 16px}
  .stripe.v{width:16px}
  .stripe.v.thin{width:6px}
  .stripe.h{height:16px}
  .stripe.h.thin{height:6px}
  .ps-caption{font-size:12px;line-height:1.5;padding:0 8px}
  .ps-cover img,.ps-single img,.ps-single video,.ps-narrow video{width:100%}

  .cs-next{margin-bottom:64px}
  .cs-next .nm{font-size:clamp(38px,11.5vw,64px);overflow-wrap:break-word}
  .cs-footer .who{flex-wrap:wrap;margin-bottom:40px}
  .cs-footer .mail-row{gap:24px;margin-bottom:32px}
  .cs-footer-bottom nav{gap:16px 24px;flex-wrap:wrap}
}

/* ===== планшет: умеренные отступы ===== */
@media(min-width:701px) and (max-width:1024px){
  .cs{--sec:96px}
  .cs-logo,.cs-analysis{gap:40px}
  .cs-concepts-grid,.cs-ui-grid{gap:40px}
}
