/* Individual case pages follow the approved Letrero layout. */
.view-case {
  --ink: #241b32; --muted: #5b5265; --purple: #7042c8; --line: #ded8e6;
  background: #fff; color: var(--ink);
}
.view-case .site-header { background: #fff; }
.cs-page { padding-bottom: clamp(44px, 6vw, 94px); font-family: Avenir, Arial, sans-serif; }
.cs-page :is(h1,h2,h3,p,figure,blockquote,dl,dd) { margin: 0; }
.cs-page [hidden] { display: none !important; }
.cs-page :is(a,button,input,summary):focus-visible { outline: 3px solid #9771d9; outline-offset: 4px; }
.cs-page section[id], .cs-page .cs-kpis { scroll-margin-top: 20px; }
.cs-shell, .cs-page .cd-shell { width: min(92%, 1280px); margin-inline: auto; }
.cs-page .cs-band, .cs-page .cw-section { padding-block: clamp(40px, 5.2vw, 80px); }
.cs-crumb .breadcrumbs { margin: 0; padding-block: 18px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cs-hero { display: grid; grid-template-columns: 1.16fr 1fr; background: linear-gradient(112deg,#f5effd,#eae1f9 66%,#ded6f3); border-radius: 24px; overflow: hidden; }
.cs-hero-copy { min-width: 0; padding: clamp(27px,3.15vw,49px); align-self: center; }
.cs-page .cs-kicker, .cs-page .cw-heading .cd-eyebrow { color: #6335ae; font-size: 13px; font-weight: 600; letter-spacing: .105em; line-height: 1.45; text-transform: uppercase; margin: 0 0 14px; }
.cs-page h1, .cs-page h2, .cs-page h3 { font-weight: 600; }
.cs-page h1 { font-size: clamp(37px,4.3vw,66px); line-height: 1.025; letter-spacing: -.052em; overflow-wrap: anywhere; }
.cs-hero h1 em { color: var(--purple); font-style: normal; }
.cs-page .cs-title-result, .cs-page .cs-kpi-result {
  color: #5b30a8;
  font-family: Unbounded, Avenir, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
}
.cs-page .cs-title-result { display: inline-block; max-width: 100%; font-size: .88em; }
.cs-page .cs-kpi-result { display: inline-block; max-width: 100%; }
.cs-page h2 { font-size: clamp(31px,3.45vw,52px); line-height: 1.075; letter-spacing: -.045em; }
.cs-page h3 { font-size: clamp(21px,1.8vw,27px); letter-spacing: -.025em; line-height: 1.18; }
.cs-page .cs-lead { font-size: clamp(18px,1.52vw,22px); line-height: 1.48; margin: 22px 0 27px; color: var(--muted); max-width: 49ch; }
.cs-button, .cs-link { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.cs-page .cs-button { color: #fff; background: #7142ca; padding: 15px 20px; border-radius: 10px; min-height: 48px; justify-content: space-between; gap: 17px; }
.cs-page .cs-button:hover { background: #5b31a8; }
.cs-page .cs-button.is-lime { color: #251a32; background: #ddfa86; }
.cs-page .cs-button.is-lime:hover { background: #ccec72; }
.cs-page .cs-link { color: #6236a6; }
.cs-link .icon, .cs-button .icon { width: 18px; height: 18px; flex: none; }
.cs-page .cs-link:hover, .cs-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-page .cs-cover {
  min-height: clamp(330px,32vw,485px); display: grid; grid-template-rows: minmax(0,1fr) auto;
  min-width: 0; overflow: hidden; background: #eee6f5;
}
.cs-cover figcaption {
  padding: 9px clamp(13px,1.8vw,24px); text-align: right; font-size: 14px; line-height: 1.35;
  font-weight: 600; color: #423450; border-top: 1px solid #dcd2e5;
}
.cs-kpis,.cs-more-kpis { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; gap: 0; padding: 31px 0; }
.cs-kpis>div,.cs-more-kpis>div { padding-inline: clamp(16px,2.5vw,40px); border-left: 1px solid var(--line); min-width: 0; }
.cs-kpis>div:first-child,.cs-more-kpis>div:first-child { padding-left: 0; border-left: 0; }
.cs-kpis strong,.cs-more-kpis strong { display: block; font-size: clamp(27px,3.0vw,46px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; overflow-wrap: anywhere; }
.cs-kpis p,.cs-more-kpis span { display: block; margin-top: 5px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.36; }
.cs-kpis small,.cs-more-kpis small { display: block; margin-top: 5px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.cs-toc { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px clamp(12px,2.1vw,30px); border-block: 1px solid var(--line); padding: 9px 0; }
.cs-toc a { display: inline-flex; align-items: center; min-height: 35px; color: #493c59; font-size: 15px; font-weight: 600; }
.cs-toc a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.cs-context { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,.85fr); gap: clamp(35px,7vw,110px); align-items: start; }
.cs-page .cs-sub { color:var(--muted); font-size: clamp(17px,1.4vw,21px); line-height: 1.55; margin-top: 18px; max-width: 78ch; }
.cs-context-list { padding: 0; margin: 20px 0 0; list-style: none; }
.cs-context-list li+li { margin-top: 16px; }
.cs-context-list strong { font-size: 19px; }
.cs-context-list p,.cs-facts p,.cs-person p,.cs-detail-body>p { margin-top: 5px; line-height: 1.5; font-size: 17px; color: var(--muted); }
.cs-facts,.cs-person { background: #f5f0fa; border-radius: 18px; padding: clamp(20px,2.2vw,34px); }
.cs-facts h3 { font-size: clamp(26px,2.5vw,36px); overflow-wrap: anywhere; }
.cs-facts dl { margin-top: 18px; }
.cs-facts dl>div { padding: 10px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; border-top: 1px solid #ded4e9; line-height: 1.4; font-size: 15px; }
.cs-facts dt { color: var(--muted); }.cs-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.cs-person { padding: 0; overflow: hidden; background: #f5f0fa; }
.cs-person img { width: 100%; display: block; height: clamp(120px,14vw,200px); object-fit: contain; object-position: bottom center; background: #e7dff4; }
.cs-person>div { padding: 17px 23px 22px; }.cs-person .cs-link { margin-top: 12px; }
.cs-page .cs-details { border-block-start: 1px solid var(--line); margin-top: 20px; }
.cs-details summary,.cs-page .cd-chart-data summary { cursor: pointer; font-size: 16px; line-height: 1.4; font-weight: 600; color: #593399; padding: 15px 2px; }
.cs-detail-body { max-width: 90ch; padding: 3px 0 17px; }
#case-context .cs-detail-body { max-width: 900px; }
.cs-page .cs-context-compact { padding-bottom: 0; }
.cs-page .cs-context-compact + .cw-section { padding-top: clamp(32px, 3.2vw, 48px); }
.cs-result-story { margin-top: 20px; }
.cs-page ul.visit-note { padding-left: 1.25em; }
.cs-page ul.visit-note li + li { margin-top: 6px; }
.cs-detail-body .cd-prose :is(p,ul,ol) { margin-block: 0 12px; }
.cs-detail-body .cd-prose :is(h3,h4) { margin: 18px 0 8px; }
.cs-detail-body .cd-media-bundle,.cs-detail-body .cd-media { margin-block: 17px; }
.cs-source-project { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }.cs-source-project img { width: 82px; height: 70px; object-fit: contain; }.cs-source-project p { margin: 5px 0; }
.cs-page .cw-section { border-top: 1px solid var(--line); }.cs-page .cw-section .cd-section-heading h2 { font-size:clamp(31px,3.45vw,52px); line-height:1.075; }
.cs-page .cw-section .cd-prose p { margin-bottom: 11px; }
.cs-results { background: #f2ecfa; }
.cs-result-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cs-result-head>p,.cd-chart-heading>span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.cs-page .cd-chart { background: white; border: 1px solid #e3dbea; border-radius: 18px; padding: clamp(17px,2.3vw,35px); }
.cs-page .cd-chart-heading { gap: 14px; margin: 0 0 14px; }
.cs-page .cd-chart-heading h3 { text-transform: none; letter-spacing: -.015em; font-size: clamp(18px,1.6vw,24px); font-weight: 600; }
.cs-page .cd-chart-canvas { margin: 0; padding: 0; }.cs-page .cd-chart figcaption { margin-top: 12px; font-size: 15px; }.cs-page .cd-chart figcaption strong { white-space: normal; }
.cs-page .cd-chart-data { font-size: 15px; margin-top: 13px; }.cs-page .cd-chart-data summary { padding-block: 11px; }
.cs-page .cd-table-scroll tr th[scope=row] { position: static; background: transparent; font-weight: 400; }
.cs-more-kpis { margin-top: 10px; }.cs-more-kpis strong { font-size: 30px; }
.cs-related { background:#f8f6fb; }.cs-related-grid { display:grid;grid-template-columns:1fr 1fr;gap:18px; }
.cs-related-card {
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  align-items: center; gap: clamp(9px,1.2vw,17px); padding: clamp(15px,1.75vw,26px);
  background: #ece4f4; border-radius: 17px; overflow: hidden;
}
.cs-related-card:nth-child(2) { background: #e9eaf4; }
.cs-related-card>div:first-child { min-width: 0; }
.cs-related-card .cs-art { width: 100%; aspect-ratio: 5 / 4; border-radius: 10px; }
.cs-related-card small { font-size: 14px; color: var(--muted); }
.cs-related-card h3 { margin: 7px 0 13px; overflow-wrap: anywhere; }
.cs-related-card strong { font-size: clamp(21px,2.1vw,32px); line-height: 1.17; letter-spacing: -.035em; overflow-wrap: anywhere; }
.cs-related-card p { font-size: 15px; line-height: 1.35; margin-top: 4px; }
.cs-related-card .cs-link { margin-top: 17px; }
.cs-related-card:hover .cs-link { text-decoration: underline; }
.cs-page .cs-offer { display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(30px,5vw,72px);align-items:center;margin-top:clamp(38px,5vw,76px);padding:clamp(22px,3.4vw,50px);background:linear-gradient(110deg,#332047,#4b2c74);border-radius:24px;color:white; }
.cs-offer .cs-kicker{color:#e1cbff}.cs-offer>div>p:not(.cs-kicker){font-size:clamp(16px,1.4vw,20px);line-height:1.5;margin-top:15px;color:#efe8f8}.cs-actions{display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap;margin-top:22px}.cs-actions .cs-link{color:white}.cs-offer .cs-price{align-self:stretch;display:flex;flex-direction:column;align-items:start;justify-content:center;background:#fbf9ff;padding:clamp(18px,2vw,32px);border-radius:16px;color:var(--ink)}.cs-price .cs-kicker{color:#6136a8}.cs-price>strong{font-size:clamp(27px,3vw,44px);line-height:1.1;letter-spacing:-.035em;margin-top:5px}.cs-offer .cs-price>p:not(.cs-kicker){font-size:16px;color:var(--muted);margin-top:10px}.cs-price .cs-link{margin-top:12px}
@media(max-width:850px) {
 .cs-context {grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);}
 .cs-hero{grid-template-columns:1.15fr 1fr}.cs-context{gap:25px}.cs-toc{gap:3px 14px}.cs-hero-copy{padding:26px}.cs-kpis strong{font-size:clamp(23px,3.45vw,29px)}.cs-page .cs-offer{gap:24px}
}
@media(max-width:700px) {
 .cs-shell,.cs-page .cd-shell{width:calc(100% - 36px)}.cs-hero{grid-template-columns:1fr;border-radius:18px}.cs-hero-copy{padding:23px 21px}.cs-page h1{font-size:clamp(32px,8.2vw,47px);line-height:1.045}.cs-page .cs-lead{font-size:17px;margin:15px 0 20px}.cs-page .cs-cover{min-height:0;height:clamp(210px,60vw,340px)}.cs-cover figcaption{padding:7px 14px;font-size:13px}.cs-crumb .breadcrumbs{padding-block:13px;font-size:12px}
 .cs-kpis,.cs-more-kpis{grid-auto-flow:row;gap:0;padding:12px 0}.cs-kpis>div,.cs-more-kpis>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 12px;align-items:baseline;padding:12px 0;border:0;border-bottom:1px solid #eee9f3;}.cs-kpis>div:last-child,.cs-more-kpis>div:last-child{border:0}.cs-kpis strong,.cs-more-kpis strong{font-size:clamp(21px,5.1vw,29px);grid-row:1/span 2;align-self:center}.cs-kpis p,.cs-more-kpis span{font-size:15px;margin:0}.cs-kpis small,.cs-more-kpis small{grid-column:2;font-size:13px;margin:0}.cs-toc{justify-content:start;gap:2px 17px;padding:7px 0}.cs-toc a{font-size:14px;min-height:39px}
 .cs-context,.cs-page .cs-offer{grid-template-columns:1fr}.cs-context-list strong{font-size:17px}.cs-person{display:flex;align-items:center}.cs-person img{width:32%;height:160px}.cs-person>div{padding:14px}.cs-person h3{font-size:21px}.cs-person p{font-size:15px}.cs-result-head{align-items:start;flex-wrap:wrap;gap:10px}.cs-page .cd-chart-heading{display:block}.cs-page .cd-chart-heading h3{max-width:none;line-height:1.25}.cs-page .cd-chart-heading>span{display:block;font-size:13px;margin-top:4px}.cs-page .cd-chart-mobile{padding:5px 0}.cs-page .cd-chart figcaption{line-height:1.45}.cs-related-grid{grid-template-columns:1fr}.cs-page .cs-offer{border-radius:18px}.cs-offer .cs-price{width:100%}.cs-page .cs-kicker{font-size:12px}
}
@media print {
 .cs-page details>div,.cs-page .cw-panel[hidden]{display:block!important}
 .cs-toc,.cs-actions,.cs-hero .cs-button{display:none}
}

.cs-person img {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  margin: 22px 0 0 23px;
}
@media (max-width: 700px) {
  .cs-person img { width: 80px; height: 80px; margin: 16px 0 16px 16px; }
  .cs-person > div { min-width: 0; }
}
@media (max-width: 360px) {
  /* Keep the client name СпецМаркерСтрой together on narrow screens. */
  .cs-page[data-case-id="69"] .cs-hero h1 { font-size: clamp(25px, calc(11vw - 8px), 32px); }
}
@media (max-width: 700px) {
  .cs-kpis > .cs-primary-kpi { display: block; }
  .cs-kpis > .cs-primary-kpi strong { font-size: clamp(24px, 5.5vw, 32px); }
  .cs-kpis > .cs-primary-kpi small { display: block; margin-top: 3px; }
}
