/* ==========================================================================
   Новый шаблон страницы кейса (case_v2) — перенос прототипа
   _tasks/case-template-redesign/prototype/styles.css почти без изменений.
   Грузится ТОЛЬКО на страницах CPT case_v2 (см. functions.php), поэтому
   даже общие имена классов (.section, .wrap, .btn...) безопасны — эти
   стили физически не подключаются на других страницах сайта.
   Шрифт Golos Text и стили шапки (.header*) — в header-v2.css (глобальный).
   ========================================================================== */

.case-v2-page {
  --font: 'Golos Text', -apple-system, Arial, sans-serif;

  --color-text: #1a1a1a;
  --color-muted: #7e7e88;
  --color-card-text: #222222;
  --color-border: #ececef;

  --color-accent-start: #d6443e;
  --color-accent-end: #e17659;
  --color-accent-solid: #d7483f;
  --gradient-accent: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));

  --color-hero-bg: #1b1b22;
  --color-card-bg: #fcfcfc;
  --color-section-bg: #f7f7f8;

  --radius-card: 8px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 20px rgba(20, 20, 30, 0.06);

  --content-width: 1180px;
  --gap-section: 96px;

  font-family: var(--font);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.case-v2-page * { box-sizing: border-box; }
.case-v2-page h1, .case-v2-page h2, .case-v2-page h3, .case-v2-page p, .case-v2-page ul, .case-v2-page figure { margin: 0; }
.case-v2-page ul { padding: 0; list-style: none; }
.case-v2-page img { max-width: 100%; display: block; }
.case-v2-page a { color: inherit; text-decoration: none; }
.case-v2-page button { font-family: inherit; cursor: pointer; }

.case-v2-page .wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* блок «Клиент/Задача» шире общей колонки контента */
.case-v2-page .wrap--wide { max-width: 1253px; }

.case-v2-page .section { padding: var(--gap-section) 0; }
.case-v2-page .section--steps { padding-top: 0; margin-top: -11px; }
.case-v2-page .section--video { padding-top: 2px; }
.case-v2-page .section--video .section-heading { margin-bottom: 55px; }
.case-v2-page .section--results { padding-top: 0; margin-top: -6px; }
.case-v2-page .section--results .results-card { padding-top: 63px; }
.case-v2-page .section--results .section-heading { margin-bottom: 76px; }
.case-v2-page .wrap--video { max-width: 1212px; }
.case-v2-page .section--steps .section-heading {
  font-size: 48px;
  line-height: 52px;
}
.case-v2-page .section--muted { background: var(--color-section-bg); }

.case-v2-page .section-heading {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 12px;
}
.case-v2-page .section-sub {
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
}

.case-v2-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  border: none;
  white-space: nowrap;
}
.case-v2-page .btn--primary {
  background: var(--gradient-accent);
  color: #fff;
}
.case-v2-page .btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.case-v2-page .btn--link {
  color: var(--color-accent-solid);
  font-weight: 600;
  font-size: 14px;
}

.case-v2-page .breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-muted);
}
.case-v2-page .breadcrumbs a { color: var(--color-muted); }
.case-v2-page .breadcrumbs a:hover { color: var(--color-text); }

/* ---------- HERO ---------- */
.case-v2-page .hero {
  padding: 0 24px 0;
}
.case-v2-page .hero__card {
  position: relative;
  max-width: 1609px;
  min-height: 620px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-hero-bg);
  padding: 35px 204px;
}
.case-v2-page .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.case-v2-page .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,14,0.88) 0%, rgba(10,10,14,0.55) 28%, rgba(10,10,14,0) 55%, rgba(10,10,14,0) 100%);
}
.case-v2-page .hero__body, .case-v2-page .hero__meta {
  position: relative;
  z-index: 2;
}
.case-v2-page .breadcrumbs--hero {
  font-size: 14px;
  color: #c3c3c3;
}
.case-v2-page .breadcrumbs--hero a { color: #c3c3c3; }
.case-v2-page .breadcrumbs--hero a:last-child, .case-v2-page .breadcrumbs--hero a:hover { color: #fff; }

.case-v2-page .hero__content {
  max-width: 650px;
  margin-top: 55px;
}
.case-v2-page .hero__title {
  font-size: 58px;
  font-weight: 600;
  line-height: 60px;
  margin-bottom: 0;
}
.case-v2-page .hero__badges {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  margin-top: 37px;
}
.case-v2-page .hero__badge {
  display: flex;
  align-items: center;
  gap: 13px;
}
.case-v2-page .hero__badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case-v2-page .hero__badge-icon img { width: 20px; height: 20px; }
.case-v2-page .hero__badge-text small {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
}
.case-v2-page .hero__badge-text strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.case-v2-page .hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.case-v2-page .hero__pill {
  display: inline-flex;
  align-items: center;
  height: 55px;
  gap: 10px;
  padding: 0 23px;
  border-radius: 28px;
  font-size: 17px;
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
}
.case-v2-page .hero__pill img { width: 14px; height: 14px; }
.case-v2-page .hero__meta-right { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .case-v2-page .hero__card { height: auto; padding: 24px; }
  .case-v2-page .hero__content { max-width: 100%; }
}

@media (max-width: 640px) {
  .case-v2-page .hero { padding: 12px 12px 0; }
  .case-v2-page .hero__card { border-radius: 16px; padding: 20px; }
  .case-v2-page .hero__title { font-size: 28px; line-height: 1.2; }
  .case-v2-page .hero__badges { gap: 20px; margin-top: 24px; }
  .case-v2-page .hero__content { margin-top: 32px; }
  .case-v2-page .hero__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .case-v2-page .hero__pill { height: 44px; padding: 0 16px; font-size: 14px; }
}

/* ---------- КЛИЕНТ / ЗАДАЧА ---------- */
.case-v2-page .brief {
  display: grid;
  grid-template-columns: 600px 555px;
  gap: 50px;
}
.case-v2-page .brief__block h3 {
  font-size: 24px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 0;
}

.case-v2-page .client-header {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 32px;
  margin-bottom: 52px;
}
.case-v2-page .client-header__logo {
  width: 115px;
  height: 73px;
  object-fit: contain;
}
.case-v2-page .client-header__name {
  font-size: 19px;
  font-weight: 600;
}
.case-v2-page .client-header__subtitle {
  font-size: 16px;
  color: var(--color-muted);
  margin-top: 2px;
}

.case-v2-page .client-facts {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}
.case-v2-page .client-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  height: 77px;
  padding: 0 23px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-shrink: 0;
}
.case-v2-page .client-fact__icon { flex-shrink: 0; }
.case-v2-page .client-fact small {
  display: block;
  font-size: 15px;
  color: var(--color-muted);
  white-space: nowrap;
}
.case-v2-page .client-fact strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}
.case-v2-page .client-quote {
  width: 600px;
  max-width: 100%;
  min-height: 350px;
  background: #ffffff;
  border: 1px solid #f3f3f7;
  border-radius: 24px;
  padding: 32px;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
  box-sizing: border-box;
}
.case-v2-page .client-quote__mark {
  width: 48px;
  height: 38px;
  display: block;
  margin-bottom: 18px;
}
.case-v2-page .client-quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-width: 0;
}
.case-v2-page .client-quote__author > div { min-width: 0; }
.case-v2-page .client-quote__avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--color-border);
  flex-shrink: 0;
}
.case-v2-page .client-quote__author strong {
  display: block;
  font-size: 14px;
}
.case-v2-page .client-quote__author span {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.case-v2-page .task-text {
  font-size: 18px;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 24px;
}
.case-v2-page .situation h4 {
  font-size: 24px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 25px;
}
.case-v2-page .situation ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-v2-page .situation li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f7f7f9;
  border-radius: 20px;
  padding: 16px 20px;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.4;
}
.case-v2-page .situation__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- KPI ---------- */
.case-v2-page .wrap--kpi { max-width: 1448px; }
.case-v2-page .section--kpi { padding-top: 9px; }

.case-v2-page .kpi-card {
  background: #f7f7f9;
  border-radius: 36px;
  padding: 55px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.case-v2-page .kpi-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text);
  margin: 0 auto 16px;
}
.case-v2-page .kpi-card .kpi-grid { width: 100%; }
.case-v2-page .kpi-card .section-heading {
  font-size: 40px;
  max-width: 640px;
  margin-bottom: 32px;
}

.case-v2-page .kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  column-gap: 19px;
  row-gap: 15px;
  justify-content: center;
}
.case-v2-page .kpi-tile {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  min-width: 0;
  height: 161px;
  padding: 32px;
  box-sizing: border-box;
}
.case-v2-page .kpi-tile__value {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.case-v2-page .kpi-tile__value small {
  font-size: 18px;
  font-weight: 600;
}
.case-v2-page .kpi-tile__label {
  font-size: 19px;
  font-weight: 600;
  margin-top: 8px;
}
.case-v2-page .kpi-tile__note {
  font-size: 17px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ---------- АККОРДЕОН ШАГОВ ---------- */
.case-v2-page .steps { counter-reset: step; }
.case-v2-page .step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.case-v2-page .step:last-child { margin-bottom: 0; }
.case-v2-page .step summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--color-section-bg);
}
.case-v2-page .step summary::-webkit-details-marker { display: none; }
.case-v2-page .step summary::marker { content: ''; }
.case-v2-page .step__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.case-v2-page .step__icon img { width: 100%; height: 100%; display: block; }
.case-v2-page .step__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  font-size: 17px;
}
.case-v2-page .step__num {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
}
.case-v2-page .step summary::after {
  content: '→';
  margin-left: auto;
  font-size: 18px;
  color: var(--color-accent-solid);
}
.case-v2-page .step[open] summary::after { content: '↓'; }

.case-v2-page .step__body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.case-v2-page .step__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-v2-page .step__section h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.case-v2-page .step__list { display: flex; flex-direction: column; gap: 8px; }
.case-v2-page .step__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}
.case-v2-page .step__list--dot li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.2;
}
.case-v2-page .step__list--check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-solid);
  font-size: 12px;
  top: 3px;
}
.case-v2-page .step__artifact {
  width: 300px;
  height: 392px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #f3f3f7;
  border-radius: 24px;
  padding: 24px;
}
.case-v2-page .step__artifact h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.case-v2-page .step__artifact-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.case-v2-page .step__artifact-preview img { width: 100%; height: auto; display: block; }
.case-v2-page .step__artifact-caption {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.4;
}
.case-v2-page .steps-hint {
  text-align: center;
  color: #000;
  font-size: 18px;
  line-height: 25px;
  max-width: 657px;
  margin: 0 auto 24px;
}

/* ---------- ВИДЕО-ОТЗЫВ ---------- */
.case-v2-page .video-block {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 559px);
  gap: 25px;
  align-items: stretch;
  justify-content: center;
}
.case-v2-page .video-block__player {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 580 / 377;
  height: auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  justify-self: center;
}
.case-v2-page .video-block__player[data-video-url] { cursor: pointer; }
.case-v2-page .video-block__player > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-v2-page .cv2-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 12, 0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.case-v2-page .cv2-video-modal.is-open { display: flex; }
.case-v2-page .cv2-video-modal__inner {
  max-width: 1100px;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.case-v2-page .cv2-video-modal__inner video {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #000;
  display: block;
}
.case-v2-page .cv2-video-modal__close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.case-v2-page .cv2-video-modal__close:hover { background: rgba(255, 255, 255, 0.22); }
.case-v2-page .video-block__play {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
}
.case-v2-page .video-block__play-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-v2-page .video-block__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 20px;
  height: 19px;
}
.case-v2-page .video-block__play-label {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, 44px);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.case-v2-page .video-block__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.case-v2-page .video-block__quote-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.case-v2-page .video-block__mark {
  width: 40px;
  height: 32px;
  display: block;
  margin-bottom: 12px;
  transform: scaleX(-1) scaleY(-1);
}
.case-v2-page .video-block__quote {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.case-v2-page .video-block__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.case-v2-page .video-block__avatar { width: 50px; height: 50px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.case-v2-page .video-block__author-info { flex: 1; }
.case-v2-page .video-block__author-info strong { display: block; font-size: 15px; }
.case-v2-page .video-block__author-info span { font-size: 13px; color: var(--color-muted); line-height: 1.4; }
.case-v2-page .video-block__logo { height: 36px; width: auto; flex-shrink: 0; }

.case-v2-page .video-block__facts {
  display: flex;
  gap: 20px;
}
.case-v2-page .video-block__facts .client-fact__icon {
  width: 46px;
  height: 46px;
  background: var(--color-section-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- ЧТО ПОЛУЧИЛ КЛИЕНТ ---------- */
.case-v2-page .results-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}
.case-v2-page .results-kpi__value {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-accent-solid);
}
.case-v2-page .results-kpi__label {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}
.case-v2-page .results-kpi__note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 2px;
}

.case-v2-page .chart-card { display: flex; justify-content: center; }
.case-v2-page .chart-card img { width: 1000px; max-width: 100%; height: auto; display: block; }

.case-v2-page .results-card {
  background: #f7f7f9;
  border-radius: 36px;
  padding: 64px;
  box-sizing: border-box;
}

.case-v2-page .timeline { margin-top: 64px; }
.case-v2-page .timeline__heading {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 32px;
}
.case-v2-page .timeline__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.case-v2-page .timeline__row::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 21px;
  right: 21px;
  height: 6px;
  background: #fff;
  border-radius: 100px;
  transform: translateY(-50%);
  z-index: 0;
}
.case-v2-page .timeline__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.case-v2-page .timeline__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.case-v2-page .timeline__item strong { font-size: 19px; font-weight: 600; }
.case-v2-page .timeline__month { font-size: 17px; color: var(--color-muted); }

/* ---------- CTA + ФОРМА ---------- */
.case-v2-page .wrap--cta { max-width: calc(1582px + 48px); }
.case-v2-page .cta-section {
  position: relative;
  color: #fff;
  border-radius: 36px;
  overflow: hidden;
  min-height: 776px;
  display: flex;
  justify-content: space-between;
  padding: 34px 191px 33px;
}
.case-v2-page .cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-v2-page .cta-section__photo {
  position: absolute;
  z-index: 1;
  left: 605px;
  top: 41px;
  width: 386px;
  height: 735px;
  object-fit: cover;
  object-position: top center;
}
.case-v2-page .cta-section__text { position: relative; z-index: 2; width: 427px; flex-shrink: 0; }
.case-v2-page .cta-section__tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 100px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}
.case-v2-page .cta-section__text h2 { font-size: 48px; font-weight: 600; line-height: 1.083; margin-bottom: 23px; }
.case-v2-page .cta-section__text p { font-size: 18px; line-height: 25px; color: #c3c3c3; margin-bottom: 38px; }
.case-v2-page .cta-section__list { width: 427px; margin-bottom: 54px; }
.case-v2-page .cta-section__list li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  line-height: 28px;
  color: #fff;
}
.case-v2-page .cta-section__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 9px;
  background: url('../images/case-v2/icon-check-small.svg') no-repeat center / contain;
}
.case-v2-page .cta-section__stats { display: flex; gap: 13px; }
.case-v2-page .cta-section__stats > div {
  box-sizing: border-box;
  width: 145px;
  height: 110px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.case-v2-page .cta-section__stats strong { font-size: 36px; line-height: 1; font-weight: 600; color: #ff7038; }
.case-v2-page .cta-section__stats span { font-size: 16px; line-height: 1.3; color: #fff; }

.case-v2-page .cta-section__form { position: relative; z-index: 2; width: 365px; flex-shrink: 0; }
.case-v2-page .cta-section__form h3 { font-size: 34px; font-weight: 600; margin-bottom: 16px; }
.case-v2-page .cta-section__form > p { font-size: 18px; line-height: 22px; color: #fff; margin-bottom: 19px; }
.case-v2-page .field { margin-bottom: 25px; }
.case-v2-page .field label { display: block; font-size: 15px; font-weight: 500; color: #676767; margin-bottom: 11px; }
.case-v2-page .field input, .case-v2-page .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #6c6c6c;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  padding: 0 0 12px;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.case-v2-page .field input:focus, .case-v2-page .field textarea:focus {
  border-bottom-color: var(--color-accent-solid);
}
.case-v2-page .field input::placeholder, .case-v2-page .field textarea::placeholder {
  color: #6c6c6c;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.case-v2-page .field input:focus::placeholder, .case-v2-page .field textarea:focus::placeholder {
  opacity: 0;
}
.case-v2-page .cta-section__form .btn {
  width: 100%;
  height: 84px;
  border-radius: 100px;
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 18px;
}

/* CF7 оборачивает [acceptance] в свою разметку — стилизуем под дизайн блока */
.case-v2-page .cta-section__form .wpcf7-form-control-wrap { display: block; }
.case-v2-page .cta-section__form .wpcf7-acceptance { display: block; margin-top: 26px; }
.case-v2-page .cta-section__form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  font-size: 13px;
  line-height: 18px;
  color: #fff;
}
.case-v2-page .cta-section__form .wpcf7-acceptance input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  border: 1px solid #6c6c6c;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}
.case-v2-page .cta-section__form .wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: var(--color-accent-solid);
  border-color: var(--color-accent-solid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-6' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.case-v2-page .cta-section__form .wpcf7-list-item-label a { color: inherit; text-decoration: underline; }

/* Сообщения об ошибках/статусе формы — по умолчанию тёмный текст, невидим на тёмном фоне блока */
.case-v2-page .cta-section__form .wpcf7-not-valid-tip { color: #ffb4a8; font-size: 12px; margin-top: 6px; display: block; }
.case-v2-page .cta-section__form .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,0.4) !important; margin-top: 16px; font-size: 14px; }

/* ---------- ДРУГИЕ КЕЙСЫ ---------- */
.case-v2-page .wrap--cases { max-width: calc(1200px + 48px); }
.case-v2-page .section--cases { padding-top: 0; margin-top: -1px; }
.case-v2-page .cases-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 14px 24px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
}
.case-v2-page .cases-tag img { width: 17px; height: 10px; }
.case-v2-page .cases-heading { font-size: 40px; margin-bottom: 51px; }
.case-v2-page .cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  column-gap: 15px;
  row-gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}
.case-v2-page .cases-grid .cases-archive-card {
  width: 100%;
  max-width: 389px;
  justify-self: center;
  font-family: "Google Sans", Arial, sans-serif;
}
.case-v2-page .cv2-case-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.case-v2-page .cv2-case-card__media { position: relative; height: 240px; }
.case-v2-page .cv2-case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-v2-page .cv2-case-card__industry {
  position: absolute;
  top: 17px;
  left: 17px;
  background: #fff;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}
.case-v2-page .cv2-case-card__body { padding: 19px 25px 32px; color: var(--color-card-text); }
.case-v2-page .cv2-case-card__stat-pill {
  display: inline-block;
  background: var(--color-section-bg);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.case-v2-page .cv2-case-card__title { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.case-v2-page .cv2-case-card__desc { font-size: 14px; color: var(--color-muted); margin-bottom: 28px; }
.case-v2-page .cv2-case-card__link { font-size: 14px; font-weight: 500; color: var(--color-accent-solid); }
.case-v2-page .cases-grid-footer { text-align: center; }
.case-v2-page .cases-grid-footer .btn { padding: 24px 48px; border-radius: 100px; }

/* ---------- ОТЗЫВЫ ---------- */
.case-v2-page .wrap--reviews { max-width: calc(1400px + 48px); }
.case-v2-page .section--reviews { padding-top: 0; margin-top: -40px; }
.case-v2-page .reviews-card {
  background: var(--color-section-bg);
  border-radius: 36px;
  padding: 51px 100px 77px;
}
.case-v2-page .reviews-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 14px 24px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
}
.case-v2-page .reviews-tag img { width: 19.6px; height: 19.6px; }
.case-v2-page .reviews-heading { font-size: 48px; margin-bottom: 15px; }
.case-v2-page .reviews-sub { font-size: 18px; max-width: none; white-space: nowrap; margin-bottom: 65px; }

.case-v2-page .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  column-gap: 15px;
  row-gap: 15px;
  justify-content: center;
}
.case-v2-page .review-card { background: #fff; border-radius: 24px; overflow: hidden; }
.case-v2-page .review-card__media { position: relative; height: 240px; border-radius: 24px; overflow: hidden; }
.case-v2-page .review-card__media[data-video-url] { cursor: pointer; }
.case-v2-page .review-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-v2-page .review-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}
.case-v2-page .review-card__play-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-v2-page .review-card__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 18px;
  height: 17px;
}
.case-v2-page .review-card__company {
  position: absolute;
  right: 11px;
  bottom: 11px;
  background: #fff;
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
}
.case-v2-page .review-card__body { padding: 15px 25px 23px; }
.case-v2-page .review-card__stat-pill {
  display: inline-block;
  background: var(--color-section-bg);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 19px;
}
.case-v2-page .review-card__stars { display: block; width: 95px; height: 16px; margin-bottom: 13px; }
.case-v2-page .review-card__quote { font-size: 17px; line-height: 22px; color: #000; margin-bottom: 19px; }
.case-v2-page .review-card__divider { border: none; border-top: 1px solid #ededf7; margin: 0 0 12px; }
.case-v2-page .review-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-v2-page .review-card__author strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.case-v2-page .review-card__author span { display: block; font-size: 15px; color: var(--color-muted); }
.case-v2-page .review-card__logo { width: 76px; height: 48px; object-fit: contain; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1620px) {
  .case-v2-page .cta-section {
    min-height: 0;
    gap: clamp(32px, 5vw, 72px);
    padding: 48px clamp(48px, 7vw, 96px);
  }
  .case-v2-page .cta-section__photo { display: none; }
  .case-v2-page .cta-section__text {
    width: min(50%, 427px);
    min-width: 0;
  }
  .case-v2-page .cta-section__form {
    width: min(42%, 365px);
    min-width: 0;
  }
  .case-v2-page .cta-section__list { width: 100%; }
  .case-v2-page .cta-section__stats > div {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 16px;
  }
}

@media (max-width: 1280px) {
  .case-v2-page .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .case-v2-page .cases-grid, .case-v2-page .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .case-v2-page { --gap-section: 64px; }
  .case-v2-page .wrap--kpi { padding-right: 40px; padding-left: 40px; }
  .case-v2-page .brief { grid-template-columns: 1fr; gap: 40px; }
  .case-v2-page .brief__block { min-width: 0; }
  .case-v2-page .client-quote { width: 100%; }
  .case-v2-page .results-kpis { grid-template-columns: 1fr 1fr; }
  .case-v2-page .timeline__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .case-v2-page .timeline__row::before { display: none; }
  .case-v2-page .timeline__item { min-width: 0; }
  .case-v2-page .timeline__item strong,
  .case-v2-page .timeline__month { overflow-wrap: anywhere; }
  .case-v2-page .video-block { grid-template-columns: minmax(0, 1fr); }
  .case-v2-page .cta-section { flex-direction: column; padding: 48px 32px; min-height: 0; }
  .case-v2-page .cta-section__text, .case-v2-page .cta-section__form { width: 100%; }
  .case-v2-page .cta-section__photo { display: none; }
  .case-v2-page .step__body { grid-template-columns: 1fr; padding-left: 24px; }
}

@media (max-width: 640px) {
  .case-v2-page .hero__title { font-size: 30px; }
  .case-v2-page .section-heading { font-size: 24px; }
  .case-v2-page .kpi-grid { grid-template-columns: 1fr; }
  .case-v2-page .cases-grid, .case-v2-page .reviews-grid, .case-v2-page .results-kpis { grid-template-columns: 1fr; }
  .case-v2-page .client-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-v2-page .client-fact { min-width: 0; padding: 0 14px; }
  .case-v2-page .client-quote { min-height: 0; padding: 28px; }
  .case-v2-page .wrap--kpi { padding-right: 24px; padding-left: 24px; }
  .case-v2-page .results-card { padding: 32px 24px; border-radius: 24px; }
  .case-v2-page .timeline { margin-top: 40px; }
  .case-v2-page .timeline__heading { font-size: 24px; margin-bottom: 24px; }
  .case-v2-page .cta-section { padding: 32px 24px; }
}
