/* MonReels — прототип v3. Монохром + один акцент.
   Сначала телефон (360–430), потом планшет/десктоп.
   ЦВЕТА: только переменные ниже — палитра меняется в одном блоке. */

:root {
  --paper: #F4F3EF;      /* фон страницы */
  --card: #FFFFFF;       /* карточки, поля */
  --ink: #0B0B0D;        /* текст, чёрные кнопки, тёмные блоки */
  --on-ink: #FFFFFF;
  --muted: #5C5C64;      /* второстепенный текст */
  --line: rgba(11, 11, 13, .14);      /* тонкие линии */
  --line-strong: rgba(11, 11, 13, .55);
  --ghost: #DEDCD5;      /* «призрачный» заголовок кейсов */
  --accent: #2B4BFF;     /* ЕДИНСТВЕННЫЙ акцент */
  --accent-hover: #1D3AE6;
  --on-accent: #FFFFFF;
  --mark: rgba(43, 75, 255, .14);     /* подложка под <b> в результатах */
  --header-bg: #F4F3EF;
  --shadow: rgba(11, 11, 13, .16);
  /* служебные — не меняются с палитрой */
  --todo-bg: #fff1a8;
  --todo-line: #d9a400;
  --todo-fg: #5a4300;
  --err: #c62828;

  --display: "Inter Tight", "Arial Black", system-ui, sans-serif;
  --body: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 16px;
  --gut: 16px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.h2, .ghost, .cc h3, .cc-cta b, .step h3 { word-spacing: .09em; }
:focus-visible { outline: 3px solid var(--accent); 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; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
section { padding-block: 64px; position: relative; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: 17px; color: var(--muted); max-width: 56ch; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.note { font-size: 15px; color: var(--muted); font-style: italic; }

/* Заглушки — видно издалека */
.todo {
  display: inline; background: var(--todo-bg); color: var(--todo-fg);
  outline: 1.5px dashed var(--todo-line); outline-offset: 1px; border-radius: 4px;
  padding: 0 .3em; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82em; font-weight: 600;
  font-style: normal; letter-spacing: 0; text-transform: none; line-height: 1.6; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--accent); color: var(--on-accent); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-sm { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 30; background: var(--header-bg);
  /* без backdrop-filter: на айфоне он мигал поверх играющего видео */
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; flex-direction: column; justify-content: center; text-decoration: none; line-height: 1; min-height: 48px; }
.logo b { font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -.04em; }
.logo small { font-size: 10px; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
.nav { display: none; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background-color .15s; }
.nav a:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* Кадры рилсов — чёрно-белые без синей заливки (Рим); видео в окнах кейсов — в цвете */
.duo { position: relative; overflow: hidden; background: var(--ink); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* ===== Первый экран ===== */
.hero { padding-top: 14px; padding-bottom: 56px; overflow: hidden; }
@supports (overflow: clip) { .hero { overflow: clip; overflow-clip-margin: 0; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; grid-template-areas: 'text' 'media' 'act'; }
.hero-text { grid-area: text; }
.hero-media { grid-area: media; position: relative; }
.hero-act { grid-area: act; }

.hero h1 {
  margin-top: 12px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: min(calc((100vw - 2 * var(--gut)) / 8.6), 60px);
  line-height: .95; letter-spacing: -.04em; word-spacing: .1em;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 .l3 { padding-left: 14%; }
.hero h1 .l4 { padding-left: 27%; }
.hero h1 em { font-style: normal; color: var(--accent); }
.circled { position: relative; display: inline-block; }
.circled .mark {
  position: absolute; left: -9%; top: -16%; width: 118%; height: 138%; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}

/* Первый экран: шоурил + большая цифра просмотров (Рим: без большого фото) */
.hero-media { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 18px; align-items: end; }
.hero-media .reel-card { width: 100%; border: 3px solid var(--paper); box-shadow: 0 18px 34px -14px var(--shadow); transform: rotate(-2.5deg); }
.bignum { margin: 0; display: flex; flex-direction: column; min-width: 0; padding-bottom: 6px; }
.bignum b { font-weight: 900; font-size: clamp(88px, 31vw, 150px); line-height: .82; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bignum i { font-style: normal; font-weight: 900; font-size: clamp(36px, 12vw, 60px); line-height: .9; letter-spacing: -.03em; color: var(--accent); text-transform: uppercase; }
.bignum .cap { margin-top: 12px; font-size: 15px; line-height: 1.35; color: var(--muted); max-width: 22ch; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--ink); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .tag {
  position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, .45); padding: 3px 8px; border-radius: 99px;
}

.hero-act { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.hero-cta { display: grid; gap: 10px; order: 1; }

/* Лента клиентов */
.clients { padding-block: 0 8px; border-block: 1px solid var(--line); }
.clients .label { padding-top: 18px; }
.marquee { overflow: hidden; padding-block: 14px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: run 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(calc(-50% - 6px)); } }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 99px;
  background: var(--card); white-space: nowrap; font-weight: 600; font-size: 15px; text-decoration: none; min-height: 52px; box-shadow: inset 0 0 0 1px var(--line);
}
.chip img, .chip .ini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.chip .ini { display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; }
.chip span small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* ===== Кейсы: повёрнутые карточки ===== */
.cases { overflow: hidden; }
.cases .sec-head { margin-bottom: 8px; }
.ghost {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--ghost);
  font-size: min(calc((100vw - 2 * var(--gut)) / 6.1), 150px); line-height: .86; letter-spacing: -.05em;
  text-wrap: balance; position: relative; z-index: 0; margin-top: 8px;
}
.cases-foot { font-size: 16px; color: var(--muted); max-width: 60ch; }
.swipe-hint { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

.cc-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gut) * -1); padding: 26px var(--gut) 36px; scroll-padding-inline: var(--gut);
  scrollbar-width: none; position: relative; z-index: 1; margin-top: -54px;
}
.cc-track::-webkit-scrollbar { display: none; }
.cc {
  flex: 0 0 min(82vw, 330px); scroll-snap-align: center; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: 6px; padding: 10px; text-decoration: none;
  box-shadow: 0 1px 0 var(--line), 0 18px 34px -18px var(--shadow);
  transform: rotate(var(--r, 0deg)); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cc-img { aspect-ratio: 4 / 3; border-radius: 3px; }
.cc-img img { object-position: 50% 22%; }
.cc-img.soon { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ghost) 0 1px, transparent 1px 12px), var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cc-img.soon span { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 4px 10px; border-radius: 99px; }
.cc.dark .cc-img.soon, .cc.accent .cc-img.soon { background: rgba(255,255,255,.08); }
.cc-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 6px 6px; flex: 1; min-width: 0; }
.niche { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
/* Главный результат кейса — крупно, чтобы не дублировать отдельным блоком цифр */
.hit { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.hit b { font-weight: 900; font-size: clamp(40px, 11vw, 56px); line-height: .9; letter-spacing: -.04em; color: var(--accent); }
.hit span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cc.accent .hit b, .cc.dark .hit b { color: #fff; }
.result { font-size: 16px; line-height: 1.4; font-weight: 500; }
.result b { font-weight: 700; background: var(--mark); padding: 0 .15em; border-radius: 3px; }
.views { font-size: 15px; color: var(--muted); line-height: 1.4; }
.views svg { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin-right: 5px; }
.cc .btn { margin-top: auto; align-self: flex-start; }
.cc .note { margin-top: -4px; }
.facts { display: none; }
.cc.accent { background: var(--accent); color: var(--on-accent); }
.cc.accent .niche, .cc.accent .views, .cc.accent .note { color: var(--on-accent); opacity: .8; }
.cc.accent .result b { background: rgba(255, 255, 255, .2); }
.cc.accent .duo { background: var(--ink); }
.cc.accent .duo img { }
.cc.accent .btn-ink { background: var(--on-accent); color: var(--accent); }
.cc.dark { background: var(--ink); color: var(--on-ink); }
.cc.dark .niche, .cc.dark .views { color: var(--on-ink); opacity: .7; }
.cc.dark .result b { background: var(--accent); }
.cc.dark .btn-ink { background: var(--on-ink); color: var(--ink); }
.cc-cta { justify-content: center; gap: 14px; padding: 24px 20px; min-height: 260px; box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; }
.cc-cta b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1.02; letter-spacing: -.04em; }
.cc-cta .btn { align-self: flex-start; }
.ph {
  display: grid; place-items: center; text-align: center; padding: 10px; height: 100%;
  background: repeating-linear-gradient(135deg, #f6e9a6 0 10px, #fff6cc 10px 20px); color: var(--todo-fg); font-size: 12px; font-weight: 600;
}
.muted { color: var(--muted); }
.hint { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* Как работаем */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.step { position: relative; padding: 22px 0 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.step .when { align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--accent); }
.step h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; letter-spacing: -.04em; line-height: 1; padding-right: 64px; }
.step p { color: var(--muted); }
.step .num { position: absolute; right: 0; top: 16px; font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--ghost); }
.first-reels { margin-top: 18px; font-weight: 600; }

/* Команда */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.person { display: flex; flex-direction: column; gap: 8px; }
.person .photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.person .photo .ph { background: repeating-linear-gradient(135deg, var(--ghost) 0 1px, transparent 1px 12px), var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.person h3 { font-size: 17px; font-weight: 700; }
.person p { font-size: 16px; color: var(--muted); }

/* Вопросы */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 17px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); flex: none; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s var(--ease); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* Заявка */
.contact { background: var(--card); border-top: 1px solid var(--line); }
.direct { display: grid; gap: 10px; }
.direct .btn { justify-content: center; }
/* Подвал */
.foot { padding-block: 40px calc(120px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.foot .brand { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 19vw, 200px); letter-spacing: -.06em; color: var(--ink); line-height: .85; }
.foot-grid { display: grid; gap: 16px; margin-top: 24px; }
.foot a { color: var(--ink); }
.foot .fn { font-size: 13px; }

/* Липкая кнопка на телефоне */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(160%); transition: transform .3s var(--ease);
}
.sticky.show { transform: none; }
.sticky .btn { width: 100%; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); }

/* Окно кейса */
dialog.case-dlg {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
  overscroll-behavior: contain;
}
dialog.case-dlg::backdrop { background: rgba(0, 0, 0, .55); }
dialog.case-dlg[open] { animation: up .28s var(--ease); }
@keyframes up { from { transform: translateY(24px); } }
.dlg-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.dlg-bar .x { min-width: 48px; min-height: 48px; border-radius: 99px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; font-weight: 600; font-size: 16px; }
.dlg-bar .x svg { width: 18px; height: 18px; }
.dlg-in:focus { outline: none; }
.dlg-in { padding: 20px 16px calc(48px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.dlg-cta { display: grid; gap: 8px; }

/* Появление при прокрутке */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transition: none; }
  .rv { transform: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  dialog.case-dlg[open] { animation: none; }
  .btn, .cc, .sticky { transition: none; }
}

/* ≥ 600: крупнее */
@media (min-width: 600px) {
  :root { --gut: 24px; }
  .h2 { font-size: 48px; }
  .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  .hero-media { max-width: 520px; }
  .team { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
}

/* ≥ 900: десктоп */
@media (min-width: 900px) {
  :root { --gut: 32px; }
  section { padding-block: 112px; }
  .nav { display: flex; gap: 8px; }
  .top .wrap { height: 72px; }

  .hero { padding-top: 40px; padding-bottom: 72px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 380px);
    grid-template-areas: 'text media' 'act media';
    gap: 28px 48px; align-items: start;
  }
  .hero h1 { font-size: min(calc((min(100vw, var(--max)) - 2 * var(--gut) - clamp(300px, 27vw, 380px) - 48px) / 8.6), 120px); }
  .hero-media { max-width: none; margin-top: 30px; }
  .hero-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .bignum b { font-size: clamp(96px, 8.4vw, 132px); }
  .bignum i { font-size: clamp(40px, 3.4vw, 54px); }
  .hero-act { padding-top: 0; max-width: 560px; }
  .hero-cta { order: 1; }

  .ghost { font-size: min(calc((100vw - 2 * var(--gut)) / 9.6), 150px); margin-top: 16px; }
  .swipe-hint { display: none; }
  .cases-foot { margin-top: 56px; }
  .cc-track {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; overflow: visible;
    margin: -64px 0 0; padding: 0; scroll-snap-type: none;
  }
  .cc { margin-bottom: -18px; }
  .cc:nth-child(4n+2) { margin-top: 26px; }
  .cc:nth-child(3n) { margin-top: 12px; }
  .cc.wide { grid-column: span 2; display: grid; grid-template-columns: 44% 1fr; gap: 6px; }
  .cc.wide .cc-img { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .cc.wide .cc-body { padding: 10px 12px 10px 16px; }
  .cc.wide h3 { font-size: 44px; }
  .cc.wide .result { font-size: 18px; }
  .cc.accent .facts { display: grid; list-style: none; margin: 4px 0 6px; padding: 10px 0 0; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .3); }
  .cc.accent .facts li { font-size: 15px; line-height: 1.35; }
  .cc.accent .facts span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
  .cc:hover { transform: rotate(0deg) translateY(-6px) !important; z-index: 5; box-shadow: 0 1px 0 var(--line), 0 30px 50px -20px var(--shadow); }
  .cc-cta { margin-top: 40px; }

  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .step { padding: 28px 0 32px; min-height: 240px; }
  .step .num { font-size: 80px; }
  .step h3 { padding-right: 76px; }
  .faq { max-width: 860px; }
  .foot { padding-bottom: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1.4fr; }
  .sticky { display: none; }
  dialog.case-dlg { max-width: 860px; height: calc(100% - 48px); margin: 24px auto; border-radius: 20px; }
  .dlg-in { padding: 32px 40px 64px; }
}

/* Обложки карточек кейсов: уже ЧБ с синим предметом — никаких фильтров */
.duo.cover { background: var(--paper); }
.duo.cover img, html[data-img] .duo.cover img { filter: none !important; mix-blend-mode: normal !important; }

/* ===== Окно кейса v3: быстро по диагонали, подробно — по желанию ===== */
.dlg-in { gap: 26px; }
.k-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: end; }
.k-head.has-phone { grid-template-columns: minmax(0, 1fr) 92px; }
.k-head .k-phone { border-radius: 12px; }
.k-head h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 36px; letter-spacing: -.045em; line-height: 1; margin-top: 6px; word-spacing: .09em; overflow-wrap: anywhere; }
.k-acc { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; font-size: 15px; }
.k-acc a { font-weight: 600; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.k-hit { display: flex; flex-direction: column; margin-top: -10px; }
.k-hit b { font-family: var(--display); font-weight: 900; color: var(--accent); font-size: clamp(64px, 21vw, 128px); line-height: .86; letter-spacing: -.055em; white-space: nowrap; }
.k-hit.long b { font-size: clamp(50px, 15vw, 104px); white-space: normal; }
.k-hit > span { margin-top: 10px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.k-hit .k-sub { margin-top: 4px; font-size: 16px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.k-nums { list-style: none; margin: -6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.k-nums li { padding: 10px 10px 2px 0; min-width: 0; }
.k-nums li + li { padding-left: 10px; border-left: 1px solid var(--line); }
.k-nums b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.05; letter-spacing: -.035em; }
.k-nums span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.25; color: var(--muted); }
.k-src { font-size: 13px; color: var(--muted); font-style: italic; margin-top: -14px; }
.k-h { display: block; margin: 0 0 10px; font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.k-ba { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.k-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.k-row .was { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--muted); }
.k-row .arr { font-size: 22px; font-weight: 700; color: var(--accent); }
.k-row .now { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.k-row .cap { grid-column: 1 / -1; margin-top: 4px; font-size: 15px; color: var(--muted); }
.k-idea { margin: 0; background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 18px 20px 22px; }
.k-idea .k-h { color: rgba(255, 255, 255, .6); }
.k-idea blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.k-did ol { list-style: none; margin: 0; padding: 0; counter-reset: k; border-top: 1px solid var(--line-strong); }
.k-did li { counter-increment: k; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.35; }
.k-did li::before { content: counter(k); font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--accent); }
.k-did b { font-weight: 700; }
.k-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
.k-strip::-webkit-scrollbar { display: none; }
.k-reel { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.k-reel .thumb { aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--ghost); }
.k-reel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.k-reel .thumb.none { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ghost) 0 1px, transparent 1px 12px), var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.k-reel .thumb.none span { font-size: 14px; font-weight: 600; color: var(--muted); }
.k-reel .v { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -.035em; line-height: 1; }
.k-reel .v svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.k-reel a { font-size: 15px; font-weight: 600; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.k-reels .k-src { margin-top: 6px; }
.k-cta { margin-top: -4px; }
.k-more { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin-top: -6px; }
.k-more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-weight: 600; font-size: 17px; }
.k-more summary::-webkit-details-marker { display: none; }
.k-more .pm { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); flex: none; position: relative; }
.k-more .pm::before, .k-more .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.k-more .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s var(--ease); }
.k-more[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.k-more-in { padding: 0 0 16px; display: grid; gap: 12px; }
.k-more-in p { font-size: 16px; line-height: 1.55; }
.dlg-cta .k-src { margin-top: 4px; }
@media (min-width: 600px) {
  .k-head.has-phone { grid-template-columns: minmax(0, 1fr) 128px; }
  .k-head h2 { font-size: 48px; }
  .k-nums b { font-size: 28px; }
  .k-idea blockquote { font-size: 30px; }
  .k-strip { margin-inline: 0; padding-inline: 0; }
  .k-reel { flex-basis: 140px; }
}
@media (min-width: 900px) {
  .k-head h2 { font-size: 56px; }
  .k-hit b { font-size: 128px; }
  .k-hit.long b { font-size: 96px; }
}
.dlg-in section { padding-block: 0; }
.dlg-in .k-ba { padding-top: 14px; }
dialog.case-dlg { scroll-padding-top: 72px; }
.k-hit.mid b { font-size: clamp(46px, 14.5vw, 104px); }
.k-reel.tile { flex: 1 1 0; min-width: 120px; border-top: 1px solid var(--line-strong); padding-top: 10px; }
.k-reel.tile .v { margin-top: 0; font-size: 32px; }
.k-reel.tile span { margin-top: 4px; font-size: 15px; color: var(--muted); }
.k-nums b { white-space: nowrap; font-size: min(22px, 5.1vw); }
@media (min-width: 600px) { .k-nums b { font-size: 28px; } }
.k-nums b { white-space: normal; }
.k-row.solo { grid-template-columns: auto minmax(0, 1fr); }
.k-row.solo .now { color: var(--ink); }

/* Команда: фото с плоским фоном */
.person .photo img { display: block; }
@media (max-width: 599px) { .team { grid-template-columns: 1fr 1fr; } .team .person:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; } }

/* Что вы получите — выгоды клиента плитками, синие/белые как карточки кейсов */
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.get { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.get b { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 15vw, 76px); line-height: .9; letter-spacing: -.05em; color: var(--accent); white-space: nowrap; }
.get h3 { font-size: 19px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: -.01em; }
.get p { color: var(--muted); font-size: 16px; }
.get.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.get.accent b { color: #fff; }
.get.accent p { color: rgba(255, 255, 255, .82); }
@media (min-width: 600px) { .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gets { grid-template-columns: repeat(4, minmax(0, 1fr)); } .get { min-height: 300px; } .get b { font-size: 64px; } }

/* Контакты без формы: только Телеграм и звонок (Рим) */
.contact-one { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.contact-one .sec-head { margin-inline: auto; }
.contact-one .direct { width: 100%; max-width: 520px; }
.btn-xl { min-height: 64px; font-size: 19px; }
.contact-one .hint { font-size: 16px; color: var(--muted); }

/* QA 11.10: крупные цифры и названия не вылезают из карточек на любой ширине
   (cqi = 1% ширины карточки; старые браузеры просто оставят прежний размер) */
@supports (width: 1cqi) {
  .cc-body, .get { container-type: inline-size; }
  .hit b { font-size: min(clamp(40px, 11vw, 56px), 18cqi); }           /* «+600 тыс. ₽» в одну строку */
  .cc h3 { font-size: min(28px, 14cqi); }                             /* «@mon__reels» на узком десктопе */
  .get b { font-size: min(clamp(52px, 15vw, 76px), 22cqi); }           /* «→ директ» влезает в плитку */
  @media (min-width: 900px) { .cc.wide h3 { font-size: min(44px, 14.5cqi); } }
  @media (min-width: 1024px) { .get b { font-size: min(64px, 22cqi); } }
}
/* Ссылки в подвале — палец попадает (≥44px по высоте) */
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.cc-cta .btn { max-width: 100%; white-space: normal; line-height: 1.2; text-align: center; padding-block: 8px; }
.k-nums span { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }  /* «роликов-миллионников» на 360 */

/* Правки Рима r1 (12.10) */
/* Карточка KETRA: результат подпунктами */
.cc .pts { list-style: none; margin: -2px 0 2px; padding: 0; display: grid; gap: 6px; }
.cc .pts li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.4; font-weight: 500; }
.cc .pts li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cc.accent .pts li::before { background: var(--on-accent); }
.cc .pts b { font-weight: 700; background: var(--mark); padding: 0 .15em; border-radius: 3px; }
@media (min-width: 900px) { .cc.wide .pts li { font-size: 18px; } }

/* Крупные надписи из нескольких слов («Все группы») — слова не слипаются */
.k-hit b { word-spacing: .14em; }
.k-hit.long b { letter-spacing: -.035em; line-height: .95; }

/* «Лучшие ролики»: вся плитка — ссылка на ролик */
a.k-reel { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.k-reel .thumb { display: block; position: relative; }
.k-reel .thumb img { display: block; transition: transform .3s var(--ease); }
a.k-reel:hover .thumb img { transform: scale(1.04); }
a.k-reel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.k-reel .go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; min-height: 28px; font-size: 14px; font-weight: 600; color: var(--accent); }
.k-reel .go svg { width: 14px; height: 14px; flex: none; }

/* «Как это будет»: номер шага — кружок слева (телефон) и сверху (компьютер) */
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-content: start; }
.step > * { grid-column: 2; }
.step .when { justify-self: start; }
.step h3 { padding-right: 0; }
.step .num { position: static; grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; letter-spacing: 0; }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step > * { grid-column: 1; }
  .step .num { grid-row: auto; width: 56px; height: 56px; font-size: 28px; margin-bottom: 8px; }
  .step h3 { padding-right: 0; }
}
