/* ===========================================================================
   Страница кейса портфолио.
   Композиция — из макета w2333: центрированная обложка, строка фактов,
   крупная «геройская» цифра в показателях, задача списком, решения карточками,
   слайдер экранов, другие проекты строками.
   Оформление — общесайтовое: Gilroy, текст #121212, фон #fff / #f5f5f5,
   акцент #8f42ec, кнопки #8f42ec (градиентных заливок текста из макета нет).
   Всё под скоупом .w2c — шапка menu.php и подвал footer.php на своих стилях.
   =========================================================================== */

@font-face { font-family: "Gilroy w2p"; src: url("/site2023/fonts/portfolio/Gilroy-Regular.woff2") format("woff2");  font-weight: 400;     font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy w2p"; src: url("/site2023/fonts/portfolio/Gilroy-Medium.woff2") format("woff2");   font-weight: 500;     font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy w2p"; src: url("/site2023/fonts/portfolio/Gilroy-Semibold.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }

.w2c {
  --paper: #f5f5f5;
  --white: #fff;
  --ink: #121212;
  --ink-2: #3f3f49;
  --ink-3: #7c7c8a;
  --line: #e6e6ef;
  --line-strong: #d1d1e0;
  --accent: #8f42ec;
  --blue: #8f42ec;
  --grid: 1240px;
  --gutter: max(30px, calc((100vw - var(--grid)) / 2));
  --sans: "Gilroy w2p", "Gilroy SemiBold", "Gilroy", Arial, sans-serif;

  position: relative;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.w2c, .w2c *, .w2c *::before, .w2c *::after { box-sizing: border-box; }
.w2c :where(a) { color: inherit; text-decoration: none; }
.w2c :where(h1, h2, h3, p, dl, dd, dt, figure) { margin: 0; }
.w2c :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.w2c :where(button) { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.w2c :where(img) { max-width: 100%; display: block; }
.w2c ::selection { background: var(--accent); color: #fff; }

.w2c__wrap { padding: 0 var(--gutter); }
/* Ритм секций у кейса был свой — до 96px, тогда как остальной сайт живёт
   на 72px (--w2-section в type.css). На странице кейса это заметно: ниже
   идут общие блоки услуг и клиентов с отбивкой 72. Свели к общему. */
.w2c__band { padding: clamp(44px, 5vw, 72px) var(--gutter); }
.w2c__band--paper { background: var(--paper); }
.w2c__center { max-width: 820px; margin: 0 auto; text-align: center; }
.w2c__eyebrow { display: block; margin-bottom: 14px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.w2c__h2 { font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.w2c__lead { margin: 16px auto 0; max-width: 60ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); font-weight: 500; line-height: 1.6; }
.w2c__btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 30px;
  border-radius: 14px; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 500;
  transition: background .25s, transform .25s;
}
.w2c__btn:hover { background: #7a34d0; transform: translateY(-1px); }
.w2c__btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.w2c__btn--ghost:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* --------------------------------------------------------------- обложка */
.w2c-crumbs { padding: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: #9a9aa8; font-size: 13px; font-weight: 500; }
.w2c-crumbs li { display: flex; align-items: center; gap: 8px; }
.w2c-crumbs li + li::before { content: "/"; color: #c4c4d2; }
.w2c-crumbs a:hover { color: var(--accent); }
.w2c-crumbs li:last-child span { color: var(--ink); }

.w2c-hero { padding: clamp(34px, 4vw, 60px) 0 clamp(28px, 3vw, 44px); text-align: center; }
.w2c-hero__logo { max-height: 56px; width: auto; margin: 0 auto 22px; }
.w2c-hero__client { display: block; margin-bottom: 14px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.w2c-hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(32px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.w2c-hero__lead { margin: 22px auto 0; max-width: 62ch; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 19px); font-weight: 500; line-height: 1.55; }
.w2c-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.w2c-visual { overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); background: #f0f0f5; }
.w2c-visual img { width: 100%; height: auto; }
/* Мелкий скрин (в базе их большинство — 600 px) не растягиваем во всю сетку: показываем
   в нативном размере на подложке, иначе он мылит. */
.w2c-visual--native { display: flex; justify-content: center; padding: clamp(18px, 3vw, 44px); }
.w2c-visual--native .w2c-visual__inner { width: 100%; overflow: hidden; border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(18, 18, 18, .45); }
.w2c-visual__inner img { width: 100%; height: auto; }

/* ----------------------------------------------------------------- факты */
.w2c-facts { padding: clamp(26px, 3vw, 44px) 0 clamp(30px, 3.4vw, 52px); border-bottom: 1px solid var(--line); }
.w2c-facts__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); text-align: center; }
.w2c-facts dt { margin-bottom: 6px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.w2c-facts dd { font-size: clamp(15px, 1.2vw, 17px); font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }

/* ------------------------------------------------------------ показатели */
.w2c-figures__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px) clamp(20px, 3vw, 44px); text-align: center; }
.w2c-figures__grid > div { grid-column: span 2; }
.w2c-figures__grid > div:first-child { grid-column: span 6; }
.w2c-figures b {
  display: block;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.w2c-figures__grid > div:first-child b { color: var(--accent); font-size: clamp(60px, 9vw, 140px); letter-spacing: -.055em; }
/* показатель словами, а не числом: тот же блок, но кегль меньше — иначе фраза не помещается */
.w2c-figures__grid > div.w2c-fig--text b { font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -.03em; line-height: 1.08; display: block; max-width: 22ch; margin: 0 auto; }
.w2c-figures__grid > div:first-child.w2c-fig--text b { font-size: clamp(32px, 4.6vw, 68px); max-width: 20ch; }
/* три показателя: два нижних делят ряд поровну, иначе строка выглядит пустой справа */
.w2c-figures__grid > div:nth-child(2):nth-last-child(2),
.w2c-figures__grid > div:nth-child(3):nth-last-child(1) { grid-column: span 3; }
.w2c-figures__grid > div:not(:first-child).w2c-fig--text b { font-size: clamp(22px, 2.6vw, 34px); max-width: 18ch; }
.w2c-figures__grid > div:not(:first-child) p { max-width: 30ch; margin-left: auto; margin-right: auto; }
.w2c-figures__grid > div:not(:first-child) small { max-width: 34ch; margin-left: auto; margin-right: auto; display: block; }
.w2c-figures p { margin: 14px auto 0; max-width: 26ch; color: var(--ink-2); font-size: clamp(14px, 1.1vw, 16px); line-height: 1.4; font-weight: 500; }
.w2c-figures__grid > div:first-child p { margin-top: 20px; max-width: 24ch; color: var(--ink); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; }
.w2c-figures small { display: block; margin: 8px auto 0; max-width: 28ch; color: var(--ink-3); font-size: 13px; line-height: 1.45; }

/* ---------------------------------------------------------------- задача */
.w2c-task__text { margin: 18px auto 0; max-width: 68ch; color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.62; }
.w2c-task__text p + p { margin-top: 14px; }
.w2c-task__list { margin: clamp(28px, 3vw, 44px) auto 0; max-width: 900px; display: grid; gap: 4px; text-align: left; }
.w2c-task__item { display: grid; grid-template-columns: 44px minmax(0, 210px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.w2c-task__item:last-child { border-bottom: 1px solid var(--line); }
.w2c-task__num { color: var(--accent); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
/* иконка пункта задачи — как в макете: тематический значок вместо порядкового номера */
.w2c-task__ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
                 border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.w2c-task__ico i { font-size: 17px; line-height: 1; }
.w2c-task__item b { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.w2c-task__item span { color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.55; }

/* --------------------------------------------------------------- решения */
.w2c-stack__list { margin-top: clamp(28px, 3vw, 44px); display: grid; gap: clamp(18px, 2vw, 26px); }
.w2c-stack__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
  padding: clamp(22px, 3vw, 44px);
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
.w2c-stack__card > div { max-width: 46ch; }
/* нет скриншота — не оставляем пустую половину карточки */
.w2c-stack__card--text { grid-template-columns: minmax(0, 1fr); }
.w2c-stack__card--text > div { max-width: 72ch; }
.w2c-stack__card--text h3 { max-width: 32ch; }
.w2c-stack__num { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 14px; font-weight: 600; }
.w2c-stack__card h3 { max-width: 20ch; font-size: clamp(20px, 2vw, 30px); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.w2c-stack__card p { margin-top: 14px; color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.62; }
.w2c-stack__shot { overflow: hidden; border-radius: 14px; background: #ececf3; aspect-ratio: 4 / 3; }
.w2c-stack__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------------------------------------------------------------- экраны */
.w2c-screens__track {
  margin-top: clamp(24px, 3vw, 38px);
  display: grid;
  grid-auto-flow: column;
  /* ⚠️ Нижняя граница обязательна: с minmax(0, 72%) слайды ужимались под число
     кадров — на кейсе с шестью экранами превью схлопывались до 190 px и ничего
     не было видно. Теперь кадр не уже 420 px, а лента прокручивается. */
  grid-auto-columns: minmax(min(100%, 420px), 72%);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.w2c-screens__track::-webkit-scrollbar { height: 6px; }
.w2c-screens__track::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--line-strong); }
.w2c-screens__slide { scroll-snap-align: center; overflow: hidden; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.w2c-screens__slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
/* исходник меньше слайда — не растягиваем, показываем по центру на подложке */
.w2c-screens__slide--sm { background: #f0f0f5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(14px, 2vw, 28px); }
.w2c-screens__slide--sm img { width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 10px; }
.w2c-screens__slide--sm .w2c-screens__caption { text-align: center; }
.w2c-screens__caption { padding: 14px 20px; color: var(--ink-3); font-size: 14px; font-weight: 500; text-align: left; }
.w2c-screens__nav { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
.w2c-screens__nav button {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 999px; color: var(--ink); font-size: 18px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color .25s, box-shadow .25s;
}
.w2c-screens__nav button:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* ------------------------------------------------------------- о проекте */
/* Легаси-описание разбирается на секции (см. w2c_about в port_det.php) и выводится
   блоками: результаты — чек-листом, особенности — карточками, вывод — врезкой. */
.w2c-about__text { margin: clamp(18px, 2vw, 26px) auto 0; max-width: 780px; text-align: left; }
.w2c-about__text p { margin-top: 14px; color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.62; }
.w2c-about__text p:first-child { margin-top: 0; }
.w2c-about__block { margin: clamp(30px, 4vw, 52px) auto 0; max-width: 980px; }
.w2c-about__title { text-align: center; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.w2c-about__title::after { content: ""; display: block; width: 34px; height: 2px; margin: 12px auto 0; background: var(--accent); border-radius: 2px; }

.w2c-about__checks { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.w2c-about__checks b, .w2c-about__cards b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
.w2c-about__checks li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.w2c-about__checks li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 16px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.w2c-about__cards { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.w2c-about__cards > div {
  padding: 20px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.w2c-about__list { margin: 22px auto 0; max-width: 820px; display: grid; gap: 12px; text-align: left; }
.w2c-about__list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.55; }
.w2c-about__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* «Результаты» выделяем панелью — это самая ценная часть описания */
.w2c-about__block--result { max-width: 900px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.w2c-about__block--result .w2c-about__text { margin-top: 14px; }
.w2c-about__block--result .w2c-about__checks li { background: var(--paper); box-shadow: none; }

.w2c-about__block--summary { max-width: 820px; }
.w2c-about__block--summary .w2c-about__title { text-align: left; }
.w2c-about__block--summary .w2c-about__title::after { margin-left: 0; }
.w2c-about__block--summary .w2c-about__text { margin-left: 0; padding-left: 22px; border-left: 3px solid var(--accent); }
.w2c-about__block--summary .w2c-about__text p { color: var(--ink); }

@media (max-width: 900px) {
  .w2c-about__checks { grid-template-columns: minmax(0, 1fr); }
  .w2c-about__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .w2c-about__cards { grid-template-columns: minmax(0, 1fr); }
}

.w2c-body { margin: clamp(20px, 2.4vw, 32px) auto 0; max-width: 780px; text-align: left; }
.w2c-body p { margin-top: 14px; color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.62; }
.w2c-body ul { margin-top: 14px; display: grid; gap: 10px; }
.w2c-body li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 16px; font-weight: 500; line-height: 1.55; }
.w2c-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.w2c-body h3 { margin-top: 26px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.w2c-body img { margin-top: 18px; border-radius: 14px; }

/* -------------------------------------------------------- другие проекты */
.w2c-cases__list { margin-top: clamp(24px, 3vw, 40px); }
.w2c-cases__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px) minmax(0, 230px);
  align-items: center;
  gap: clamp(16px, 3vw, 50px);
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.w2c-cases__row:last-child { border-bottom: 1px solid var(--line); }
.w2c-cases__client { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.w2c-cases__name { font-size: clamp(20px, 2.6vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; transition: color .3s, transform .45s cubic-bezier(.16, 1, .3, 1); }
.w2c-cases__thumb { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: #ececf3; transition: transform .35s, box-shadow .35s; }
.w2c-cases__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.w2c-cases__res { color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.4; }
.w2c-cases__row:hover .w2c-cases__name { color: var(--accent); transform: translateX(10px); }
.w2c-cases__row:hover .w2c-cases__thumb { transform: translateY(-6px); box-shadow: 0 26px 46px -30px rgba(60, 50, 140, .44); }
.w2c-cases__row:hover .w2c-cases__thumb img { transform: scale(1.06); }
.w2c-cases__all { margin-top: clamp(26px, 3vw, 44px); display: flex; justify-content: center; }

/* --------------------------------------------------------------- адаптив */
@media (max-width: 1260px) { .w2c { --gutter: 24px; } }

@media (max-width: 1000px) {
  .w2c-facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .w2c-figures__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w2c-figures__grid > div:first-child { grid-column: span 3; }
  .w2c-figures__grid > div:not(:first-child) { grid-column: span 1; }
  .w2c-stack__card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .w2c-stack__card > div { max-width: none; }
  .w2c-cases__row { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); }
  .w2c-cases__res { grid-column: 1 / -1; }
  /* фиксированная ширина, иначе колонки делят экран и схлопываются */
  .w2c-screens__track { grid-auto-columns: 86%; }
}

@media (max-width: 620px) {
  .w2c { --gutter: 16px; }
  .w2c-facts__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .w2c-figures__grid { grid-template-columns: minmax(0, 1fr); }
  .w2c-figures__grid > div:first-child, .w2c-figures__grid > div:not(:first-child) { grid-column: span 1; }
  .w2c-task__item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .w2c-task__item span { grid-column: 2; }
  .w2c-cases__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .w2c-cases__thumb { max-width: 420px; }
  .w2c-screens__track { grid-auto-columns: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  .w2c *, .w2c *::before, .w2c *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- заявка */
.w2c-cta__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); gap: clamp(24px, 4vw, 60px); align-items: center; }
.w2c-cta__body .w2c__h2 { max-width: 16ch; }
.w2c-cta__body .w2c__lead { margin-left: 0; max-width: 44ch; }
.w2c-cta__steps { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.w2c-cta__steps span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 500; }
.w2c-cta__steps span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.w2c-cta__form { padding: clamp(22px, 2.6vw, 32px); border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.w2c-fld { display: grid; gap: 6px; }
.w2c-fld__l { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.w2c-cta__form .w2c-fld input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 500;
}
.w2c-cta__form .w2c-fld input::placeholder { color: #a4a4b4; }
.w2c-cta__form .w2c-fld input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(143, 66, 236, .12); }
.w2c-cta__form .w2c__btn { width: 100%; justify-content: center; margin-top: 2px; }
.w2c-cta__form .w2c__btn[disabled] { opacity: .5; cursor: not-allowed; }
.w2c-cta__form .w2-agree { margin-top: 2px; }
.w2c-cta__form .w2-agree__text { font-size: 12.5px; line-height: 1.45; }

@media (max-width: 1000px) {
  .w2c-cta__panel { grid-template-columns: minmax(0, 1fr); }
  .w2c-cta__body { text-align: center; }
  .w2c-cta__body .w2c__h2, .w2c-cta__body .w2c__lead { max-width: none; margin-inline: auto; }
  .w2c-cta__steps { justify-content: center; }
  .w2c-cta__form { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ссылка на профильную услугу в блоке фактов: кейс должен вести на свою услугу */
.w2c-facts__link { display: inline-block; margin-top: 6px; color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(143,66,236,.28); }
.w2c-facts__link:hover { border-bottom-color: currentColor; }

/* Переход с кейса на услугу.
   Кейсы ранжируются в поиске вместо страниц услуг: человек ищет исполнителя,
   а попадает на рассказ о чужом проекте. Небольшой блок сразу после первого экрана. */
.w2c .w2c-offer{
    display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between;
    margin-top: clamp(24px, 3vw, 36px);
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #d1d1e0;
    border-left: 4px solid #8f42ec;
    border-radius: 14px;
}
.w2c .w2c-offer__text b{ display: block; font-size: 18px; font-weight: 600; color: #131727; margin-bottom: 4px; }
.w2c .w2c-offer__text span{ display: block; font-size: 15px; line-height: 1.5; color: rgba(19,23,39,.62); }
.w2c .w2c-offer__actions{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.w2c .w2c-offer__btn{
    display: inline-block; padding: 12px 22px; border-radius: 8px;
    background: #8f42ec; color: #fff !important; font-weight: 600; text-decoration: none; transition: background .2s;
}
.w2c .w2c-offer__btn:hover{ background: #7a34d0; }
.w2c .w2c-offer__link{ font-size: 15px; color: #8f42ec; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px){
    .w2c .w2c-offer{ padding: 18px; }
    .w2c .w2c-offer__actions{ width: 100%; }
    .w2c .w2c-offer__btn{ flex: 1 1 auto; text-align: center; }
}


/* ── Слова клиента ──────────────────────────────────────────────────────── */
.w2c .w2c-quote{ padding: 20px 0 8px; }
.w2c .w2c-quote__card{
    max-width: 900px; margin: 0 auto; padding: 34px 36px;
    background: #fff; border: 1px solid #e6e6ef; border-radius: 20px;
    box-shadow: 0 2px 10px rgba(19,23,39,.04);
}
.w2c .w2c-quote__text{
    margin: 0; font-size: 20px; line-height: 1.55; color: #131727; position: relative;
    padding-left: 26px;
}
.w2c .w2c-quote__text::before{
    content: '\201C'; position: absolute; left: 0; top: -6px;
    font-size: 44px; line-height: 1; color: var(--w2-accent, #8f42ec);
}
.w2c .w2c-quote__who{
    margin-top: 16px; padding-left: 26px; font-size: 15px; color: rgba(19,23,39,.6);
}
@media (max-width: 767px){
    .w2c .w2c-quote__card{ padding: 24px 20px; }
    .w2c .w2c-quote__text{ font-size: 18px; }
}

/* когда ссылка сама и есть значение (тип работы совпал с названием услуги),
   она печатается кеглем значения, а не подписи */
.w2c-facts dd > .w2c-facts__link:only-child{ margin-top: 0; font-size: 17px; font-weight: 600; }

/* Статьи блога по теме кейса: до этого блока из кейса не вело ни одной
   контентной ссылки в блог, страница была тупиком для краулера. */
.w2c-readmore{
  max-width:1240px; margin:0 auto; padding:24px 28px;
  background:#fff; border:1px solid #e6e6ef; border-radius:18px;
}
.w2c-readmore__head{
  display:block; font-size:18px; font-weight:600; color:#131727; margin-bottom:12px;
}
.w2c-readmore__list{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.w2c-readmore__list a{
  font-size:16px; color:#8f42ec; text-decoration:underline; text-underline-offset:3px;
}
.w2c-readmore__list a:hover{ color:#131727; }
@media (max-width: 767px){ .w2c-readmore{ padding:20px; margin:0 16px; } }


/* ── Благодарственное письмо ──────────────────────────────────────────────
   Скан рядом с коротким пояснением: слева смысл, справа сам документ.
   Превью намеренно не растягиваем на всю ширину — сканы обычно вертикальные
   (А4), и во всю сетку они выглядели бы полосой в половину экрана. */
.w2c .w2c-letter__card{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 28px;
    align-items: center;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e6e6ef;
    border-radius: 20px;
}
.w2c .w2c-letter__label{
    display: block;
    margin-bottom: 10px;
    color: #8f42ec;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.w2c .w2c-letter__text p{ margin: 0; color: #3f3f49; font-size: 16px; line-height: 1.5; }
.w2c .w2c-letter__shot{
    display: block;
    text-align: center;
    text-decoration: none;
    color: #8f42ec;
    font-size: 14px;
    font-weight: 500;
}
.w2c .w2c-letter__shot img{
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #e6e6ef;
    border-radius: 12px;
    background: #f5f5f5;
    transition: box-shadow .25s ease, transform .25s ease;
}
.w2c .w2c-letter__shot:hover img{
    box-shadow: 0 16px 38px rgba(19, 23, 39, .12);
    transform: translateY(-2px);
}

@media (max-width: 767px){
    .w2c .w2c-letter__card{ grid-template-columns: 1fr; gap: 20px; padding: 22px 20px; }
}

/* --- Было и стало (ТЗ 04.10.2026, п. 2.2.8) --- */
.w2c .w2c-ba__title{ margin:0 0 var(--w2-lead-gap, 36px); text-align:center; font-size:31px; font-weight:600; line-height:1.22; color:#131727; }
.w2c .w2c-ba__grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:20px; max-width:1240px; margin:0 auto; }
.w2c .w2c-ba__col{ background:#fff; border:1px solid #e6e6ef; border-radius:20px; padding:24px 26px; }
.w2c .w2c-ba__col--after{ border-color:#8f42ec; }
.w2c .w2c-ba__label{ font-size:14px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:#56566a; margin-bottom:12px; }
.w2c .w2c-ba__col--after .w2c-ba__label{ color:#8f42ec; }
.w2c .w2c-ba__col ul{ margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.w2c .w2c-ba__col li{ font-size:17px; line-height:1.45; color:#131727; padding-left:18px; position:relative; }
.w2c .w2c-ba__col li::before{ content:''; position:absolute; left:0; top:.6em; width:7px; height:7px; border-radius:50%; background:#d1d1e0; }
.w2c .w2c-ba__col--after li::before{ background:#8f42ec; }
@media (max-width:767px){ .w2c .w2c-ba__title{ font-size:24px; } }
