/* Long-form case studies. Shared type, colors, actions and navigation: homepage.css. */
.case-page { max-width: 1100px; }
.case-back { display: inline-block; margin-top: 32px; }
.case-hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; padding: 32px 0 var(--section-space); }
.case-page .visual-kicker { font-size: var(--size-small); }
.case-hero h1 { margin: 12px 0 20px; font-size: var(--size-hero); line-height: 1.07; }
.case-page p { max-width: var(--text-measure); font-size: var(--size-body); line-height: 1.5; }
.case-hero > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.case-project-links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
.case-route { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 24px 0; border-block: 1px solid var(--line); }
.case-route a { display: flex; flex-direction: column; align-items: start; gap: 8px; color: var(--blue); font-size: inherit; font-weight: inherit; }
.case-route span { color: var(--pink); font-size: var(--size-body); font-weight: 600; }
.case-route a:hover { color: var(--blue-hover); }
.case-section { padding: var(--section-space) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; background: var(--pink); color: #fff; font-size: var(--size-card); font-weight: 400; line-height: 1; }
.case-section h2, .case-related h2 { max-width: 950px; }
.case-section h3 { margin: 32px 0 16px; font-size: var(--size-card); line-height: 1.2; }
.case-section p + p { margin-top: 16px; }
.case-section > p { margin-bottom: 20px; }
.case-section img { display: block; max-width: 100%; height: auto; }
.case-section figure { margin: 28px 0; min-width: 0; }
.case-section figcaption { margin-top: 14px; font-size: var(--size-caption); line-height: 1.5; }
.case-section figcaption h3 { margin-top: 0; }
.case-section figcaption > p { font-size: var(--size-body); }
.idea-origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: center; }
.idea-origin .idea-photo { margin: 0; }
.idea-photo img { max-height: 480px; width: 100%; object-fit: cover; }
.metric-panel { margin: 28px 0; padding: 24px 0; border-block: 1px solid var(--line); }
.metric-panel > span { font-size: var(--size-caption); }
.audience-interview-numbers, .progulka-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 24px 0; }
.audience-interview-numbers b, .progulka-metrics b { display: block; margin-bottom: 8px; color: var(--pink); font-size: var(--size-section); font-weight: 700; line-height: 1.1; }
.metric-panel > strong { font-size: var(--size-body); font-weight: 600; }
.parallel-launch { margin: 28px 0; }
.parallel-lanes, .ecosystem-cards, .sales-map-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.parallel-lanes article, .ecosystem-cards article, .sales-map-roles > div { padding-top: 20px; border-top: 1px solid var(--line); }
.parallel-lanes h3, .ecosystem-cards h3, .sales-map-roles h3 { margin-top: 0; }
.parallel-finish, .stage-result { margin: 28px 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.parallel-finish { font-size: var(--size-body); font-weight: 600; }
.stage-result > b { display: block; margin-bottom: 12px; font-size: var(--size-body); font-weight: 600; }
.ecosystem-number { display: block; margin-bottom: 12px; color: var(--pink); font-size: var(--size-body); font-weight: 600; }
.partner-row { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 28px 0; }
.partner-brand { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 12px; }
.partner-brand > span { font-size: var(--size-card); font-weight: 700; }
.partner-brand > img { width: 160px; max-height: 65px; object-fit: contain; object-position: left; }
.partner-brand small { font-size: var(--size-caption); font-weight: 400; }
.partner-presentation img { width: 100%; }
#project-step-2 .metric-panel { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#project-step-2 .audience-interview-numbers > div:last-child b { color: var(--blue); }
.partner-deck-stage { padding: 24px 16px 18px; perspective: 1600px; }
.partner-deck-sheet { position: relative; transform: rotate(-1deg); transform-origin: left center; background: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 10%, transparent); transition: transform .3s ease, opacity .3s ease; }
.partner-deck-sheet::before, .partner-deck-sheet::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; border: 1px solid var(--line); transform: rotate(1.8deg) translate(4px, 5px); }
.partner-deck-sheet::after { transform: rotate(3deg) translate(7px, 9px); z-index: -2; }
.partner-deck-sheet img { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.partner-deck-sheet.is-turning { transform: rotate(-1deg) rotateY(-28deg) translateX(-8px); opacity: .2; }
.partner-deck-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.partner-deck-controls button { border: 0; background: none; padding: 8px 0; font: inherit; cursor: pointer; }
.partner-deck-controls button:disabled { opacity: .45; cursor: default; }
.partner-deck-controls button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .partner-deck-sheet { transition: none; } }
.partner-leaflet-photos, .partner-phones-captions, .release-screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.partner-leaflet-photos img { width: 100%; max-height: 480px; object-fit: contain; }
.partner-phones-mockup img { width: 100%; }
.app-screen-row, .field-photos > figure, .field-testing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: center; }
.app-screen-row > a img { width: 100%; max-height: 540px; object-fit: contain; }
.field-photos > figure > img, .field-testing > figure > img { max-height: 460px; width: 100%; object-fit: contain; }
.field-testing > figure { margin: 0; }
.release-screen-pair figure { margin-top: 0; }
.release-screen-pair img { width: 100%; }
.sales-map { margin-top: 32px; }
.sales-map-center { margin-bottom: 24px; }
.team-person-icon { width: 36px; height: 36px; margin-bottom: 12px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.team-person-icon path, .team-person-icon circle { vector-effect: non-scaling-stroke; }
.author-quote { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 24px; margin: 32px 0; padding: 24px 0; border-block: 1px solid var(--line); }
.author-quote-avatar { display: block; width: 110px; height: 110px; border-radius: 50%; overflow: hidden; }
.author-quote-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.65); transform-origin: 60% 25%; }
.author-quote cite { display: block; margin-top: 12px; font-size: var(--size-caption); font-style: normal; }
.graphic-story { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; margin: 28px 0; }
.graphic-symbol { display: block; width: 28px; height: 28px; margin-bottom: 12px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.graphic-story b { display: block; margin-bottom: 8px; font-weight: 600; }
.graphic-arrow { color: var(--pink); font-size: var(--size-section); font-weight: 700; }
.channel-comparison, .player-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 28px 0; }
.channel-comparison article, .player-review { padding-top: 20px; border-top: 1px solid var(--line); }
.channel-comparison article > span { display: block; margin-bottom: 12px; font-size: var(--size-caption); }
.channel-comparison article > b { display: block; margin-bottom: 8px; font-size: var(--size-price); font-weight: 600; }
.progulka-metrics article > span { display: block; font-size: var(--size-body); line-height: 1.5; }
.pilot-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.pilot-flow > div { padding-top: 20px; border-top: 1px solid var(--line); }
.pilot-flow span { font-size: var(--size-caption); }
.pilot-flow b { display: block; margin: 12px 0; font-size: var(--size-card); font-weight: 600; }
.player-review blockquote { margin: 12px 0; font-size: var(--size-body); line-height: 1.5; white-space: pre-line; }
.case-page .player-review > .review-stars + p { margin:12px 0; }
.case-page .player-review > .review-stars + p + cite.text-caption { margin-top:0; }
.player-review small { font-size: var(--size-caption); line-height: 1.5; }
.review-stars { display: flex; color: var(--pink); font-size: var(--size-body); }
.stars-empty { color: var(--line); }
.project-next-step { margin-top: 32px; }
.case-page > .catalog-contact { border-top: 0; }
.case-related { padding: var(--section-space) 0; }
.case-related .catalog-case h3 { margin:8px 0 12px;font-size:var(--size-card);line-height:1.2; }
@media (max-width: 700px) {
  .case-back { margin-top: 24px; }
  .case-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .case-route { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .idea-origin, .parallel-lanes, .ecosystem-cards, .sales-map-roles, .partner-leaflet-photos, .partner-phones-captions, .release-screen-pair, .app-screen-row, .field-photos > figure, .field-testing, .channel-comparison, .player-review-grid, .pilot-flow { grid-template-columns: 1fr; gap: 24px; }
  .idea-photo img { max-height: 400px; object-fit: contain; }
  .graphic-story { grid-template-columns: 1fr; }
  .graphic-arrow { transform: rotate(90deg); justify-self: start; }
  .author-quote { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
  .author-quote-avatar { width: 70px; height: 70px; }
}

/* Reading overview reuses section headings, body text and result figures. */
.case-overview { padding: var(--section-space) 0; border-top: 1px solid var(--line); }
.case-overview > p + p { margin-top: 16px; }
.case-overview .progulka-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 28px; }
@media (max-width: 700px) {
  .case-overview .progulka-metrics { grid-template-columns: 1fr; }
}

.case-video { padding: 0 0 var(--section-space); }
.case-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 24px 0 16px; }

.case-section .text-caption,.case-section .author-quote cite,.case-section .player-review small,.case-section .partner-brand small { color:var(--caption-ink); }

.case-page p.text-caption { color:var(--caption-ink);font-size:var(--size-caption);font-weight:400;line-height:1.5; }

/* Customer feedback uses the approved warm yellow surface. */
:root { --review-bg:#FFF8E8;--review-border:#F0DEB5; }
.case-variant-1 .player-review.client-review {
  background:var(--review-bg);
  border:1px solid var(--review-border);
  border-bottom-left-radius:0;
}
.client-review cite { font-style:normal; }
.client-review > .review-stars + blockquote { margin:12px 0; }
