/* ============================================================
   Страницы кейсов — дизайн-система главной страницы (донор):
   PT Root UI · колонка 760 в сетке 1200 · картинки 1360 r30
   Кегли: заголовок 40/700/−1 · подзаголовок 28/700/−0.8 ·
   текст 20/500/−0.6 · мета 16/500/−0.3 #aaaaaa
   ============================================================ */

body.cbody {
  font-family: var(--font);
  color: var(--c-text);
  background: #ffffff;
  margin: 0;
  overflow-x: clip;
}

.page {
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: clip;
  color: var(--c-text);
  background: #ffffff;
}

.article {
  width: 760px;
  max-width: calc(100% - 32px);
  margin-left: calc(50% - 600px + 220px);
  padding-top: 70px;
  padding-bottom: 0;
}
@media (max-width: 1240px) {
  .article { margin-left: auto; margin-right: auto; }
}

/* --- хлебные крошки --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 70px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.3px; line-height: 1;
  color: var(--c-sec);
  text-transform: uppercase;
}
.backLink { color: inherit; text-decoration: none; transition: color 0.2s ease-in-out; }
.backLink:hover { color: var(--c-blue); }

/* --- шапка кейса --- */
.cheader {
  display: grid;
  gap: 24px;
  width: 100%;
  margin-bottom: 56px;
}
.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.3px; line-height: 1;
  color: var(--c-sec);
}
.meta span { display: inline-flex; align-items: center; min-height: 30px; overflow-wrap: anywhere; }
.meta span:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  margin-left: 10px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.22);
}
.ndaBadge {
  padding: 0 14px;
  color: #f4f2ec;
  background: #111111;
  border-radius: 30px;
}

.cheader h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(32px, 6vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -1.5px;
  color: #000000;
}

/* --- обложка-заглушка (NDA) --- */
.cover {
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  min-height: 400px;
  margin-bottom: 60px;
  overflow: hidden;
  color: rgba(244, 242, 236, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #333333;
  border-radius: 30px;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 242, 236, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 236, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.5;
}
.cover span {
  position: relative;
  right: -0.06em;
  justify-self: end;
  font-family: var(--font);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.08em;
}

/* --- картинки: как превью кейсов на главной (1360, r30) --- */
.caseFigure {
  position: relative;
  width: 1360px;
  max-width: none;
  margin-left: calc(50% - 680px);
  margin-right: 0;
  display: block;
}
.caseFigureFeatured { margin-bottom: 60px; }
.caseImage {
  display: block;
  width: 1360px;
  max-width: none;
  height: auto;
  border-radius: 30px;
  background: #ececf2;
}
.caseFigure figcaption {
  width: 760px;
  max-width: calc(100vw - 32px);
  margin: 12px 0 0 300px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.3;
  color: var(--c-sec);
}
@media (max-width: 1240px) {
  .caseFigure { width: 100%; margin-left: auto; margin-right: auto; }
  .caseImage { width: 100%; }
  .caseFigure figcaption { width: auto; margin-left: 0; }
}

/* --- лид --- */
.lead {
  display: grid;
  gap: 20px;
  margin-bottom: 70px;
}
.lead p {
  margin: 0;
  font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.6px;
  color: #000000;
}

/* --- история: секции --- */
.story { display: grid; gap: 0; }
.storyBlock { display: grid; gap: 0; }
.csection {
  display: block;
  padding: 46px 0;
}
.sectionBody { display: grid; gap: 20px; min-width: 0; }
.csection h2 {
  margin: 0 0 4px;
  font-family: var(--font);
  font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.8px;
  color: #111111;
}
.csection p,
.closing p {
  margin: 0;
  font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.6px;
  color: rgba(17, 17, 17, 0.85);
}
.csection ul {
  display: grid;
  gap: 14px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.csection li {
  position: relative;
  padding-left: 28px;
  font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.6px;
  color: rgba(17, 17, 17, 0.85);
}
.csection li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 14px; height: 3px;
  border-radius: 2px;
  background: var(--c-blue);
}
.sectionMedia {
  display: grid;
  gap: 40px;
  padding: 10px 0 46px;
}

/* --- финал --- */
.closing {
  margin: 60px 0 0;
}
.closing p {
  font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.8px;
  color: #000000;
}

/* --- NDA-гейт: стиль поп-апа главной (светлый) --- */
.ndaGate {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  margin-top: 0;
  padding: 36px;
  color: #000000;
  background: var(--c-card);
  border-radius: 30px;
}
.ndaGate span {
  display: inline-block;
  margin-bottom: 9px;
  padding: 0 14px; height: 30px; line-height: 30px;
  color: #f4f2ec;
  background: #111111;
  border-radius: 30px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.3px; text-transform: uppercase;
}
.ndaGate h2 {
  color: #000000;
  font-family: var(--font);
  font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.8px;
  margin: 14px 0 0;
}
.ndaGate p {
  max-width: 520px;
  margin-top: 14px;
  font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.6px;
  color: #000000;
}
.ndaForm {
  display: grid;
  align-content: center;
  gap: 10px;
}
.ndaForm label {
  display: block;
  margin-bottom: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -0.3px; line-height: 1;
  color: var(--c-sec);
}
.ndaForm div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.ndaForm input {
  min-width: 0; height: 54px; padding: 0 20px;
  font-family: var(--font); font-size: 20px; font-weight: 500; letter-spacing: -0.6px;
  color: #000000; background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 30px; outline: none;
  transition: border-color 0.2s ease-in-out;
}
.ndaForm input:focus { border-color: var(--c-blue); }
.ndaForm button {
  height: 54px; padding: 0 24px;
  font-family: var(--font); font-size: 20px; font-weight: 500; letter-spacing: -0.6px;
  color: #ffffff; background: var(--c-blue);
  border: 0; border-radius: 30px; cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.ndaForm button:hover { background: var(--c-blue-dark); }
.ndaError { color: #e02d2d; font-family: var(--font); font-size: 16px; font-weight: 500; }
@media (max-width: 880px) { .ndaGate { grid-template-columns: 1fr; } }

/* --- адаптив --- */
@media (max-width: 880px) {
  .article { padding-top: 56px; }
  .breadcrumbs { margin-bottom: 46px; }
  .csection { padding: 34px 0; }
  .sectionMedia { padding: 6px 0 34px; gap: 30px; }
}
@media (max-width: 620px) {
  .page { padding-bottom: 60px; }
  .article { padding-top: 50px; width: calc(100% - 32px); }
  .cheader h1 { font-size: 32px; letter-spacing: -1px; }
  .closing p { font-size: 22px; }
  .ndaForm div { grid-template-columns: 1fr; }
}
