@font-face {
  font-family: "Kosko";
  src: url("fonts/kosko-regular.ttf?v=259d5c63") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

/* Jost — открытый геометрический гротеск, реплика Futura (лицензия SIL OFL).
   Подвал в Figma набран коммерческим FuturaPT: на Tilda он грузился с их CDN
   по их лицензии, у нас файла не было, и браузер искал шрифт в системе. На
   macOS Futura есть, на iOS веб-странице недоступна — подставлялся системный
   шрифт с более широкими буквами, из-за чего подвал разъезжался. Теперь шрифт
   приезжает файлом и одинаков на всех устройствах. Если Павел купит лицензию
   на FuturaPT, достаточно заменить файлы и имя семейства здесь. */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-400-cyrillic.woff2?v=c7a90511") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-400-latin.woff2?v=b249869f") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-500-cyrillic.woff2?v=0e535fec") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-500-latin.woff2?v=1af44df0") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f3ee;
  --ink: #1a1a1a;
  --ink-soft: #34332f;
  --muted: #66635d;
  --card: #fff;
  --card-muted: #ebe8df;
  --line: rgba(26, 26, 26, 0.1);
  --line-strong: rgba(26, 26, 26, 0.18);
  --hi: #dad6c9;
  --dark: #171716;
  --dark-soft: #252521;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 26px;
  --pill: 999px;
  --content: 1280px;
  --content-narrow: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#mechanism { scroll-margin-top: 84px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection { background: var(--hi); color: var(--ink); }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

.shell { overflow: clip; }

.container { width: min(100% - 48px, var(--content)); margin: 0 auto; }

.container-narrow { width: min(100% - 48px, var(--content-narrow)); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255,255,255,.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.section-label b { color: var(--ink); font-weight: 600; }

.hi {
  display: inline;
  padding: 0 .16em .03em;
  border-radius: 6px;
  background: var(--hi);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hand {
  font-family: "Kosko", cursive;
  font-size: 23px;
  font-weight: 400;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(245,243,238,.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--content));
  min-height: 64px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0;
}

.brand__dot {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 33px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
}

.brand__dot::after {
  position: absolute;
  inset: 7px auto auto 5px;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.brand::after {
  white-space: pre;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .82;
  content: "PAHAN\A MARKETINGA";
}

.brand--figma { align-items: flex-start; gap: 10px; }
.brand--figma::after { content: none; }
.brand--figma .brand__mouse { flex: 0 0 auto; width: 24px; height: 40px; }
.brand--figma .brand__wordmark { width: 137px; height: 29.281px; margin-top: 5px; }

.top-nav, .desktop-nav { display: flex; align-items: center; gap: 5px; }

.top-nav a, .desktop-nav a {
  padding: 8px 12px;
  border-radius: var(--pill);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  transition: background .18s ease;
}

.top-nav a:hover, .top-nav a[aria-current="page"],
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: var(--card); }

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease;
}

.header-action:hover { background: #000; transform: translateY(-1px); }

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
}

.menu-button svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 16px;
  width: min(300px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 22px 50px -26px rgba(26,26,26,.4);
}

.mobile-nav[data-open="true"] {
  display: block;
  animation: mobile-nav-in .16s ease-out both;
}

.mobile-nav__inner {
  display: grid;
  width: 100%;
  padding: 10px 16px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
}

.mobile-nav a:last-child { border-bottom: 0; }

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav[data-open="true"] { animation: none; }
}

.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-2px); }

.button--dark { background: var(--ink); color: var(--bg); }
.button--dark:hover { background: #000; }

.button--light { border-color: var(--line-strong); background: rgba(255,255,255,.7); color: var(--ink); }
.button--light:hover { background: var(--card); }

.button svg { width: 16px; height: 16px; }

.section { padding: 104px 0; }

.section--tight { padding: 72px 0; }

.section-heading { max-width: 760px; margin-bottom: 42px; }

.section-heading--center { margin-right: auto; margin-left: auto; text-align: center; }

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.section-heading p { max-width: 620px; margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; }
.section-heading--center p { margin-right: auto; margin-left: auto; }
.section--case-proof .container { width: min(100% - 48px, 1280px); }
.section-heading--case-proof { max-width: 900px; margin-bottom: 30px; }
.section-heading--case-proof h2 { max-width: 900px; font-size: clamp(34px, 3.1vw, 40px); line-height: 1.08; }
.section-heading--case-proof p { max-width: 760px; margin-top: 16px; font-size: 18px; line-height: 1.48; }
.section--handoff .section-heading, .section--handoff .section-heading h2 { max-width: 1280px; }

.hairline { height: 1px; background: var(--line); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 1; transform: translateY(10px); transition: transform .52s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Root page */
.home-hero { padding: 74px 0 42px; }

.home-hero__copy { max-width: 860px; }

.home-hero h1, .pm-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.1vw, 78px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.home-hero__lead {
  max-width: 550px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.home-hero__note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.route-board {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, .78fr);
  margin-top: 60px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.route-board__main { padding: 30px; }

.route-board__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.route-board__topline span:last-child { color: var(--ink); }

.route-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.route-step {
  position: relative;
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.route-step::after {
  position: absolute;
  top: 29px;
  right: -17px;
  z-index: 2;
  width: 24px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.route-step:last-child::after { display: none; }

.route-step__number { display: block; margin-bottom: 30px; color: var(--muted); font-size: 12px; font-weight: 500; }
.route-step__name { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.route-step__text { display: block; margin-top: 9px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.route-board__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: var(--dark);
  color: var(--bg);
}

.route-board__side .eyebrow { color: rgba(245,243,238,.62); }
.route-board__side .eyebrow::before { border-color: var(--bg); }
.route-board__side h2 { margin: 0; font-size: clamp(27px, 3vw, 36px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.route-board__side p { margin: 16px 0 0; color: rgba(245,243,238,.72); font-size: 14px; }

.direction-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 14px; }

.direction-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.direction-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 370px; padding: 32px; }
.direction-card__type { display: inline-flex; width: fit-content; padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--pill); background: rgba(255,255,255,.76); color: var(--muted); font-size: 12px; font-weight: 500; }
.direction-card h3 { max-width: 410px; margin: 24px 0 0; font-size: clamp(30px, 3.4vw, 43px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.direction-card p { max-width: 405px; margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; }
.direction-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.direction-card__facts { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.direction-card__facts span { padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--pill); background: rgba(255,255,255,.7); }
.direction-card__image { position: absolute; right: 0; bottom: 0; width: min(44%, 340px); height: 100%; object-fit: cover; object-position: center top; filter: saturate(.88); }
.direction-card__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 15%, rgba(255,255,255,.74) 55%, rgba(255,255,255,.05) 100%); }

.direction-card--next { display: flex; flex-direction: column; justify-content: space-between; padding: 30px; background: var(--card-muted); }
.direction-card--next h3 { max-width: 260px; margin: 0; font-size: 27px; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.direction-card--next p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.direction-card--next .hand { align-self: flex-end; margin: 10px 24px 5px 0; transform: rotate(-6deg); }
.direction-card--next small { color: var(--muted); font-size: 12px; }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle { padding: 25px; border-top: 1px solid var(--ink); }
.principle__num { color: var(--muted); font-size: 12px; font-weight: 500; }
.principle h3 { margin: 38px 0 0; font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1.18; }
.principle p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Minimal direction showcase */
.home-showcase { padding: 82px 0 104px; }

.home-showcase__intro {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.home-showcase__brand {
  display: inline-flex;
  margin: 0 0 28px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.home-showcase h1 {
  margin: 0;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.home-showcase__intro > p:last-child {
  max-width: 650px;
  margin: 25px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.58;
}

.home-showcase__prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 80px 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.home-showcase__prompt span:last-child { color: var(--ink); font-size: 16px; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 0 auto;
  gap: 18px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 18px 50px -44px rgba(26,26,26,.42);
  transition: transform .22s ease, box-shadow .22s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -42px rgba(26,26,26,.48);
}

.showcase-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 12px;
  padding: 0 3px 13px;
}

.showcase-card__tag,
.showcase-card__proof {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.showcase-card__tag { background: var(--ink); color: var(--bg); }
.showcase-card__proof { border: 1px solid var(--line); color: var(--muted); }

.showcase-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  background: var(--card-muted);
  filter: saturate(.82) contrast(.98);
}

.showcase-card__image--pm { object-position: center; }
.showcase-card--cleaning .showcase-card__image { object-position: center 54%; }

.showcase-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 4px 3px;
}

.showcase-card h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.showcase-card p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.showcase-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 9px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: background .18s ease, transform .18s ease;
}

.showcase-card__button:hover { background: #000; transform: translateY(-1px); }
.showcase-card__button span { font-size: 17px; line-height: 1; }

/* PM page */
.pm-hero { padding: 70px 0 38px; }

.pm-hero__layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); grid-template-areas: "copy video" "proof proof"; align-items: center; gap: 34px; }
.pm-hero__copy { grid-area: copy; }
.pm-hero__video-wrap { grid-area: video; }

.pm-hero h1 { max-width: 690px; font-size: clamp(39px, 5.1vw, 65px); }

/* Keep the highlight behind its own glyphs when the inline wraps to a new line. */
.pm-hero h1 .hi {
  background: linear-gradient(to bottom, transparent .24em, var(--hi) .24em);
}

.pm-hero__lead { max-width: 610px; margin: 26px 0 0; color: var(--ink-soft); font-size: 18px; }
.pm-hero__promise { max-width: 610px; margin: 17px 0 0; padding-left: 15px; border-left: 3px solid var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.4; }

.cta-note { max-width: 600px; margin: 13px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.pm-hero__video-wrap { padding: 12px; border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + 4px); background: rgba(255,255,255,.72); }
.kinescope-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: var(--radius); background: #0d0d0c; box-shadow: 0 24px 50px -34px rgba(0,0,0,.7); }
.kinescope-facade__mount { position: absolute; inset: 0; }
.kinescope-player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.kinescope-facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kinescope-facade::after { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 34%,rgba(0,0,0,.54)); content: ""; pointer-events: none; }
.kinescope-facade__play { position: absolute; z-index: 1; top: 50%; left: 50%; display: inline-flex; min-height: 52px; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; background: rgba(15,15,14,.88); color: #fff; font: 600 14px/1.2 Inter,Arial,sans-serif; cursor: pointer; transform: translate(-50%,-50%); backdrop-filter: blur(10px); white-space: nowrap; }
.kinescope-facade__play:hover { background: #111; }
.kinescope-facade__play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.kinescope-facade__icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 12px; padding-left: 2px; }
.kinescope-facade.is-player-loading .kinescope-facade__play { cursor: wait; opacity: .72; }
.kinescope-facade.is-player-loading .kinescope-facade__icon { animation: kinescope-loading .8s linear infinite; color: transparent; border: 2px solid rgba(17,17,17,.24); border-top-color: #111; background: #fff; }
.kinescope-facade.is-player-ready::after,.kinescope-facade.is-player-ready .kinescope-facade__poster,.kinescope-facade.is-player-ready .kinescope-facade__play { display: none; }
@keyframes kinescope-loading { to { transform: rotate(360deg); } }
@media (max-width:520px) {
  .kinescope-facade__play { min-height: 46px; padding: 10px 14px; font-size: 12px; }
  .kinescope-facade__icon { width: 24px; height: 24px; }
}
.pm-hero__video-caption { margin: 15px 7px 5px; }
.pm-hero__video-caption strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.pm-hero__video-caption span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.proof-strip { grid-area: proof; display: grid; grid-template-columns: .78fr 1.22fr 1fr .82fr; gap: 0; margin-top: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.68); }
.proof-strip__item { min-height: 110px; padding: 21px 22px; border-right: 1px solid var(--line); }
.proof-strip__item:last-child { border-right: 0; }
.proof-strip__num { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.proof-strip__num--sentence { font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.proof-strip__caption { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.system-map { display: grid; grid-template-columns: 1.3fr .7fr .7fr; grid-auto-rows: minmax(185px, auto); gap: 14px; }
.system-map__cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 185px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.system-map__cell--large { grid-row: span 2; background: var(--card-muted); }
.system-map__cell--dark { background: var(--dark); color: var(--bg); }
.system-map__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 500; }
.system-map__cell--dark .system-map__top { color: rgba(245,243,238,.62); }
.system-map__cell h3 { margin: 28px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.system-map__cell--large h3 { max-width: 390px; font-size: 31px; }
.system-map__cell p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.system-map__cell--dark p { color: rgba(245,243,238,.72); }
.section--mechanism .section-heading { margin-bottom: 30px; }
.section--mechanism .section-heading p { max-width: 760px; font-size: 17px; line-height: 1.45; }
.section--mechanism .system-map__top { color: #605e58; }
.section--mechanism .system-map__cell h3 { font-size: 26px; font-weight: 600; }
.section--mechanism .system-map__cell p { font-size: 14px; line-height: 1.45; }
.section--mechanism .system-map__cell--large > div:last-child { margin-bottom: 75px; }
.section--mechanism .system-map__cell--large h3 { max-width: 430px; font-size: clamp(27px, 2.15vw, 30px); line-height: 1.1; }
.section--mechanism .system-map__cell--large p { max-width: 410px; font-size: 14px; }
.section--mechanism .system-map__cell--dark .system-map__top { color: rgba(245,243,238,.7); }
.section--mechanism .system-map__cell--dark p { color: rgba(245,243,238,.88); }

.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fit-grid--three { grid-template-columns: repeat(3, 1fr); }
.fit-grid--situations { grid-template-columns: repeat(3, 1fr); }
.section--situations .container { width: min(100% - 48px, 1280px); }
.section--situations .section-heading p { margin-top: 13px; font-size: 17px; line-height: 1.45; }
.section--situations .fit-grid { margin-top: 0; }
.section--situations .fit-card { min-height: 326px; padding: 34px 30px; }
.section--situations .fit-card__count { color: var(--ink-soft); font-size: 16px; font-weight: 500; line-height: 1.4; }
.section--situations .fit-card h3 { margin-top: 22px; font-size: 22px; line-height: 1.18; }
.section--situations .fit-card p { margin-top: 13px; font-size: 14.5px; line-height: 1.45; }
.section--situations .context-cta { margin-top: 26px; padding-top: 20px; }
.section--situations .context-cta p { max-width: 480px; font-size: 16px; line-height: 1.35; }
.section--situations .context-cta p span, .section--situations .context-cta p strong { display: block; }
.section--situations .context-cta p strong { margin-top: 3px; font-weight: 600; }
.section--situations .context-cta .button { min-height: 53px; padding: 13px 30px; font-size: 15px; }
.fit-card { display: flex; flex-direction: column; min-height: 290px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.fit-card__count { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.fit-card h3 { margin: 32px 0 0; font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1.18; }
.fit-card p { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.fit-card__tag { width: fit-content; margin-top: auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink-soft); font-size: 11.5px; font-weight: 500; }

.handoff-promise { display: grid; grid-template-columns: minmax(250px, .74fr) minmax(0, 1.26fr); gap: 32px; margin-bottom: 14px; padding: 30px; border-radius: var(--radius-lg); background: var(--dark); color: var(--bg); }
.handoff-promise__intro { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.handoff-promise__intro span { color: rgba(245,243,238,.62); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.handoff-promise__intro strong { max-width: 350px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.handoff-promise__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid rgba(245,243,238,.16); border-radius: var(--radius); list-style: none; background: rgba(245,243,238,.16); }
.handoff-promise__steps li { min-height: 114px; padding: 18px; background: #222220; }
.handoff-promise__steps span { display: block; color: rgba(245,243,238,.55); font-size: 11px; }
.handoff-promise__steps strong { display: block; margin-top: 18px; font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.handoff-promise__steps small { display: block; margin-top: 6px; color: rgba(245,243,238,.62); font-size: 12px; line-height: 1.4; }
.control-grid .fit-card { min-height: 245px; }

.pm-author { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: stretch; gap: 42px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.pm-author h2 { max-width: 680px; margin: 0; font-size: clamp(31px, 4vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.pm-author__photo { position: relative; min-height: 520px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #d9d6ce; }
.pm-author__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.pm-author__photo::after { position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(23,23,22,.48)); content: ""; }
.pm-author__photo figcaption { position: absolute; z-index: 1; right: 15px; bottom: 15px; left: 15px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); background: rgba(23,23,22,.72); color: var(--bg); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.pm-author__photo figcaption strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }

.lead-page { display: grid; min-height: calc(100vh - 64px); padding-top: 72px; place-items: center; }
.lead-page__card { width: 100%; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.66); }
.lead-page h1 { max-width: 690px; margin: 0; font-size: clamp(39px, 5vw, 61px); font-weight: 500; letter-spacing: -.052em; line-height: 1; }
.lead-page__intro { max-width: 640px; margin: 22px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.lead-page__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lead-page__note { max-width: 555px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.text-link { display: inline-flex; gap: 7px; margin-top: 19px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pm-author__photo figcaption span { display: block; margin-top: 3px; color: rgba(245,243,238,.72); font-size: 11.5px; }
.pm-author__content { align-self: center; padding: 10px 16px 10px 0; }
.pm-author__copy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.pm-author__copy p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.section-footnote { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }

.case-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case-preview__card { display: flex; flex-direction: column; min-height: 350px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.case-preview__card--featured { background: var(--card-muted); }
.case-preview__card--featured .case-preview__value:not(.case-preview__value--plain) { font-size: clamp(28px, 3vw, 36px); }
.case-preview__top { display: flex; align-items: center; gap: 12px; }
.case-preview__avatar { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; background: var(--card-muted); }
.case-preview__name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.case-preview__city { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.case-preview__value { margin: 30px 0 0; font-size: 32px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.case-preview__value--plain { font-size: 17px; letter-spacing: -.025em; line-height: 1.2; }
.case-preview__value--plain span,
.case-preview__value--plain strong { display: block; }
.case-preview__value--plain strong { margin-top: 8px; font-size: clamp(24px, 2vw, 30px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.case-preview__desc { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.case-preview__desc strong, .case-preview__desc span { display: block; }
.case-preview__desc strong { color: var(--ink-soft); font-weight: 500; }
.case-preview__desc span { margin-top: 4px; }
.case-preview__link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.work-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-flow__step { min-height: 270px; padding: 25px 22px; border-right: 1px solid var(--line); }
.work-flow__step:last-child { border-right: 0; }
.work-flow__number { color: var(--muted); font-size: 12px; font-weight: 500; }
.work-flow h3 { margin: 58px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.work-flow p { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }

.launch-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.launch-cost__option { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-height: 240px; padding: 28px; background: var(--card); }
.launch-cost__channel { grid-column: 1 / -1; align-self: start; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.launch-cost__option div { align-self: end; }
.launch-cost__option strong { display: block; font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.launch-cost__option small { display: block; max-width: 210px; margin-top: 9px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.launch-cost__included { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 28px; padding: 26px 28px; background: var(--card-muted); }
.launch-cost__included span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.launch-cost__included strong { display: block; max-width: 420px; margin-top: 7px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.launch-cost__included .button { width: max-content; }
.launch-cost__option--trial { grid-column: 1 / -1; min-height: 204px; }
.launch-cost__included--trial { display: block; }
.trial-work__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 18px 0 0; list-style: none; }
.trial-work__steps li { padding-left: 14px; border-left: 1px solid var(--line); }
.trial-work__steps strong { margin: 0; font-size: 15px; }
.trial-work__steps p { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.42; }
.trial-decision { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.trial-decision strong { margin: 0; }
.launch-cost__included--trial .button { margin-top: 24px; }
.trial-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; list-style: none; font-size: 18px; font-weight: 500; letter-spacing: -.02em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq__answer { max-width: 720px; padding: 0 0 22px; color: var(--muted); font-size: 15px; }

.final-cta { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card-muted); }
.final-cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px; }
.final-cta h2 { max-width: 670px; margin: 0; font-size: clamp(31px, 4.3vw, 47px); font-weight: 500; letter-spacing: -.04em; line-height: 1.07; }
.final-cta p { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.context-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.context-cta p { max-width: 430px; margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.mobile-contact-cta { display: none; }

.site-footer {
  padding: 30px 0 0;
  border-top: 1px solid #dedede;
  background: #f1f2f2;
  color: var(--ink);
}

/* Компактный подвал: пропорции повторяют прежний живой сайт, без «лендинговой» тяжести. */
.site-footer__inner,
.site-footer__grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  align-items: start;
  gap: 18px;
  min-height: 220px;
}

.site-footer__grid {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.site-footer .brand {
  gap: 8px;
  max-width: 155px;
  white-space: nowrap;
}

.site-footer .brand::after { font-size: 17px; }
.site-footer .brand__dot { width: 17px; height: 33px; margin: 0; }
.site-footer .brand__dot::after { inset: 7px auto auto 5px; }

.site-footer__copy {
  max-width: 205px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.site-footer .footer-links a {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}

.site-footer .footer-links a:hover { background: #fff; }
.site-footer .footer-links a[href*="t.me"] { border-color: #34499d; background: #4058b5; color: #fff; }
.site-footer .footer-links a[href*="t.me"]:hover { background: #34499d; }

.site-footer .footer-note {
  max-width: 230px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.site-footer .footer-note br { display: none; }
.site-footer .footer-note a { display: block; width: fit-content; margin-bottom: 4px; color: var(--ink-soft); }
.site-footer .footer-note a:hover { color: var(--ink); }
.site-footer .footer-note a:last-of-type { margin-bottom: 14px; }

/* Точная композиция фрейма Footer - footer из Figma — используется на главной и странице ПМ. */
.site-footer--classic { min-height: 0; padding: 0; border-top: 1px solid rgba(26, 26, 26, .08); }
.site-footer__classic {
  position: relative;
  width: 1200px;
  height: 341px;
  margin: 0 auto;
}
.site-footer__classic .brand--figma { position: absolute; top: 30px; left: 60px; display: flex; align-items: flex-start; gap: 10px; }
.site-footer__classic .brand--figma::after { content: none; }
.site-footer__classic .brand--figma .brand__mouse { width: 24px; height: 40px; }
.site-footer__classic .brand--figma .brand__wordmark { width: 137px; height: 29.281px; margin-top: 5px; }
.site-footer__actions { position: absolute; top: 35px; left: 279px; display: flex; gap: 15px; }
.site-footer__actions a,
.site-footer__legal a,
.site-footer__top {
  display: inline-flex; align-items: center; justify-content: center; min-height: 29px;
  border: 1px solid var(--ink); border-radius: var(--pill); color: var(--ink);
  font-family: "Jost", "Futura PT", Futura, Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 1; transform-origin: center; transition: transform 500ms cubic-bezier(.22,.61,.36,1), background 180ms ease, color 180ms ease; will-change: transform;
}
.site-footer__actions a { width: 140px; }
.site-footer__actions a:nth-child(3) { width: 180px; border-color: #34499d; background: #4058b5; color: #fff; }
/* «Наверх» лежит в правовом ряду, но на desktop продолжает ряд основных ссылок.
   Координаты отсчитываются от .site-footer__legal (60, 79), поэтому нужные
   784 и 35 превращаются в 724 и −44. Селектор с родителем обязателен: иначе
   ширину перебивает соседнее `.site-footer__legal a { width: max-content }`. */
.site-footer__legal a.site-footer__top { position: absolute; top: -44px; left: 724px; width: 140px; padding: 0; background: #111; color: #fff; }
.site-footer__actions a:hover, .site-footer__legal a:hover, .site-footer__top:hover { position: relative; z-index: 1; background: #fff; color: var(--ink); transform: scale(1.08); }
.site-footer__actions a:nth-child(3):hover { background: #34499d; color: #fff; }
.site-footer__legal a.site-footer__top:hover { position: absolute; background: #111; color: #fff; }
.site-footer__strategy { position: absolute; top: 35px; left: 972px; width: 168px; height: 36.921px; }
/* 13px: при 14px строка «ИП Козьмин Павел Александрович» в Jost занимает
   ровно 221px и упирается в ширину блока, из-за чего рвётся на две. */
.site-footer__requisites { position: absolute; top: 102px; left: 919px; width: 221px; margin: 0; color: var(--ink); font-family: "Jost", "Futura PT", Futura, Arial, sans-serif; font-size: 13px; font-weight: 400; line-height: 23px; text-align: right; }
.site-footer__requisites-mobile { display: none; }
.site-footer__legal { position: absolute; top: 79px; left: 60px; display: grid; gap: 15px; }
.site-footer__legal a { justify-content: center; width: max-content; padding: 0 20px; }
.site-footer__legal a[href="/legal/offer/"] { width: 200px; }
.site-footer__legal a[href="/legal/privacy/"] { width: 255px; }
.site-footer__legal a[href="/legal/consent/"] { width: 347px; font-size: 14px; letter-spacing: normal; }
.site-footer__meta { position: absolute; top: 267px; left: 236px; width: 728px; margin: 0; color: rgba(0,0,0,.62); font-family: "Jost", "Futura PT", Futura, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 23px; text-align: center; }
.site-footer__meta-mobile { display: none; }
.site-footer__meta-desktop { white-space: nowrap; }
.site-footer__meta::before { position: absolute; top: -21px; left: -211px; width: 1150px; height: .5px; background: var(--ink); content: ""; }

:focus-visible { outline: 3px solid rgba(26,26,26,.42); outline-offset: 3px; }
.brand:focus-visible { border-radius: 6px; }

/* Desktop typography pass: keep the existing mobile layout untouched while
   making the reading order clearer on wide screens. */
@media (min-width: 981px) {
  .section-heading h2,
  .pm-author h2,
  .final-cta h2,
  .fit-card h3,
  .work-flow h3 { text-wrap: balance; }

  .section-heading p,
  .pm-author__copy p,
  .fit-card p,
  .work-flow p,
  .trial-work__steps p,
  .faq__answer,
  .final-cta h2 + p { text-wrap: pretty; }

  .section--mechanism .system-map__cell h3,
  .section--mechanism .system-map__cell--large h3 { font-weight: 500; }

  .section--handoff .section-heading p { max-width: 820px; line-height: 1.5; }
  .handoff-promise__steps small { color: rgba(245,243,238,.72); font-size: 13px; line-height: 1.45; }
  .control-grid .fit-card p,
  .work-flow p { font-size: 14.5px; line-height: 1.5; }

  .launch-cost__option small { font-size: 13.5px; line-height: 1.45; }
  .trial-work__steps strong,
  .trial-decision strong { font-weight: 500; }
  .trial-work__steps p { font-size: 14px; line-height: 1.45; }
  .trial-note { max-width: 980px; font-size: 13px; line-height: 1.5; }

  .faq__answer { font-size: 16px; line-height: 1.55; }
  .final-cta h2 + p { font-size: 16px; line-height: 1.5; }

  .proof-strip__num,
  .case-preview__value,
  .launch-cost__option strong { font-variant-numeric: tabular-nums; }
}

@media (max-width: 980px) {
  .top-nav, .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .header-action { display: none; }
  .home-hero h1 { font-size: clamp(40px, 7.6vw, 64px); }
  .route-board { grid-template-columns: 1fr; }
  .route-board__side { min-height: 230px; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card--next { min-height: 220px; }
  .home-showcase { padding-top: 68px; }
  .pm-hero__layout { grid-template-columns: 1fr; grid-template-areas: "copy" "proof" "video"; }
  .pm-hero__video-wrap { max-width: 720px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip__item:nth-child(2) { border-right: 0; }
  .proof-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .system-map { grid-template-columns: 1fr 1fr; }
  .system-map__cell--large { grid-column: span 2; grid-row: auto; }
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .fit-grid--three { grid-template-columns: repeat(3, 1fr); }
  .fit-grid--situations { grid-template-columns: repeat(3, 1fr); }
  .handoff-promise { grid-template-columns: 1fr; }
  .handoff-promise__intro { min-height: 150px; }
  .pm-author { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 28px; }
  .pm-author__copy { grid-template-columns: 1fr; gap: 14px; }
  .work-flow { grid-template-columns: 1fr 1fr; }
  .work-flow__step:nth-child(2) { border-right: 0; }
  .work-flow__step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .launch-cost__included { grid-template-columns: 1fr 1fr; }
  .launch-cost__included .button { grid-column: 1 / -1; }
  .trial-work__steps { grid-template-columns: 1fr 1fr; }
  .site-footer__inner,
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-note { grid-column: span 2; }
  .site-footer--classic { min-height: 0; padding: 0; }
  .site-footer__classic { width: min(100% - 32px, 960px); height: 341px; min-height: 0; }
  .site-footer__classic .brand--figma { left: 0; }
  .site-footer__actions { left: 190px; gap: 8px; }
  .site-footer__actions a { width: 112px; }
  .site-footer__actions a:nth-child(3) { width: 152px; }
  /* 190 + 112 + 8 + 112 + 8 + 152 + 8 = 590; legal здесь стоит на left: 0 */
  .site-footer__legal a.site-footer__top { top: -44px; left: 590px; width: 112px; }
  .site-footer__legal { left: 0; }
  .site-footer__strategy { left: auto; right: 0; }
  .site-footer__requisites { left: auto; right: 0; }
  .site-footer__meta { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .desktop-break { display: none; }
  html { scroll-behavior: auto; }
  .container, .container-narrow { width: min(100% - 32px, var(--content)); }
  .section--case-proof .container { width: min(100% - 32px, 1280px); }
  .section--situations .container { width: min(100% - 32px, 1280px); }
  .site-header__inner { width: min(100% - 32px, var(--content)); min-height: 58px; }
  .brand { font-size: 14px; }
  .site-header .brand--figma { gap: 7px; }
  .site-header .brand--figma .brand__mouse { width: 17px; height: 28px; }
  .site-header .brand--figma .brand__wordmark { width: 116px; height: 24.8px; margin-top: 3px; }
  .section { padding: 66px 0; }
  .section--tight { padding: 48px 0; }
  .home-hero, .pm-hero { padding: 44px 0 26px; }
  .home-hero h1 { font-size: clamp(38px, 11.1vw, 52px); letter-spacing: -.055em; }
  .pm-hero h1 { font-size: clamp(36px, 10.2vw, 44px); letter-spacing: -.052em; }
  .home-hero__lead, .pm-hero__lead { margin-top: 20px; font-size: 16px; }
  .pm-hero__promise { margin-top: 15px; font-size: 15.5px; }
  .home-hero__note { align-items: flex-start; margin-top: 25px; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .route-board { margin-top: 40px; border-radius: var(--radius); }
  .route-board__main, .route-board__side { padding: 20px; }
  .route-board__topline { margin-bottom: 18px; font-size: 10.5px; }
  .route-path { grid-template-columns: 1fr 1fr; gap: 8px; }
  .route-step { min-height: 135px; padding: 15px; }
  .route-step::after { display: none; }
  .route-step__number { margin-bottom: 24px; }
  .route-board__side { min-height: 205px; }
  .direction-card, .direction-card__body { min-height: 430px; }
  .direction-card__body { padding: 22px; }
  .direction-card h3 { max-width: 295px; font-size: 32px; }
  .direction-card p { max-width: 285px; font-size: 14px; }
  .direction-card__image { width: 56%; opacity: .75; }
  .direction-card__veil { background: linear-gradient(90deg, rgba(255,255,255,.97) 12%, rgba(255,255,255,.82) 54%, rgba(255,255,255,.1) 100%); }
  .direction-card__footer { align-items: flex-start; flex-direction: column; }
  .direction-card--next { min-height: 220px; }
  .home-showcase { padding: 52px 0 68px; }
  .home-showcase__brand { margin-bottom: 22px; }
  .home-showcase h1 { font-size: clamp(38px, 11vw, 50px); }
  .home-showcase__intro > p:last-child { margin-top: 20px; font-size: 15px; }
  .home-showcase__prompt { margin-top: 54px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 14px; }
  .showcase-card { min-height: 535px; padding: 13px; border-radius: var(--radius); }
  .showcase-card__topline { padding: 0 1px 11px; }
  .showcase-card__tag, .showcase-card__proof { padding: 5px 8px; font-size: 10px; }
  .showcase-card__image { border-radius: 12px; }
  .showcase-card__content { padding: 22px 5px 4px; }
  .showcase-card h2 { font-size: 27px; }
  .showcase-card__button { min-height: 50px; border-radius: 12px; }
  .principle-grid { grid-template-columns: 1fr; gap: 0; }
  .principle { padding: 22px 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top-color: var(--ink); }
  .principle h3 { margin-top: 24px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { margin-top: 14px; font-size: 15px; }
  .pm-hero__video-wrap { padding: 8px; border-radius: var(--radius); }
  .pm-hero__video-caption { margin: 13px 6px 5px; }
  .proof-strip { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; border-radius: var(--radius-sm); }
  .proof-strip__item { min-height: 105px; padding: 17px 16px; }
  .proof-strip__num { font-size: 24px; }
  .proof-strip__num--sentence { font-size: 18px; }
  .system-map { grid-template-columns: 1fr; gap: 10px; }
  .system-map__cell, .system-map__cell--large { grid-column: auto; min-height: 170px; padding: 21px; }
  .system-map__cell--large h3 { font-size: 27px; }
  .section--mechanism .system-map__cell h3 { font-size: 22px; }
  .section--mechanism .system-map__cell--large > div:last-child { margin-bottom: 0; }
  .section--mechanism .system-map__cell--large h3 { font-size: 27px; }
  .fit-grid { grid-template-columns: 1fr; gap: 10px; }
  .fit-grid--three { grid-template-columns: 1fr; }
  .fit-grid--situations { grid-template-columns: 1fr; }
  .handoff-promise { gap: 22px; padding: 22px; border-radius: var(--radius); }
  .handoff-promise__intro { min-height: 145px; }
  .handoff-promise__steps { grid-template-columns: 1fr; }
  .handoff-promise__steps li { min-height: 108px; }
  .fit-card { min-height: 220px; padding: 21px; }
  .fit-card h3 { margin-top: 24px; }
  .section--situations .fit-card { min-height: 250px; padding: 24px; }
  .section--situations .fit-card__count { font-size: 15px; }
  .section--situations .fit-card h3 { margin-top: 22px; font-size: 21px; }
  .section--situations .fit-card p { font-size: 14px; }
  .section--situations .section-heading p { font-size: 16px; }
  .pm-author { grid-template-columns: 1fr; gap: 25px; padding: 15px; border-radius: var(--radius); }
  .pm-author__photo { min-height: 410px; }
  .pm-author__content { padding: 4px 7px 8px; }
  .pm-author h2 { font-size: 31px; }
  .lead-page { min-height: auto; padding-top: 48px; }
  .lead-page__card { padding: 24px 17px; border-radius: var(--radius); }
  .lead-page h1 { font-size: clamp(38px, 10.4vw, 48px); }
  .lead-page__intro { margin-top: 18px; font-size: 15px; }
  .lead-page__actions { display: grid; grid-template-columns: 1fr; }
  .case-preview { grid-template-columns: 1fr; gap: 10px; }
  .case-preview__card { min-height: 270px; padding: 21px; }
  .case-preview__value { margin-top: 23px; }
  .work-flow { grid-template-columns: 1fr; }
  .work-flow__step, .work-flow__step:nth-child(2) { min-height: 205px; padding: 21px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-flow__step:last-child { border-bottom: 0; }
  .work-flow h3 { margin-top: 32px; }
  .launch-cost { grid-template-columns: 1fr; }
  .launch-cost__option { grid-template-columns: 1fr 1fr; min-height: 220px; padding: 22px; }
  .launch-cost__included { grid-column: auto; grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .launch-cost__included .button { grid-column: auto; width: 100%; }
  .launch-cost__option--trial { grid-column: auto; }
  .trial-work__steps { grid-template-columns: 1fr; gap: 14px; }
  .trial-decision { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; padding-top: 20px; }
  .faq summary { padding: 17px 0; font-size: 16px; }
  .final-cta { padding: 23px; border-radius: var(--radius); }
  .final-cta__grid { grid-template-columns: 1fr; gap: 22px; }
  .final-cta h2 { font-size: 32px; }
  .final-cta__actions { justify-content: stretch; }
  .context-cta { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 24px; padding-top: 20px; }
  .context-cta p { font-size: 16px; }
  .context-cta .button { width: 100%; }
  .mobile-contact-cta { position: fixed; z-index: 25; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); left: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 12px 20px; border-radius: var(--pill); background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px rgba(26,26,26,.2); font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .22s ease, transform .22s ease; }
  .mobile-contact-cta svg { width: 17px; height: 17px; }
  .mobile-contact-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  html[data-cookie-consent="notice"] .mobile-contact-cta { opacity: 0; pointer-events: none; transform: translateY(14px); }
  .site-footer { padding: 26px 0 0; }
  .site-footer__inner,
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__grid { width: min(100% - 32px, var(--content)); }
  .site-footer .brand { font-size: 0; }
  .site-footer .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
  .site-footer .footer-links a { min-height: 46px; padding: 10px 12px; font-size: 13px; }
  .site-footer .footer-links a[href*="t.me"] { grid-column: span 2; }
  .site-footer .footer-note { grid-column: auto; }
  /* Мобильный подвал живёт в обычном потоке, а не на пиксельных координатах
     из Figma. Абсолютные top/left и фиксированные ширины кнопок ломались на
     реальном iPhone: там нет шрифта Futura, подставляется системный, буквы
     шире — и текст вылезал за границы кнопок. Здесь ширину задаёт сам текст,
     поэтому подвал переживает любой шрифт и любую ширину экрана. */
  /* Геометрия мобильного фрейма Figma 2357:1009 (390 × 371): поля по 35 px,
     контент 320 px, кнопки высотой 23 px, вертикальный шаг рядов 32 px. */
  .site-footer--classic { min-height: 0; padding: 0; }
  /* Вертикальные зазоры из макета: логотип → ссылки 24, ссылки → правовые 9,
     правовые → реквизиты 25, реквизиты → сноска 31 (с разделителем внутри). */
  .site-footer__classic {
    display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
    /* На ширинах 375–414 px держим рабочую область подвала около 344 px.
       Поэтому композиция с тремя кнопками в первом ряду выглядит одинаково
       и на iPhone SE, и на iPhone XR. На более широких экранах остаются поля
       из макета, на узких — безопасные поля по 16 px. */
    width: min(calc(100% - clamp(32px, calc(100vw - 344px), 70px)), 460px);
    height: auto; min-height: 0; padding: 30px 0 23px;
  }
  .site-footer__actions { margin-top: 15px; }
  .site-footer__requisites { margin-top: 16px; }
  .site-footer__meta { margin-top: 22px; }
  .site-footer__classic > * { position: static; inset: auto; transform: none; }
  .site-footer__classic .brand--figma { position: static; inset: auto; gap: 7px; max-width: 60%; }
  .site-footer__classic .brand--figma .brand__mouse { width: 17px; height: 28px; }
  .site-footer__classic .brand--figma .brand__wordmark { width: 116px; height: 24.8px; margin-top: 3px; }
  /* Единственный элемент вне потока: подпись «Стратегия 3.0» стоит справа от
     логотипа, как в Figma, и не занимает собственной строки. */
  .site-footer__strategy { position: absolute; top: 30px; right: 0; width: 126px; height: 27.691px; }
  /* Порядок блоков как во фрейме Figma 2357:1009 (390 × 371): логотип,
     ссылки, правовые кнопки, реквизиты, сноска про Meta. В разметке реквизиты
     стоят раньше правового блока, поэтому порядок задаётся здесь. */
  /* Порядок и строки как в мобильном фрейме Figma 2357:1009 (390 × 371):
     1) логотип и «Стратегия 3.0»;
     2) блог + YouTube + Telegram;
     3) «Договор-оферта» и «Наверх» справа — одной строкой;
     4) «Политика конфиденциальности»;
     5) «Согласие на обработку персональных данных»;
     6) реквизиты, разделитель, сноска про Meta по центру. */
  .site-footer__classic .brand--figma { order: 1; }
  .site-footer__actions { order: 2; display: flex; flex-wrap: wrap; gap: 9px 5px; width: 100%; }
  .site-footer__legal { order: 3; }
  .site-footer__requisites { order: 4; }
  .site-footer__meta { order: 5; }
  .site-footer__strategy { order: 0; }
  /* Ширины кнопок — из макета, в долях от контента 320 px. Проценты, а не
     пиксели: при другой ширине экрана пропорции макета сохраняются. Ширина
     задана через min-width, поэтому кнопка не станет уже макета, но вырастет,
     если текст вдруг не поместится, — и подвал не разъедется. */
  /* 12px Jost по ширине строки совпадает с 15px FuturaPT из макета: замеры
     дали 52.0 против 52 у «Мой блог» и 110.8 против 110 у «Написать в
     Telegram». Поэтому надписи занимают ровно столько же места, сколько в
     Figma, и ряды складываются так же. */
  .site-footer__actions a, .site-footer__legal a, .site-footer__legal a.site-footer__top {
    width: auto; min-height: 23px; padding: 0 4px; font-size: 12px;
    letter-spacing: normal; white-space: nowrap; text-align: center;
  }
  /* width: auto обязателен в каждом из этих правил: планшетная ветка задаёт
     кнопкам жёсткие 112 и 152 px, а её селекторы с :nth-child специфичнее
     общего правила выше и иначе побеждают на мобильном. */
  .site-footer__actions a:nth-child(1),                       /* 94 / 320 */
  .site-footer__actions a:nth-child(2) { width: auto; min-width: 29.375%; }
  .site-footer__actions a:nth-child(3) { width: auto; min-width: 38.125%; } /* 122 / 320 */
  /* Сетка, а не flex-wrap: во flex-варианте принудительный перенос делается
     через flex-basis: 100%, и он же растягивал две нижние кнопки на всю
     ширину вместо 227 и 270 px из макета. В grid перенос и ширина независимы. */
  .site-footer__legal {
    display: grid; grid-template-columns: 60.9375% 1fr; align-items: center;
    gap: 9px 5px; width: 100%;
  }
  /* Первая колонка — 195 px из макета (60.9375% от 320). Во второй остаётся
     320 − 195 − 5 = 120 px, и «Наверх» занимает в ней 94 px, то есть 78.333%.
     Все размеры в долях, поэтому пропорции макета держатся на любой ширине. */
  .site-footer__legal a[href="/legal/offer/"] { grid-column: 1; width: 100%; min-width: 0; }
  .site-footer__legal a.site-footer__top {
    position: static; grid-column: 2; justify-self: end;
    width: 78.333%; min-width: 0;
  }
  .site-footer__legal a[href="/legal/privacy/"] { grid-column: 1 / -1; width: 70.9375%; }
  /* font-size обязателен: десктопное правило для этой же кнопки задаёт 15px и
     специфичностью перебивает общий мобильный стиль — текст переставал
     помещаться в ширину из макета и выходил за границы кнопки. */
  .site-footer__legal a[href="/legal/consent/"] { grid-column: 1 / -1; width: 84.375%; font-size: 12px; }
  .site-footer__legal a.site-footer__top:hover { position: static; }
  .site-footer__requisites {
    display: block; width: 100%; font-size: 13px; line-height: 20px; text-align: left;
  }
  .site-footer__requisites-desktop { display: none; }
  .site-footer__requisites-mobile { display: inline; }
  .site-footer__requisites-mobile br { display: none; }
  /* position: relative вернуть обязательно: разделитель рисуется через ::before
     самой сноски, и без этого он отвязывается от текста и уезжает наверх. */
  /* В макете сноска шире контента (333 против 320) и набрана мельче кнопок:
     10px Jost дают те же три строки высотой 51 px, что и оригинал. */
  .site-footer__meta {
    position: relative; width: 104.0625%; margin-left: -2.03%; padding: 0;
    font-size: 10px; line-height: 17px; text-align: center;
  }
  /* Разделитель между реквизитами и сноской, как в макете. */
  .site-footer__meta::before { top: -14px; left: 0; width: 100%; height: 1px; }
  .site-footer__meta-desktop { display: none; }
  .site-footer__meta-mobile { display: inline; }
  .site-footer__meta-mobile br { display: none; }
}

@media (max-width: 340px) {
  /* Запас для старых экранов 320 px: сохраняем ту же схему рядов, слегка
     уменьшая только служебные подписи и промежутки между кнопками. */
  .site-footer__actions { gap: 9px 3px; }
  .site-footer__actions a,
  .site-footer__legal a,
  .site-footer__legal a.site-footer__top,
  .site-footer__legal a[href="/legal/consent/"] { font-size: 11px; }
  .site-footer__legal { gap: 9px 3px; }
}

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