/* ==========================================================================
   Fitness Marka / Ирина Кашуба — стили
   Брейкпоинты: ≥1200 desktop · 768–1199 tablet · <768 mobile
   ========================================================================== */

:root {
  --ink: #1C1A19;
  --ink-2: #3B3632;
  --red: #C62433;
  --red-on-dark: #FF8A8F;
  --cream: #F7F3EF;
  --sand: #EADFD4;
  --sand-2: #EFE7DF;
  --dark: #1E1A18;
  --dark-2: #26211E;
  --dark-3: #2C2724;
  --muted: #6A625B;
  --muted-dark: #CFC5BB;
  --line: #E3D9CF;
  --green: #1F7A48;
  --green-bg: #E3F1E8;
  --navy: #1F3A6B;
  --brown: #8A6650;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --container: 1200px;
  --gutter: 20px;
  --section: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow--red { color: var(--red); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1.02; letter-spacing: -.01em; }
.hand { font-family: var(--hand); font-weight: 500; line-height: 1.05; }
.money { font-family: var(--serif); font-weight: 700; line-height: .92; letter-spacing: -.02em; white-space: nowrap; }
.link-u { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 8px; }
.link-u svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(198,36,51,.28); }
.btn--red:hover { color: #fff; background: #B01E2C; transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--ink); height: 48px; padding: 0 22px; font-size: 14px; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(60,40,20,.08); }
.btn--outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); height: 52px; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; height: 48px; font-size: 14px; }
.btn--dark:hover { color: #fff; background: #000; }
.btn--light { background: #fff; color: var(--ink); height: 48px; font-size: 14px; }
.btn--block { width: 100%; }

.round {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; transition: transform .15s ease;
}
.round:hover { color: #fff; transform: translateX(2px); }
.round svg { width: 18px; height: 18px; }
.round--light { background: #fff; color: var(--ink); }
.round--light:hover { color: var(--ink); }
.round--sm { width: 44px; height: 44px; }

/* ---------- Logo ---------- */
.logo {
  --logo-w: 176px;
  display: inline-flex;
  padding: 0;
  border: 0;
  line-height: 0;
  background: transparent;
}
.logo:hover { color: inherit; }
.logo__frame {
  display: block;
  width: var(--logo-w);
  aspect-ratio: 916 / 388;
  overflow: hidden;
  position: relative;
}
/* v0.33.1: файл уже обрезан по прозрачным полям (logo-color-trim, 916×388) — без CSS-кадрирования квадрата. */
.logo__frame picture { display: block; width: 100%; height: 100%; }
.logo__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.header .logo { --logo-w: 168px; }
.logo--on-dark { background: #F7F3EF; border-radius: 8px; padding: 6px 8px; }
/* v0.33.1: в шапке меню (68px) знак 176px с подложкой не помещался и обрезался сверху. */
.menu__head .logo { --logo-w: 112px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247,243,239,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav a[aria-current="page"], .nav a.is-active { color: var(--red); }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { font-size: 14px; font-weight: 600; white-space: nowrap; }
.header__mobile { display: none; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--dark { background: var(--ink); color: #fff; }
.icon-btn--dark:hover { color: #fff; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s;
}
.menu.is-open { visibility: visible; opacity: 1; }
.menu__head { height: 68px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid rgba(255,255,255,.12); }
.menu__nav { flex-grow: 1; padding: 20px var(--gutter) 0; display: flex; flex-direction: column; }
.menu__nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--serif); font-size: 32px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.menu__nav a:last-child { border-bottom: 0; }
.menu__nav a span { font-family: var(--sans); font-size: 12px; color: #A89E95; }
.menu__nav a:hover { color: var(--red-on-dark); }
.menu__foot { padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.menu__phone { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.menu__msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill-link { height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.pill-link--ghost { border: 1px solid rgba(255,255,255,.24); }
.pill-link--white { background: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: 24px; }
.hero__grid { display: grid; grid-template-columns: 640px 1fr; gap: 48px; }
.hero__text { padding-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: 96px; line-height: .92; letter-spacing: -.02em; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.play { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.3; background: none; border: 0; cursor: pointer; padding: 0; }
.play__icon { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--red); }
.play__icon svg { width: 16px; height: 16px; }
.stats { display: flex; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.stat { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1; white-space: nowrap; }
.stat__num--red { color: var(--red); }
.stat__label { font-size: 13px; color: var(--muted); }

.hero__media { position: relative; min-height: 718px; }
.hero__photo { position: absolute; right: 0; top: 0; width: 470px; height: 718px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 32px; }
.chip-money { position: absolute; left: -90px; bottom: 44px; width: 250px; padding: 18px 20px; background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(60,40,20,.14); display: flex; flex-direction: column; gap: 6px; }
.chip-money:hover { color: inherit; }
.chip-money__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.chip-money__value { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1; color: var(--green); }
.chip-money__text { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.chip-name { position: absolute; right: -24px; bottom: 36px; width: 210px; padding: 18px 20px; background: var(--ink); color: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(20,10,5,.25); display: flex; flex-direction: column; gap: 6px; }
.chip-name__motto { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.chip-name__rule { height: 1px; background: rgba(255,255,255,.3); margin: 6px 0; }
.chip-name__name { font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.chip-name__role { font-size: 12px; color: #D6CEC6; line-height: 1.4; }
.hero__caption { display: none; font-size: 13px; line-height: 1.45; color: var(--muted); }
.hero__caption b { color: var(--ink); letter-spacing: .08em; font-weight: 700; }

/* ---------- Why me ---------- */
.why { padding-top: 40px; }
.why__title { display: none; }
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.why__item { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.why__num { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.why__head { font-size: 16px; font-weight: 600; line-height: 1.35; }
.why__text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Directions ---------- */
.dirs { padding-top: var(--section); }
.dirs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.dirs__left { display: flex; align-items: flex-end; gap: 56px; }
.dirs__note { font-size: 28px; color: var(--ink-2); width: 230px; transform: rotate(-4deg); }
.dirs__grid { display: grid; grid-template-columns: repeat(var(--dirs-n, 6), minmax(0,1fr)); gap: 12px; }
.dir { background: #fff; border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; transition: box-shadow .15s ease; }
.dir:hover { color: inherit; box-shadow: 0 10px 30px rgba(60,40,20,.1); }
.dir svg { width: 32px; height: 32px; flex-shrink: 0; }
.dir__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.dir__text { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dir__body { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dir__arrow { display: none; }
.dirs__all-m { display: none; }

/* ---------- Niches ---------- */
.niches { padding-top: var(--section); }
.niches__grid { display: grid; grid-template-columns: 330px 1fr 1fr; gap: 24px; }
.niches__intro { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.niches__intro .h2 { font-size: 48px; line-height: 1.04; }
.niches__intro .h2 span { color: var(--brown); }
.niches__intro p { font-size: 15px; color: var(--ink-2); }
.niche { min-height: 300px; padding: 32px; border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.niche--dark { background: var(--dark-2); color: #fff; }
.niche--sand { background: var(--sand); }
.niche:hover { color: inherit; }
.niche--dark:hover { color: #fff; }
.niche__top { display: flex; flex-direction: column; gap: 10px; }
.niche__label { font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.niche--dark .niche__label { color: var(--muted-dark); }
.niche--sand .niche__label { color: #6A5A4C; }
.niche__title { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.niche__text { font-size: 14px; line-height: 1.5; }
.niche--dark .niche__text { color: #D6CEC6; }
.niche--sand .niche__text { color: #4A413A; }
.niche__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; }
.niche--dark .chip { border: 1px solid rgba(255,255,255,.28); }
.niche--sand .chip { border: 1px solid rgba(28,26,25,.22); }
.niche .round { width: 56px; height: 56px; }

/* ---------- Cases ---------- */
.cases { margin-top: 110px; padding: var(--section) 0; background: #fff; }
.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.cases__intro { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.cases__intro .h2 { font-size: 60px; line-height: 1; }
.cases__intro p { color: var(--ink-2); }
.cases__featured { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-bottom: 24px; }
.cases__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.cases__note { margin-top: 24px; font-size: 12px; color: var(--muted); }
.cases__all-m { display: none; }

/* Featured case */
.case-f { border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.case-f--light { background: var(--cream); }
.case-f--dark { background: var(--dark); color: #fff; }
.case-f__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-f__tag { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.case-f--dark .case-f__tag { color: var(--muted-dark); }
.badge { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--dark { background: var(--ink); color: #fff; }
.badge--light { background: #fff; color: var(--ink); }
.case-f__money { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.case-f__money .money { font-size: 72px; color: var(--red); }
.case-f--dark .case-f__money .money { color: var(--red-on-dark); }
.case-f__money-label { font-size: 15px; font-weight: 600; line-height: 1.3; max-width: 150px; }
.case-f__title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; }
.case-f__client { font-size: 14px; color: var(--muted); }
.case-f--dark .case-f__client { color: var(--muted-dark); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.metric { background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.case-f--dark .metric { background: var(--dark-3); }
.metric__label { font-size: 12px; color: var(--muted); }
.case-f--dark .metric__label { color: var(--muted-dark); }
.metric__value { font-size: 20px; font-weight: 700; white-space: nowrap; }
.delta { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 700; }
.case-f--dark .delta { background: #D9EFE1; color: #17603A; }
.case-f__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; }
.case-f--dark .case-f__foot { border-color: rgba(255,255,255,.18); }
.case-f__calc { font-size: 12px; line-height: 1.5; color: var(--muted); }
.case-f--dark .case-f__calc { color: var(--muted-dark); }
.case-f__btn { display: none; }

/* Compact case */
.case-c { border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.case-c__tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.case-c .money { font-size: 42px; color: var(--red); }
.case-c .money--green { color: var(--green); }
.case-c__label { font-size: 13px; font-weight: 600; margin-top: -6px; }
.case-c__title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.12; }
.case-c__client { font-size: 13px; color: var(--muted); }
.case-c__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.case-c__metric { font-size: 14px; font-weight: 700; }

/* ---------- CTA ---------- */
.cta-wrap { background: #fff; padding-bottom: 0; }
.cta { background: var(--dark); color: #fff; border-radius: 32px; padding: 48px 56px 48px 40px; display: flex; align-items: center; gap: 48px; }
.cta__art { position: relative; width: 250px; height: 230px; flex-shrink: 0; }
.cta__art img { position: absolute; right: 0; bottom: 0; width: 170px; height: 150px; object-fit: cover; border-radius: 24px; }
.cta__note { position: absolute; left: 0; top: 0; width: 240px; font-size: 24px; color: #F2E9E1; transform: rotate(-4deg); }
.cta__body { flex-grow: 1; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta__body p { color: #D6CEC6; max-width: 460px; }
.cta__body .btn { margin-top: 8px; }
.checks { width: 290px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 14px; }
.checks svg { width: 34px; height: 34px; flex-shrink: 0; }

/* ---------- Media ---------- */
.media { background: #fff; padding: 64px 0; }
/* 08.10.2026: один заголовок и одна лента (мероприятия, затем партнёры), без групп. */
.media__inner { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
.media__label { margin: 0; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.media__list { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 16px 28px; font-family: var(--serif); font-size: 28px; font-weight: 700; color: #4A433D; }
.media__list li { white-space: nowrap; display: flex; align-items: center; }
@media (max-width: 1279px) {
  .media__list { display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: 24px 40px; }
}
.media__partner { display: inline-flex; align-items: center; color: inherit; }
.media__partner:hover { opacity: .72; }
.media__logo { display: block; height: var(--logo-h, 32px); width: auto; }
.media__list picture { display: block; }
.media__logo--plate { border-radius: 6px; }
.media__more { font-size: 14px; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--sand-2); padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px; }
.footer__about { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__about p { font-size: 13px; line-height: 1.6; color: #4A413A; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__title { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6A5A4C; margin-bottom: 4px; }
.footer__phone { font-family: var(--serif); font-size: 26px; font-weight: 600; white-space: nowrap; }
.footer__msgs { display: none; }
.footer__col-links { display: contents; }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #D6C9BC; margin-top: 40px; padding-top: 24px; font-size: 12px; color: #5A5049; }

/* ---------- Lead dialog ---------- */
.lead { width: min(480px, calc(100% - 32px)); border: 0; border-radius: 28px; padding: 32px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.lead::backdrop { background: rgba(30,26,24,.6); }
.lead__close { position: absolute; top: 16px; right: 16px; }
.lead h2 { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.05; padding-right: 40px; margin-bottom: 8px; }
.lead p { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input { height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font: inherit; color: inherit; }
.field input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 6px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--red); }
.consent a { text-decoration: underline; }
.lead__ok { display: none; font-size: 15px; font-weight: 600; color: var(--green); }
.lead.is-sent .lead__form { display: none; }
.lead.is-sent .lead__ok { display: block; }

/* ==========================================================================
   CASE PAGE
   ========================================================================== */
.cp { padding: 24px 0 var(--section); }
.cp__inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.cp__hero { display: flex; flex-direction: column; gap: 18px; }
.cp__money { background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.cp__money .money { font-size: 96px; color: var(--red); }
.cp__money p { font-size: 17px; font-weight: 600; line-height: 1.4; max-width: 560px; }
.cp__title { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.02; }
.cp__client { font-size: 14px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi__label { font-size: 12px; color: var(--muted); }
.kpi__value { font-size: 18px; font-weight: 700; white-space: nowrap; }
.kpi__note { font-size: 12px; color: var(--muted); }
.cp__section { display: flex; flex-direction: column; gap: 14px; }
.cp__h2 { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.05; }
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ab__card { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ab__card--a { background: #fff; }
.ab__card--b { background: var(--dark); color: #fff; }
.ab__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.ab__card--a .ab__label { color: var(--red); }
.ab__card--b .ab__label { color: #9FD8B3; }
.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.steps li { display: flex; gap: 16px; background: #fff; border-radius: 18px; padding: 18px; font-size: 15px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--red); line-height: 1; width: 24px; flex-shrink: 0; }
.calc { background: var(--sand); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.calc__row { display: flex; justify-content: space-between; gap: 16px; }
.calc__row span:first-child { color: #4A413A; }
.calc__row span:last-child { font-weight: 700; white-space: nowrap; }
.calc__rule { height: 1px; background: #CDBFB1; }
.calc__total { align-items: baseline; }
.calc__total span:first-child { font-weight: 600; color: var(--ink); }
.calc__total .money { font-size: 36px; color: var(--red); }
.shot { min-height: 260px; border-radius: 22px; border: 1.5px dashed #BFB2A5; background: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 14px; color: var(--muted); }
.cp__cta { background: var(--dark); color: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cp__cta p { color: #D6CEC6; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related a { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.related .money { font-size: 36px; color: var(--red); }
.related span:last-child { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ==========================================================================
   TABLET 768–1199
   ========================================================================== */
@media (max-width: 1199px) {
  :root { --section: 80px; --gutter: 32px; }
  .nav { gap: 18px; }
  .header__phone { display: none; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__title { font-size: 76px; }
  .hero__media { min-height: 620px; }
  .hero__photo { width: 100%; max-width: 420px; height: 620px; }
  .chip-money { left: -24px; }
  .chip-name { right: -12px; }
  .stat { padding: 0 16px; }
  .stat__num { font-size: 40px; }
  .why__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dirs__head { flex-direction: column; align-items: flex-start; }
  .dirs__left { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dirs__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dirs__grid:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .niches__grid { grid-template-columns: 1fr 1fr; }
  .niches__intro { grid-column: 1 / -1; }
  .cases__intro .h2 { font-size: 48px; }
  .cases__featured { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta { flex-wrap: wrap; padding: 40px; }
  .checks { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .media__inner { gap: 24px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1023px) {
  .media__list { grid-template-columns: repeat(3, minmax(0, max-content)); gap: 24px 24px; line-height: 1.15; }
  .media__list li { white-space: normal; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 80px; }
  .hero__media { min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; }
  .hero__photo { position: relative; width: 100%; max-width: 480px; height: 640px; }
  .chip-money { left: -24px; }
  .nav, .header__right { display: none; }
  .header__mobile { display: flex; }
  .header__inner { height: 72px; }
}

/* ==========================================================================
   MOBILE <768
   ========================================================================== */
@media (max-width: 767px) {
  :root { --section: 64px; --gutter: 20px; }
  body { font-size: 15px; }
  .h2 { font-size: 38px; }

  .header { border-bottom: 1px solid #E8DFD6; }
  .header__inner { height: 68px; }
  .header .logo { --logo-w: 128px; padding: 0; border: 0; }

  .hero { padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__text { display: contents; }
  .hero__eyebrow { order: 1; font-size: 10px; letter-spacing: .22em; }
  .hero__title { order: 2; font-size: 56px; }
  .hero__lead { order: 3; font-size: 16px; }
  .hero__media { order: 4; min-height: 0; max-width: none; }
  .hero__caption { order: 5; display: block; margin-top: -6px; }
  .hero__actions { order: 6; flex-direction: column; align-items: stretch; gap: 12px; }
  .stats { order: 7; }
  .hero__actions .btn--red { height: 58px; }
  .play { justify-content: center; height: 52px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 15px; }
  .play br { display: none; }
  .play__icon { width: auto; height: auto; border: 0; }
  .play__icon svg { width: 14px; height: 14px; }
  .hero__photo { position: relative; width: 100%; max-width: none; height: 470px; }
  .hero__photo img { border-radius: 28px; }
  .chip-name { display: none; }
  .chip-money { left: 12px; right: 12px; bottom: 12px; width: auto; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .chip-money__label { display: none; }
  .chip-money__value { font-size: 34px; }
  .chip-money__text { font-size: 12px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; border: 0; padding-top: 4px; margin-top: 0; }
  .stat, .stat:first-child { background: #fff; border-radius: 16px; padding: 14px 12px; border: 0; }
  .stat__num { font-size: 34px; }
  .stat__label { font-size: 11px; line-height: 1.3; }

  .why { padding-top: 56px; }
  .why__title { display: block; font-size: 36px; margin-bottom: 16px; }
  .why__grid { grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 22px; padding: 6px 18px; }
  .why__item { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--sand-2); }
  .why__item:last-child { border-bottom: 0; }
  .why__num { width: 22px; padding-top: 2px; }
  .why__head, .why__text { width: calc(100% - 36px); }
  .why__text { margin-left: 36px; }
  .why__head { font-size: 15px; }

  .dirs__head { margin-bottom: 18px; gap: 18px; }
  .dirs__note { font-size: 24px; width: 260px; transform: rotate(-3deg); }
  .dirs__head .link-u { display: none; }
  .dirs__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .dir { align-items: flex-start; text-align: left; padding: 18px 16px; gap: 10px; border-radius: 18px; }
  .dir svg { width: 28px; height: 28px; }
  .dir:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; align-items: center; gap: 14px; background: var(--ink); color: #fff; }
  .dir:last-child:nth-child(odd) svg { stroke: #fff; }
  .dir:last-child:nth-child(odd) .dir__text { color: #D6CEC6; }
  .dir__body { gap: 10px; align-items: flex-start; }
  .dir:last-child:nth-child(odd) .dir__body { gap: 3px; flex-grow: 1; }
  .dir:last-child:nth-child(odd) .dir__arrow { display: block; width: 18px; height: 18px; }
  .dirs__all-m { display: flex; margin-top: 18px; }

  .niches__grid { grid-template-columns: 1fr; gap: 14px; }
  .niches__intro { margin-bottom: 6px; }
  .niches__intro .h2 { font-size: 38px; }
  .niches__intro p { display: none; }
  .niche { min-height: 0; padding: 24px; border-radius: 24px; gap: 16px; }
  .niche__title { font-size: 32px; }
  .niche__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .niche .round { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; }
  .niche { position: relative; }
  .niche__top { padding-right: 56px; }
  .chip { padding: 7px 12px; font-size: 12px; }
  .chip:nth-child(4) { display: none; }

  .cases { margin-top: 64px; padding: 56px 0; }
  .cases__head { margin-bottom: 24px; }
  .cases__head .link-u { display: none; }
  .cases__intro { gap: 16px; }
  .cases__intro .h2 { font-size: 38px; line-height: 1.02; }
  .cases__intro p { font-size: 14px; }
  .cases__featured { gap: 16px; margin-bottom: 16px; }
  .cases__grid { grid-template-columns: 1fr; gap: 16px; }
  .cases__all-m { display: flex; margin-top: 20px; }
  .case-f { padding: 22px; border-radius: 24px; gap: 14px; }
  .case-f__tag { font-size: 10px; letter-spacing: .18em; }
  .badge { font-size: 11px; padding: 5px 10px; }
  .case-f__money { flex-direction: column; align-items: flex-start; gap: 10px; }
  .case-f__money .money { font-size: 56px; }
  .case-f__money-label { max-width: none; font-size: 14px; }
  .case-f__title { font-size: 26px; }
  .case-f__client { font-size: 13px; }
  .metrics { gap: 8px; }
  .metric { padding: 12px; border-radius: 14px; gap: 4px; }
  .metric__label { font-size: 11px; }
  .metric__value { font-size: 15px; }
  .delta { font-size: 11px; padding: 3px 8px; }
  .case-f__foot { border: 0; padding-top: 0; }
  .case-f__foot .round { display: none; }
  .case-f__calc { display: none; }
  .case-f__btn { display: flex; }
  .case-c { padding: 20px; border-radius: 22px; gap: 8px; }
  .case-c .money { font-size: 42px; }
  .case-c__label { margin-top: 0; font-size: 12px; }
  .case-c__title { font-size: 22px; }
  .case-c__foot { padding-top: 12px; }

  .cta-wrap { padding-bottom: 48px; }
  .cta { flex-direction: column; align-items: stretch; gap: 18px; padding: 28px 22px; border-radius: 28px; }
  .cta__art { width: auto; height: auto; display: flex; align-items: center; gap: 14px; }
  .cta__art picture { order: -1; flex-shrink: 0; }
  .cta__art img { position: static; width: 110px; height: 110px; border-radius: 18px; }
  .cta__note { position: static; width: auto; font-size: 22px; }
  .cta__body { gap: 14px; }
  .cta__body .h2 { font-size: 38px; }
  .cta__body p { font-size: 14px; }
  .cta__body .btn { display: none; }
  .checks { flex-direction: column; gap: 12px; font-size: 14px; }
  .checks svg { width: 26px; height: 26px; }
  .cta__btn-m { display: flex; }

  .media { padding: 0 0 48px; }
  .media__inner { gap: 18px; }
  .media__label { font-size: 10px; }
  .media__list { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; align-items: center; gap: 22px 20px; font-size: 22px; line-height: 1.15; }
  .media__list li { white-space: normal; }
  .media__logo { height: calc(var(--logo-h, 32px) * .8125); }

  .footer { padding: 40px 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer__about { display: none; }
  .footer__contacts { grid-column: 1 / -1; order: -1; }
  .footer__contacts .footer__col-links { display: none; }
  .footer__phone { font-size: 30px; }
  .footer__msgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .footer__legal { flex-direction: column; gap: 4px; margin-top: 28px; padding-top: 18px; font-size: 11px; line-height: 1.6; }

  .lead { padding: 26px 22px; }
  .lead h2 { font-size: 30px; }

  /* case page */
  .cp { padding-top: 20px; }
  .cp__inner { gap: 36px; }
  .cp__hero { gap: 16px; }
  .cp__money { padding: 24px 22px; border-radius: 26px; }
  .cp__money .money { font-size: 68px; }
  .cp__money p { font-size: 15px; }
  .cp__title { font-size: 38px; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .kpi { padding: 14px; border-radius: 16px; }
  .kpi__value { font-size: 16px; }
  .cp__h2 { font-size: 30px; }
  .ab { grid-template-columns: 1fr; }
  .steps li { font-size: 14px; padding: 16px; }
  .calc { font-size: 14px; padding: 20px; }
  .calc__total .money { font-size: 32px; }
  .shot { min-height: 230px; font-size: 13px; }
  .cp__cta { padding: 24px 22px; border-radius: 26px; }
  .cp__cta .btn { width: 100%; }
  .related { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .cta__btn-m { display: none; }
}
