/* Страница «Второе дыхание» — по принятому макету №618 (макет сайта/618_второе-дыхание).
   Общие вещи (цвета, шрифты, кнопки, шапка, блок заявки) — в site.css. Переломы: 900 — компьютер. */

.vd { background: radial-gradient(560px 460px at 104% 1500px, rgba(23, 99, 246, .06), rgba(23, 99, 246, 0) 70%); }
.vd-sec { padding: 54px 0; }
.vd-title { margin-top: 14px; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.vd-title em, .vd-hero__title em { font-style: normal; color: var(--blue); }
.vd-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* ── Первый экран ───────────────────────────────────── */

.vd-hero {
  padding: 18px 0 0;
  background: radial-gradient(520px 360px at 8% 0, #fff, rgba(255, 255, 255, 0) 72%),
              radial-gradient(460px 320px at 100% 30%, rgba(23, 99, 246, .08), rgba(23, 99, 246, 0) 72%);
}
/* На телефоне фото «до и после» стоит сразу под названием, поэтому текст разобран на части (display: contents). */
.vd-hero__grid { display: flex; flex-direction: column; }
.vd-hero__text { display: contents; }
.vd-hero__eyebrow { order: 1; align-self: flex-start; }
.vd-hero__title { order: 2; margin-top: 14px; font-size: 50px; line-height: 1; letter-spacing: -.025em; }
.vd-hero__sub { order: 3; margin: 12px 0 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.vd-hero__pic { order: 4; margin-top: 18px; }
.vd-hero__btns { order: 5; display: grid; gap: 10px; margin-top: 20px; }
.vd-hero__lead { order: 6; margin: 20px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }

/* ── Пара фото «до и после» ─────────────────────────── */

.ba { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 14px; row-gap: 10px; align-items: end; padding: 6px 6px 0 0; }
.ba__ph { position: relative; }
.ba__im { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; background: var(--sky); box-shadow: var(--shadow); }
.ba__im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__ph--now .ba__im { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue), 0 20px 44px rgba(23, 99, 246, .3); }
.ba__tag {
  position: absolute; left: 10px; top: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 2px 8px rgba(13, 27, 46, .18);
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.ba__ph--now .ba__tag { background: var(--blue); color: #fff; }
.ba__arr {
  position: absolute; z-index: 2; left: -27px; top: 50%; display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(13, 27, 46, .28);
}
.ba__arr .ico { width: 18px; height: 18px; }
/* .ba .ba__cap — с запасом по весу: внутри истории абзацы оформляет .vd-story p */
.ba .ba__cap { align-self: start; margin: 0; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--ink-3); }
.ba .ba__cap--now { font-weight: 800; color: var(--ink); }
.ba--sm { margin-top: 14px; }
.ba--sm .ba__im { aspect-ratio: 5 / 4; border-radius: 16px; }
.ba--sm .ba__tag { left: 8px; top: 8px; padding: 5px 10px; font-size: 10.5px; }
.ba--sm .ba__arr { left: -24px; width: 34px; height: 34px; margin-top: -17px; }
.ba--sm .ba__arr .ico { width: 15px; height: 15px; }
.ba.ba--sm .ba__cap { font-size: 13px; }
.ba-note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ba-note b { color: var(--ink); }
.ba-note a { color: var(--blue); font-weight: 700; white-space: nowrap; text-decoration: none; }
.ba-note a:hover { text-decoration: underline; }
.ba-note .ico { width: 14px; height: 14px; transform: rotate(90deg); vertical-align: -2px; }

/* ── Три факта под первым экраном ───────────────────── */

.vd-facts { list-style: none; display: grid; margin: 26px 0 0; padding: 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.vd-facts li { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.vd-facts li + li::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--line); }
.vd-facts__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); color: var(--blue); }
.vd-facts__ico svg { width: 23px; height: 23px; }
.vd-facts p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.vd-facts b { display: block; margin-bottom: 3px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.is-review .vd-facts li[data-check] { flex-wrap: wrap; }

/* ── Как попасть в проект ───────────────────────────── */

.vd-how { padding-bottom: 30px; }
.vd-how__head .btn { margin-top: 18px; }
.vd-how__head .vd-lead { margin-top: 10px; }
.vd-how__pic { margin-top: 12px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.vd-how__pic img { display: block; width: 100%; height: auto; }
.vd-steps { list-style: none; margin: 24px 0 0; padding: 6px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.vd-step { position: relative; padding: 20px 0 20px 62px; }
.vd-step + .vd-step { border-top: 1px solid var(--line); }
.vd-step__n { position: absolute; left: 0; top: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; font-weight: 800; }
.vd-step h3 { padding-top: 2px; font-size: 21px; line-height: 1.15; font-weight: 800; }
.vd-step p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.vd-list { list-style: none; display: grid; gap: 8px; margin: 12px 0 0; padding: 0; }
.vd-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.vd-list li::before {
  content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='%231763F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.vd-free { display: inline-flex; margin-top: 14px; padding: 7px 13px; border-radius: 999px; background: var(--sky); color: var(--blue-d); font-size: 12.5px; font-weight: 800; }
.vd-next { margin-top: 12px; padding: 22px 20px; border-radius: var(--radius); background: #101E33; color: #fff; }
.vd-next__title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.15; }
.vd-next__sub { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.vd-next ol { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 0; counter-reset: n; }
.vd-next li { counter-increment: n; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 15px; font-weight: 600; line-height: 1.25; }
.vd-next li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 800; }

/* ── Истории ────────────────────────────────────────── */

.vd-story { display: grid; gap: 18px; margin-top: 28px; }
.vd-story + .vd-story { margin-top: 46px; }
.vd-story h3 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.vd-story p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.vd-story .vd-story__key { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.vd-story blockquote { margin: 16px 0 0; padding: 3px 0 3px 16px; border-left: 4px solid var(--blue); font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.vd-who { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.vd-story .vd-who { margin-top: 18px; font-size: 12px; line-height: 1.5; font-weight: 800; color: var(--ink-3); }
.vd-story .vd-who:first-child { margin-top: 0; }
.vd-who::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vd-who + .ba { margin-top: 10px; }
.vd-more { display: grid; gap: 14px; margin-top: 40px; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.vd-more b { font-size: 20px; font-weight: 800; line-height: 1.2; }

@media (min-width: 640px) and (max-width: 899px) {
  /* планшет: пары фото не растягиваем на всю ширину, иначе они занимают весь экран */
  .vd-hero__pic, .vd-story > :first-child { max-width: 520px; }
  .vd-facts { grid-template-columns: repeat(3, 1fr); }
  .vd-facts li + li::before { left: 0; right: auto; top: 24%; bottom: 24%; width: 1px; height: auto; }
  .vd-facts li { flex-direction: column; align-items: flex-start; }
  .vd-hero__btns, .vd-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .vd-hero__btns { justify-content: flex-start; }
}

@media (min-width: 900px) {
  .vd { background: radial-gradient(760px 620px at 100% 1130px, rgba(23, 99, 246, .07), rgba(23, 99, 246, 0) 70%); }
  .vd-sec { padding: 92px 0; }
  .vd-title { font-size: 46px; }
  .vd-lead { font-size: 19px; max-width: 520px; }

  .vd-hero { padding: 34px 0 0; }
  .vd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 64px; align-items: center; }
  .vd-hero__text { display: block; }
  .vd-hero__title { margin-top: 16px; font-size: 76px; line-height: .98; }
  .vd-hero__sub { margin-top: 16px; font-size: 26px; }
  .vd-hero__lead { margin-top: 14px; font-size: 18px; max-width: 540px; }
  .vd-hero__btns { display: flex; gap: 12px; margin-top: 26px; }
  .vd-hero__pic { margin-top: 0; }

  .ba { column-gap: 20px; row-gap: 14px; padding: 8px 8px 0 0; }
  .ba__im { border-radius: 26px; }
  .ba__tag { left: 14px; top: 14px; padding: 7px 14px; font-size: 12.5px; }
  .ba__arr { left: -35px; width: 50px; height: 50px; margin-top: -25px; }
  .ba__arr .ico { width: 22px; height: 22px; }
  .ba .ba__cap { font-size: 16px; }
  .ba--sm { margin-top: 22px; }
  .ba--sm .ba__im { border-radius: 22px; }
  .ba--sm .ba__tag { left: 12px; top: 12px; padding: 6px 12px; font-size: 11.5px; }
  .ba--sm .ba__arr { left: -31px; width: 42px; height: 42px; margin-top: -21px; }
  .ba--sm .ba__arr .ico { width: 18px; height: 18px; }
  .ba.ba--sm .ba__cap { font-size: 15px; }
  .ba-note { margin-top: 18px; font-size: 15.5px; }

  .vd-facts { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
  .vd-facts li { gap: 16px; padding: 13px 24px; }
  .vd-facts li + li::before { left: 0; right: auto; top: 24%; bottom: 24%; width: 1px; height: auto; }
  .vd-facts__ico { width: 50px; height: 50px; }
  .vd-facts b { font-size: 25px; }

  .vd-how { padding-top: 84px; padding-bottom: 36px; }
  .vd-how__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
  .vd-how__head .vd-lead { max-width: 560px; }
  /* Слева заголовок и под ним фото, справа три шага на всю высоту. */
  .vd-how__head { grid-column: 1; grid-row: 1; }
  .vd-steps { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .vd-how__pic { grid-column: 1; grid-row: 2; align-self: end; margin-top: 0; border-radius: 26px; }
  .vd-how__grid { row-gap: 32px; }
  .vd-steps { margin-top: 0; padding: 10px 32px; border-radius: 26px; }
  .vd-step { padding: 26px 0 26px 82px; }
  .vd-step__n { top: 26px; width: 56px; height: 56px; font-size: 23px; }
  .vd-step h3 { font-size: 24px; }
  .vd-step p { font-size: 16.5px; }
  .vd-next { margin-top: 16px; padding: 28px 32px; border-radius: 26px; }
  .vd-next__title { font-size: 26px; }
  .vd-next ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .vd-next li { flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 16px; }

  .vd-story { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 70px; align-items: center; margin-top: 44px; }
  .vd-story + .vd-story { margin-top: 80px; }
  .vd-story--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
  .vd-story--rev > :first-child { order: 2; }
  .vd-story h3 { font-size: 38px; }
  .vd-story .vd-story__key { margin-top: 12px; font-size: 20px; }
  .vd-story p { font-size: 17px; }
  .vd-story blockquote { margin-top: 20px; font-size: 24px; }
  .vd-story .vd-who { margin-top: 26px; font-size: 12.5px; }
  .vd-who + .ba { margin-top: 12px; }
  .vd-more { display: flex; justify-content: space-between; align-items: center; margin-top: 70px; padding: 28px 32px; border-radius: 26px; }
  .vd-more b { font-size: 24px; }
}

/* Широкий компьютер: «Дальше начинается работа» — заголовок слева, четыре шага справа (как в макете). */
@media (min-width: 1180px) {
  .vd-next { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 40px; align-items: center; }
  .vd-next ol { margin-top: 0; }
}
